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; }
@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; }