{"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/MyAccounts.jsx","views/BankAccount/MyAccounts/MyAggregateTransactionGroupReport.jsx","views/BankAccount/MyAccounts/SearchAccount.jsx","views/Components/DownloadButton.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/Campaign/CampaignNotification/CampaignNotificationProfile.jsx","views/Components/ButtonToolbar.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","views/InteracConfirm/InteracConfirmSecurityQuestion.jsx","core/withArtifex.js","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","views/InteraceTransfer/Workflow/EtransferSubmitApprove.jsx","components/CustomInput/CustomInput.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","views/LMS/FundingSummary/FundingSummary.jsx","assets/jss/material-dashboard-pro-react/views/ChequeManagementStyle.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/LMS/Report/UserLogReport.jsx","views/Components/CanadaPostAddressComponent.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/LOS/CollectionPool/CollectionPool.jsx","views/Customer/CustomerDefinition.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/LedgerCard/BorrowerPaymentPlan/BorrowerPaymentPlan.jsx","views/LOS/ApplicantDefinition/ApplicantDefinition.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","views/LOS/Statement/SecureCardCollection.jsx","components/Typography/Black.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/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","views/PPaid/Clearing/Dispute/ClientDispute.jsx","views/PPaid/Clearing/Dispute/ClientDisputeReport.jsx","components/Card/CardHeader.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/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","views/Support/Legal/LegalManage.jsx","views/Support/OnlineSupport/OnlineSupport.jsx","views/Support/UserGuide/UserGuideManage.jsx","core/Formatter.js","components/Card/CardFooter.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","views/SystemAdmin/InteracUrls/ManageInteracCustomIntegrationUrls.jsx","views/SystemAdmin/PrepaidStatementCallNumber.jsx","views/SystemAdmin/SchedulerHistory.jsx","assets/jss/material-dashboard-pro-react/views/createReportStyle.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/Tsp/Mdes/TspTokenRequestor.jsx","views/UserAdmin/ChangeOrResetPassword/ChangeOrResetPassword.jsx","views/UserAdmin/EftRoutingRule/EftRoutingRule.jsx","views/EFT/CreateEFT/CreateEFTIndividual.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/UserAdmin/RoleDefinition/UserAuthorityDefinition/UserAuthorityDefinition.jsx","views/UserAdmin/RoleDefinition/UserRoleCopy/UserRoleCopy.jsx","views/UserAdmin/RoleDefinition/UserRoleDefinition/UserRoleDefinition.jsx","views/InteraceTransfer/CreateEtransfer/CreateEtransferIndividual.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/VisaDirect/ClientPortal/VisaDirect.jsx","views/VisaDirect/VisaDirectThirdPartyAddNewCustomer.jsx","views/VisaDirect/VisaDirectTransactionSearch.jsx","views/PPaid/Clearing/MastercardClearingDetail.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/WireTransfer/WireTransferUnsuccessfulList.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","assets/jss/generic/genericRadioInputStyle.jsx","views/Components/ParameterComponent.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","core/ResourceHelper.js","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","assets/img/qr.png","core/AlertHelper.js","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","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","core/TaskPool.js","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","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","views/Constants/Constant.Sorted.js","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","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","views/Constants/Constant.Parameter.js","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/customCheckboxRadioSwitch.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","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 /^/.*$","core/ClientHelper.js","assets/jss/material-dashboard-pro-react/layouts/externalContainerStyle.jsx","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","emailId","accountId","isCorporate","isPersonal","isMsbCorporate","isMsbPersonal","isEmail","InformationTypeId","isAccount","IsETransferEMailAddressValid","ETransferEMailAddress","GetRenderItemPhoneCountryCode","GetClientTypeList","clientTypeList","clientTypeCorporate","clientTypePersonal","clientTypeMsbCorporate","WireTransferMSBCorparate","clientTypeMsbPersonal","WireTransferMSBIndividual","GetInformationTypeList","InformationType","Email","informationTypeList","IsCompanyLegalName","IsName","IsCountryId","IsEmail","isFileChanged","ExecuteApiFileUpload","File","formData","FormData","append","TempFileId","FileCode","AmlKycInternalBlacklist","FileType","Binary","CrudType","Insert","SubmitOrUpdateExecute","action","fileId","Upload","fileInputRef","click","FileSelect","preventDefault","file","target","files","MenuCodes","AML_KYC_DCBankBlacklistPool","AML_KYC_ClientBlacklistPool","CompanyLegalName","interval","FlinksLinkedAccount","ExternalBankAccount","IdTypeId1","IdNumber1","IdTypeId2","IdNumber2","accept","MaxLength30","BlacklistReasonId","SortedOrderIndex","PhoneCountryCodeId","IsPhone","SortedParameterDesc","MaxLength20","TaxNumber","NickName","Alias1","Alias2","Alias3","CardNumber","KycReviewNumber","newModel","subtract","Detail","KycScenarioMenuActionDefinition","GetSubMenuParameter","ParentMenuId","GetRenderItemAction","ValidateSearch","SubMenuId","ActionId","GetMenuName","menu","menuName","IsParentMenuId","IsSubMenuId","IsActionId","SortedCode","galerydefault","require","CardDesignTool","OpenFileSelectDialog","fileInputRef1","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","handleClose","handleCameraError","genderValue","genderList","GenderId","kycManualApplicationId","kycManualApplicationUserPhotoId","UserPhotoId","KycManualPhoto","Base64","requestModel","KycManualApplicationId","ImageId","handleOpenCamera","GetGenderList","HandleFileSelect","file1","imageObj","GetImageObjectFromBase64","handleRotateImage","imageBase64","GenerateImageFromRawBase64","rotatedBase64","Rotate","rotatedFile","parameterIdentificationMethod","sortName","gridSortParam","ColumnsData","activeOverlay","GenericCamera","OverlayRatio","OverlayImage","Open","OnCameraStart","OnTakePhoto","OnCameraError","StartDate","EndDate","Width","mediaProfile","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","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","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","IsClientComponent","CustomDisabled","ClientSetup","RenderClientNameSelect","IsProfileCompleted","OrganizationUniqueId","RenderUniqueClientSelect","RenderOrganizationUniqueIdSelect","OrganizationName","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","hasOwnProperty","CorrectAccountNames","AccountName","IntendUseOfAccount","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","TransitNumber","Branch","SecurityTypeId","SecurityType","AvailableLimit","LastLoadingDate","SecureAmount","InsertDateTime","CustomerIdExpireDateList","GetCustomerNameParameter","RenderItemClientCustomer","SiteVisit","HandleSelectModel","reader","FileReader","onloadend","Photo","fileModel","readAsDataURL","UploadClick","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","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","ToDateInputValueAsUtc","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","_model$ReferenceNumbe","hasReferenceNumberSearch","SettlementAccountStatus","GetAccountList","HandleGetListMst","timezone","SubAccountList","MSTOffset","GetDateTimeMst","UseMstTimezone","_row$value5","ED","EftIcon","ETransferIcon","SenderBank","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","GetAccountInfo","FromToAccountingTransaction","GetParameterUniqueClientId","sortedFullName","MyAccounts","o","MyAggregateTransactionGroupReport","SearchAccount","TextAlign","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","BankAccountList","bankAccount","TransactionAlertGroupList","GroupName","BankingNotification","initialTransactionList","initialAccountList","SuccessSubmitCallback","ErrorSubmitCallback","TransactionAlert","transaction","AlertLimit","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","ReProcess","DemandStatusValue","ContainsRejectedRows","BulkFileDemandId","IsFileFormatId","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","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","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","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","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","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","InteracConfirmSecurityQuestion","HocComponent","ErrorBoundary","CreateEtransfer","maxExpDate","MoneyReqExpDate","HasDDR","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","EtransferSubmitApprove","IsBanking","isBanking","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","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","ValueChangedForExport","IsMainCard","maxLength6","parameterProduct","FeeRevenueReport","TransactionNameBasedFeeReport","UserLogReport","OriginalValue","IsUserId","NewValue","modelUpdate","getProvince","getCity","ProvinceList","CityList","RenderLeftSide","lengthAddress","RenderRightSide","NewProvince","NewCity","lengthZipCode","isZipCodeOptional","ParameterAddressType","ParameterAddressTypeIndv","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","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","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","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","LoadCustomerData","responseItem","clientCustomerId","GetTooltip","BeginText","Zoom","GenericExpansionPanelCustomHeader","CustomerInformationComponent","handleNext","BeneficiaryComponent","handleAddAccount","handleDeleteAccount","BenificialOwner","AssignDDTAccountComponent","GetCDICAccountColumns","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","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","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","LedgerCardCompanyIcon","AddLogoDialogOpen","isAddLogoDialogOpen","AddLogoDialogClose","IsFileChangedToFalse","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","selectedModel","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","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","SecureCardCollection","blackText","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","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","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","IsExported","IsAvailableCenterCode","IsAvailableEmbossStatus","HasAddress","Menu_LmsCardRenewalList","EmbossFileCreateDate","maxLength21","CardRenewal","CardIssuingReasonType","CardStatus","FromCardStatusId","ToCardStatusId","IsAllowed","RenderItemStatus","renderItemStatus","ClearCardNumberSearch","GetClearCardNumber","ParameterMaxLength16","CreateMainCard","cardNumberValue","cardNameValue","documentryValue","cardDateValue","documentry2Value","documentry3Value","cardChipTypeValue","cardBrandIdValue","colorTypeValue","ProductType","DefaultAccountId","RenderItemProduct","renderItemProduct","GetDefaultAccountParameter","parameterDefaultAccount","ValidateForCompanyName","FillCompanyName","companyNameResult","EmbossForthLine","CreditLimit","CreateSupplementaryCard","EmbossTypeId","AvsZipCode","MainCardId","SortedProductName","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","maxLength50","MCC","maxLength4","PrePersonCardOrder","LoadClientAddress","NumberOfCard","CardSendAddress","GetCardList","CardOrderId","ColumnsCardList","SimulationCreditCardBucketCloseLog","SimulationCreditCardBuckets","SimulationCreditCardFinancialInfo","SimulationCreditCardInterests","SimulationCreditCardPayments","SimulationCreditCardTransactions","ClientDipsute","transactions","TabIndexChanged","HandleDispute","TransactionDataId","isDisputeActionDialogOpen","disputeModel","ClientDispute","InitialDisputeModel","HandleActionDialogClose","DisputeModelChange","DisputeCurrencyId","generalModel","BankAccount","embossModel","statisticModel","ClientDisputeAction","onActionModelClose","ClientDipsuteReport","disputeData","ClientDisputeReportAction","ClientDisputeStatusId","cardHeaderStyle","contact","signup","stats","cardHeaderClasses","cardHeaderPlain","cardHeaderImage","cardHeaderContact","cardHeaderSignup","cardHeaderStats","cardHeaderIcon","cardHeaderText","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","InterestFeeProfile","onlyLetterAndDigit","VerifiyDigitAndLetter","vInterestRate","vMinimumAmount","MinimumAmount","AlertSettings","alertsettinglist","GetParameterCustomerStore","parameterCustomerStore","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","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","CardInfo","responseQr","EmbossInfo","StatisticInfo","CardTransactions","customerInfo","CustomerInfo","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","FormatDateTimeEst","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","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","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","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","ManageInteracCustomIntegrationUrls","ApiUserId","SessionTimeInMinutes","ParentUserParameter","ApiUserParameter","RenderUserNameSelect","RenderApiUserNameSelect","Token","PrepaidStatementCallNumber","CallNumber","SchedulerHistory","JobHistoryDialogOpen","SchedulerInfoId","schedulerInfoId","listJobHistory","isJobHistoryDialogOpen","JobHistoryDialogClose","columnsJobHistory","IsSuccess","isSuccess","dualListBoxStyle","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","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","sortAccountName","RenderBeneficiarySelect","RenderAccountSelect","accountNumber","accountName","storeCode","Selected","IsHaveMemo","AddNewCustomerEFT","createEFTIndividualStyle","ParentId","IsProgramMenu","GetMenuListForParentMenu","menuList","FullPath","ShowInMenu","IsBaseMenu","IsGenericScreen","styleCheckInput","IsParentId","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","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","sortMemo","lengthSecurityAnswer","ParameterMaxLength400","ParameterMaxLengthSecurityQuestion","InteracCustomerTrsnaferOprion","FetchInteracGetTransferTypes","payeeId","_responseData$Item$fi","transferMethod","tt","Default","TransferTypes","transferType","BenficiaryId","RenderTransferMethod","transferTypeDescription","TransferTypeDescription","AddNewCustomereTransfer","createEtransferIndividualStyle","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","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","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","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","WireTransferUnsuccessfulList","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","radioChecked","radioUnchecked","FormControlRadio","ParamObj","ParameterValueIncludes","ParameterValue2Includes","ParameterValue3Includes","ParameterValue3Excludes","ParameterValue4Includes","ParameterValue4Excludes","ParameterValue5Includes","ParameterValue5Excludes","ParameterValue6Includes","ParameterValue6Excludes","_","remove","parameterComponentStyle","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","componentWillUnmount","predicates","MultiLanguage","returnData","GetStyles","base","valueContainer","indicatorsContainer","singleValue","styleObj","titleLabel","tempSelectedOption","lastData","groupedItem","groupedOptions","labelMd","selectMd","components","selectLabelBold","onInputChange","formatGroupLabel","isDisabled","isClearable","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","output","replaceAll","GetAll","loc","GetAllForMenu","SetLanguage","languageId","afterLanguageSet","ResourceType","GetCodeByName","Any","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","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_CorporateCard","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","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","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","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","isUndefined","FeeTypeDesc","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","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","TasksCompleted","SetBusy","handleAppendTask","SetDone","handleDoneTask","promise","rand","rnd","openConsoleLog","isRunningAnyTask","allTaskStatus","GenericFlipContainer","Front","Back","GenericStepper","Steps","ActiveStep","Stepper","alternativeLabel","activeStep","StepProps","StepLabelProps","Step","StepLabel","GenericVerificationComponent","getIcon","statusStr","verificationBase","verificationFalse","verificationTrue","verificationWarning","verificationEmpty","genericVerificationComponentStyle","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","HeaderTableText","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","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","GetFlatRoutes","GetCorrectedMenuList","Views","menuSubItem","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","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","DCPD","DCPET","DCLogo","HRLogo","CardHolderLogo","EtransferLogo","EPFinancialLogo","DcOldLogo","DCPDLogo","DcPaymentEtransferLogo","PTNLogo","gridItemCenterStyle","imageStyle2","imageStyle1","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","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","ReactNativeWebView","clipboard","writeText","_window$ReactNativeWe2","fullPage","pagesRoutes","pagesStyle","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","checkboxAndRadio","checkboxAndRadioHorizontal","disabledCheckboxAndRadio","labelHorizontal","labelHorizontalRadioCheckbox","labelLeftHorizontal","labelError","inlineChecks","iconCheckbox","iconCheckboxChecked","iconCheckboxIcon","switchBase","switchIcon","switchIconChecked","switchBar","switchChecked","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","IdentityNumber1","IdentityPlaceOfIssue1","IdentityTypeId2","IdentityNumber2","IdentityExpireDate1","IdentityTypeIdStr1","IsIdVerification2","IdentificationMethodId2","IdentityVerifyingPersonId2","InsertCanadaPost","TreeDisplay","record","currentNodePrimaryId","PrimaryID","repeat","NameOfBusiness","IdentificationMethod1","IdentificationMethod2","IdentityTypeIdStr2","insertModel","IdentityType1","IdentityType2","AuthOwnerType","ParameterMaxLength20","ParameterMaxLength200","ParameterIdentityVerifyingPerson","_this$state$corporate","DisabledForCorporate","PrimaryId","CUID","BusinessType","DateOfBith","DetailedOccupation","BusinessRegistrationDate","IdentityProvinceOfIssue1","IdentityPlaceOfIssue2","IdentityProvinceOfIssue2","IdentityExpireDate2","corporateAuthPersonModel","VerifyingPersonId","handleChangePhone","CustomerCAPersonAddress","ParameterMaxLength15","IdentityProvinceOfIssue","CustomHandleChange","IsPhoneNumber","LastEffectivenessDate","LastFintracDate","ClientStatusId","ResidencyForTaxCountryId","ResidencyForTaxStateId","EntityTypeId","BusinessNatureId","NAICId","PublicityTradeEntity","WebSite","PciCertification","HandleIsCertificateExpired","PciIssuanceDate","UpdateCorporate","FilterEntityType","PspClientFlag","ParameterClientStatus","ParameterMaxLength60","ParameterMaxLength10","ParameterMaxLength9","ParameterProvince","ParameterLicenseRegistrationType","ParameterLicenseRegistrationEntity","ParameterEntityType","ParameterBusinessNature","ParameterIndustryOfEntity","ParameterFATCA","compareDate","oneYearAgo","isBefore","DoingBusiness","LicenseRegistrationTypeId","LicenseRegistrationEntityId","LicenseRegistrationNumber","LicenseRegistrationTypeId2","LicenseRegistrationEntityId2","LicenseRegistrationNumber2","LicenseRegistrationTypeId3","LicenseRegistrationEntityId3","LicenseRegistrationNumber3","ClosureDate","IsAccountUsedByTp","AccountRiskRating","FatcaId","SearchRefID","AOBCustomer","regulatoryLicense","NameOfLicense","LicenseStatusId","LicenseStatus","LicenseRegistrationType","LicenseNumber","ExpirationDate","ParameterLicenseStatus","DirectorAddress","_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","FilterTrustAccount","RenderAccountTypeSelect","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","DirectorName","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,EAAS,SACTC,EAAQ,OACRC,EAAM,KACNC,EAAI,MACJC,EAAK,KACLC,EAAI,SACJC,EAAQ,UACRC,EAAS,WACTC,KACGC,GACAd,EACEe,EAAaC,IAAW,CAC7B,CAACf,EAAQgB,SAAS,EAClB,CAAChB,EAAQO,IAAQA,EACjB,CAACP,EAAQC,IAASA,EAClB,CAACD,EAAQE,OAAQA,EACjB,CAACF,EAAQI,WAAYA,EACrB,CAACJ,EAAQK,UAAWA,EACpB,CAACL,EAAQM,QAASA,EAClB,CAACN,EAAQQ,OAAQA,EACjB,CAACR,EAAQS,MAAOA,EAChB,CAACT,EAAQU,UAAWA,EACpB,CAACC,GAAYA,IAEd,OACCM,IAAAC,cAACC,IAAMC,OAAAC,OAAA,GAAKR,EAAI,CAAEb,QAASY,EAAYD,UAAWG,IAChDX,GA0CJN,EAAcyB,aAAe,CAC5BrB,MAAO,SAGOsB,cAAWC,UAAXD,CAAwB1B,I,4CCrFvC4B,EAAOC,QAAU,IAA0B,uD,qBCA3CD,EAAOC,Q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,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,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EACP,IAAO,EAC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S,QAIT8kH,c","file":"static/js/main.61fa3e72.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/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYw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Nl9fNw6b72eyibgGWaqgjGWLq+fohUHneL0/9p87ct78X2dOaEVBuMHGLpaRn93aRYgk7WiIAuWpXLfL3yo4qPJB8GnryvjXhzHRUqBUuNjwtYdszn6tp9leeCmBaBRKsi8ZV0sWLiqoP/dmxt4/dUOvITKHbfse72KaPkBtu9YTiKe5r/+7TId56tyaYIlQzTc0cas2rumZjJrjMfQ1SixgZkFdmCMRhs3W3EYpbRCpnnw4YaburKRisOIVMyIoOwhtCMxxuD5aX7xn1HONzeTGBY88GSa7Z9aN26TVjc1UlX/Llfbq/F1evSIH8k994cLaL4xhlm11Wzc8QH7fzgXxxvOnIc5mh+/MoO39nTgu4p0MppX7lII6fPZJ+dNelloEtydyQMko3GjVwJfp7IJoclRXUuGeOiZfpavaJhY4wwwhoLX1dVQ35hEyVCuk5sWXDgludoV5cLZ4aIEQinFhntH866My7UIVwzwyS13Fl3+qd9bz9wlfdhWaS4d8HWK2JAhGXezAGWOXmwryrZHu1m1ZumkF1hvC6RUMqtBRaoM+ZeUAWwVRqkS6hYO8dxXr/PoU5vHvYzvm4L5pFAYLcextSe+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,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAAGXRFWHRTb2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AAAQAACAAAAABAAAIAABAAAAAAgAABAAAIAAAAAEAAAgAAEAAAAACAAAQAACAAAAABAAAIAAAAAEAAAgAAEAAAAACAAAQAACAAAAABAAACAAAQAAAAAIAABAAAIAAAAAEAAAgAAAAAQAACAAAoDW0NwLWZ//pZgDgCgAAIAAAAAEAAAgAAEAAAAACAAAQAACAAAAABAAAIAAAAAEAAAgAAEAAAAACAAAQAAAgAAAAAQAACAAAQAAAAAKATbbMCACy1AgEQNUsMgKAvG8EAqBqXjUCAM+FAqB6njcCgCw0AgFQNY8ZAYDnQgFQPQ8aAYDnQgFQPQuK4zfGAFTYr4vjcWMQAFXTVBw3GwNQYTeveS5EAFTO9XE/AKCalq55DkQAVNJvi2OeMQAVdENxvGwMAqDKJhXH74wBqJC3imO6MQiAqnu7OM4wBqBCTrXxEQB86O+L49vGAFRA7XX/24xBAPAH44vjdmMASuzu4viaMQgA/tjK4jimOO4xCqCE7iqOI4pjhVEIAP6zxcVxaHHMNQqgRGqX/f9yzXMcAoANWJ4P3yBzZLxJBqhvb67Z9Z9u5y8A+PhuLY7BxTEnH94wA6Be1J6zrlvzHOYNfwKATVD7WdnamwN3Lo7L4rMDgLat9hx16ZrnrNqPN79tJAKAT6Z2t6zzi2On4tizISsuGJTZ6Z170jn/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/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAArtQTFRFAAAAAwMDBgYGAQEBAgICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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0Gt/nMWXdkmcRF584bMOAALCwXLl663I8WyiI8CBUKfQhxdy3ftfNjGXADFpYrV52vXQ9BrjjWOCLkF8JaQWbeNUEWN/AZBU0mN2fdar7tVg8tCVFaQbJ3QNao9Fdm32q5SdAkCGBld7p7L/t2pLl3xNMJ99kQEvoP3FJdVzTPjDEQI9IoaKIyCHsYLxqU/egxsi3yT251cJ9hI8kkmI/FMs7wowQMK9Ua36NgFIyCUTAKhg4AAIiI9LB1APhOAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE1LTA5LTI1VDEzOjIyOjM4KzAwOjAwgOrVwwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNS0wOS0yNVQxMzoyMjozOCswMDowMPG3bX8AAABGdEVYdHNvZnR3YXJlAEltYWdlTWFnaWNrIDYuNy44LTkgMjAxNC0wNS0xMiBRMTYgaHR0cDovL3d3dy5pbWFnZW1hZ2ljay5vcmfchu0AAAAAGHRFWHRUaHVtYjo6RG9jdW1lbnQ6OlBhZ2VzADGn/7svAAAAGHRFWHRUaHVtYjo6SW1hZ2U6OmhlaWdodAAxOTIPAHKFAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADE5MtOsIQgAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/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/qJe0wEbEJCnwJuAt6OBD/jz30TOAMs1LtRPQXsBb7kf54B/gecBk4BLwGX/TEH1HotkS5QAiaBrcBu4DYk9Lf5vzf7Y9TL4y7gD8Cz9W5aTwE3Ah9EJrUMVPyxBJwFjqWOWeBV4BKDpZBh4HpgO5rlB4D3AvvQzB9HHiLKfK7kr50BjlLHYxQpYNh/4Q5/81F/BG5E2l9CrulFpIijwHPIWs4BF5DSXk+UgG3+GW8F3gO8C7gFzfBxL59G7EYu6SCanLkUKWA78JY6XxQhzY+hmXADMsUKihH/AZ4CDvnfXwReRtbRMDPoAQ64DtiDXO77gDuQ0CeAEep7izyGgXcjD9K0Atb7pWkrmUSW807gsyhePO2Po8ALyEIud0m49RhCQp8BbkdCvw0pY5TWssQI2I8U8CQFE6+eAt7UwgBKyFTHkYW8GfgYmgnPAI8h6ziOrKPbMWMIuBnN0A8DdwO7kNA3OtPrsQ3FiwngStFAspSBaf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ZTptb2RpZnkAMjAxNS0wOS0yNVQxMzoyMjozOCswMDowMPG3bX8AAABGdEVYdHNvZnR3YXJlAEltYWdlTWFnaWNrIDYuNy44LTkgMjAxNC0wNS0xMiBRMTYgaHR0cDovL3d3dy5pbWFnZW1hZ2ljay5vcmfchu0AAAAAGHRFWHRUaHVtYjo6RG9jdW1lbnQ6OlBhZ2VzADGn/7svAAAAGHRFWHRUaHVtYjo6SW1hZ2U6OmhlaWdodAAxOTIPAHKFAAAAF3RFWHRUaHVtYjo6SW1hZ2U6OldpZHRoADE5MtOsIQgAAAAZdEVYdFRodW1iOjpNaW1ldHlwZQBpbWFnZS9wbmc/slZOAAAAF3RFWHRUaHVtYjo6TVRpbWUAMTQ0MzE4NzM1OI5KIXEAAAAPdEVYdFRodW1iOjpTaXplADBCQpSiPuwAAABWdEVYdFRodW1iOjpVUkkAZmlsZTovLy9tbnRsb2cvZmF2aWNvbnMvMjAxNS0wOS0yNS9kNDhkMjAzMmYzYmI5MTRhZDg5NGZhZTMwMmJjNmEzYy5pY28ucG5nSykjdgAAAABJRU5ErkJggg==\"","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.105903e1.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/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAdhgAAHYYBXaITgQAAAAZiS0dE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zj/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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\"}\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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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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\"\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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],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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\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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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 ? activeClient[0].Id : 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={this.isClient || model.Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={this.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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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{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\r\n\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPhoto Upload & Verify\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\t\t\t\t\r\n\t\t\t\t\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\t\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\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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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nFinScanWatchlistControl.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 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, GenericEmailInput, GenericExpansionPanel, GenericGrid, GenericNumberInput, GenericSelectInput, GenericTextInput } from \"views/Components/Generic\";\r\nimport ParameterComponent from \"views/Components/ParameterComponent.jsx\";\r\nimport { ClientType, CrudType, FileCode, FileType, GridColumnType, InformationType, MenuCodes } from \"views/Constants/Constant\";\r\nimport { MaxLength128, MaxLength20, MaxLength30 } from \"views/Constants/Constant.MaxLength\";\r\nimport { ParameterEmptyObject } from \"views/Constants/Constant.Parameter\";\r\nimport { SortedOrderIndex, SortedParameterDesc } from \"views/Constants/Constant.Sorted\";\r\n\r\nclass InternalBlacklist 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: \"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: \"Information Type\",\r\n\t\t\t\taccessor: \"InformationTypeDescription\"\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: \"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: \"Reason\",\r\n\t\t\t\taccessor: \"BlacklistReasonDescription\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Country Code\",\r\n\t\t\t\taccessor: \"PhonePhoneCountryCodeName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Phone Number\",\r\n\t\t\t\taccessor: \"PhonePhoneNumber\"\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: \"Tax Number\",\r\n\t\t\t\taccessor: \"TaxNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Nick Name\",\r\n\t\t\t\taccessor: \"NickName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Alias 1\",\r\n\t\t\t\taccessor: \"Alias1\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Alias 2\",\r\n\t\t\t\taccessor: \"Alias2\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Alias 3\",\r\n\t\t\t\taccessor: \"Alias3\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"External Payment Wallet\",\r\n\t\t\t\taccessor: \"ExternalBankAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"E-Transfer E-Mail Address\",\r\n\t\t\t\taccessor: \"ETransferEMailAddress\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Linked Wallet\",\r\n\t\t\t\taccessor: \"FlinksLinkedAccount\"\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];\r\n\r\n\t\tthis.state = {\r\n\t\t\tmodel: {},\r\n\t\t\tisFileChanged: 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\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\tthis.GetInformationTypeList();\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\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}\r\n\t\t\t} else if (name === \"InformationTypeId\") {\r\n\t\t\t\tmodel[\"isEmail\"] = this.state.emailId == value;\r\n\t\t\t\tmodel[\"isAccount\"] = this.state.accountId == value;\r\n\r\n\t\t\t\tif (this.state.emailId == value) {\r\n\t\t\t\t\tmodel[\"CompanyLegalName\"] = null;\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[\"BlacklistReasonId\"] = null;\r\n\t\t\t\t\tmodel[\"PhoneCountryCodeId\"] = null;\r\n\t\t\t\t\tmodel[\"PhoneNumber\"] = 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[\"TaxNumber\"] = null;\r\n\t\t\t\t\tmodel[\"NickName\"] = null;\r\n\t\t\t\t\tmodel[\"ExternalBankAccount\"] = null;\r\n\t\t\t\t\tmodel[\"FlinksLinkedAccount\"] = null;\r\n\t\t\t\t\tmodel[\"CardNumber\"] = null;\r\n\t\t\t\t} else if (this.state.accountId == value) {\r\n\t\t\t\t\tmodel[\"CompanyLegalName\"] = null;\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[\"BlacklistReasonId\"] = null;\r\n\t\t\t\t\tmodel[\"PhoneCountryCodeId\"] = null;\r\n\t\t\t\t\tmodel[\"PhoneNumber\"] = 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[\"TaxNumber\"] = null;\r\n\t\t\t\t\tmodel[\"NickName\"] = null;\r\n\t\t\t\t\tmodel[\"ETransferEMailAddress\"] = null;\r\n\t\t\t\t\tmodel[\"CardNumber\"] = null;\r\n\t\t\t\t}\r\n\t\t\t} else if (name === \"ETransferEMailAddress\") {\r\n\t\t\t\tmodel[\"IsETransferEMailAddressValid\"] = data.IsValid;\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}\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 temp = list[index];\r\n\r\n\t\ttemp.DateOfBirth = temp.DateOfBirth === null\r\n\t\t\t? null\r\n\t\t\t: Formatter.FormatDateUtc(temp.DateOfBirth);\r\n\t\ttemp.isCorporate = temp.ClientTypeId == this.state.corporateId;\r\n\t\ttemp.isPersonal = temp.ClientTypeId == this.state.personalId;\r\n\t\ttemp.isMsbCorporate = temp.ClientTypeId == this.state.msbCorporateId;\r\n\t\ttemp.isMsbPersonal = temp.ClientTypeId == this.state.msbPersonalId;\r\n\t\ttemp.isEmail = temp.InformationTypeId == this.state.emailId;\r\n\t\ttemp.isAccount = temp.InformationTypeId == this.state.accountId;\r\n\t\ttemp.IsETransferEMailAddressValid = temp.ETransferEMailAddress && temp.ETransferEMailAddress != \"\";\r\n\r\n\t\tthis.setState({ model: temp, selected: index });\r\n\t}\r\n\r\n\tGetRenderItemPhoneCountryCode = (x) => {\r\n\t\tvar result = \"+\" + x.Code + \" (\" + x.Name + \")\";\r\n\r\n\t\treturn result;\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\tGetInformationTypeList = async () => {\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(\"/coreapi/v1.0/Parameter/Search\", { ParameterCode: \"InformationType\" });\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({\r\n\t\t\t\temailId: result.filter(x => x.ParameterValue === InformationType.Email)[0].Id,\r\n\t\t\t\taccountId: result.filter(x => x.ParameterValue === InformationType.AccountNumber)[0].Id,\r\n\t\t\t\tinformationTypeList: result || []\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\tmodel.IsClientTypeId = false;\r\n\t\tmodel.IsCompanyLegalName = false;\r\n\t\tmodel.IsName = false;\r\n\t\tmodel.IsLastName = false;\r\n\t\tmodel.IsDateOfBirth = false;\r\n\t\tmodel.IsCountryId = false;\r\n\t\tmodel.IsEmail = false;\r\n\r\n\t\tthis.setState({ model, list: result || [] });\r\n\t}\r\n\r\n\tSubmitOrUpdate = async (action) => {\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 { ExecuteApiFileUpload } = this.props;\r\n\r\n\t\tif (isFileChanged) {\r\n\t\t\tif (model.File != null) {\r\n\t\t\t\tvar formData = new FormData();\r\n\t\t\t\tformData.append(\"file\", model.File, model.FileName);\r\n\t\t\t\tformData.append(\"fileId\", model.TempFileId);\r\n\t\t\t\tformData.append(\"fileCode\", FileCode.AmlKycInternalBlacklist);\r\n\t\t\t\tformData.append(\"isBinaryOrBase64\", FileType.Binary);\r\n\t\t\t\tformData.append(\"isInsertOrUpdate\", model.Id == 0 || model.File == null || model.FileId == null ? CrudType.Insert : CrudType.Update);\r\n\r\n\t\t\t\tvar result = await ExecuteApiFileUpload(\"/coreapi/v1.0/File/UploadFile\", formData);\r\n\r\n\t\t\t\tif (result != null) {\r\n\t\t\t\t\tthis.SubmitOrUpdateExecute(action, result);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.SubmitOrUpdateExecute(action, null);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.SubmitOrUpdateExecute(action, model.File != null && model.FileId != null ? model.FileId : null);\r\n\t\t}\r\n\t}\r\n\r\n\tSubmitOrUpdateExecute = async (action, fileId) => {\r\n\t\tvar { model } = this.state;\r\n\t\tmodel.FileId = fileId;\r\n\t\tconst { ExecuteApiPost } = this.props;\r\n\t\tvar result = await ExecuteApiPost(`/amlkycapi/v1.0/InternalBlacklist/${action}`, model, null, null, null, [this.Clear, this.Search], true);\r\n\r\n\t\tif (result != null) {\r\n\t\t\tthis.setState({ isFileChanged: false });\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\tClear = () => {\r\n\t\tthis.setState({ model: {}, list: [], selected: null, isFileChanged: false });\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.File != null\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\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.ClientTypeId) {\r\n\t\t\terrors.push(\"Client type can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isCorporate\r\n\t\t\t&& !model.isAccount\r\n\t\t\t&& !model.isEmail\r\n\t\t\t&& !model.CompanyLegalName) {\r\n\t\t\terrors.push(\"Company legal name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isPersonal\r\n\t\t\t&& !model.isAccount\r\n\t\t\t&& !model.isEmail\r\n\t\t\t&& !model.Name) {\r\n\t\t\terrors.push(\"Name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isPersonal\r\n\t\t\t&& !model.isAccount\r\n\t\t\t&& !model.isEmail\r\n\t\t\t&& !model.LastName) {\r\n\t\t\terrors.push(\"Last name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isPersonal\r\n\t\t\t&& !model.isAccount\r\n\t\t\t&& !model.isEmail\r\n\t\t\t&& !model.DateOfBirth) {\r\n\t\t\terrors.push(\"Date of birth can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isMsbPersonal && !model.Name) {\r\n\t\t\terrors.push(\"Name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isMsbPersonal && !model.LastName) {\r\n\t\t\terrors.push(\"Last name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isMsbCorporate && !model.CompanyLegalName) {\r\n\t\t\terrors.push(\"Company legal name can not be null.\");\r\n\t\t}\r\n\r\n\t\tif ((model.isMsbPersonal || model.isMsbCorporate)\r\n\t\t\t&& !model.CountryId) {\r\n\t\t\terrors.push(\"Country can not be null.\");\r\n\t\t}\r\n\r\n\t\tif (model.isEmail\r\n\t\t\t&& (model.ETransferEMailAddress == null\r\n\t\t\t\t|| model.ETransferEMailAddress == \"\")) {\r\n\t\t\terrors.push(\"E-Transfer e-mail address can not be null.\");\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(\"Date of birth must be bigger then 18.\");\r\n\t\t}\r\n\r\n\t\tif (model.isAccount\r\n\t\t\t&& (\r\n\t\t\t\t(!model.FlinksLinkedAccount\r\n\t\t\t\t\t&& (model.ExternalBankAccount == null || model.ExternalBankAccount == \"\"))\r\n\t\t\t\t|| (!model.ExternalBankAccount\r\n\t\t\t\t\t&& (model.FlinksLinkedAccount == null || model.FlinksLinkedAccount == \"\"))\r\n\t\t\t)) {\r\n\t\t\terrors.push(\"External Wallet or linked Wallet must be enter.\");\r\n\t\t}\r\n\t\tif (model.ETransferEMailAddress\r\n\t\t\t&& !model.IsETransferEMailAddressValid) {\r\n\t\t\terrors.push(\"E-Transfer e-mail address is not a correct.\");\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\tmodel[\"IsClientTypeId\"] = !model.ClientTypeId;\r\n\t\tmodel[\"IsCompanyLegalName\"] = (model.isCorporate || model.isMsbCorporate) && !model.isAccount && !model.isEmail && !model.CompanyLegalName;\r\n\t\tmodel[\"IsName\"] = (model.isPersonal || model.isMsbPersonal) && !model.isAccount && !model.isEmail && !model.Name;\r\n\t\tmodel[\"IsLastName\"] = (model.isPersonal || model.isMsbPersonal) && !model.isAccount && !model.isEmail && !model.LastName;\r\n\t\tmodel[\"IsDateOfBirth\"] = (model.isPersonal || model.isMsbPersonal) && !model.isAccount && !model.isEmail && !model.DateOfBirth;\r\n\t\tmodel[\"IsCountryId\"] = (model.isMsbPersonal || model.isMsbCorporate) && !model.CountryId;\r\n\t\tmodel[\"IsEmail\"] = model.isEmail && (model.ETransferEMailAddress == null || model.ETransferEMailAddress == \"\");\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, clientTypeList, 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 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: \"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 == 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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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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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 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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etAppLeftTitle: 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: \"Wallet 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: \"Wallet 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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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\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\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n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\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: \"Wallet 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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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 ? activeClient[0].Id : 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={this.isClient || model.Id}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={this.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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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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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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nTransUnionIdVerification.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)(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: \"LastRevi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t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nUnverifiedCustomerList.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(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(this.Delete); }, Disabled: Disabled || !model?.Id }\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t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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: \"Wallet Name\",\r\n accessor: \"Account.AccountOwnerName\",\r\n },\r\n ClientHelper.IsClient()\r\n ? { Header: \"Card Number\", accessor: \"Card.CardTokenNumber\" }\r\n : { Header: \"Wallet 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 Wallet\");\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(\"Wallet 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 Wallet 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: \"Payment 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.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: \"Payment 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.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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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\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} Wallet 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 Wallet 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\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\tresponseData.Item.forEach( item => {\r\n\t\t\t\t\t\t\tif (item.hasOwnProperty(\"Program\") && item.Program.hasOwnProperty(\"Description\")) {\r\n\t\t\t\t\t\t\t\titem.Program.Description = ResourceHelper.CorrectAccountNames(item.Program.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\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\tresponseData.Item.forEach( item => {\r\n\t\t\t\t\t\t\tif (item.hasOwnProperty(\"Program\") && item.Program.hasOwnProperty(\"Description\"))\r\n\t\t\t\t\t\t\t\titem.Program.Description = ResourceHelper.CorrectAccountNames(item.Program.Description);\r\n\t\t\t\t\t\t\tif (item.hasOwnProperty(\"BankingAccountType\") && item.BankingAccountType.hasOwnProperty(\"ParameterDesc\"))\r\n\t\t\t\t\t\t\t\titem.BankingAccountType.ParameterDesc = ResourceHelper.CorrectAccountNames(item.BankingAccountType.ParameterDesc);\r\n\t\t\t\t\t\t\tif (item.hasOwnProperty(\"AccountName\"))\r\n\t\t\t\t\t\t\t\titem.AccountName = ResourceHelper.CorrectAccountNames(item.AccountName);\r\n\t\t\t\t\t\t\tif (item.hasOwnProperty(\"IntendUseOfAccount\") && item.IntendUseOfAccount.hasOwnProperty(\"ParameterDesc\"))\r\n\t\t\t\t\t\t\t\titem.IntendUseOfAccount.ParameterDesc = ResourceHelper.CorrectAccountNames(item.IntendUseOfAccount.ParameterDesc);\r\n\t\t\t\t\t\t})\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\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={!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({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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\t\r\n\t\t\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: \"Wallet 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: \"Wallet 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: \"Wallet 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(\"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 Wallet 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\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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.ParameterValue} ${d.ParameterDesc}`}\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 `${d.Name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\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 Wallet\",\r\n\t\t\t\taccessor: \"ChequeAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deposit Wallet\",\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 Wallet 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\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\t\t\t\t\t\t\t\t\t\t\r\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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t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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 Wallet\",\r\n\t\t\t\taccessor: \"ChequeAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Deposit Wallet\",\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.I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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\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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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.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: \"Files\",\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({ 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
\r\n\t\t\t\t\t\t\t\t\t\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\t\t\t\r\n\t\t\t\t\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\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\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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 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: \"Files\",\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\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: \"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 Wallet 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: \"Wallet 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 Wallet\",\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 Wallet\",\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 != \"Payment Wallet Corporate\" && check.Description != \"Payment Wallet 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 Wallet 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 Wallet 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 Wallet 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 Wallet 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 Wallet\",\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};\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 Wallet Number\",\r\n\t\t\t\taccessor: \"BankBeneficaryAccountNumber\"\r\n\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\t\r\n\t\t\t\t\t\t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n\t\t\t\t\t\t\t\r\n\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\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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\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 Wallet 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 Wallet 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\t\t\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\t\t\r\n\t\t\t\t\t\t\t\t\r\n\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
\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 Wallet 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 Wallet 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\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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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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 Wallet 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 Wallet 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: \"Wallet 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 ? \"WALLET\" : \"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\t\t\t\t\t\r\n\t\t\t\t\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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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\t\t\t\t\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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\r\n\t\t\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\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: \"Wallet 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 ? \"WALLET\" : \"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: \"Wallet 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: \"Wallet 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 Wallet 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 Wallet Holder Name\",\r\n },\r\n DestinationRequestAccountType: {\r\n value: \"DestinationRequestAccountType\",\r\n title: \"Destination Request Wallet Type\",\r\n },\r\n DestinationRequestAccountNumber: {\r\n value: \"DestinationRequestAccountNumber\",\r\n title: \"Destination Request Wallet 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\t\t\tSettlementDate: null,\r\n\t\t\t\t\tSettlementDateFrom: null,\r\n\t\t\t\t\tSettlementDateTo: null,\r\n\t\t\t\t\tUniqueClientId: null,\r\n\t\t\t\t\tUniqueClientId2: null,\r\n\t\t\t\t\tToDate: DateHelper.GetDate(),\r\n\t\t\t\t\tFromDate: DateHelper.GetDate(),\r\n\t\t\t\t\tSettlementStatusId: -1,\r\n\t\t\t\t\tTransferTypeId: -1,\r\n\t\t\t\t\tDirectionId: -1,\r\n\t\t\t\t\tTimezoneOffset: 0,\r\n\t\t\t\t\tFinancialInstitutionId: -1,\r\n\t\t\t\t\tTransactionStatusId: null,\r\n\t\t\t\t\tSettlementFromDate: null,\r\n\t\t\t\t\tSettlementToDate: 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 SettlementDate: model.SettlementDate || null,\r\n\t\t\t\t\t\t SettlementDateFrom: model.SettlementDateFrom || null,\r\n\t\t\t\t\t\t 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\t\t\t\t\tlet requestModel = {\r\n\t\t\t\t\t\tSettlementDate: model.SettlementDate,\r\n\t\t\t\t\t\tSettlementFromDate: model.SettlementFromDate,\r\n\t\t\t\t\t\tSettlementToDate: model.SettlementToDate,\r\n\t\t\t\t\t\tSettlementStatusId: 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\t\t 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\t\t\t\t\t \"Settlement File From Date and Settlement File To Date cannot be null\"\r\n );\r\n return false;\r\n } else if (\r\n\t\t\t(typeof vmodel.SettlementFromDate != \"object\" &&\r\n\t\t\tthis.state.tabIndex === 0) || (typeof vmodel.SettlementToDate != \"object\" &&\r\n\t\t\tthis.state.tabIndex === 0)\r\n ) {\r\n this.props.showMessage(\r\n \"warning\",\r\n \"Please fill required fields!\",\r\n\t\t\t\t\t \"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\t\t\t\tmodel: { 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 SettlementDate: model.SettlementDate,\r\n\t\t\t\t\t SettlementDateFrom: model.SettlementDateFrom,\r\n \t\t\t 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 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\t\t\t\t\t SettlementDateFrom: model.SettlementDateFrom,\r\n \t\t\t SettlementDateTo: model.SettlementDateTo,\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\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\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 `${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 Wallet 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\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{/* \t\t\t\t\t\t\t\r\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\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\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{/*
\r\n\t\t\t\t\t\t
*/}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\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\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 Wallet 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 Wallet 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: \"Wallet 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: \"Wallet 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: \"Wallet 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 Wallet 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 Wallet\",\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 Wallet\",\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: \"Wallet Status\",\r\n accessor: \"AccountStatus.ParameterDesc\",\r\n },\r\n {\r\n Header: \"Intend Use Of Wallet\",\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 Wallet\";\r\n } else if (\r\n global.ClientType == ClientType.Personal ||\r\n global.ClientType == ClientType.SalesAgentPersonal\r\n ) {\r\n return \"Individual Wallet\";\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 Wallet 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 Wallet 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 Wallet 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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\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nClientAutoDepositProfileDefinition.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 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=\"Wallet 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 Wallet 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\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\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{accountModel.FeeAccount != 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
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\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\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t
\r\n\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 Wallet\",\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 Wallet\",\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 Wallet\",\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 Wallet\",\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 Wallet\",\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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n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 Wallet 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 Wallet !\"\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 Wallet !\"\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 Wallet !\"\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 Wallet 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 Wallet 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\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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.RenderStyle(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\twidth: 100,\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: \"ReferenceNumber\",\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\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 Wallet 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 Wallet 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 Wallet\",\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 Wallet\",\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(\"WALLET\");\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 Wallet 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 Wallet 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 Wallet ${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 Wallet ${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 Wallet ${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 Wallet ${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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\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 Wallet 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 Wallet\",\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 Wallet\",\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 Wallet 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(\"Wallet Activities\");\r\n\t\tthis.props.setAppCenterTitle(\"WALLET\");\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 = \"Wallet 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(\"WALLET\");\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 Wallet must be select\");\r\n\r\n\t\tvModel.ExternalSourceAccountId = model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.ExternalSourceAccountId) messages.push(\"Source Wallet must be select\");\r\n\r\n\t\tvModel.DestinationAccountId = !model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.DestinationAccountId) messages.push(\"Receiver Wallet must be select\");\r\n\r\n\t\tvModel.ExternalDestinationAccountId = model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.ExternalDestinationAccountId) messages.push(\"Receiver Wallet 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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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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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 Wallet 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 Wallet 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\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ader: \"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 Wallet 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(\"WALLET\");\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.IsCust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\n\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
\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{this.IsClient == false &&\r\n\t\t\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\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{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 Wallet 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 Wallet 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(\"WALLET\");\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 Wallet 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 Wallet 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\t\t\t\t\t{this.isClient &&\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\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\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\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t{!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{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\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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\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\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\r\n\r\n\t\t);\r\n\t}\r\n\r\n}\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(\"WALLET\");\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 Wallet 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 Wallet\");\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(\"Wallet 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: \"Wallet 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: \"Wallet 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(\"WALLET\");this.getappCenterTitle = \"WALLET\";\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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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\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 Wallet 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 Wallet\",\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 Wallet\",\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 Wallet 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 Wallet 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 Wallet 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 Wallet\";\r\n } else if (\r\n parameter.ParameterValue == ClientType.Personal ||\r\n parameter.ParameterValue == ClientType.SalesAgentPersonal\r\n ) {\r\n return \"Individual Wallet\";\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: \"Wallet Name\",\r\n accessor: \"AccountName\",\r\n Footer: (\r\n \r\n All Wallets{\" \"}\r\n \r\n ),\r\n },\r\n {\r\n Header: \"Wallet 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: \"Wallet 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 Wallet Name: {TxnDetail.SourceAccountName}{\" \"}\r\n

\r\n

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

\r\n

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

\r\n

\r\n {\" \"}\r\n To Wallet 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(\"WALLET\");\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(\"Wallet 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(\"Wallet 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.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={!isBackOffice} />\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\t\t\t\t\t\r\n\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 { 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\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(\"WALLET\");\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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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: \"Wallet 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: \"Wallet 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 Wallet\");\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 Wallet\");\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
\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{(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\t

e-Transfer Details Incoming Transfer

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

e-Transfer Details Incoming Request

\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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 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(\"WALLET\");\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 Wallet 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\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\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\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\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}\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={!model?.ClientId}\r\n\t\t\t\t\t\t\t\t\t\tinputProps={{ maxLength: 16 }}\r\n\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\t\r\n\t\t\t\t\t\t\t\t



\r\n\t\t\t\t\t\t\t
\r\n\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\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\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 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\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 Wallet\");\r\n\t\tthis.props.setAppCenterTitle(\"WALLET\");\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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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: \"Wallet 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: \"Wallet 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(\"WALLET\");\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(\"WALLET\");\r\n\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"Wallet 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: \"Wallet 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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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 Wallet 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 Wallet\",\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 Wallet\",\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 Wallet 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 Wallet 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 Wallets Activities\");\r\n\t\t\tthis.GetCustomerBankAccounts(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppLeftTitle(\"Client Wallets Activities\");\r\n\r\n\t\t}\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"WALLET\");\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(\"WALLET\");\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 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\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\tresponseData.Item.forEach( item => {\r\n\t\t\t\t\t\titem.AccountName = ResourceHelper.CorrectAccountNames(item.AccountName);\r\n\t\t\t\t\t\titem.AccountType = ResourceHelper.CorrectAccountNames(item.AccountType);\r\n\t\t\t\t\t\titem.ProgramName = ResourceHelper.CorrectAccountNames(item.ProgramName);\r\n\t\t\t\t\t})\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 Wallet Activities Report\"; }\r\n\t\t\telse { mytitle = \"Client Wallet 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\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\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{!IsSettlement && }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{!IsSettlement && }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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: \"Wallet 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 Wallets{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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\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: \"Wallet 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 Wallet\",\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 Wallet Name: {TxnDetail.SourceAccountName}

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

From Wallet Number: {TxnDetail.SourceAccountNumber}

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

To Wallet Name: {TxnDetail.DestinationAccountName}

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

To Wallet 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 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 Wallet 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 Wallet\",\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 Wallet\",\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 Wallet 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 Wallet 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 Wallet 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 Wallets Activities - Performance\");\r\n\r\n\t\t}\r\n\r\n\t\tif (!this.isBackoffice) {\r\n\t\t\tthis.props.setAppCenterTitle(\"WALLET\");\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(\"WALLET\");\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 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\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 Wallet Activities Report\"; }\r\n\t\t\telse { mytitle = \"Client Wallet 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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\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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: \"Wallet 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 Wallets{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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\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: \"Wallet 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 Wallet\",\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 Wallet Name: {TxnDetail.SourceAccountName}

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

From Wallet Number: {TxnDetail.SourceAccountNumber}

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

To Wallet Name: {TxnDetail.DestinationAccountName}

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

To Wallet 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(\"WALLET\");\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(\"WALLET\");\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 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\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 Wallet Activities Report\"; }\r\n\t\t\telse { mytitle = \"Client Wallet 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\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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\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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} {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: \"Wallet 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 Wallet\",\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(\"WALLET\");\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(\"WALLET\");\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 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/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: \"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\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(\"WALLET\");\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(\"WALLET\");\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 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/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: \"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\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(\"WALLET\");\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(\"WALLET\");\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 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/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: \"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\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 Wallet\",\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(\"WALLET\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Client Wallet 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 Wallet 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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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(\"Wallets\");\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\t\t\t\tresponseData.Item.forEach( item => {\r\n\t\t\t\t\t\titem.AccountName = ResourceHelper.CorrectAccountNames(item.AccountName);\r\n\t\t\t\t\t\titem.Description = ResourceHelper.CorrectAccountNames(item.Description);\r\n\t\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: \"Wallet 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: \"Wallet 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

Wallet Name: {TxnDetail.AccountName}

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

Wallet 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: \"Wallet 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: \"Wallet 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: \"SubWallet 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: \"SubWallet 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 Wallet 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: \"Wallet 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(\"WALLET\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.props.setAppCenterTitle(\"WALLET\");\r\n\t\t}\r\n\t\tthis.props.setAppLeftTitle(\"SubWallet 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\", \"Wallet 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\", \"Wallet Status Active successfully\");\r\n\t\t\t\t// else this.props.showMessage(\"success\", \"Success\", \"Wallet 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\", \"Wallet 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!\", \" SubWalletNumber 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
Wallet 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 wallet 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 Wallet 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 Wallet 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: \"Wallet 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: \"Wallet 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 Wallet 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 Wallet 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(\"WALLET\");\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 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\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: \"Wallet 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 Wallets{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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\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: \"Wallet 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 Wallet\",\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 { 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\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: \"Wallet 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: \"Wallet 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 Wallet\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"WALLET\");\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 Wallet 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(\"Wallets\");\r\n\t\t\tif (setAppCenterTitle) setAppCenterTitle(\"WALLET\");\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 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\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 Wallet 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}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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: \"Wallet 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

Wallet Name: {TxnDetail.AccountName}

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

Wallet 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(\"WALLET\");\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(\"WALLET\");\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 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\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 Wallet 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\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\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 Wallets{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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\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: \"Wallet 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 { 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: \"WalletId\",\r\n\t\t\t\taccessor: \"AccountId\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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: \"Wallet Name\",\r\n\t\t\t\taccessor: \"AccountName\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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: \"Wallet Status\",\r\n\t\t\t\taccessor: \"AccountStatus\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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(\"WALLET\");\r\n\t\t\tthis.getappCenterTitle = \"WALLET\";\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Wallet Search\");\r\n\t\t\tthis.getappLeftTitle = \"Wallet 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 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 { 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(\"WALLET\");this.getappCenterTitle = \"WALLET\";\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(\"Wallet 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 Wallet 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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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\r\n\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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\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 == 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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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 Wallet\");\r\n\t\tthis.props.setAppCenterTitle(\"WALLET\");\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 Wallet must be selected !\");\r\n\t\t}\r\n\t\tif (model.DestinationAccountId == null || model.DestinationAccountId == \"\") {\r\n\t\t\tErrorList.push(\"Destination Wallet 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

Wallet Name : {readOnlyData.SourceName}

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

Wallet 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

Wallet Name : {readOnlyData.DestinationName}

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

Wallet 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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\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 Wallet
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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 Wallet\");\r\n\t\tthis.props.setAppCenterTitle(\"WALLET\");\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 Wallet must be select\");\r\n\r\n\t\tvModel.ExternalSourceAccountId = model.IsExternalAccount && model.SourceAccountId == null;\r\n\t\tif (vModel.ExternalSourceAccountId) messages.push(\"Source Wallet must be select\");\r\n\r\n\t\tvModel.DestinationAccountId = !model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.DestinationAccountId) messages.push(\"Receiver Wallet must be select\");\r\n\r\n\t\tvModel.ExternalDestinationAccountId = model.IsExternalAccount && model.DestinationAccountId == null;\r\n\t\tif (vModel.ExternalDestinationAccountId) messages.push(\"Receiver Wallet 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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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\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 Wallet\");\r\n this.props.setAppCenterTitle(\"WALLET\");\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 Wallet !\");\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 Wallet !\");\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 Wallet !\");\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 Wallet Name : {readOnlyData.SourceName}\r\n

\r\n

\r\n {\" \"}\r\n Wallet 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

Wallet : {`${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 Wallet 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(\"WALLET\");\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 Wallet !\");\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 Wallet !\");\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

Wallet Name : {readOnlyData.SourceName}

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

Wallet Number : {readOnlyData.SourceAccountNumber}

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

Wallet 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

Wallet Name : {readOnlyData.DestinationName}

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

Wallet Number : {readOnlyData.DestinationAccountNumber}

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

Wallet 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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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{FeeProfileModel != null && FeeProfileModel.IsCombineScale != null && FeeProfileModel.IsCombineScale == 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\t\r\n\t\t\t\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 Fees - Regular Debit&Credit

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

Level

\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

From

\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

To

\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

Fee

\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

Cost

\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

Commission

\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

Level 1

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

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(\"WALLET\");\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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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(\"WALLET\");\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\tresponseData.Item.BankAccountList.forEach(bankAccount => {\r\n\t\t\t\tbankAccount.AccountName = ResourceHelper.CorrectAccountNames(bankAccount.AccountName);\r\n\t\t\t})\r\n\t\t\tresponseData.Item.TransactionAlertGroupList.forEach(alert => {\r\n\t\t\t\talert.GroupName = ResourceHelper.CorrectAccountNames(alert.GroupName);\r\n\t\t\t})\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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t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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 {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleTransactionChange(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.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\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\t\t\t\t\r\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\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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
\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, 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{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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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.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\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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\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 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\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.ExecutionTypeId}\r\n\t\t\t\t\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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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 { 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\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\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\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 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\t{model.IsContinuousEvent == 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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\r\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.Online && (\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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.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) && (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}\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\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\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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\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\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\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\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\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(\"WALLET\");\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(\"WALLET\");\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 Wallet On-Us not entered\", \"Enter Cheque Wallet 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 Wallet Routing Number not entered\", \"Enter Posting Wallet 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 Wallet On-Us not entered\", \"Enter Credit Wallet 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.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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 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\t\t\t\r\n\t\t\t\t\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\tSelect Customer\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\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: d.UniqueClientId,\r\n\t\t\t\t\t\t\t\t\tName: d.Name,\r\n\t\t\t\t\t\t\t\t\tClientType: d.ClientType,\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 {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.selectCustomerCallback(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>\r\n\t\t\t\t\t\t\t\t\t\t\t\tSelect\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfilterable\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\t{\r\n\t\t\t\t\t\t\t\t\t\tHeader: \"Id\",\r\n\t\t\t\t\t\t\t\t\t\taccessor: \"Id\",\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\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 Wallet 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 Wallet 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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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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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
{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\t\t\t\t\t\t\t\t\t\t\t\t d.FirstName + \" \" + d.LastName + \" (\" + d.UserName + \")\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tSorted={{ Member: \"UserName\" }} />\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\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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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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\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;\r\n\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t{alert}\r\n\t\t\t\t{this.ScreenParameter(MenuCode, model)}\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\r\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\r\n\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\t\t\t{rowModel.User &&\r\n\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\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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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\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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 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\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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\r\n\t\t\t\t\t\t

\r\n\t\t\t\t\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: \"Wallet 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\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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1.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: \"Wallet 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\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\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\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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=\"/bankapi/v1.0/Ddt/SearchDDTIncomingETransferTransactionPaged\"\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 Wallet 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 Wallet 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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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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\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 == \"CALDDTSUSP\")?.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},\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 Wallet 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 Wallet 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\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.isBackOff} />\r\n\t\t\t\t\t\t\t\t\t\t\t{!this.state.isBackOff &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\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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ns={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: \"Wallet 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.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 && !isSalesPerson} />\r\n\r\n\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\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{\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: \"Wallet 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: \"Wallet 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: \"Wallet 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: \"Wallet 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\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\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\nCentral1OutgoingResponseReport.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(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 Wallet 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 Wallet 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 Wallet\",\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: \"Wallet 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\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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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t {\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\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\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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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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\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 Wallet\",\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 Wallet\",\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 Wallet 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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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\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\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\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\t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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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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\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\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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.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/>\r\n\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheckedValues.forEach(val => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.HandleSend(val);\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\tfullWidth\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={Object.keys(checkedValues).length === 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\tBulk Send\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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: \"Wallet 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 Wallet\",\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: \"Wallet 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 Wallet 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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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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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\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\t\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 Wallet 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\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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.Code == \"EFTOUTTRACE\")?.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\t\tIcon={TraceIcon}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tOnClick={this.GetHandleTrace(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: 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 Wallet 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}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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\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 || this.isClient}\r\n\t\t\t\t\t\t\t\t\t\t\t\tDefaultIndex={this.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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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\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 Wallet 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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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\t\r\n\t\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 Wallet 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 Wallet\",\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: \"Wallet 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 Wallet 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 Wallet 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;","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\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={!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\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r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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 Wallet 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\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t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\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\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tADD\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\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\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: \"Wallet 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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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\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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{/* 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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\tADD\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\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(\"WALLET\");\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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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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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;","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\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\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\tclasses={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel: classes.radioLabel\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\tlabel=\"Google\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r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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\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t Back to login page. \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nconst defStyles = {\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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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 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 { 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 { 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};\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\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\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: \"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: \"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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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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.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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r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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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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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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: \"Wallet 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 ? \"WALLET\" : \"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\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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: \"Wallet 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 { 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 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 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\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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: \"Wallet 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 Wallet 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","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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\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);","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 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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c\"\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.par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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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nLimitAdjustmentHistory.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 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\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\teditorModelEmail: this.EmptyEditorContent()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tClear\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\tref={() => { }}\r\n\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\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 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\n\t\t} = this.state;\r\n\r\n\t\tvar endDate = (model.FromDate instanceof moment) ? model.FromDate.clone() : \"\";\r\n\t\treturn (\r\n\t\t\t
\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\r\n\t\t\t\t\t\r\n\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\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\r\n\t\t\t\t\t\t\t{isBackOffice && (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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 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 Wallet Name\",\r\n accessor: \"SourceAccountName\",\r\n },\r\n {\r\n Header: \"Source Wallet 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\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, {});\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\";\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 { 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.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 { model, 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\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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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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n\t\t\t\t\t\t\t\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.setState({ isTempPreviewDialogOpen: 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\tPREVIEW\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\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\tmodel.LogoImage = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.HeaderImage = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmodel.BackgroundColor = \"#fff\";\r\n\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\tmodel: 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.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\t\t\t\t\t\t\t\t\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.HeaderImage = 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 IMAGE\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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le: 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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\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\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\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\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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\nApprovalParameter.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(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: \"Wallet 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 Wallet 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 Wallet Number\",\r\n\t\t\t\taccessor: \"ClientAccountAccountNumber\"\r\n\t\t\t}, {\r\n\t\t\t\tHeader: \"Instend Use of Wallet\",\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(\"Wallet 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 Wallet branch.\");\r\n\t\t\t\tif (data.ClientAccountAccountNumber === null || data.ClientAccountAccountNumber === undefined || data.ClientAccountAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Client Wallet 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 Wallet 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 Wallet branch.\");\r\n\t\t\t\tif (data.PartnerAccountNumber === null || data.PartnerAccountNumber === undefined || data.PartnerAccountNumber === \"\") {\r\n\t\t\t\t\tErrorList.push(\"Partner Wallet 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 Wallet 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 Wallet Definition And Details Updated\"\r\n\t\t\t\t\t: \"Client Partner Wallet 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 Wallet 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 } 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, isLedgerCardDialogOpen, isAssignCollectorDialogOpen, callInfoModel, isCallInfoEntryDialogOpen, paymentModel, isPaymentDialogOpen, IsAdmin } = 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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!IsAdmin &&\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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\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 { 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\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\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\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 Wallet 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\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t{/* {isDDRInquiryOpen &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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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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 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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FollowUpThirdPartyTransfer.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 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 Wallet 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\n\t\tvar Disabled = (model.Id === 0) && (!model.isGenerateNew);\r\n\t\tvar ForInsert = model.Id === 0 || model.Id == null;\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\r\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\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\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Value == 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\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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.S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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\r\n\t\t\t\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\t\t\t\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\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t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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\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 != 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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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{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{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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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\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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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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 { 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\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 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\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(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.IdentityVerifiedBy}\r\n\t\t\t\t\t\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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\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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\t\t\t\t\t\t\t}\r\n\t\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\t\r\n\t\t\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, 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},\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\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\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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\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 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, isDebtInquiryDialogOpen, isAdjustLimitDialogOpen } = this.state;\r\n\t\tconst ForInsert = !(model.Id != null && model.Id > 0);\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\r\n\t\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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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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\r\n\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(MenuCode == MenuCodes.PaymentAdminLenderProgram || MenuCode == MenuCodes.PaymentAdminCallCenter) &&\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\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={6}\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.Id}\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/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\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\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\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\t\t\t\t\t\t\t
\r\n\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\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\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\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\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\r\n\t\t\t\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\nDailyInterestPoolMonitoring.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: \"Wallet 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 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 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 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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\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\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\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n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 Wallet\",\r\n\t\t\t\taccessor: \"SourceAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Wallet\",\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 Wallet 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 Payment Wallet 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(\"Wallet 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 { isLo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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 Wallet\",\r\n\t\t\t\taccessor: \"SourceAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Wallet\",\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: \"Wallet Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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\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\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\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 Wallet\",\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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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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n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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\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\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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{IsVisibleMailEditor &&\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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: \"Wallet 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: \"Wallet 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 Wallet\");\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: \"Wallet 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: \"Wallet 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 Wallet 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 Wallet 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 Wallet 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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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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: \"Wallet Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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 Wallet\");\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 Wallet 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: \"Wallet Number\",\r\n\t\t\t\taccessor: \"AccountNumber\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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 Wallet 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 Wallet 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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\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: \"Wallet 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 Wallet 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 Wallet Number\"\r\n\t\t\t}];\r\n\t}\r\n\r\n\tcomponentDidMount() {\r\n\t\tthis.props.setAppLeftTitle(\"Assign Unreportable Wallet 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(\"Wallet 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(\"Wallet 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 } 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\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 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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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\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\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\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\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}`}\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t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardRenewal.propTypes = {\r\n\tclasses: PropTypes.object.isRequired,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default withArtifex(CardRenewal, {});","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 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 Wallet 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\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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
\r\n\t\t\t\t\t\t\t\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}\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\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\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},\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\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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
\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}\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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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},\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\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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umns: 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 Wallet\",\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\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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(),\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\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\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\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\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t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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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t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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={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\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\r\n\t\t\t\t\t\t\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\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\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\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\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\",\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\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\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\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\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\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\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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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 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: \"Wallet 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: \"Wallet 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 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 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\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\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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\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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\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\", \"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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\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\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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\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{this.IsShow() &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t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ypes.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\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\nMastercardClearingTransaction.propTypes = {\r\n\tclasses: PropTypes.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\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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},\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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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\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\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\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\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({ [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\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=\"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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\nCardEmbossBillingList.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 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(), ToD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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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t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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\t{\r\n\t\t\t\t\t\t\t\ttabButton: \"BAI2 - Vostro\",\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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\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\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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ropTypes.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.HandleGetAllT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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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\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\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\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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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\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.AnnuelFeeChargeTypeValue == \"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\t\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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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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Types = {\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 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={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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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\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\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\t\r\n\t\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\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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\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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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\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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\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\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\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}\t\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\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\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\t\r\n\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\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\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\nLimitDefinition.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 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\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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\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\t\t\t\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: \"Date\",\r\n\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\ttype: GridColumnType.DateTime\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t]} />\r\n\t\t\t\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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.SelectedTransactionLimit.Index != null ? \"UPDATE\" : \"ADD\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nCardholderTransactionLimit.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(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 Wallet !\"\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 Wallet !\"\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 Wallet !\"\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 Wallet 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 Wallet 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 Wallet 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 Wallet 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={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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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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\r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\t\t\t\t\r\n\t\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\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t */}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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\nClientProductManagement.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(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: \"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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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\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\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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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
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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\nProductDefinition.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(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\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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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]}\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\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\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\tCard Transaction Statistic\r\n\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\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
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\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\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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};\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\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\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};\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},\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\tvModel.ClientCustomerId = model.ClientCustomerId == null;\r\n\t\tif (vModel.ClientCustomerId) messages.push(\"Customer must be select\");\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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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CardStatementReport.propTypes = {\r\n\tExecuteApiPost: PropTypes.func,\r\n\tExecuteApiFileDownload: 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: \"Wallet Name\",\r\n\t\t\t\taccessor: \"AccountName\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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\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r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 = \"Wallet 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 || \"\"}\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\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\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\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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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 Wallet Name\",\r\n accessor: \"SourceAccountName\",\r\n },\r\n {\r\n Header: \"Source Wallet 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 Wallet 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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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\tmodel: 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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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\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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: \"Wallet 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 Wallet 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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itle: PropTypes.func,\r\n\tsetAppCenterTitle: PropTypes.func,\r\n\tDisabled: PropTypes.bool,\r\n\tMenuCode: PropTypes.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: \"Wallet 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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t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\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\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 Wallet 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: \"Wallet 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: \"Wallet 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: \"Wallet 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(\"WALLET\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle && this.props.MenuCode === MenuCodes.Menu_MyAccountActivityReport) {\r\n\t\t\tsetAppLeftTitle(\"My Wallet 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 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\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\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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\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: \"Wallet 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(\"WALLET\");\r\n\t\tsetAppLeftTitle(\"Wallet 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 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\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\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",\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: \"Wallet 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(\"Wallet 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\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object\r\n};\r\n\r\nexport default withStyles(styles)(ExecutiveSummary);","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}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\t\tHeader: \"Closing Balance\",\r\n\t\t\t\t\t\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 Wallets\"}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\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 Wallet 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 Wallet 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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\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\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\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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\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: \"Wallet 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: \"Wallet 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(\"WALLET\");\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 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\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\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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\tAll Wallets{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\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\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: \"Wallet 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 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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nOnlineSupport.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 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 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 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 Wallet 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 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 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 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\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\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\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 Wallet 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 ? \"WALLET\" : \"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 ? \"WALLET\" : \"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 } 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 ? \"WALLET\" : \"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\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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\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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 { 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 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\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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\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\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\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 { 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\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\r\n\t\t\t\t\t\r\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\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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 { 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, 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\tif(serviceType == 2) {\r\n\t\t\tif (this.IsNullOrEmpty(model.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(model.PayeeEmail)) {\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\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\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}\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\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\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\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 (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\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\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\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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\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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 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\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t\t\t\t\t},\r\n\t\t\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 Wallet\",\r\n\t\t\t\taccessor: \"SourceAccount\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Destination Wallet\",\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 Wallet 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\t\t\tDataRoot=\"Item\"\r\n\t\t\t\t\t\t\t\t\t\t\tKeyValueMember=\"CardId\"\r\n\t\t\t\t\t\t\t\t\t\t\tParameter={{ CustomerNumber: transfer.CustomerNumber }}\r\n\t\t\t\t\t\t\t\t\t\t\tValue={transfer.CardId}\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\tRequired\r\n\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/>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{/* */}\r\n\t\t\t\t\t\t\t\t\t\t{transfer.IsHaveMemo ?\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t:\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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);\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: \"Wallet Name\",\r\n accessor: \"AccountName\",\r\n },\r\n {\r\n Header: \"Wallet Number\",\r\n accessor: \"AccountNumber\",\r\n },\r\n {\r\n Header: \"Wallet 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;","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: \"Wallet Number\",\r\n\t\t\t\taccessor: \"AccountNumber\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"Wallet 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, {});","// @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\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\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\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\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\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\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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 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\tr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t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferBeneficiaryReport.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(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: \"Wallet 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: \"Wallet 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: \"Wallet 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 Wallet 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(\"Wallet Number or IBAN can not be null. Please fill Wallet 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({ Lim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\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\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\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: \"Wallet 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: \"Wallet 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: \"Wallet 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 Wallet 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 Wallet 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\n\t\t\t\t\t
\r\n\t\t\t\t\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

Reject Reason

\r\n\t\t\t\t\t\t
\r\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
\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 `${d.UniqueClientId} - ${d.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.ValueChanged}\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\tDisabled={!this.isBackOffice} />\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\r\n\t\t\t\t\t\t\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\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\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

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\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\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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 */}\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{!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 Wallet 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 Wallet 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 Wallet\",\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\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,\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: \"Wallet 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(\"Wallet Number or IBAN can not be null. Please fill Wallet 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 Wallet 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 Wallet 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 Wallet 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 Wallet 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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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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\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\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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\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 Wallet\",\r\n\t\t\t\taccessor: \"FromAccount\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tHeader: \"To Wallet\",\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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\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
Total Rejections\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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 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 PropTypes from \"prop-types\";\r\nimport React, { Component } from \"react\";\r\nimport ButtonToolbar from \"views/Components/ButtonToolbar.jsx\";\r\nimport { GenericDateInput, GenericExpansionPanel, 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.js\";\r\nimport DateHelper from \"core/DateHelper\";\r\n\r\nclass WireTransferUnsuccessfulList extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.initialModel = {\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};\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(\"WIRE TRANSFER\");\r\n\t\t}\r\n\t\tif (setAppLeftTitle) {\r\n\t\t\tsetAppLeftTitle(\"Unsuccessfull Wire Transaction List\");\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, 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\tSearch = () => {\r\n\t\tthis.setState({ isLoading: true });\r\n\t\tProxy.POST(\r\n\t\t\t\"/bankapi/v1.0/WireTransfer/SearchUnsuccessfulWireTransaction\",\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\r\n\trender() {\r\n\t\tconst { Disabled } = this.props;\r\n\t\tconst { isLoading, model, data } = this.state;\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r\n\t\t);\r\n\t}\r\n}\r\n\r\nWireTransferUnsuccessfulList.propTypes = {\r\n\tclasses: PropTypes.object,\r\n\tmodel: PropTypes.object,\r\n\tonModelChange: PropTypes.func,\r\n\tDisabled: PropTypes.bool\r\n};\r\n\r\nexport default WireTransferUnsuccessfulList;\r\n","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 = __webpack_public_path__ + \"static/media/logo.0b88f3d0.png\";","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 { 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 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 { 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 Wallet 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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\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\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\t
\r\n\t\t\t\t\t\t\t\t\t\t
{chequemodel.ClientName}
\r\n\t\t\t\t\t\t\t\t\t\t
\t{chequemodel.ClientAdress}
\r\n\t\t\t\t\t\t\t\t\t\t
{chequemodel.ClientCity}
\r\n\t\t\t\t\t\t\t\t\t\t
{chequemodel.PostalCode}
\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\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r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\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/QWGi6dPMXV6PN8d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Fz1cH+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\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\tconst { Name, Method, Url, Parameter, KeyValueMember, IsStatic, DefaultIndex, StaticData, ValueChanged, TaskPoolDomain } = this.props;\r\n\r\n\t\tif (IsStatic) {\r\n\t\t\tvar 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\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\tif(response.Item != null){\r\n\t\t\tresponse.Item.forEach( item => {\r\n\t\t\t\tif(item.hasOwnProperty(\"ParameterDesc\")){\r\n\t\t\t\t\titem.ParameterDesc = ResourceHelper.CorrectAccountNames(item.ParameterDesc);\r\n\t\t\t\t}\r\n\t\t\t\tif(item.hasOwnProperty(\"Description\")){\r\n\t\t\t\t\titem.Description = ResourceHelper.CorrectAccountNames(item.Description);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t\t\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 /** 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 Wallet 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: \"Wallet 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\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\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\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t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\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\t
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t\t{/* FEE PROFILE */}\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{FeeProfileModel.IsSupportWeighted && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t{!FeeProfileModel.IsSupportWeighted && (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\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{((FeeProfileModel.FeeProfileTypeStr == FeeProfileType.Weighed) || (FeeProfileModel.FeeProfileTypeStr == FeeProfileType.UnWeighed)) && (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\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\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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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.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\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classes: 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\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.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_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: \"Wallet 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(\"Wallet must be select\");\r\n\r\n\t\tvModel.AccountNumber = model.DdtFindType === 3 && model.AccountNumber == null;\r\n\t\tif (vModel.AccountNumber) messages.push(\"Wallet 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: \"Wallet 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(\"Wallet 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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r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t {(IsIncludeLender || IsIncludePrepaid) &&\t\t\t\t\t\t\t \t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\r\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\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\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<>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\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 == 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\tIsInvalid={vModel.PrimaryDocumentReviewedBy}\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\t
\r\n\t\t\t\t\t\t\t\t\t\t\tSecondary 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\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\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}\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t{(IsIncludeET && !ForInsert) &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\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\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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\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\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\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\r\n\t\t\t\t\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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\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 { 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\tresponseData.Item.forEach(item => {\r\n\t\t\t\titem.Description = CorrectAccountNames(item.Description);\r\n\t\t\t})\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 * @param {string} input\r\n */\r\nfunction CorrectAccountNames(input) {\r\n\tvar output;\r\n\tif (input != null && typeof input == \"string\" && !input.includes(\"Accounting\")) {\r\n\t\toutput = input.replaceAll(\"Accounts - From To Accounting Transaction\", \"Wallet - From To Accounting Transaction\");\r\n\t\toutput = input.replaceAll(\"Bank Account\", \"Payment Wallet\");\r\n\t\toutput = output.replaceAll(\"Account\", \"Wallet\");\r\n\t\toutput = output.replaceAll(\"Banking\", \"Wallet\");\r\n\t\toutput = output.replaceAll(\"ACCOUNTS\", \"WALLET\");\r\n\t\toutput = output.replaceAll(\"ACCOUNT\", \"WALLET\");\r\n\t\toutput = output.replaceAll(\"account\", \"wallet\");\r\n\t\toutput = output.replaceAll(\"banking\", \"wallet\");\r\n\t\toutput = output.replaceAll(\"bank account\", \"payment wallet\");\r\n\t}else {\r\n\t\toutput = input;\r\n\t}\r\n\treturn output;\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\tCorrectAccountNames,\r\n\tAny\r\n};\r\n\r\nexport default ResourceHelper;","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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\n\t\t\t\t\t\r\n\t\t\t\t\t\r\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\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\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\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\nLedgerCard.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\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\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\tthis.state.isDisputeFeeDialogOpen &&\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\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\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\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\t\r\n\t\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\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
\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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\t\t\r\n\t\t\t\t\t\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\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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\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\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\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\nReceive.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(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\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t\t\t\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};\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\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 InformationType = {\r\n\tAccountNumber: \"AccountNumber\",\r\n\tCardNumber: \"CardNumber\",\r\n\tEmail: \"Email\",\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 Menu_FrozenCardDetails : \"FRZCRD\",\r\n Menu_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\",\t\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\"},\t\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\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\tInformationType,\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\tEndOfDayPageFilter,\r\n\tDcbETransferType\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/DWrvg410X1VEOXrnT2WrVsbGi6JR3dQVfSg5ubmz86Y8xZueA/u76+/t3Nbsx5uLy8/N9Dt7Ux58fCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNsDCM2YDLDxjNuDCjV4uP3786J99PHjwoH9MLiy8jZG4/vnnn7vn77//vvtev9vFw4cPu0ePHvXi4+vFxUX/lZ93t69vYZaHhXdmorC+ffvWf68/S4SHrNw+EBni43n69Gn35MkTC69ALLwFiFZlaGFksf76669eaN+/f++FtoTIxuD1+D94vnz50ls/BPj8+fNejKYM3BMLEIWm7yW0KLZzgwh5HzyI8NmzZ92LFy/u3FCzHRbewsjSIDgG/NIWbSoI//Pnz/37e/nyZff48eN7k0R8n/wccVqg62HhLQSDl4GN6BSvRUpIciiWfP/+fR/7dbfvW9ZY71nvU24qfzcmbMx8LLwTYECOCQqxffz4cVRwooQER7RwijP3wd/BQiI4JWtwVy3A+Vh4JzAcqAxKBPf169fC3/nPHOsC8/eUeeVz8pCoQYBmOhbeBLBsuJWfPn3au8ZWE3KVEZ6SNa9e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pNDmziiEAnn9l/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 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;","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.HighRisk)))}\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: \"Black (Stop)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taccessor: \"Stop\",\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.Stop)))}\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]\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\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\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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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\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}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\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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\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\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\r\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 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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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 if (responseData.Item.Data != null || !responseData.Item.Data.isUndefined) {\r\n responseData.Item.Data.forEach(item => {\r\n if (item.hasOwnProperty(\"ChannelType\")) {\r\n item.ChannelType = ResourceHelper.CorrectAccountNames(item.ChannelType);\r\n }\r\n if (item.hasOwnProperty(\"Description\")) {\r\n item.Description = ResourceHelper.CorrectAccountNames(item.Description);\r\n }\r\n if (item.hasOwnProperty(\"FeeTypeDesc\")) {\r\n item.FeeTypeDesc = ResourceHelper.CorrectAccountNames(item.FeeTypeDesc);\r\n }\r\n if (item.hasOwnProperty(\"DestinationAccountName\")) {\r\n item.DestinationAccountName = ResourceHelper.CorrectAccountNames(item.DestinationAccountName);\r\n }\r\n if (item.hasOwnProperty(\"SourceAccountName\")) {\r\n item.SourceAccountName = ResourceHelper.CorrectAccountNames(item.SourceAccountName);\r\n }\r\n })\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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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\t\tinputData.LabelText = ResourceHelper.CorrectAccountNames(inputData.LabelText);\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 * \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\nfunction VerifiyWireLine(text) {\r\n\tvar regex = /[^A-Za-z0-9 -]+/g;\r\n\treturn regex.test(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\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;","\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 };","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+gaGqO43MjYxFTEzV1dF95eFpZW1ja0dpn/tHVgcnbCFg7OLqxvW8HEXJi88oeK44gtX/OJIDwCIXBcaFYQ4PQAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAACW1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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q9LCq++1tsxb18m8e5zmiHzNjUJAJ2OWjJfRzqkcfzhJVPG/QxwomtMma/BqZyAWmvLPH2czBG4kcbM07B0DkE6FJCjVensn/V1NLTqjl6eEIBsoUGrbV5K+2ett1q0ura0TApANrzBptV07NosseYYtZpmp7Z/1myNVSvv3abJAcja/2jXSvvhwizBejocVmG/XZIlWb/dtq2kXVdmiTZwl3Ub7/f+WbL13WbfxvqlT5ZwXTda+Mxt6JwlXesXbXymlrfMEq9mykEzn64Dk7IA9fna0qfu88uyEDWbusfYp/j0N7lpFqUOiw4b/OQOLWiXRarr026P+lf767pk0Wo/3cuBv9t0X7ssYjVXz99i/Z+eHFSTxa3Xvc9vDntWpGFT/T09M7W8asyU2XWL65eFqX5x3cOTb+l7ru0lSZIkSZIkSZIkSZIkSZJUSX8CbKzxArkT5qUAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAARRQTFRF////+Pv/v9P/pcH/mrr/RoH/UIf8UYf8S4T+mLf7RYD/ssr//P3/0+D7xNX65+79WIv6SoP9/v7/7PL95e39+vv+5u7+6/H+5Oz9aZj8UIf+l7f7/P3+0N78rMb9wtT8+/z+e6P6V4z9vNH8n7z7y9v8c575ToX9YZL66vH9UIb6hqv6+Pr9R4D9sMj78PT+5O3+e6T74er8ytr82OT8/f3/lbX7RoD+T4b+0t/8ZpX5SIL+Vor7rcb7R4L/j7H73ef8zNv7X5H8UIf96vD97/T+4+z+6vH+7vP+YZL8dqH75ez80N77pcH88fX95u39+fv+4+v9S4P7R4H+RoD/kLL8aJb5S4P9s8r76fD9xtb78PX+nDiKmgAAAOFJREFUeJxjYKAqYGRixgaYGBlYWNnYMQEbKwsDBydWozg5GLi4GXh4+VABLw8DNxdIhl9AEBUI8ENlhIRFUIGwEFQGCETFxFHtgclISHJIScsAGbJyICCvAJdRVFJWYVUFMtTUQUBDEy6jpc2go6sHZOgbgIA4wh5DmB4jYxAwMYXJiJpxmXNZWAJlrKxBwAbmagZbO3sHRydnFwYGVzcQcIeZ5uHp5S0i4mPhy8DgB/SNfwDc1YFBwSCfh4QyMIQB6fAIuAws3CIZGByAVFQ0RIZDGmtYS3PgiR/ccUpVAADcDB87uP7i5AAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAK5QTFRF////o8D/a5r/ZJX/RYD/VYr9YpP91OH87/T+us76apj56vD9+vv+j7H6jK75t8z7RoH/YZL8iq76e6P5/v7/rMX6XI/86O/8hKr6eqP69vj+psH7R4H+Zpb82+X7i6/6daD7q8T7SIL+TIT9f6f79vn+9Pf9YpP8SoP91+P7+fr+iK37X5H8Z5b8gqn78vX9q8X7+Pr+g6n79/r+psH6p8L6gaf62+b8tsz6uc36BanWegAAAKtJREFUeJyt0skWgjAMBdBSUqiAilpBECfECUcUp///MYVuPIG60bfMXeSdNoR8iUZ1HKqVAMzAYVAQZSbHMRl9i27wygJu6D9Jw7LLmdNsIWm7nYKcLvSQiL7r+cQZQBDiPWIYjcYTmIbVBmIWzyFZ1HVbrmC9qWudbmEX7/2qpAkcjqfIs7FkZwguROSy/Kdc4ZbJ8haSe57Jho/nH160TtR/qr4D9e2o8gLcEg3lFH12WwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAsRQTFRFl7j/VIr+VYv/VIr/UYj/z97/////WI3/2+b+8PX/6fD/SYP+U4r+1OL/7PL/9/r/WY3/ytr7XI/9ytv/5u79qsT8qMP9tsz88vb+9Pf/y9r7ZZX9zd3//v//4ur9nrz8m7r8q8X89Pf9Vov9w9b90d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HJxtbV3dPb1z8B2bSJkyZPmQqkp02fMTNlFtQ/s0FgztycefNBSmwWzF+4CBoGi5eAwNJlfcsd2NjsV6xctXoNRMZm6loQWBdovn7Dxk2btzhs3bYGxdXW23fs3LV7z959+w8cPHQYLHPk6LFjx47PPmF98tTpM/Jnz52/MPvipcMgmeDLV65cuWp3jY3t+o2bt6oqbt+5e/3ioWK0mAPHwr37d2dnPkBNO2Dw8NHjJ0+fPWdASW9g8OIlG+erua8Bf5SZzrmmDZMAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAG9QTFRF////yNn/YJL/RYD+RYD/cZ7/9Pj/4+z/W4//SIL+apj4bJj4R4H+eKP/8PX/u9H/mrn7ToX8RoD+bJr/6/L/uM//pcD6Wo36g6n8R4H/d6L/5u7/UYf8kLH5Tob97vT/XI/7uc//7PL+4Or/lbb7lzIYVgAAAHBJREFUeJztkjcOgEAMBA0sOeccj/+/kRxOupqKaWztuHCxRESSrOBB1ehCN0zLvnHgepfxEdBDGCFOzj1F9jZ5UVa10DRth6oXmGF/YxSYiTE2IxWYjew3nxu+BxsB/H3y3VmxTEM/Tvi+AYosrekCk1MLUZe7algAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAa1QTFRF////6/H/n77/YpT/SoP9SoL9X5H/lrf/4uv/utD/WY3/RYD/R4H+YJL6Y5T7SYL+T4f/q8b/+/3/uc//SYL/Vov9qsT88PT99Pf9tcv8XpD9RoD/nr3//v//6O//V4z/V4z9ytr84er8YZP9UIf/ydr/1eP/psL/o8D/haz/rcb8wdT8TIT+fab/SoP+8/f9/f3+cJ38TIT/+vz/1uP/wtT7zNv6YJL7hqv5kb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ZdwMzCVypWVV1SCbayqhthcw8BQW8dQ39DY1FyjDxbxbmnVh7pXrI2hvaOzq7snD8Lv7eufMHHSZCBrSjsDu4hx7dRp02fMmGkJFJg1e87cefMXMDCIsDMsXMSweMnSZcuX96+AGqS/chUDw6KFQD0Mq9eABNbO91wHkVq/AaynfQrDxk0ggxg227lvAcuYb/VmmMLBsE2MYfuOnbt2A0X2bIKa17mXQYyTgasWyNy3/wADw8FDh6EyR46C/MNdIgdkHzvAUHP8xEmozKnTcsAwYJA8MwssU3UWHl/nzptKgsI6VA8ks8/0AiIqL14Cx6v25SsMV69dv3ESLnHlMjRWb17Wu3X7zl2Y+CwxXSYYWzv03v0HD6GcR49l4OkAaFfKk6fPDEQWiUyZXfsEOe0AATfX83b2F+ztiPQGAFPrjQm2ZtpYAAAAAElFTkSuQmCC\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAJNQTFRF/////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,iVBORw0KGgoAAAANSUhEUgA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U/PL69vVG6bEMwa4P3j84sgMutgP37R/aCdOn/s9J87QF5ZxaW34/64Hfjt3r4BBPkiHHqxhXIAAAAASUVORK5CYII=\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAALpQTFRFAAAARYD/RYD/RYD/RYD/RoD9RoD9RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/RYD/SoP+fqb8uc783+j89vj8/f39RYD/RYD/R4H/dJ/8zdz8+vv+////cJz8krP79/n++fv+4On88fX9RYD/lbb8kbP82OP6wtT7uM36wdP79Pf+xdb7RoH/qsT9RoD98/b9pMD7cZ39osD/6e/9fKX9XJD/zt38SYL+RYD/kbP7/P3/1+P+0eD/RYD/GBioqgAAAD50Uk5TAA5Rrtv3/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/7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ANR0Uk5TAAc2RRUDfub///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+Pn89ff7VvVEC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Kh/R7XPZ2D4WhMlBuPhoPj+04wnV3JbIqJQOaL5Ypcb7VczMkaG+FGhA3WZIvdDRCyw5aI2N+RPUTC4nBHDmD/Afo+IxY6BZAvAAAAAElFTkSuQmCC\"","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,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAXdQTFRFRYD/ZJX/////hav/ssr/v9P/+/z/4+z/4Or/9vn/4ev/6vH/Zpf/VYv/zd3/z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wSFlzAAALEwAACxMBAJqcGAAAAU1QTFRF////4Or/vdL/7fP/tMz/+vz//v//1uP/hKv/TIT/RoH/TIX/RoD/wNT//P3/2OX/iq//UYj/Vov9ia37W479SIL+hqz8W4/9Z5f/+fv/3ej/wtX/wdX/jrL/TIX+jbH83+j8/v7+or/8S4T+1OH8scn7osD/2+f/scr/SIL/RYD/UYj+ia787fL87vP9T4b9cJ389vn+YpP9Uoj+b5v7vND7Zpb8TIT+j7H76O/9pMD72uX8rsb7or78eaP/ZJX/Wo38R4H+x9j8y9v9eKL73ef9UYj9X5D8d6L+X5H/4ev/iq/+wtX+rMf/or//+/z+zNv8pcH9k7X/dKD/n7z7SYP+RoH+5Oz8gqj78/b8w9b82eT8/f7/dqD7YJL+VYv/+Pr+r8f8hqz9g6r/lbf+UIf+eqP83uj+xtj/nbz/R4H/pcH/zd3/o8D/8PX/BY0KsAAAAO1JREFUeJxjYCAKMDIxMLOwYgizsXNwcnFw8/CiifPxCwgKCYuIiolLSMLEpKRlZGR4Zbnl5BUUlZRVVHnUZGTUQRIamlogoK2jC+To6RsYGgF5EiAZYxNTMy1zC0uIAVY81jZatnb2ILaWgyOPmRMjFDgru7i6uXt4egFdqIUV8GgAZbx9ZDCAr5YfUEYNm5dJk/EPCFRTC9IKZsGQCQmFuCEMXSZcKyISRKtpoctEaUUzYJeJ1rLyxy4TE+sYZw8E8RgyDAmJScnJdlr2KWT5NDUtnREDZIBkMrOwBnY2MGHk5Pphguw8LHbAAAB6CDaQrWXcJgAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"static/media/face-template.28eda351.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAFgCAYAAADNZME9AAALGklEQVR4nO3dTYhdBxnH4ffemcmkST9cHFvSLkImqbqo7kQQXFgUpOAHoi5cWMGPTenChaUUQasgRRcupDu7UVBpi0gR6iJUQSyI6EJdaJuZEGgT7b0La5o0M3fuvXLSmTDNTDKTZKaZuf/ng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ded8XjrO73f73+2qn5aVQfNHwB2jfaGvy83TfPMVg/omgKg3oqAD6y8SvCwuQPATffKyt3+V7zhbyNbuQfgbVa+HfBBDwsCgJvu+XYnX+vyr+u5ArBWv9//SFX9sKo+5PcAALxj/rLyeN8XrvcfeEMBsKrf73+hqr5fVUfNHgB2TPtK329V1S+3cqPf1WxLANRbETBTVV+tqi9W1Yev5+MFAGCdUVX9sap+0b7Pf+0rfW/EtgXAWv1+/91V9cmq+kxVfbyq9psnAGzZhao6vnK/3XMrj+jfVjsSAGv1+/32K4P3r3w8cPcGv27z+wGAQGer6vQGv+ar6oWmaXbufTxV9X9lP1C4jHQOJwAAAABJRU5ErkJggg==\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAFgCAYAAADNZME9AAAQu0lEQVR4nO3dW4xc9X3A8f/MXrzs2g7gscE2sLC7oUYEJCSwUbmIS4sggraq2j70oanUy0uUhz40iqJKbVqpitqHPlR5Ky+taKskKhAqpQKLABaREIKHthIm9q4xxAaza1R8w/bszFT/YRcWvPeLZ875fT7SKiAROOf/X/n/Pf85c06l1WqljXR44siOZrP5rWar9bVWs7Wr2Wrlv/9Ks9Ucajaafc1Wq7KhBwAAXahaqbSqPdV6tVI9W61WP65WKh9WqpXj1Urlf6vV6j+Ojdz04UYe9YYEwOGJI3sajea369PTX79Yr1+z0ZEBAGVSqVRSf1/fib7env/q6en5/tjITQfX+/TWLQAOTxwZnG40nqzX24v+1nX5lwIAOQY+7uvr/WlvT88fjY3cdG49RmRdAuDtw+P/cP78hW9ONxp963FQAMClent66gMDm37wK2Ojf7bW4VlTAPxifOKbFy5c+P7F+vRm8wQAl0d/X++ZTZs2fefm0ZEfrPY/uKoAyJ/xn79w8cULFy/uNNcA0Bmb+vvfH9jU/9Bq7hGorvT/cGh84nfOnPvkfyz+ANBZeS3Oa3Jem1d6ICsKgF8cHv+702fP/ajRaPSacwDovLwm57U5r9ErOZhlfQRweOJItT49vf/cJ+cfNNcA0J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0o/nHtC1XnO7s/NOQCUyrdrtVpr7gldEgC1Wu2A5wIAQGn8Z61We+nLJzPfDkD2pymlo+YeAArtlymlP5nvBOYNgJnvCP5GSumseQeAQjqXUvrNWq32wXwHv9AOQI6A/04p/UFKqbXQPwMAdKW8dn+jVqu9udDBLRgAMxHwHymlvzK3AFAo36vVaj9e7IAXDYAZf5NS+hfzDgCFkNfsv17qQJcMgJmvDXwjpfSXPg4AgK6V1+jvzWz9L7leV1qt5a/pU1NTv51S+ueU0pD5B4CukW/4+8Narfaj5R7QigIgfRoBt8+8SnDYvANAx/1y5m7/BW/4m89y7gH4gplvB9zlYUEA0HE/zWvyShf/tJodgLmmpqbuSyn9fUppn98BALhs3ph5vO+Lq/0PrikAZk1NTf1eSulvU0qj5h4ANkx+pe9fpJT+fTk3+i1mXQIgfRoBfSmlP04p/X5K6VdX8/ECAHCJZkrp1ZTSv+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 Wallet Balance\" },\r\n\t\t\t\t{ Label: \"Fee Wallet 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 Wallet 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 Wallet Balance\", Value: data.FundingAccountBalance },\r\n\t\t\t\t\t\t{ Label: \"Fee Wallet 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 Wallet 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(\"WALLET\");\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\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\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.ReportType || \"\").toString() !== \"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\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\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({ isEmailDialogOpen: true })}\r\n\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\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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\r\n\t\t\tthis.state.viewData.HeaderText = ResourceHelper.CorrectAccountNames(this.state.viewData.CenterTitle);\r\n\t\t\tthis.state.viewData.HeaderTableText = ResourceHelper.CorrectAccountNames(this.state.viewData.CenterTitle);\r\n\r\n\t\t\tif (this.props.setAppLeftTitle){\r\n\t\t\t\tthis.state.viewData.LeftTitle = ResourceHelper.CorrectAccountNames(this.state.viewData.LeftTitle);\r\n\t\t\t\tthis.props.setAppLeftTitle(this.state.viewData.LeftTitle);\r\n\t\t\t}\r\n\t\t\tif (this.props.setAppCenterTitle){\r\n\t\t\t\tthis.state.viewData.CenterTitle = ResourceHelper.CorrectAccountNames(this.state.viewData.CenterTitle);\r\n\t\t\t\tthis.props.setAppCenterTitle(this.state.viewData.CenterTitle);\r\n\t\t\t}\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\nimport ResourceHelper from \"../../../core/ResourceHelper\";\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: ResourceHelper.CorrectAccountNames(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: ResourceHelper.CorrectAccountNames(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\nimport ResourceHelper from \"../core/ResourceHelper\";\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 = this.GetFlatRoutes(responseData.FlatRoutes);\r\n\t\t\t\t\t\tdashboardRoutes = this.GetCorrectedMenuList(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 = ResourceHelper.CorrectAccountNames(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\tGetCorrectedMenuList(MenuList) {\r\n\t\tvar menuList = [];\r\n\t\tMenuList.forEach( menuItem => {\r\n\t\t\tmenuItem.FullPath = ResourceHelper.CorrectAccountNames(menuItem.FullPath)\r\n\t\t\tmenuItem.Views.forEach(menuSubItem => {\r\n\t\t\t\tmenuSubItem.FullPath = ResourceHelper.CorrectAccountNames(menuSubItem.FullPath)\r\n\t\t\t})\r\n\t\t\tmenuList.push(menuItem);\r\n\t\t})\r\n\t\treturn menuList;\r\n\t}\r\n\tGetFlatRoutes(FlatRoutes) {\r\n\t\tvar flatRoutes = [];\r\n\t\tFlatRoutes.forEach( x => {\r\n\t\t\tx.FullPath = ResourceHelper.CorrectAccountNames(x.FullPath)\r\n\t\t\tflatRoutes.push(x);\r\n\t\t})\r\n\t\treturn flatRoutes;\r\n\t}\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\tval = ResourceHelper.CorrectAccountNames(val);\r\n\t\tthis.setState({ AppLeftTitle: val });\r\n\t}\r\n\r\n\tsetAppCenterTitle(val) {\r\n\t\tval = ResourceHelper.CorrectAccountNames(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\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t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\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t\t\t\tlistFee.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{listFee.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.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}}>\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{DateHelper.ToMoment(x.DateTime).format(\"D\")}\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(\"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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\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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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 Wallet 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 Wallet 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 == \"Wallet\" ? \"\" : \"Wallet\"}`;\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\tWallet & 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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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\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{/* \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\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 & Limit\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\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\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\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\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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\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 5 ? true : false}\r\n\t\t\t\t\t\t\t\t\t\t\tminRows={2}\r\n\t\t\t\t\t\t\t\t\t\t\tgetTrProps={(state, rowInfo) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (rowInfo && rowInfo.row) {\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\tonClick: e => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.setState({ selectedSettled: rowInfo.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\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t

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

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

\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tEnter an Address or Postal code to find nearby ATMs\r\n \t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t

\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
\r\n\t\t\t\t\r\n\t\t\t);\r\n\t}\r\n}\r\nAtmLocator.propTypes = {\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: {}, DcPaymentEtransferLogo:{},\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}\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\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\r\n\tFetchUrl = () => {\r\n\t\tvar 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\tvar etid = this.GetParameterByName(\"etid\", data.Url);\r\n\t\tvar 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\tvar urldata = { ...this.state.InteracUrlData };\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.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\tvar DC = responseData.Item.find(x => x.DefaultName == \"DC\");\r\n\t\t\t\t\tvar HR = responseData.Item.find(x => x.DefaultName == \"HR\");\r\n\t\t\t\t\tvar CH = responseData.Item.find(x => x.DefaultName == \"CH\");\r\n\t\t\t\t\tvar ET = responseData.Item.find(x => x.DefaultName == \"ET\");\r\n\t\t\t\t\tvar EP = responseData.Item.find(x => x.DefaultName == \"EP\");\r\n\t\t\t\t\tvar OL = responseData.Item.find(x => x.DefaultName == \"OL\");\r\n\t\t\t\t\tvar DCPD = responseData.Item.find(x => x.DefaultName == \"DCPD\");\r\n\t\t\t\t\tvar DCPET = responseData.Item.find(x => x.DefaultName == \"DCPET\");\r\n\r\n\r\n\r\n\t\t\t\t\tthis.setState({ DCLogo: DC || {}, HRLogo: HR || {}, CardHolderLogo: CH || {}, EtransferLogo: ET || {}, EPFinancialLogo: EP || {},DcOldLogo : OL || {}, DCPDLogo: DCPD || {}, DcPaymentEtransferLogo: DCPET || {} });\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.setState({ DCLogo: {}, HRLogo: {}, CardHolderLogo: {}, EtransferLogo: {}, EPFinancialLogo: {} ,DcOldLogo : {}, PTNLogo: {}, DcPaymentEtransferLogo: {},DCPDLogo: {}});\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\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\r\n\trender() {\r\n\t\tconst { classes } = this.props;\r\n\t\tconst { model, isLoading, alert,PTNLogo, DcPaymentEtransferLogo,DCPDLogo} = 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\r\n\t\t\t\t\t\t\t\t\t\t\t{DCPDLogo?.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\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{DcPaymentEtransferLogo?.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\t
\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\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
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\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\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\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\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\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 Wallet\");\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\", \"Wallet 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\", \"Wallet 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\", \"Wallet 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