How to use bank method in stryker-parent

Best JavaScript code snippet using stryker-parent

counterparty-bank-account-details.component.ts

Source:counterparty-bank-account-details.component.ts Github

copy

Full Screen

1import { Component, OnInit, EventEmitter, Output, Input, ViewChild, HostListener } from '@angular/core';2import { AtlasFormControl } from '../../../../../../shared/entities/atlas-form-control';3import { FormBuilder, FormGroup, Validators } from '@angular/forms';4import { FormConfigurationProviderService } from '../../../../../../shared/services/form-configuration-provider.service'5import { BaseFormComponent } from '../../../../../../shared/components/base-form-component/base-form-component.component'6import { CounterpartyBankAccountDetails } from '../../../../../../shared/entities/counterparty-bank-account-details.entity';7import { BankTypes } from '../../../../../../shared/enums/bank-type.enum';8import { BankType } from '../../../../../../shared/entities/bank-type.entity';9import { SnackbarService } from '../../../../../../shared/services/snackbar.service';10import { MatDialog } from '@angular/material';11import { ConfirmationDialogComponent } from '../../../../../../shared/components/confirmation-dialog/confirmation-dialog.component';12import { MasterDataProps } from '../../../../../../shared/entities/masterdata-props.entity';13import { Country } from '../../../../../../shared/entities/country.entity';14import { MasterdataService } from '../../../../../../shared/services/http-services/masterdata.service';15import { MasterData } from '../../../../../../shared/entities/masterdata.entity';16import { UtilService, } from '../../../../../../shared/services/util.service';17import { Currency } from '../../../../../../shared/entities/currency.entity';18import { CounterpartyBankAccountIntermediary } from '../../../../../../shared/entities/counterparty-bank-account-intermediary.entity';19import { BankNccType } from '../../../../../../shared/entities/bank-ncc-type.entity';20@Component({21 selector: 'atlas-counterparty-bank-account-details',22 templateUrl: './counterparty-bank-account-details.component.html',23 styleUrls: ['./counterparty-bank-account-details.component.scss']24})25export class CounterpartyBankAccountDetailsComponent extends BaseFormComponent implements OnInit {26 @Output() readonly setBankAccountData = new EventEmitter<any>();27 @Output() readonly deleteBankAccountData = new EventEmitter<any>();28 @Output() readonly cancelBankAccountData = new EventEmitter<any>();29 @Input() bankAccountListLength: number;30 bankAccountFormGroup: FormGroup;31 bankAccountIntermediary1FormGroup: FormGroup;32 bankAccountIntermediary2FormGroup: FormGroup;33 bankAccountDisplay: CounterpartyBankAccountDetails;34 panelOpenState = false;35 bankType: BankType[];36 bankNccTypes: BankNccType[];37 isNewBankAccount: boolean = true;38 newBankAccountForm: boolean = false;39 editBankAccount: boolean = false;40 bankCountry: Country[];41 bankIntermediary1Country: Country[];42 bankIntermediary2Country: Country[];43 accountCurrency: Currency[];44 accountIntermediary1Currency: Currency[];45 accountIntermediary2Currency: Currency[];46 masterdata: MasterData;47 bankAccountEmptyMessage: string = "Start by Selecting One";48 bankStatus: number = 1;49 bankAccountName: string;50 bankAccountStatusCtrl = new AtlasFormControl('bankAccountStatus');51 bankNameCtrl = new AtlasFormControl('bankName');52 bankAccountDescriptionCtrl = new AtlasFormControl('bankAccountDescription');53 addressLine1Ctrl = new AtlasFormControl('addressLine1');54 addressLine2Ctrl = new AtlasFormControl('addressLine2');55 addressLine3Ctrl = new AtlasFormControl('addressLine3');56 addressLine4Ctrl = new AtlasFormControl('addressLine4');57 zipCodeCtrl = new AtlasFormControl('zipCode');58 cityCtrl = new AtlasFormControl('city');59 countryCtrl = new AtlasFormControl('country');60 bankSWIFTCodeCtrl = new AtlasFormControl('bankSWIFTCode');61 accountCcyCtrl = new AtlasFormControl('accountCcy');62 bankTypeCtrl = new AtlasFormControl('bankType');63 bankNoCtrl = new AtlasFormControl('bankNo');64 bankBranchCtrl = new AtlasFormControl('bankBranch');65 accountNoCtrl = new AtlasFormControl('accountNo');66 bankNccTypeCtrl = new AtlasFormControl('bankNccType');67 nccCtrl = new AtlasFormControl('ncc');68 ncsCtrl = new AtlasFormControl('ncs');69 fedABACtrl = new AtlasFormControl('fedABA');70 chipsCtrl = new AtlasFormControl('chips');71 bankPhoneNumberCtrl = new AtlasFormControl('bankPhoneNumber');72 bankFaxNumberCtrl = new AtlasFormControl('bankFaxNumber');73 bankTelexNumberCtrl = new AtlasFormControl('bankTelexNumber');74 interfaceCodeCtrl = new AtlasFormControl('interfaceCode');75 bankIntermediary1AccountDescriptionCtrl = new AtlasFormControl('bankIntermediary1AccountDescription');76 intermediary1BankNameCtrl = new AtlasFormControl('intermediary1BankName');77 intermediary1AddressLine1Ctrl = new AtlasFormControl('intermediary1AddressLine1');78 intermediary1AddressLine2Ctrl = new AtlasFormControl('intermediary1AddressLine2');79 intermediary1AddressLine3Ctrl = new AtlasFormControl('intermediary1AddressLine3');80 intermediary1AddressLine4Ctrl = new AtlasFormControl('intermediary1AddressLine4');81 intermediary1ZipCodeCtrl = new AtlasFormControl('intermediary1ZipCode');82 intermediary1BankTypeCtrl = new AtlasFormControl('intermediary1BankType');83 intermediary1BankNoCtrl = new AtlasFormControl('intermediary1BankNo');84 intermediary1CityCtrl = new AtlasFormControl('intermediary1City');85 intermediary1CountryCtrl = new AtlasFormControl('intermediary1Country');86 intermediary1AccountNoCtrl = new AtlasFormControl('intermediary1AccountNo');87 intermediary1AccountCcyCtrl = new AtlasFormControl('intermediary1AccountCcy');88 intermediary1BankSWIFTCodeCtrl = new AtlasFormControl('intermediary1BankSWIFTCode');89 bankName1Ctrl = new AtlasFormControl('bankName1');90 intermediary1BankBranchCtrl = new AtlasFormControl('intermediary1BankBranch');91 intermediary1FEDABACtrl = new AtlasFormControl('intermediary1FEDABA');92 intermediary1ChipsCtrl = new AtlasFormControl('intermediary1Chips');93 intermediary1NCCCtrl = new AtlasFormControl('intermediary1NCC');94 intermediary1NCSCtrl = new AtlasFormControl('intermediary1NCS');95 bankIntermediary1OrderCtrl = new AtlasFormControl('bankIntermediary1Order');96 intermediary1BankNccTypeCtrl = new AtlasFormControl('intermediary1BankNccType');97 bankIntermediary2AccountDescriptionCtrl = new AtlasFormControl('bankIntermediary2AccountDescription');98 intermediary2BankNameCtrl = new AtlasFormControl('intermediary2BankName');99 intermediary2AddressLine1Ctrl = new AtlasFormControl('intermediary2AddressLine1');100 intermediary2AddressLine2Ctrl = new AtlasFormControl('intermediary2AddressLine2');101 intermediary2AddressLine3Ctrl = new AtlasFormControl('intermediary2AddressLine3');102 intermediary2AddressLine4Ctrl = new AtlasFormControl('intermediary2AddressLine4');103 intermediary2ZipCodeCtrl = new AtlasFormControl('intermediary2ZipCode');104 intermediary2BankTypeCtrl = new AtlasFormControl('intermediary2BankType');105 intermediary2BankNoCtrl = new AtlasFormControl('intermediary2BankNo');106 intermediary2CityCtrl = new AtlasFormControl('intermediary2City');107 intermediary2CountryCtrl = new AtlasFormControl('intermediary2Country');108 intermediary2AccountNoCtrl = new AtlasFormControl('intermediary2AccountNo');109 intermediary2AccountCcyCtrl = new AtlasFormControl('intermediary2AccountCcy');110 intermediary2BankSWIFTCodeCtrl = new AtlasFormControl('intermediary2BankSWIFTCode');111 bankName2Ctrl = new AtlasFormControl('bankName2');112 intermediary2BankBranchCtrl = new AtlasFormControl('intermediary2BankBranch');113 intermediary2FEDABACtrl = new AtlasFormControl('intermediary2FEDABA');114 intermediary2ChipsCtrl = new AtlasFormControl('intermediary2Chips');115 intermediary2NCCCtrl = new AtlasFormControl('intermediary2NCC');116 intermediary2NCSCtrl = new AtlasFormControl('intermediary2NCS');117 bankIntermediary2OrderCtrl = new AtlasFormControl('bankIntermediary2Order');118 intermediary2BankNccTypeCtrl = new AtlasFormControl('intermediary2BankNccType');119 masterdataList: string[] = [120 MasterDataProps.Countries,121 MasterDataProps.BankTypes,122 MasterDataProps.BankNccTypes,123 MasterDataProps.Currencies,124 ];125 bankTypeDisplayProperty: string = 'enumEntityValue';126 bankTypeSelectProperties: string[] = ['enumEntityValue'];127 bankTypeOptions = this.bankType;128 bankIntermediary1OrderDisplayProperty: string = 'bankIntermediaryOrder';129 bankIntermediary1OrderSelectProperties: string[] = ['bankIntermediaryOrder'];130 bankIntermediary1OrderOptions = new Array<any>(131 { bankIntermediaryOrder: '1' },132 { bankIntermediaryOrder: '2' },133 );134 bankIntermediary2OrderDisplayProperty: string = 'bankIntermediaryOrder';135 bankIntermediary2OrderSelectProperties: string[] = ['bankIntermediaryOrder'];136 bankIntermediary2OrderOptions = new Array<any>(137 { bankIntermediaryOrder: '1' },138 { bankIntermediaryOrder: '2' },139 );140 isDeleteDisabled: boolean = false;141 @Input() isViewMode: boolean = false;142 constructor(protected formBuilder: FormBuilder,143 protected formConfigurationProvider: FormConfigurationProviderService,144 protected snackbarService: SnackbarService,145 protected dialog: MatDialog,146 protected utilService: UtilService,147 protected masterdataService: MasterdataService,148 ) {149 super(formConfigurationProvider);150 }151 ngOnInit() {152 this.initializeForm();153 if (this.isViewMode) {154 this.bankAccountFormGroup.disable();155 this.bankAccountIntermediary1FormGroup.disable();156 this.bankAccountIntermediary2FormGroup.disable();157 }158 this.masterdataService159 .getMasterData(this.masterdataList)160 .subscribe((data) => {161 this.masterdata = data;162 this.bankTypeOptions = this.masterdata.bankTypes;163 this.bankIntermediary1Country = this.masterdata.countries;164 this.bankCountry = this.masterdata.countries;165 this.bankIntermediary1Country = this.masterdata.countries;166 this.bankIntermediary2Country = this.masterdata.countries;167 this.accountCurrency = this.masterdata.currencies;168 this.accountIntermediary1Currency = this.masterdata.currencies;169 this.accountIntermediary2Currency = this.masterdata.currencies;170 this.countryCtrl.valueChanges.subscribe((input) => {171 this.bankCountry = this.utilService.filterListforAutocomplete(172 input,173 this.masterdata.countries,174 ['countryId', 'description'],175 );176 });177 this.intermediary1CountryCtrl.valueChanges.subscribe((input) => {178 this.bankIntermediary1Country = this.utilService.filterListforAutocomplete(179 input,180 this.masterdata.countries,181 ['countryId', 'description'],182 );183 });184 this.intermediary2CountryCtrl.valueChanges.subscribe((input) => {185 this.bankIntermediary2Country = this.utilService.filterListforAutocomplete(186 input,187 this.masterdata.countries,188 ['countryId', 'description'],189 );190 });191 this.accountCcyCtrl.valueChanges.subscribe((input) => {192 this.accountCurrency = this.utilService.filterListforAutocomplete(193 input,194 this.masterdata.currencies,195 ['currencyCode', 'description'],196 );197 });198 this.intermediary1AccountCcyCtrl.valueChanges.subscribe((input) => {199 this.accountIntermediary1Currency = this.utilService.filterListforAutocomplete(200 input,201 this.masterdata.currencies,202 ['currencyCode', 'description'],203 );204 });205 this.intermediary2AccountCcyCtrl.valueChanges.subscribe((input) => {206 this.accountIntermediary2Currency = this.utilService.filterListforAutocomplete(207 input,208 this.masterdata.currencies,209 ['currencyCode', 'description'],210 );211 });212 });213 this.setValidators();214 }215 initializeForm() {216 this.bankAccountFormGroup = this.formBuilder.group(217 {218 bankAccountStatusCtrl: this.bankAccountStatusCtrl,219 bankNameCtrl: this.bankNameCtrl,220 bankAccountDescriptionCtrl: this.bankAccountDescriptionCtrl,221 addressLine1Ctrl: this.addressLine1Ctrl,222 addressLine2Ctrl: this.addressLine2Ctrl,223 addressLine3Ctrl: this.addressLine3Ctrl,224 addressLine4Ctrl: this.addressLine4Ctrl,225 zipCodeCtrl: this.zipCodeCtrl,226 cityCtrl: this.cityCtrl,227 countryCtrl: this.countryCtrl,228 bankSWIFTCodeCtrl: this.bankSWIFTCodeCtrl,229 accountCcyCtrl: this.accountCcyCtrl,230 bankTypeCtrl: this.bankTypeCtrl,231 bankNoCtrl: this.bankNoCtrl,232 bankBranchCtrl: this.bankBranchCtrl,233 accountNoCtrl: this.accountNoCtrl,234 nccCtrl: this.nccCtrl,235 ncsCtrl: this.ncsCtrl,236 fedABACtrl: this.fedABACtrl,237 chipsCtrl: this.chipsCtrl,238 bankPhoneNumberCtrl: this.bankPhoneNumberCtrl,239 bankFaxNumberCtrl: this.bankFaxNumberCtrl,240 bankTelexNumberCtrl: this.bankTelexNumberCtrl,241 },242 );243 this.bankAccountIntermediary1FormGroup = this.formBuilder.group(244 {245 bankIntermediary1AccountDescriptionCtrl: this.bankIntermediary1AccountDescriptionCtrl,246 intermediary1BankNameCtrl: this.intermediary1BankNameCtrl,247 intermediary1AddressLine1Ctrl: this.intermediary1AddressLine1Ctrl,248 intermediary1AddressLine2Ctrl: this.intermediary1AddressLine2Ctrl,249 intermediary1AddressLine3Ctrl: this.intermediary1AddressLine3Ctrl,250 intermediary1AddressLine4Ctrl: this.intermediary1AddressLine4Ctrl,251 intermediary1ZipCodeCtrl: this.intermediary1ZipCodeCtrl,252 intermediary1BankTypeCtrl: this.intermediary1BankTypeCtrl,253 intermediary1BankNoCtrl: this.intermediary1BankNoCtrl,254 intermediary1CityCtrl: this.intermediary1CityCtrl,255 intermediary1CountryCtrl: this.intermediary1CountryCtrl,256 intermediary1AccountNoCtrl: this.intermediary1AccountNoCtrl,257 intermediary1AccountCcyCtrl: this.intermediary1AccountCcyCtrl,258 intermediary1BankSWIFTCodeCtrl: this.intermediary1BankSWIFTCodeCtrl,259 bankName1Ctrl: this.bankName1Ctrl,260 intermediary1BankBranchCtrl: this.intermediary1BankBranchCtrl,261 intermediary1FEDABACtrl: this.intermediary1FEDABACtrl,262 intermediary1ChipsCtrl: this.intermediary1ChipsCtrl,263 intermediary1NCCCtrl: this.intermediary1NCCCtrl,264 intermediary1NCSCtrl: this.intermediary1NCSCtrl,265 bankIntermediary1OrderCtrl: this.bankIntermediary1OrderCtrl,266 },267 );268 this.bankAccountIntermediary2FormGroup = this.formBuilder.group(269 {270 bankIntermediary2AccountDescriptionCtrl: this.bankIntermediary2AccountDescriptionCtrl,271 intermediary2BankNameCtrl: this.intermediary2BankNameCtrl,272 intermediary2AddressLine1Ctrl: this.intermediary2AddressLine1Ctrl,273 intermediary2AddressLine2Ctrl: this.intermediary2AddressLine2Ctrl,274 intermediary2AddressLine3Ctrl: this.intermediary2AddressLine3Ctrl,275 intermediary2AddressLine4Ctrl: this.intermediary2AddressLine4Ctrl,276 intermediary2ZipCodeCtrl: this.intermediary2ZipCodeCtrl,277 intermediary2BankTypeCtrl: this.intermediary2BankTypeCtrl,278 intermediary2BankNoCtrl: this.intermediary2BankNoCtrl,279 intermediary2CityCtrl: this.intermediary2CityCtrl,280 intermediary2CountryCtrl: this.intermediary2CountryCtrl,281 intermediary2AccountNoCtrl: this.intermediary2AccountNoCtrl,282 intermediary2AccountCcyCtrl: this.intermediary2AccountCcyCtrl,283 intermediary2BankSWIFTCodeCtrl: this.intermediary2BankSWIFTCodeCtrl,284 bankName2Ctrl: this.bankName2Ctrl,285 intermediary2BankBranchCtrl: this.intermediary2BankBranchCtrl,286 intermediary2FEDABACtrl: this.intermediary2FEDABACtrl,287 intermediary2ChipsCtrl: this.intermediary2ChipsCtrl,288 intermediary2NCCCtrl: this.intermediary2NCCCtrl,289 intermediary2NCSCtrl: this.intermediary2NCSCtrl,290 bankIntermediary2OrderCtrl: this.bankIntermediary2OrderCtrl,291 },292 );293 }294 setValidators() {295 this.bankNameCtrl.setValidators(296 Validators.compose([Validators.required]),297 );298 this.bankNoCtrl.setValidators(299 Validators.compose([Validators.required]),300 );301 this.countryCtrl.setValidators(302 Validators.compose([Validators.required]),303 );304 this.bankSWIFTCodeCtrl.setValidators(305 Validators.compose([Validators.required]),306 );307 this.accountCcyCtrl.setValidators(308 Validators.compose([Validators.required]),309 );310 this.accountNoCtrl.setValidators(311 Validators.compose([Validators.required]),312 );313 this.bankTypeCtrl.setValidators(314 Validators.compose([Validators.required]),315 );316 this.bankNameCtrl.setValidators(317 Validators.compose([Validators.maxLength(40)]),318 );319 this.bankAccountDescriptionCtrl.setValidators(320 Validators.compose([Validators.maxLength(160)]),321 );322 this.addressLine1Ctrl.setValidators(323 Validators.compose([Validators.maxLength(160)]),324 );325 this.addressLine2Ctrl.setValidators(326 Validators.compose([Validators.maxLength(160)]),327 );328 this.intermediary1BankNameCtrl.setValidators(329 Validators.compose([Validators.maxLength(40)]),330 );331 this.bankIntermediary1AccountDescriptionCtrl.setValidators(332 Validators.compose([Validators.maxLength(160)]),333 );334 this.intermediary1AddressLine1Ctrl.setValidators(335 Validators.compose([Validators.maxLength(160)]),336 );337 this.intermediary1AddressLine2Ctrl.setValidators(338 Validators.compose([Validators.maxLength(160)]),339 );340 this.intermediary2BankNameCtrl.setValidators(341 Validators.compose([Validators.maxLength(40)]),342 );343 this.bankIntermediary2AccountDescriptionCtrl.setValidators(344 Validators.compose([Validators.maxLength(160)]),345 );346 this.intermediary2AddressLine1Ctrl.setValidators(347 Validators.compose([Validators.maxLength(160)]),348 );349 this.intermediary2AddressLine2Ctrl.setValidators(350 Validators.compose([Validators.maxLength(160)]),351 );352 this.bankAccountFormGroup.updateValueAndValidity();353 }354 bankAccountStatusChanged() {355 this.bankStatus = this.bankAccountStatusCtrl.value;356 }357 saveBankAccount() {358 let bankAccount = <CounterpartyBankAccountDetails>{359 bankAccountId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountId : null,360 randomId: this.isNewBankAccount ? this.bankAccountListLength + 1 : this.bankAccountDisplay.randomId,361 bankAccountStatusID: this.bankStatus,362 bankName: this.bankNameCtrl.value,363 bankAccountDesc: this.bankAccountDescriptionCtrl.value,364 bankAddressLine1: this.addressLine1Ctrl.value,365 bankAddressLine2: this.addressLine2Ctrl.value,366 bankAddressLine3: this.addressLine3Ctrl.value,367 bankAddressLine4: this.addressLine4Ctrl.value,368 bankZIPCode: this.zipCodeCtrl.value,369 bankCity: this.cityCtrl.value,370 bankCountryKey: this.countryCtrl.value ? this.bankCountry.find(country => country.description === this.countryCtrl.value).countryId : '',371 bankSwiftCode: this.bankSWIFTCodeCtrl.value,372 accountCCY: this.accountCcyCtrl.value ? this.accountCurrency.find(currency => currency.description === this.accountCcyCtrl.value).currencyCode : '',373 bankTypeID: this.bankTypeCtrl.value ? this.bankTypeCtrl.value.enumEntityId : '',374 bankKey: this.bankNoCtrl.value,375 bankBranch: this.bankBranchCtrl.value,376 accountNo: this.accountNoCtrl.value,377 ncc: this.nccCtrl.value,378 ncs: this.ncsCtrl.value,379 fedaba: this.fedABACtrl.value,380 chips: this.chipsCtrl.value,381 interfaceCode: this.interfaceCodeCtrl.value,382 bankPhoneNo: this.bankPhoneNumberCtrl.value,383 bankFaxNo: this.bankFaxNumberCtrl.value,384 bankTelexNo: this.bankTelexNumberCtrl.value,385 externalReference: "",386 mdmID: null,387 counterpartyId: this.bankAccountDisplay ? this.bankAccountDisplay.counterpartyId : null,388 bankAccountDefault: false,389 bankAccountIntermediary: false,390 bankNccType: this.bankNccTypeCtrl.value,391 isDeactivated: (this.bankStatus == 1) ? false : true,392 tempBankAccountId: this.isNewBankAccount ? this.bankAccountListLength + 1 : this.bankAccountDisplay.tempBankAccountId,393 };394 bankAccount.bankAccountIntermediary1 = <CounterpartyBankAccountIntermediary>{395 bankAccountIntermediaryId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary1 ? this.bankAccountDisplay.bankAccountIntermediary1.bankAccountIntermediaryId : null : null,396 intermediaryId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary1 ? this.bankAccountDisplay.bankAccountIntermediary1.intermediaryId : null : null,397 bankAccountId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary1 ? this.bankAccountDisplay.bankAccountIntermediary1.bankAccountId : null : null,398 parentBankAccountId: bankAccount.bankAccountId,399 bankAccountDesc: this.bankIntermediary1AccountDescriptionCtrl.value,400 bankName: this.intermediary1BankNameCtrl.value,401 bankAddressLine1: this.intermediary1AddressLine1Ctrl.value,402 bankAddressLine2: this.intermediary1AddressLine2Ctrl.value,403 bankAddressLine3: this.intermediary1AddressLine3Ctrl.value,404 bankAddressLine4: this.intermediary1AddressLine4Ctrl.value,405 bankZIPCode: this.intermediary1ZipCodeCtrl.value,406 bankCity: this.intermediary1CityCtrl.value,407 bankCountryKey: this.intermediary1CountryCtrl.value ? this.bankIntermediary1Country.find(country => country.description === this.intermediary1CountryCtrl.value).countryId : '',408 accountNo: this.intermediary1AccountNoCtrl.value,409 accountCCY: this.intermediary1AccountCcyCtrl.value ? this.accountIntermediary1Currency.find(currency => currency.description === this.intermediary1AccountCcyCtrl.value).currencyCode : '',410 bankTypeID: this.intermediary1BankTypeCtrl.value ? this.intermediary1BankTypeCtrl.value.enumEntityId : '',411 bankKey: this.intermediary1BankNoCtrl.value,412 bankAccountStatusID: this.bankStatus,413 externalReference: "",414 mdmID: null,415 counterpartyId: bankAccount.counterpartyId,416 bankAccountDefault: false,417 bankAccountIntermediary: false,418 bankSwiftCode: this.intermediary1BankSWIFTCodeCtrl.value,419 bankBranch: this.intermediary1BankBranchCtrl.value,420 fedaba: this.intermediary1FEDABACtrl.value,421 chips: this.intermediary1ChipsCtrl.value,422 ncc: this.intermediary1NCCCtrl.value,423 ncs: this.intermediary1NCSCtrl.value,424 order: this.bankIntermediary1OrderCtrl.value ? this.bankIntermediary1OrderCtrl.value.bankIntermediaryOrder : '',425 bankNccType: this.intermediary1BankNccTypeCtrl.value,426 tempParentBankAccountId: this.isNewBankAccount ? this.bankAccountListLength + 1 : this.bankAccountDisplay.tempBankAccountId,427 };428 bankAccount.bankAccountIntermediary2 = <CounterpartyBankAccountIntermediary>{429 bankAccountIntermediaryId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary2 ? this.bankAccountDisplay.bankAccountIntermediary2.bankAccountIntermediaryId : null : null,430 intermediaryId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary2 ? this.bankAccountDisplay.bankAccountIntermediary2.intermediaryId : null : null,431 bankAccountId: this.bankAccountDisplay ? this.bankAccountDisplay.bankAccountIntermediary2 ? this.bankAccountDisplay.bankAccountIntermediary2.bankAccountId : null : null,432 parentBankAccountId: bankAccount.bankAccountId,433 bankAccountDesc: this.bankIntermediary2AccountDescriptionCtrl.value,434 bankName: this.intermediary2BankNameCtrl.value,435 bankAddressLine1: this.intermediary2AddressLine1Ctrl.value,436 bankAddressLine2: this.intermediary2AddressLine2Ctrl.value,437 bankAddressLine3: this.intermediary2AddressLine3Ctrl.value,438 bankAddressLine4: this.intermediary2AddressLine4Ctrl.value,439 bankZIPCode: this.intermediary2ZipCodeCtrl.value,440 bankCity: this.intermediary2CityCtrl.value,441 bankCountryKey: this.intermediary2CountryCtrl.value ? this.bankIntermediary2Country.find(country => country.description === this.intermediary2CountryCtrl.value).countryId : '',442 accountNo: this.intermediary2AccountNoCtrl.value,443 accountCCY: this.intermediary2AccountCcyCtrl.value ? this.accountIntermediary2Currency.find(currency => currency.description === this.intermediary2AccountCcyCtrl.value).currencyCode : '',444 bankTypeID: this.intermediary2BankTypeCtrl.value ? this.intermediary2BankTypeCtrl.value.enumEntityId : '',445 bankKey: this.intermediary2BankNoCtrl.value,446 bankAccountStatusID: this.bankStatus,447 externalReference: "",448 mdmID: null,449 counterpartyId: bankAccount.counterpartyId,450 bankAccountDefault: false,451 bankAccountIntermediary: false,452 bankSwiftCode: this.intermediary2BankSWIFTCodeCtrl.value,453 bankBranch: this.intermediary2BankBranchCtrl.value,454 fedaba: this.intermediary2FEDABACtrl.value,455 chips: this.intermediary2ChipsCtrl.value,456 ncc: this.intermediary2NCCCtrl.value,457 ncs: this.intermediary2NCSCtrl.value,458 order: this.bankIntermediary2OrderCtrl.value ? this.bankIntermediary2OrderCtrl.value.bankIntermediaryOrder : '',459 bankNccType: this.intermediary2BankNccTypeCtrl.value,460 tempParentBankAccountId: this.isNewBankAccount ? this.bankAccountListLength + 1 : this.bankAccountDisplay.tempBankAccountId,461 };462 this.setBankAccountData.emit(bankAccount);463 }464 @HostListener('window:beforeunload', ['$event']) unloadNotification($event: any) {465 if (this.bankAccountFormGroup.dirty ||466 this.bankAccountIntermediary1FormGroup.dirty ||467 this.bankAccountIntermediary2FormGroup.dirty) {468 const confirmDiscardDialog = this.dialog.open(ConfirmationDialogComponent, {469 data: {470 title: 'Discard Changes',471 text: 'Do you want to save the details',472 okButton: 'Yes',473 cancelButton: 'No',474 },475 });476 confirmDiscardDialog.afterClosed().subscribe((answer) => {477 if (answer) {478 this.onBankAccountSaveButtonClick();479 }480 });481 $event.returnValue = true;482 }483 }484 onBankAccountDeleteButtonClick() {485 const confirmDiscardDialog = this.dialog.open(ConfirmationDialogComponent, {486 data: {487 title: 'Discard Changes',488 text: 'Do you confirm the deletion of Bank Account ' + this.bankName1Ctrl.value,489 okButton: 'Yes',490 cancelButton: 'No',491 },492 });493 confirmDiscardDialog.afterClosed().subscribe((answer) => {494 if (answer) {495 this.deleteBankAccountData.emit(this.bankAccountDisplay);496 this.bankAccountFormGroup.reset();497 this.bankAccountIntermediary1FormGroup.reset();498 this.bankAccountIntermediary2FormGroup.reset();499 this.newBankAccountForm = false;500 this.editBankAccount = false;501 }502 });503 }504 onBankIntermediary1AccountDeleteButtonClick() {505 const confirmDiscardDialog = this.dialog.open(ConfirmationDialogComponent, {506 data: {507 title: 'Discard Changes',508 text: 'Do you confirm the deletion of Bank Account ' + this.intermediary1BankNameCtrl.value,509 okButton: 'Yes',510 cancelButton: 'No',511 },512 });513 confirmDiscardDialog.afterClosed().subscribe((answer) => {514 if (answer) {515 this.bankAccountIntermediary1FormGroup.reset();516 }517 });518 }519 onBankIntermediary2AccountDeleteButtonClick() {520 const confirmDiscardDialog = this.dialog.open(ConfirmationDialogComponent, {521 data: {522 title: 'Discard Changes',523 text: 'Do you confirm the deletion of Bank Account ' + this.intermediary2BankNameCtrl.value,524 okButton: 'Yes',525 cancelButton: 'No',526 },527 });528 confirmDiscardDialog.afterClosed().subscribe((answer) => {529 if (answer) {530 this.bankAccountIntermediary2FormGroup.reset();531 }532 });533 }534 onBankAccountSaveButtonClick() {535 if (this.bankAccountFormGroup.valid &&536 this.bankAccountIntermediary1FormGroup.valid &&537 this.bankAccountIntermediary2FormGroup.valid) {538 this.saveBankAccount();539 this.bankAccountFormGroup.reset();540 this.bankAccountIntermediary1FormGroup.reset();541 this.bankAccountIntermediary2FormGroup.reset();542 this.newBankAccountForm = false;543 this.editBankAccount = false;544 }545 else {546 this.snackbarService.throwErrorSnackBar(547 'Form is invalid. Please resolve the errors.',548 );549 return;550 }551 }552 onBankAccountCancelButtonClick() {553 this.bankAccountFormGroup.reset();554 this.bankAccountIntermediary1FormGroup.reset();555 this.bankAccountIntermediary2FormGroup.reset();556 this.newBankAccountForm = false;557 this.editBankAccount = false;558 this.cancelBankAccountData.emit();559 }560 getBankAccountData(data: CounterpartyBankAccountDetails, deletionFlag: boolean) {561 if (data) {562 this.bankAccountDisplay = data;563 this.bankAccountName = this.bankAccountDisplay.bankName;564 if (data.randomId) {565 this.isNewBankAccount = false;566 }567 if (data.isDeactivated) {568 data.bankAccountStatusID = 2;569 }570 else {571 data.bankAccountStatusID = 1;572 }573 this.bankAccountStatusCtrl.patchValue(data.bankAccountStatusID);574 this.bankStatus = data.bankAccountStatusID;575 this.bankNameCtrl.patchValue(data.bankName);576 this.bankAccountDescriptionCtrl.patchValue(data.bankAccountDesc);577 this.addressLine1Ctrl.patchValue(data.bankAddressLine1);578 this.addressLine2Ctrl.patchValue(data.bankAddressLine2);579 this.addressLine3Ctrl.patchValue(data.bankAddressLine3);580 this.addressLine4Ctrl.patchValue(data.bankAddressLine4);581 this.zipCodeCtrl.patchValue(data.bankZIPCode);582 this.cityCtrl.patchValue(data.bankCity);583 if (data.bankCountryKey) {584 this.countryCtrl.patchValue(this.bankCountry.find(country => country.countryId === data.bankCountryKey).description);585 }586 this.bankSWIFTCodeCtrl.patchValue(data.bankSwiftCode);587 if (data.accountCCY) {588 this.accountCcyCtrl.patchValue(this.accountCurrency.find(currency => currency.currencyCode === data.accountCCY).description);589 }590 this.bankTypeCtrl.patchValue(this.bankTypeOptions.find(item => item.enumEntityId === data.bankTypeID));591 this.bankNoCtrl.patchValue(data.bankKey);592 this.bankBranchCtrl.patchValue(data.bankBranch);593 this.accountNoCtrl.patchValue(data.accountNo);594 this.nccCtrl.patchValue(data.ncc);595 this.ncsCtrl.patchValue(data.ncs);596 this.fedABACtrl.patchValue(data.fedaba);597 this.chipsCtrl.patchValue(data.chips);598 this.interfaceCodeCtrl.patchValue(data.interfaceCode);599 this.bankPhoneNumberCtrl.patchValue(data.bankPhoneNo);600 this.bankFaxNumberCtrl.patchValue(data.bankFaxNo);601 this.bankTelexNumberCtrl.patchValue(data.bankTelexNo);602 this.bankNccTypeCtrl.patchValue(data.bankNccType);603 this.bankIntermediary1AccountDescriptionCtrl.patchValue(data.bankAccountIntermediary1.bankAccountDesc);604 this.intermediary1BankNameCtrl.patchValue(data.bankAccountIntermediary1.bankName);605 this.intermediary1AddressLine1Ctrl.patchValue(data.bankAccountIntermediary1.bankAddressLine1);606 this.intermediary1AddressLine2Ctrl.patchValue(data.bankAccountIntermediary1.bankAddressLine2);607 this.intermediary1AddressLine3Ctrl.patchValue(data.bankAccountIntermediary1.bankAddressLine3);608 this.intermediary1AddressLine4Ctrl.patchValue(data.bankAccountIntermediary1.bankAddressLine4);609 this.intermediary1ZipCodeCtrl.patchValue(data.bankAccountIntermediary1.bankZIPCode);610 this.intermediary1BankTypeCtrl.patchValue(this.bankTypeOptions.find(item => item.enumEntityId === data.bankTypeID));611 this.intermediary1BankNoCtrl.patchValue(data.bankAccountIntermediary1.bankKey);612 this.intermediary1CityCtrl.patchValue(data.bankAccountIntermediary1.bankCity);613 if (data.bankAccountIntermediary1.bankCountryKey) {614 this.intermediary1CountryCtrl.patchValue(this.bankIntermediary1Country.find(country => country.countryId === data.bankAccountIntermediary1.bankCountryKey).description);615 }616 this.intermediary1AccountNoCtrl.patchValue(data.bankAccountIntermediary1.accountNo);617 if (data.bankAccountIntermediary1.accountCCY) {618 this.intermediary1AccountCcyCtrl.patchValue(this.accountIntermediary1Currency.find(currency => currency.currencyCode === data.bankAccountIntermediary1.accountCCY).description);619 }620 this.intermediary1BankSWIFTCodeCtrl.patchValue(data.bankAccountIntermediary1.bankSwiftCode);621 this.bankName1Ctrl.patchValue(data.bankName);622 this.intermediary1BankBranchCtrl.patchValue(data.bankAccountIntermediary1.bankBranch);623 this.intermediary1FEDABACtrl.patchValue(data.bankAccountIntermediary1.fedaba);624 this.intermediary1ChipsCtrl.patchValue(data.bankAccountIntermediary1.chips);625 this.intermediary1BankNccTypeCtrl.patchValue(data.bankAccountIntermediary1.bankNccType);626 this.intermediary1NCCCtrl.patchValue(data.bankAccountIntermediary1.ncc);627 this.intermediary1NCSCtrl.patchValue(data.bankAccountIntermediary1.ncs);628 this.bankIntermediary1OrderCtrl.patchValue(this.bankIntermediary1OrderOptions[data.bankAccountIntermediary1.order - 1]);629 this.bankIntermediary2AccountDescriptionCtrl.patchValue(data.bankAccountIntermediary2.bankAccountDesc);630 this.intermediary2BankNameCtrl.patchValue(data.bankAccountIntermediary2.bankName);631 this.intermediary2AddressLine1Ctrl.patchValue(data.bankAccountIntermediary2.bankAddressLine1);632 this.intermediary2AddressLine2Ctrl.patchValue(data.bankAccountIntermediary2.bankAddressLine2);633 this.intermediary2AddressLine3Ctrl.patchValue(data.bankAccountIntermediary2.bankAddressLine3);634 this.intermediary2AddressLine4Ctrl.patchValue(data.bankAccountIntermediary2.bankAddressLine4);635 this.intermediary2ZipCodeCtrl.patchValue(data.bankAccountIntermediary2.bankZIPCode);636 this.intermediary2BankTypeCtrl.patchValue(this.bankTypeOptions.find(item => item.enumEntityId === data.bankTypeID));637 this.intermediary2BankNoCtrl.patchValue(data.bankAccountIntermediary2.bankKey);638 this.intermediary2CityCtrl.patchValue(data.bankAccountIntermediary2.bankCity);639 if (data.bankAccountIntermediary2.bankCountryKey) {640 this.intermediary2CountryCtrl.patchValue(this.bankIntermediary2Country.find(country => country.countryId === data.bankAccountIntermediary2.bankCountryKey).description);641 }642 this.intermediary2AccountNoCtrl.patchValue(data.bankAccountIntermediary2.accountNo);643 if (data.bankAccountIntermediary2.accountCCY) {644 this.intermediary2AccountCcyCtrl.patchValue(this.accountIntermediary2Currency.find(currency => currency.currencyCode === data.bankAccountIntermediary2.accountCCY).description);645 }646 this.intermediary2BankSWIFTCodeCtrl.patchValue(data.bankAccountIntermediary2.bankSwiftCode);647 this.bankName1Ctrl.patchValue(data.bankName);648 this.intermediary2BankBranchCtrl.patchValue(data.bankAccountIntermediary2.bankBranch);649 this.intermediary2FEDABACtrl.patchValue(data.bankAccountIntermediary2.fedaba);650 this.intermediary2ChipsCtrl.patchValue(data.bankAccountIntermediary2.chips);651 this.intermediary2BankNccTypeCtrl.patchValue(data.bankAccountIntermediary2.bankNccType);652 this.intermediary2NCCCtrl.patchValue(data.bankAccountIntermediary2.ncc);653 this.intermediary2NCSCtrl.patchValue(data.bankAccountIntermediary2.ncs);654 this.bankIntermediary2OrderCtrl.patchValue(this.bankIntermediary2OrderOptions[data.bankAccountIntermediary2.order - 1]);655 }656 if (deletionFlag = true) {657 this.newBankAccountForm = false;658 }659 }...

Full Screen

Full Screen

dataBank.js

Source:dataBank.js Github

copy

Full Screen

1export const dataBank = [2 {3 nama: 'BANK BRI',4 id: '002',5 },6 {7 nama: 'BANK EKSPOR INDONESIA',8 id: '003',9 },10 {11 nama: 'BANK MANDIRI',12 id: '008',13 },14 {15 nama: 'BANK BNI',16 id: '009',17 },18 {19 nama: 'BANK BNI SYARIAH',20 id: '427',21 },22 {23 nama: 'BANK DANAMON',24 id: '011',25 },26 {27 nama: 'PERMATA BANK',28 id: '013',29 },30 {31 nama: 'BANK BCA',32 id: '014',33 },34 {35 nama: 'BANK BII',36 id: '016',37 },38 {39 nama: 'BANK PANIN',40 id: '019',41 },42 {43 nama: 'BANK ARTA NIAGA KENCANA',44 id: '020',45 },46 {47 nama: 'BANK NIAGA',48 id: '022',49 },50 {51 nama: 'BANK BUANA IND',52 id: '023',53 },54 {55 nama: 'BANK LIPPO',56 id: '026',57 },58 {59 nama: 'BANK NISP',60 id: '028',61 },62 {63 nama: 'AMERICAN EXPRESS BANK LTD',64 id: '030',65 },66 {67 nama: 'CITIBANK N.A.',68 id: '031',69 },70 {71 nama: 'JP. MORGAN CHASE BANK, N.A.',72 id: '032',73 },74 {75 nama: 'BANK OF AMERICA, N.A',76 id: '033',77 },78 {79 nama: 'ING INDONESIA BANK',80 id: '034',81 },82 {83 nama: 'BANK MULTICOR TBK.',84 id: '036',85 },86 {87 nama: 'BANK ARTHA GRAHA',88 id: '037',89 },90 {91 nama: 'BANK CREDIT AGRICOLE INDOSUEZ',92 id: '039',93 },94 {95 nama: 'THE BANGKOK BANK COMP. LTD',96 id: '040',97 },98 {99 nama: 'THE HONGKONG & SHANGHAI B.C.',100 id: '041',101 },102 {103 nama: 'THE BANK OF TOKYO MITSUBISHI UFJ LTD',104 id: '042',105 },106 {107 nama: 'BANK SUMITOMO MITSUI INDONESIA',108 id: '045',109 },110 {111 nama: 'BANK DBS INDONESIA',112 id: '046',113 },114 {115 nama: 'BANK RESONA PERDANIA',116 id: '047',117 },118 {119 nama: 'BANK MIZUHO INDONESIA',120 id: '048',121 },122 {123 nama: 'STANDARD CHARTERED BANK',124 id: '050',125 },126 {127 nama: 'BANK ABN AMRO',128 id: '052',129 },130 {131 nama: 'BANK KEPPEL TATLEE BUANA',132 id: '053',133 },134 {135 nama: 'BANK CAPITAL INDONESIA, TBK.',136 id: '054',137 },138 {139 nama: 'BANK BNP PARIBAS INDONESIA',140 id: '057',141 },142 {143 nama: 'BANK UOB INDONESIA',144 id: '058',145 },146 {147 nama: 'KOREA EXCHANGE BANK DANAMON',148 id: '059',149 },150 {151 nama: 'RABOBANK INTERNASIONAL INDONESIA',152 id: '060',153 },154 {155 nama: 'ANZ PANIN BANK',156 id: '061',157 },158 {159 nama: 'DEUTSCHE BANK AG.',160 id: '067',161 },162 {163 nama: 'BANK WOORI INDONESIA',164 id: '068',165 },166 {167 nama: 'BANK OF CHINA LIMITED',168 id: '069',169 },170 {171 nama: 'BANK BUMI ARTA',172 id: '076',173 },174 {175 nama: 'BANK EKONOMI',176 id: '087',177 },178 {179 nama: 'BANK ANTARDAERAH',180 id: '088',181 },182 {183 nama: 'BANK HAGA',184 id: '089',185 },186 {187 nama: 'BANK IFI',188 id: '093',189 },190 {191 nama: 'BANK CENTURY, TBK.',192 id: '095',193 },194 {195 nama: 'BANK MAYAPADA',196 id: '097',197 },198 {199 nama: 'BANK JABAR',200 id: '110',201 },202 {203 nama: 'BANK DKI',204 id: '111',205 },206 {207 nama: 'BPD DIY',208 id: '112',209 },210 {211 nama: 'BANK JATENG',212 id: '113',213 },214 {215 nama: 'BANK JATIM',216 id: '114',217 },218 {219 nama: 'BPD JAMBI',220 id: '115',221 },222 {223 nama: 'BPD ACEH',224 id: '116',225 },226 {227 nama: 'BANK SUMUT',228 id: '117',229 },230 {231 nama: 'BANK NAGARI',232 id: '118',233 },234 {235 nama: 'BANK RIAU',236 id: '119',237 },238 {239 nama: 'BANK SUMSEL',240 id: '120',241 },242 {243 nama: 'BANK LAMPUNG',244 id: '121',245 },246 {247 nama: 'BPD KALSEL',248 id: '122',249 },250 {251 nama: 'BPD KALIMANTAN BARAT',252 id: '123',253 },254 {255 nama: 'BPD KALTIM',256 id: '124',257 },258 {259 nama: 'BPD KALTENG',260 id: '125',261 },262 {263 nama: 'BPD SULSEL',264 id: '126',265 },266 {267 nama: 'BANK SULUT',268 id: '127',269 },270 {271 nama: 'BPD NTB',272 id: '128',273 },274 {275 nama: 'BPD BALI',276 id: '129',277 },278 {279 nama: 'BANK NTT',280 id: '130',281 },282 {283 nama: 'BANK MALUKU',284 id: '131',285 },286 {287 nama: 'BPD PAPUA',288 id: '132',289 },290 {291 nama: 'BANK BENGKULU',292 id: '133',293 },294 {295 nama: 'BPD SULAWESI TENGAH',296 id: '134',297 },298 {299 nama: 'BANK SULTRA',300 id: '135',301 },302 {303 nama: 'BANK NUSANTARA PARAHYANGAN',304 id: '145',305 },306 {307 nama: 'BANK SWADESI',308 id: '146',309 },310 {311 nama: 'BANK MUAMALAT',312 id: '147',313 },314 {315 nama: 'BANK MESTIKA',316 id: '151',317 },318 {319 nama: 'BANK METRO EXPRESS',320 id: '152',321 },322 {323 nama: 'BANK SHINTA INDONESIA',324 id: '153',325 },326 {327 nama: 'BANK MASPION',328 id: '157',329 },330 {331 nama: 'BANK HAGAKITA',332 id: '159',333 },334 {335 nama: 'BANK GANESHA',336 id: '161',337 },338 {339 nama: 'BANK WINDU KENTJANA',340 id: '162',341 },342 {343 nama: 'HALIM INDONESIA BANK',344 id: '164',345 },346 {347 nama: 'BANK HARMONI INTERNATIONAL',348 id: '166',349 },350 {351 nama: 'BANK KESAWAN',352 id: '167',353 },354 {355 nama: 'BANK TABUNGAN NEGARA (PERSERO)',356 id: '200',357 },358 {359 nama: 'BANK HIMPUNAN SAUDARA 1906, TBK .',360 id: '212',361 },362 {363 nama: 'BANK TABUNGAN PENSIUNAN NASIONAL',364 id: '213',365 },366 {367 nama: 'BANK SWAGUNA',368 id: '405',369 },370 {371 nama: 'BANK JASA ARTA',372 id: '422',373 },374 {375 nama: 'BANK MEGA',376 id: '426',377 },378 {379 nama: 'BANK JASA JAKARTA',380 id: '427',381 },382 {383 nama: 'BANK BUKOPIN',384 id: '441',385 },386 {387 nama: 'BANK SYARIAH MANDIRI',388 id: '451',389 },390 {391 nama: 'BANK BISNIS INTERNASIONAL',392 id: '459',393 },394 {395 nama: 'BANK SRI PARTHA',396 id: '466',397 },398 {399 nama: 'BANK JASA JAKARTA',400 id: '472',401 },402 {403 nama: 'BANK BINTANG MANUNGGAL',404 id: '484',405 },406 {407 nama: 'BANK BUMIPUTERA',408 id: '485',409 },410 {411 nama: 'BANK YUDHA BHAKTI',412 id: '490',413 },414 {415 nama: 'BANK MITRANIAGA',416 id: '491',417 },418 {419 nama: 'BANK AGRO NIAGA',420 id: '494',421 },422 {423 nama: 'BANK INDOMONEX',424 id: '498',425 },426 {427 nama: 'BANK ROYAL INDONESIA',428 id: '501',429 },430 {431 nama: 'BANK ALFINDO',432 id: '503',433 },434 {435 nama: 'BANK SYARIAH MEGA',436 id: '506',437 },438 {439 nama: 'BANK INA PERDANA',440 id: '513',441 },442 {443 nama: 'BANK HARFA',444 id: '517',445 },446 {447 nama: 'PRIMA MASTER BANK',448 id: '520',449 },450 {451 nama: 'BANK PERSYARIKATAN INDONESIA',452 id: '521',453 },454 {455 nama: 'BANK AKITA',456 id: '525',457 },458 {459 nama: 'LIMAN INTERNATIONAL BANK',460 id: '526',461 },462 {463 nama: 'ANGLOMAS INTERNASIONAL BANK',464 id: '531',465 },466 {467 nama: 'BANK DIPO INTERNATIONAL',468 id: '523',469 },470 {471 nama: 'BANK KESEJAHTERAAN EKONOMI',472 id: '535',473 },474 {475 nama: 'BANK UIB',476 id: '536',477 },478 {479 nama: 'BANK ARTOS IND',480 id: '542',481 },482 {483 nama: 'BANK PURBA DANARTA',484 id: '547',485 },486 {487 nama: 'BANK MULTI ARTA SENTOSA',488 id: '548',489 },490 {491 nama: 'BANK MAYORA',492 id: '553',493 },494 {495 nama: 'BANK INDEX SELINDO',496 id: '555',497 },498 {499 nama: 'BANK VICTORIA INTERNATIONAL',500 id: '566',501 },502 {503 nama: 'BANK EKSEKUTIF',504 id: '558',505 },506 {507 nama: 'CENTRATAMA NASIONAL BANK',508 id: '559',509 },510 {511 nama: 'BANK FAMA INTERNASIONAL',512 id: '562',513 },514 {515 nama: 'BANK SINAR HARAPAN BALI',516 id: '564',517 },518 {519 nama: 'BANK HARDA',520 id: '567',521 },522 {523 nama: 'BANK FINCONESIA',524 id: '945',525 },526 {527 nama: 'BANK MERINCORP',528 id: '946',529 },530 {531 nama: 'BANK MAYBANK INDOCORP',532 id: '947',533 },534 {535 nama: 'BANK OCBC – INDONESIA',536 id: '948',537 },538 {539 nama: 'BANK CHINA TRUST INDONESIA',540 id: '949',541 },542 {543 nama: 'BANK COMMONWEALTH',544 id: '950',545 },546 {547 nama: 'BANK BJB SYARIAH',548 id: '425',549 },550 {551 nama: 'BPR KS (KARYAJATNIKA SEDAYA)',552 id: '688',553 },554 {555 nama: 'INDOSAT DOMPETKU',556 id: '789',557 },558 {559 nama: 'TELKOMSEL TCASH',560 id: '911',561 },562 {563 nama: 'LINKAJA',564 id: '911',565 },...

Full Screen

Full Screen

counterparty-capture-form-bank-account-tab.component.ts

Source:counterparty-capture-form-bank-account-tab.component.ts Github

copy

Full Screen

1import { Component, OnInit, ViewChild, Input } from '@angular/core';2import { CounterpartyBankAccountListComponent } from './bank-account-list/counterparty-bank-account-list.component';3import { CounterpartyBankAccountDetailsComponent } from './bank-account-details/counterparty-bank-account-details.component';4import { CounterpartyBankAccountDetails } from '../../../../../shared/entities/counterparty-bank-account-details.entity';5import { BankTypes } from '../../../../../shared/enums/bank-type.enum';6import { Status } from '../../../../../shared/enums/status.enum';7@Component({8 selector: 'atlas-counterparty-capture-form-bank-account-tab',9 templateUrl: './counterparty-capture-form-bank-account-tab.component.html',10 styleUrls: ['./counterparty-capture-form-bank-account-tab.component.scss']11})12export class CounterpartyCaptureFormBankAccountTabComponent implements OnInit {13 @ViewChild('bankAccountListComponent') bankAccountListComponent: CounterpartyBankAccountListComponent;14 @ViewChild('bankAccountDetailsComponent') bankAccountDetailsComponent: CounterpartyBankAccountDetailsComponent;15 bankAccountListLength: number;16 bankAccountDisplay: CounterpartyBankAccountDetails;17 bankAccountUpdate: CounterpartyBankAccountDetails;18 @Input() isViewMode: boolean = false;19 constructor() { }20 ngOnInit() {21 this.bankAccountListLength = this.bankAccountListComponent.bankAccountsData.length;22 }23 onSetBankAccountData(newBankAccount: CounterpartyBankAccountDetails) {24 if (newBankAccount) {25 newBankAccount.evalue = BankTypes[newBankAccount.bankTypeID]26 newBankAccount.stausValue = Status[newBankAccount.bankAccountStatusID]27 this.bankAccountListComponent.updatingBankAccountListOnEditing(newBankAccount);28 }29 }30 addNewBankAccount(addNewData: boolean) {31 if (addNewData) {32 this.bankAccountDetailsComponent.newBankAccountForm = true;33 this.bankAccountDetailsComponent.bankAccountFormGroup.reset();34 this.bankAccountDetailsComponent.bankAccountIntermediary1FormGroup.reset();35 this.bankAccountDetailsComponent.bankAccountIntermediary2FormGroup.reset();36 this.bankAccountDetailsComponent.bankAccountListLength = this.bankAccountListComponent.bankAccountsData.length;37 this.bankAccountDetailsComponent.bankAccountStatusCtrl.patchValue('1');38 }39 }40 setBankAccount(data: CounterpartyBankAccountDetails) {41 if (data) {42 this.bankAccountDisplay = data;43 this.bankAccountDetailsComponent.editBankAccount = true;44 this.bankAccountDetailsComponent.getBankAccountData(this.bankAccountDisplay, this.bankAccountListComponent.isDeleteBankAccountDisabled);45 this.bankAccountDetailsComponent.bankAccountListLength = this.bankAccountListComponent.bankAccountsData.length;46 }47 }48 onBankAccountDeleted(deletedBankAccount: CounterpartyBankAccountDetails) {49 if (deletedBankAccount) {50 this.bankAccountListComponent.deletingBankAccountListOnDeletion(deletedBankAccount);51 }52 }53 onCancelBankAccountData() {54 this.bankAccountListComponent.isAddNewBankAccountDisabled = false;55 this.bankAccountDetailsComponent.isNewBankAccount = true;56 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var bank = require('stryker-parent').bank;2var bank = require('stryker-child').bank;3var bank = require('stryker-parent').bank;4var bank = require('stryker-child').bank;5var bank = require('stryker-parent').bank;6var bank = require('stryker-child').bank;7var bank = require('stryker-parent').bank;8var bank = require('stryker-child').bank;9var bank = require('stryker-parent').bank;10var bank = require('stryker-child').bank;11var bank = require('stryker-parent').bank;12var bank = require('stryker-child').bank;13var bank = require('stryker-parent').bank;14var bank = require('stryker-child').bank;15var bank = require('stryker-parent').bank;16var bank = require('stryker-child').bank;17var bank = require('stryker-parent').bank;18var bank = require('stryker-child').bank;19var bank = require('stryker-parent').bank;20var bank = require('stryker-child').bank;

Full Screen

Using AI Code Generation

copy

Full Screen

1var bank = require('stryker-parent/bank');2bank.deposit(100);3var bank = require('stryker-child/bank');4bank.deposit(100);5module.exports = function(config) {6 config.set({7 });8};

Full Screen

Using AI Code Generation

copy

Full Screen

1const { bank } = require('stryker-parent');2const { bank } = require('stryker-parent');3const { bank } = require('stryker-parent');4const { bank } = require('stryker-parent');5const { bank } = require('stryker-parent');6const { bank } = require('stryker-parent');7const { bank } = require('stryker-parent');8const { bank } = require('stryker-parent');9const { bank } = require('stryker-parent');10const { bank } = require('stryker-parent');11const { bank } = require('stryker-parent');12const { bank } = require('stryker-parent');13const { bank } = require('stryker-parent');14const { bank } = require('stryker-parent');

Full Screen

Using AI Code Generation

copy

Full Screen

1var stryker = require('stryker-parent');2var bank = stryker.bank;3var result = bank(100, 20);4console.log(result);5var stryker = require('stryker-parent');6var bank = stryker.bank;7var result = bank(100, 20);8console.log(result);9var stryker = require('stryker-parent');10var bank = stryker.bank;11var result = bank(100, 20);12console.log(result);13var stryker = require('stryker-parent');14var bank = stryker.bank;15var result = bank(100, 20);16console.log(result);17var stryker = require('stryker-parent');18var bank = stryker.bank;19var result = bank(100, 20);20console.log(result);21var stryker = require('stryker-parent');22var bank = stryker.bank;23var result = bank(100, 20);24console.log(result);25var stryker = require('stryker-parent');26var bank = stryker.bank;27var result = bank(100, 20);28console.log(result);29var stryker = require('stryker-parent');30var bank = stryker.bank;31var result = bank(100, 20);32console.log(result);33var stryker = require('stryker-parent');34var bank = stryker.bank;35var result = bank(100, 20);36console.log(result);37var stryker = require('stryker-parent');38var bank = stryker.bank;39var result = bank(100, 20);40console.log(result);

Full Screen

Using AI Code Generation

copy

Full Screen

1var bank = require('stryker-parent');2var strykerBank = new bank();3strykerBank.deposit(100);4console.log(strykerBank.balance);5var bank = require('stryker-parent');6var strykerBank = new bank();7strykerBank.deposit(100);8console.log(strykerBank.balance);9var bank = require('stryker-parent');10var strykerBank = new bank();11strykerBank.deposit(100);12console.log(strykerBank.balance);13var bank = require('stryker-parent');14var strykerBank = new bank();15strykerBank.deposit(100);16console.log(strykerBank.balance);17var bank = require('stryker-parent');18var strykerBank = new bank();19strykerBank.deposit(100);20console.log(strykerBank.balance);21var bank = require('stryker-parent');22var strykerBank = new bank();23strykerBank.deposit(100);24console.log(strykerBank.balance);25var bank = require('stryker-parent');26var strykerBank = new bank();27strykerBank.deposit(100);28console.log(strykerBank.balance);29var bank = require('stryker-parent');30var strykerBank = new bank();31strykerBank.deposit(100);32console.log(strykerBank.balance);

Full Screen

Using AI Code Generation

copy

Full Screen

1let bank = require('stryker-parent');2let bankAccount = bank.account(1000);3bankAccount.deposit(100);4bankAccount.withdraw(100);5console.log(bankAccount.balance());6{7 "scripts": {8 },9 "dependencies": {10 }11}

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run stryker-parent automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful