Package org.sis.ancmessaging.dto

Examples of org.sis.ancmessaging.dto.TransporterDTO


 
  @RequestMapping(method = RequestMethod.GET)
  public String getMainPage(Model model) {
    List<HealthPost> healthPosts = healthPostService.getAll();
    model.addAttribute("healthPosts", healthPosts);
    TransporterDTO transporterDTO = new TransporterDTO();
    model.addAttribute("transporterDTO", transporterDTO);
    return "transporter";
  }
View Full Code Here


    StringBuilder sb = new StringBuilder();
   
    List<Transporter> transporters = healthPostService.getTransportersForHealthPost(postId, rows, page, sb);
    List<TransporterDTO> transporterDTOs = new ArrayList<TransporterDTO>();
    for (Transporter transporter : transporters) {
      TransporterDTO tDTO = new TransporterDTO();
      tDTO.setTransporterId(transporter.getTransporterId());
      tDTO.setFullName(transporter.getFullName());
      tDTO.setPhoneNumber(transporter.getPhoneNumber());
      tDTO.setPostId(postId);
      transporterDTOs.add(tDTO);
    }
    response.setPage(String.valueOf(page));
    response.setRows(transporterDTOs);
    response.setTotal(sb.toString());
View Full Code Here

TOP

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

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.