public String delete() throws Exception { HttpServletRequest request = Struts2Utils.getRequest(); String[] ids = request.getParameter("id").split(","); for (int i = 0; i < ids.length; i++) { chartoptionService.deleteChartoption(ids[i]); } return "delete"; }
public String update() throws Exception { HttpServletRequest request = Struts2Utils.getRequest(); String id = request.getParameter("id"); String fycname = request.getParameter("fycname"); Short oorder = Short.valueOf(request.getParameter("oorder")); chartoption.setFycname(fycname); chartoption.setOorder(oorder); chartoptionService.saveChartoption(chartoption); return "update"; }
public String execute() throws Exception { HttpServletRequest req = Struts2Utils.getRequest(); HttpServletResponse resp = Struts2Utils.getResponse(); String runactkey = req.getParameter("runactkey"); DemandManager demandManager = workFlowEngine.getDemandManager(); List opinions = demandManager.getFlowTraceOpinion(runactkey); data.put("opinions", opinions); return "flowtracesopinion"; }