@RequestMapping(value = "/supplier", method = RequestMethod.GET) public String showSupplier( @ModelAttribute MedClinic clinic, Provider provider, @RequestParam("providername") String providername, Model map) { provider.setName(providername); Date beginDate = medClinicService.getLastSending(provider, clinic); map.addAttribute("supplier", beginDate); return "supplier"; }
@RequestMapping(value = "/lucrclinic", method = RequestMethod.GET) public String showLucrClinicPage(Model map) { map.addAttribute("lucrclinic", medClinicService.getLucrativeClinic()); return "lucrclinic"; }
@RequestMapping(value = "/lucroffice", method = RequestMethod.GET) public String showLucrClinicPage(@ModelAttribute MedClinic clinic, Model map) { map.addAttribute("lucroffice", medClinicService.getLucrativeOffice(clinic)); return "lucroffice"; }
@RequestMapping(value = "/officescheck", method = RequestMethod.GET) public String showMedClinicCheck( @ModelAttribute MedClinic clinic, @ModelAttribute Office office, Model map) { map.addAttribute("officescheck", medClinicService.getOfficeCheck(clinic, office)); return "officescheck"; }
@RequestMapping(value = "/getlastsending") public String getLastSending( @ModelAttribute MedClinic medClinic, @ModelAttribute Provider provider, Model model) { model.addAttribute("lastsending", medClinicService.getLastSending(medClinic, provider)); return "lastsending"; }
@RequestMapping(value = "/cliniccheck", method = RequestMethod.GET) public String showMedClinicCheck(@ModelAttribute MedClinic clinic, Model map) { map.addAttribute("cliniccheck", medClinicService.getClinicCheck(clinic)); return "cliniccheck"; }
@RequestMapping(value = "/getsumofficecheck") public String getSumOfficeCheck(@ModelAttribute MedClinic medClinic, Model model) { model.addAttribute("salary", medClinicService.getSumOfficeCheck(medClinic)); return "sumofficecheck"; }
@RequestMapping(value = "/getaveragecheck") public String getAverageCheck( @ModelAttribute MedClinic medClinic, @ModelAttribute Office office, Model model) { model.addAttribute("averagecheck", medClinicService.getAverageCheck(medClinic, office)); return "averagecheck"; }
@RequestMapping(value = "/getsalary") public String getSalary(@ModelAttribute MedClinic medClinic, Model model) { model.addAttribute("salary", medClinicService.getSalary(medClinic)); return "salary"; }
@RequestMapping(value = "/getbestclinic") public String getBestMedClinic(Model model) { model.addAttribute("bestclinic", medClinicService.getBestMedClinic()); return "bestclinic"; }
@RequestMapping(value = "/getbestoffice") public String getBestOffice(@ModelAttribute MedClinic medClinic, Model model) { model.addAttribute("bestoffice", medClinicService.getBestOffice(medClinic)); return "bestoffice"; }