use of org.mifos.dto.domain.FamilyDetailDto in project head by mifos.
the class ClientServiceFacadeWebTier method retrieveClientFamilyDetails.
@Override
public ClientFamilyDetailsDto retrieveClientFamilyDetails() {
List<ValueListElement> genders = new ArrayList<ValueListElement>();
List<ValueListElement> livingStatus = new ArrayList<ValueListElement>();
List<FamilyDetailDto> familyDetails = new ArrayList<FamilyDetailDto>();
boolean familyDetailsRequired = ClientRules.isFamilyDetailsRequired();
if (familyDetailsRequired) {
genders = this.customerDao.retrieveGenders();
livingStatus = this.customerDao.retrieveLivingStatus();
familyDetails.add(new FamilyDetailDto());
}
return new ClientFamilyDetailsDto(familyDetailsRequired, familyDetails, genders, livingStatus);
}
Aggregations