private void populatePrincipalGlCodesDropdown( SavingsProductFormDto referenceData, SavingsProductFormBean formBean) { Map<String, String> principalGeneralLedgerOptions = new LinkedHashMap<String, String>(); for (ListElement glCode : referenceData.getPrincipalGlCodes()) { principalGeneralLedgerOptions.put(glCode.getId().toString(), glCode.getName()); } formBean.setPrincipalGeneralLedgerOptions(principalGeneralLedgerOptions); }
private void populateDepositTypesDropdown( SavingsProductFormDto referenceData, SavingsProductFormBean formBean) { Map<String, String> depositTypes = new LinkedHashMap<String, String>(); for (ListElement option : referenceData.getDepositTypes()) { depositTypes.put(option.getId().toString(), option.getName()); } formBean.setDepositTypeOptions(depositTypes); }
private void populateInterestBalanceDropdown( SavingsProductFormDto referenceData, SavingsProductFormBean formBean) { Map<String, String> interestBalanceTypes = new LinkedHashMap<String, String>(); for (ListElement option : referenceData.getInterestBalanceTypes()) { interestBalanceTypes.put(option.getId().toString(), option.getName()); } formBean.setInterestCaluclationOptions(interestBalanceTypes); }
private void populateAppliesToDropdown( SavingsProductFormDto referenceData, SavingsProductFormBean formBean) { Map<String, String> groupSavingsApproachOptions = new LinkedHashMap<String, String>(); for (ListElement option : referenceData.getDespositAmountAppliesTo()) { groupSavingsApproachOptions.put(option.getId().toString(), option.getName()); } formBean.setGroupSavingsApproachOptions(groupSavingsApproachOptions); }
private void populateFrequencyPeriodDropdown( SavingsProductFormDto referenceData, SavingsProductFormBean formBean) { Map<String, String> frequencyPeriods = new LinkedHashMap<String, String>(); for (ListElement option : referenceData.getInterestTimePeriodTypes()) { frequencyPeriods.put(option.getId().toString(), option.getName()); } formBean.setFrequencyPeriodOptions(frequencyPeriods); }