Ejemplo n.º 1
0
  @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";
  }
Ejemplo n.º 2
0
 @RequestMapping(value = "/lucrclinic", method = RequestMethod.GET)
 public String showLucrClinicPage(Model map) {
   map.addAttribute("lucrclinic", medClinicService.getLucrativeClinic());
   return "lucrclinic";
 }
Ejemplo n.º 3
0
 @RequestMapping(value = "/lucroffice", method = RequestMethod.GET)
 public String showLucrClinicPage(@ModelAttribute MedClinic clinic, Model map) {
   map.addAttribute("lucroffice", medClinicService.getLucrativeOffice(clinic));
   return "lucroffice";
 }
Ejemplo n.º 4
0
 @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";
 }
Ejemplo n.º 6
0
 @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";
 }
Ejemplo n.º 10
0
 @RequestMapping(value = "/getbestclinic")
 public String getBestMedClinic(Model model) {
   model.addAttribute("bestclinic", medClinicService.getBestMedClinic());
   return "bestclinic";
 }
Ejemplo n.º 11
0
 @RequestMapping(value = "/getbestoffice")
 public String getBestOffice(@ModelAttribute MedClinic medClinic, Model model) {
   model.addAttribute("bestoffice", medClinicService.getBestOffice(medClinic));
   return "bestoffice";
 }