Package org.sis.ancmessaging.dto

Examples of org.sis.ancmessaging.dto.GottDTO


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


    HealthPost healthPost = healthPostService.findById(postId);
    healthPostService.addGottToHp(gott, healthPost);
    List<Gott> gotts = healthPostService.getAllGottsForHealthPost(postId);
    List<GottDTO> gottDTOs = new ArrayList<GottDTO>();
    for (Gott g : gotts) {
      GottDTO gDTO = new GottDTO();
      gDTO.setGottId(g.getGottId());
      gDTO.setGottName(g.getGottName());
      gDTO.setPostId(postId);
      gottDTOs.add(gDTO);
    }
    return gottDTOs;
  }
View Full Code Here

    //HealthPost healthPost = healthPostService.findById(postId);
    List<Gott> gotts = healthPostService.getGottsForHealthPost(postId, rows, page, sb);
   
    List<GottDTO> gottDTOs = new ArrayList<GottDTO>();
    for (Gott gott : gotts) {
      GottDTO gDTO = new GottDTO();
      gDTO.setGottId(gott.getGottId());
      gDTO.setGottName(gott.getGottName());
      gDTO.setPostId(postId);
      gottDTOs.add(gDTO);
    }
    response.setPage(String.valueOf(page));
    response.setRows(gottDTOs);
    response.setTotal(sb.toString());
View Full Code Here

  public @ResponseBody List<GottDTO> fetchGottsAjax(@RequestParam("postId") int postId) {
    HealthPost healthPost = healthPostService.findById(postId);
    List<Gott> gotts = healthPost.getGotts();
    List<GottDTO> gottDTOs = new ArrayList<GottDTO>();
    for (Gott gott : gotts) {
      GottDTO gDTO = new GottDTO();
      gDTO.setGottId(gott.getGottId());
      gDTO.setGottName(gott.getGottName());
      gDTO.setPostId(postId);
      gottDTOs.add(gDTO);
    }
   
    return gottDTOs;
  }
View Full Code Here

TOP

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

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.