Exemplo n.º 1
0
  private ModelAndView createTMAFormView(Long wsId, Long dasId) {
    ModelAndView mav = new ModelAndView("admin/sda/hidrologi/tinggi_muka_air/form_tma");

    mav.addObject("ws", wilayahSungaiService.findById(wsId));
    mav.addObject("das", dasService.findById(dasId));

    mav.addObject("yearLookup", getYearLookup());
    return mav;
  }
Exemplo n.º 2
0
  @RequestMapping(value = "list/{wsId}.html")
  public ModelAndView list(@PathVariable("wsId") Long wsId) {
    ModelAndView mav = new ModelAndView("admin/sda/hidrologi/tinggi_muka_air/list_das");

    WilayahSungai ws = wilayahSungaiService.findById(wsId);
    mav.addObject("ws", ws);

    mav.addObject("listDas", dasService.findByWilayahSungai(ws));
    return mav;
  }