/** * 保存参数信息 * * @param * @return */ public ActionForward saveParamItem( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CommonActionForm aForm = (CommonActionForm) form; Dto inDto = aForm.getParamAsDto(request); paramService.saveParamItem(inDto); setOkTipMsg("参数数据新增成功", response); return mapping.findForward(null); }
/** * 删除参数信息 * * @param * @return */ public ActionForward deleteParamItems( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String strChecked = request.getParameter("strChecked"); Dto inDto = new BaseDto(); inDto.put("strChecked", strChecked); paramService.deleteParamItem(inDto); setOkTipMsg("参数数据删除成功", response); return mapping.findForward(null); }
/** * 修改参数信息 * * @param * @return */ public ActionForward updateParamItem( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CommonActionForm aForm = (CommonActionForm) form; Dto inDto = aForm.getParamAsDto(request); paramService.updateParamItem(inDto); Dto outDto = new BaseDto(); outDto.put("success", new Boolean(true)); outDto.put("msg", "参数数据修改成功!"); write(outDto.toJson(), response); return mapping.findForward(null); }