Package org.sis.ancmessaging.dto

Examples of org.sis.ancmessaging.dto.HealthCenterDTO


  public @ResponseBody CustomHealthCenterResponse fetchHealthCenters() {
    CustomHealthCenterResponse response = new CustomHealthCenterResponse();
    List<HealthCenter> healthCenters = healthCenterService.getAllHealthCenters();
    List<HealthCenterDTO> hcs = new ArrayList<HealthCenterDTO>();
    for (HealthCenter hc : healthCenters) {
      HealthCenterDTO dto = new HealthCenterDTO();
      dto.setCenterId(hc.getCenterId());
      dto.setCenterName(hc.getCenterName());
      dto.setCenterPhone(hc.getCenterPhone());
      hcs.add(dto);
    }
    response.setPage("1");
    response.setRows(hcs);
    response.setTotal("10");
View Full Code Here

TOP

Related Classes of org.sis.ancmessaging.dto.HealthCenterDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.