You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
2.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package in.gov.chennaicorporation.gccoffice.school.Controller;
  2. import org.springframework.stereotype.Controller;
  3. import org.springframework.ui.Model;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import in.gov.chennaicorporation.gccoffice.service.LoginUserInfo;
  7. @Controller("schoolcontroller")
  8. @RequestMapping("/gcc/school")
  9. public class MainController {
  10. @GetMapping("/otherdetails")
  11. public String otherdetails(Model model) {
  12. return "modules/school/otherdetails";
  13. }
  14. @GetMapping("/schooldetails")
  15. public String viewschool(Model model) {
  16. return "modules/school/schooldetails";
  17. }
  18. @GetMapping("/schoolmodule")
  19. public String viewmodule(Model model) {
  20. String loginUserId = LoginUserInfo.getLoginUserId();
  21. model.addAttribute("user_id", loginUserId);
  22. System.out.println("loginUserId..........." + loginUserId);
  23. return "modules/school/dashboard";
  24. }
  25. @GetMapping("/staffdetails")
  26. public String staffdetails(Model model) {
  27. return "modules/school/staffdetails";
  28. }
  29. @GetMapping("/roomassets")
  30. public String roomassets(Model model) {
  31. return "modules/school/roomassets";
  32. }
  33. @GetMapping("/assetmanagement")
  34. public String assetmanagement(Model model) {
  35. return "modules/school/assetmanagement";
  36. }
  37. // @GetMapping("/itassets")
  38. // public String itassets(Model model) {
  39. //
  40. // System.out.println("okokokok===");
  41. //
  42. // return "modules/school/itassets";
  43. // }
  44. @GetMapping("/studentdetails")
  45. public String studentdetails(Model model) {
  46. return "modules/school/studentdetails";
  47. }
  48. @GetMapping("/building")
  49. public String buildings(Model model) {
  50. return "modules/school/building";
  51. }
  52. @GetMapping("/room")
  53. public String roomlist(Model model) {
  54. return "modules/school/room";
  55. }
  56. @GetMapping("/playground")
  57. public String playground(Model model) {
  58. return "modules/school/playground";
  59. }
  60. @GetMapping("/drinkingwater")
  61. public String drinkingwater(Model model) {
  62. return "modules/school/drinkingwater";
  63. }
  64. @GetMapping("/toilets")
  65. public String toilet(Model model) {
  66. return "modules/school/toilets";
  67. }
  68. // @GetMapping("/electricalassets")
  69. // public String electricalassets(Model model) {
  70. //
  71. // return "modules/school/electricalassets";
  72. // }
  73. //
  74. // @GetMapping("/furnitureassets")
  75. // public String furnitureassets(Model model) {
  76. //
  77. // return "modules/school/furnitureassets";
  78. // }
  79. @GetMapping("/kitchen")
  80. public String kitchen(Model model) {
  81. return "modules/school/kitchen";
  82. }
  83. @GetMapping("/addelectricalasset")
  84. public String addelectricalasset(Model model) {
  85. return "modules/school/addelectricalasset";
  86. }
  87. @GetMapping("/addfurnitureasset")
  88. public String addfurnitureasset(Model model) {
  89. return "modules/school/addfurnitureasset";
  90. }
  91. @GetMapping("/reports")
  92. public String reportpage(Model model) {
  93. return "modules/school/reports";
  94. }
  95. }