| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/warningSummarya.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject warningSummarya(HttpServletRequest request) { |
| | |
| | | } |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/warningSummary_searcha.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject warningSummary_searcha(HttpServletRequest request) throws IOException { |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/realTimeWarninga.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject realTimeWarninga(HttpServletRequest request) { |
| | |
| | | String[] checkVal = checkValStr.split(","); |
| | | warningService.realinWarning_delete(checkVal); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/realTimeWarning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int realTimeWarning_deletea(HttpServletRequest request) { |
| | |
| | | public void realTimeWarning_deleteAll(HttpServletRequest request) { |
| | | warningService.realinWarning_deleteAll(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/realTimeWarning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int realTimeWarning_deleteAlla(HttpServletRequest request) { |
| | |
| | | } |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/realTimeWarning_searcha.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject realTimeWarning_searcha(HttpServletRequest request) throws IOException { |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarninga.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject historicalWarninga(HttpServletRequest request) { |
| | |
| | | String[] checkVal = checkValStr.split(","); |
| | | warningService.historicalWarning_delete(checkVal); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int historicalWarning_deletea(HttpServletRequest request) { |
| | |
| | | int aaa = warningService.historicalWarning_deletea(checkVal); |
| | | return aaa; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/Warning_delete.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void Warning_delete(HttpServletRequest request) { |
| | |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/Warning_deletea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int Warning_deletea(HttpServletRequest request) { |
| | |
| | | public void historicalWarning_deleteAll(HttpServletRequest request) { |
| | | warningService.historicalWarning_deleteAll(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int historicalWarning_deleteAlla(HttpServletRequest request) { |
| | | int aaa = warningService.historicalWarning_deleteAlla(); |
| | | return aaa; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/Warning_deleteAll.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void Warning_deleteAll(HttpServletRequest request) { |
| | |
| | | warningService.Warning_deletefenlei(input); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/Warning_deleteAlla.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int Warning_deleteAlla(HttpServletRequest request) { |
| | |
| | | json.put("curPage", curPage); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_searcha.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public JSONObject historicalWarning_searcha(HttpServletRequest request) { |
| | |
| | | } |
| | | return reList; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_handle.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void historicalWarning_handle(HttpServletRequest request) { |
| | |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_handlea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int historicalWarning_handlea(HttpServletRequest request) { |
| | |
| | | } |
| | | return aaa; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_handleAll.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void historicalWarning_handleAll(HttpServletRequest request) { |
| | |
| | | String xieyi = "BSTOCS1,DELLWARNALL,END"; |
| | | Udp_Out.udp_to_cs(xieyi); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/historicalWarning_handleAlla.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public int historicalWarning_handleAlla(HttpServletRequest request) { |
| | |
| | | String[] checkVal = { realinwarning.getTagid() }; |
| | | warningService.realinWarning_delete(checkVal); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shaileixing.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String shaileixing(HttpServletRequest request) { |
| | |
| | | json.put("dataList", labelManagementList); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shaizhuangtai.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String shaizhuangtai(HttpServletRequest request) { |
| | |
| | | json.put("dataList", labelManagementList); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/shuangshai.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String shuangshai(HttpServletRequest request) { |
| | |
| | | json.put("dataList", labelManagementList); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/warningexport.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String warningexport(HttpServletRequest request, HttpServletResponse response) { |
| | |
| | | } |
| | | return fileName; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/permissionManagement.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String permissionManagement(HttpServletRequest request) { |
| | | String toPage = "forward:/hxzk/warning/permissionManagement.jsp"; |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/permissionManagement_page.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String permissionManagement_page(HttpServletRequest request) { |
| | |
| | | json.put("curPage", page); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/permissionManagementupdate.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void permissionManagementupdate(HttpServletRequest request) { |
| | |
| | | // Udp_Out.udp_to_cs(xieyi); |
| | | // } |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "findidpermission.do", method = {RequestMethod.POST,RequestMethod.GET}) |
| | | public String findidpermission(HttpServletRequest request) { |
| | |
| | | json.put("dataList", tag); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "/permissionManagement2.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String permissionManagement2(HttpServletRequest request) { |
| | | String toPage = "forward:/hxzk/warning/permissionManagement2.jsp"; |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "deletepermission.do", method= {RequestMethod.POST,RequestMethod.GET}) |
| | | public void deletepermission(HttpServletRequest request) { |
| | | String checkValStr = request.getParameter("checkVal"); |
| | |
| | | warningService.Warning_deleteper(checkVal[i]); |
| | | } |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value = "deletepermission2.do", method= {RequestMethod.POST,RequestMethod.GET}) |
| | | public void deletepermission2(HttpServletRequest request) { |
| | | warningService.Warning_deleteper2(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/permission_page.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String permission_page(HttpServletRequest request) { |
| | |
| | | json.put("curPage", page); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "findidpermission2.do", method = {RequestMethod.POST,RequestMethod.GET}) |
| | | public String findidpermission2(HttpServletRequest request) { |
| | |
| | | json.put("dataList", tag); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value="tomessagem.do",method= {RequestMethod.POST,RequestMethod.GET}) |
| | | public String tomessagem(HttpServletRequest request) { |
| | | String toPage = "forward:/hxzk/label/messageManagement.jsp"; |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/message_page.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String message_page(HttpServletRequest request) { |
| | |
| | | json.put("curPage", page); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/message_export.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String message_export(HttpServletRequest request, HttpServletResponse response) { |
| | |
| | | } |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/message_delete.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void message_delete(HttpServletRequest request) { |
| | |
| | | String[] checkVal = checkValStr.split(","); |
| | | warningService.message_delete(checkVal); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/message_deletea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void message_deletea(HttpServletRequest request) { |
| | | warningService.message_deletea(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/message_search.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String message_search(HttpServletRequest request) throws IOException { |
| | |
| | | } |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @RequestMapping(value="tolixian.do",method= {RequestMethod.POST,RequestMethod.GET}) |
| | | public String tolixian(HttpServletRequest request) { |
| | | String toPage = "forward:/hxzk/label/lixianManagement.jsp"; |
| | |
| | | request.setAttribute("curPage", curPage); |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/lixian_page.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String lixian_page(HttpServletRequest request) { |
| | |
| | | json.put("curPage", page); |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/lixian_export.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String lixian_export(HttpServletRequest request, HttpServletResponse response) { |
| | |
| | | } |
| | | return toPage; |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/lixian_delete.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void lixian_delete(HttpServletRequest request) { |
| | |
| | | String[] checkVal = checkValStr.split(","); |
| | | warningService.lixian_delete(checkVal); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/lixian_deletea.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public void lixian_deletea(HttpServletRequest request) { |
| | | warningService.lixian_deletea(); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |
| | | @RequestMapping(value = "/lixian_search.do", method = { RequestMethod.POST, RequestMethod.GET }) |
| | | public String lixian_search(HttpServletRequest request) throws IOException { |
| | |
| | | } |
| | | return json.toString(); |
| | | } |
| | | |
| | | |
| | | // 作业信息 导出表格 对象转数组 |
| | | public static List<Object[]> objectToArray_job(List<tb_warning> history_powerList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < history_powerList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_warning history_power = (tb_warning) history_powerList.get(i); |
| | | words.add(history_power.getId() + ""); |
| | | words.add(history_power.getBaoliu2()); |
| | | words.add(history_power.getBaoliu3()); |
| | | words.add(history_power.getObjectid()); |
| | | words.add(history_power.getTime()); |
| | | words.add(history_power.getType()); |
| | | words.add(history_power.getBaoliu1()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | |
| | | public static List<Object[]> objectToArray_warningSummary2(List<tb_message_history> tb_warningList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < tb_warningList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_message_history warn = tb_warningList.get(i); |
| | | words.add(warn.getId() + ""); |
| | | words.add(warn.getTagid()); |
| | | words.add(warn.getBaoliu1()); |
| | | words.add(warn.getUsername()); |
| | | words.add(warn.getInfo()); |
| | | words.add(warn.getSendtime()); |
| | | words.add(warn.getReplytime()); |
| | | words.add(warn.getBaoliu2()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | |
| | | public static List<Object[]> objectToArray_warningSummary3(List<tb_lixianrecord> tb_warningList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < tb_warningList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_lixianrecord warn = tb_warningList.get(i); |
| | | words.add(warn.getId() + ""); |
| | | words.add(warn.getTagid()); |
| | | words.add(warn.getName()); |
| | | words.add(warn.getBumen()); |
| | | words.add(warn.getPhone()); |
| | | words.add(warn.getTime()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | public static List<Object[]> objectToArray_job(List<tb_warning> history_powerList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < history_powerList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_warning history_power = (tb_warning) history_powerList.get(i); |
| | | words.add(history_power.getId() + ""); |
| | | words.add(history_power.getBaoliu2()); |
| | | words.add(history_power.getBaoliu3()); |
| | | words.add(history_power.getObjectid()); |
| | | words.add(history_power.getTime()); |
| | | words.add(history_power.getType()); |
| | | words.add(history_power.getBaoliu1()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | |
| | | public static List<Object[]> objectToArray_warningSummary2(List<tb_message_history> tb_warningList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < tb_warningList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_message_history warn = tb_warningList.get(i); |
| | | words.add(warn.getId() + ""); |
| | | words.add(warn.getTagid()); |
| | | words.add(warn.getBaoliu1()); |
| | | words.add(warn.getUsername()); |
| | | words.add(warn.getInfo()); |
| | | words.add(warn.getSendtime()); |
| | | words.add(warn.getReplytime()); |
| | | words.add(warn.getBaoliu2()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | |
| | | public static List<Object[]> objectToArray_warningSummary3(List<tb_lixianrecord> tb_warningList) { |
| | | List<Object[]> reList = new ArrayList<>(); |
| | | for (int i = 0; i < tb_warningList.size(); i++) { |
| | | List<String> words = new ArrayList<String>(); |
| | | tb_lixianrecord warn = tb_warningList.get(i); |
| | | words.add(warn.getId() + ""); |
| | | words.add(warn.getTagid()); |
| | | words.add(warn.getName()); |
| | | words.add(warn.getBumen()); |
| | | words.add(warn.getPhone()); |
| | | words.add(warn.getTime()); |
| | | String[] array = words.toArray(new String[0]); |
| | | reList.add(array); |
| | | } |
| | | return reList; |
| | | } |
| | | } |