use of org.mifos.dto.screen.ListElement in project head by mifos.
the class LoanProductFormBeanAssembler method populateApplicableFeeMultiSelectList.
private void populateApplicableFeeMultiSelectList(LoanProductFormDto loanProductRefData, LoanProductFormBean loanProductFormBean) {
Map<String, String> applicableFeeOptions = new LinkedHashMap<String, String>();
for (ListElement fee : loanProductRefData.getLoanFees()) {
applicableFeeOptions.put(fee.getId().toString(), fee.getName());
}
loanProductFormBean.setApplicableFeeOptions(applicableFeeOptions);
}
use of org.mifos.dto.screen.ListElement in project head by mifos.
the class GeneralProductBeanAssembler method populateCategoryDropdown.
private void populateCategoryDropdown(List<ListElement> options, GeneralProductBean formBean) {
Map<String, String> categoryOptions = new LinkedHashMap<String, String>();
for (ListElement category : options) {
categoryOptions.put(category.getId().toString(), category.getName());
}
formBean.setCategoryOptions(categoryOptions);
if (options.size() == 1) {
formBean.setSelectedCategory(options.get(0).getId().toString());
}
}
use of org.mifos.dto.screen.ListElement in project head by mifos.
the class GeneralProductBeanAssembler method populateStatusDropdown.
private void populateStatusDropdown(List<ListElement> options, GeneralProductBean formBean) {
Map<String, String> statusOptions = new LinkedHashMap<String, String>();
for (ListElement status : options) {
statusOptions.put(status.getId().toString(), status.getName());
}
formBean.setStatusOptions(statusOptions);
}
use of org.mifos.dto.screen.ListElement in project head by mifos.
the class GeneralProductBeanAssembler method populateApplicableForDropdown.
private void populateApplicableForDropdown(List<ListElement> options, GeneralProductBean formBean) {
Map<String, String> applicableForOptions = new LinkedHashMap<String, String>();
for (ListElement customerType : options) {
applicableForOptions.put(customerType.getId().toString(), customerType.getName());
}
formBean.setApplicableForOptions(applicableForOptions);
}
use of org.mifos.dto.screen.ListElement in project head by mifos.
the class SavingsProductFormBeanAssembler method populateAppliesToDropdown.
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);
}
Aggregations