/** * 违纪信息撤销 * * @param mapping * @param form * @param request * @param response * @return */ public ActionForward updateCXXs0709( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String zdbh = request.getParameter("zdbh32"); String cfrq = request.getParameter("cfrq"); String cfwh = request.getParameter("cfwh"); String cfyy = request.getParameter("cfyy"); String ssjg = request.getParameter("ssjg"); String cfcxwh = request.getParameter("cfcxwh"); String cfcxrq = request.getParameter("cfcxrq"); User user = (User) (request.getSession().getAttribute(GlobalNames.USER_SESSION_KEY)); Xs0709 xs0709 = this.getIWjglService().findXs0709ByZdbh(zdbh); xs0709.setCfrq(cfrq); xs0709.setCfwh(cfwh); xs0709.setCfyy(cfyy); xs0709.setCxr(this.getIFdyxxglService().findJg0101ByJgh(user.getAccount())); xs0709.setSsjg(ssjg); xs0709.setCfcxwh(cfcxwh); xs0709.setCfcxrq(cfcxrq); this.getIWjglService().updateXs0709(xs0709, request); if (cfcxwh != null && !"".equals(cfcxwh)) { this.writeJsMessage( response, "alert('处分撤销成功!');window.parent.returnValue='ok';window.close();"); } else { this.writeJsMessage( response, "alert('处分审批成功!');window.parent.returnValue='ok';window.close();"); } return null; }
/** * 保存违纪处分信息 * * @param mapping * @param form * @param request * @param response * @return */ public ActionForward saveXs0709( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { String xsbh = request.getParameter("xsbh"); String wjrq = request.getParameter("wjrq"); String wjjk = request.getParameter("wjjk"); String gycfdw = request.getParameter("gycfdw"); String szzdWjlb = request.getParameter("zzdWjlb"); String szzdCfmc = request.getParameter("zzdCfmc"); String cfyy = request.getParameter("cfyy"); String cfrq = request.getParameter("cfrq"); String cfwh = request.getParameter("cfwh"); String bz = request.getParameter("bz"); User user = (User) (request.getSession().getAttribute(GlobalNames.USER_SESSION_KEY)); String[] xsbhs = xsbh.split(","); for (int i = 0; i < xsbhs.length; i++) { Xs0709 xs0709 = new Xs0709(); xs0709.setXs0101(this.getPjpytjServiceImpl().findXs0101ByXsbh(xsbhs[i])); if (szzdWjlb != null && !"".equals(szzdWjlb)) { xs0709.setZzdWjlb( (ZzdWjlb) ZzdSingleton.getInstance(request.getSession().getServletContext()) .getZdByNameKey("ZzdWjlb", szzdWjlb)); } if (szzdCfmc != null && !"".equals(szzdCfmc)) { xs0709.setZzdCfmc( (ZzdCfmc) ZzdSingleton.getInstance(request.getSession().getServletContext()) .getZdByNameKey("ZzdCfmc", szzdCfmc)); } if (wjjk != null && !"".equals(wjjk)) xs0709.setWjjk(wjjk); if (wjrq != null && !"".equals(wjrq)) xs0709.setWjrq(wjrq); if (gycfdw != null && !"".equals(gycfdw)) xs0709.setGycfdw(gycfdw); if (cfyy != null && !"".equals(cfyy)) xs0709.setCfyy(cfyy); if (bz != null && !"".equals(bz)) xs0709.setBz(bz); if (cfrq != null && !"".equals(cfrq)) xs0709.setCfrq(cfrq); if (cfwh != null && !"".equals(cfwh)) { xs0709.setCfwh(cfwh); xs0709.setShr(this.getIFdyxxglService().findJg0101ByJgh(user.getAccount())); } this.getIWjglService().saveXs0709(xs0709, request); } this.writeJsMessage(response, "alert('数据保存成功');window.parent.returnValue='ok';window.close();"); return null; }