Search in sources :

Example 1 with FamilyDetailDto

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);
}
Also used : ArrayList(java.util.ArrayList) ClientFamilyDetailsDto(org.mifos.dto.domain.ClientFamilyDetailsDto) ClientFamilyDetailDto(org.mifos.dto.screen.ClientFamilyDetailDto) FamilyDetailDto(org.mifos.dto.domain.FamilyDetailDto) ValueListElement(org.mifos.dto.domain.ValueListElement)

Aggregations

ArrayList (java.util.ArrayList)1 ClientFamilyDetailsDto (org.mifos.dto.domain.ClientFamilyDetailsDto)1 FamilyDetailDto (org.mifos.dto.domain.FamilyDetailDto)1 ValueListElement (org.mifos.dto.domain.ValueListElement)1 ClientFamilyDetailDto (org.mifos.dto.screen.ClientFamilyDetailDto)1