// 扣分情况 public String dyhtycxq() { Dmp p = this.getParamsAsDmp(); List list = jxpgService.dyhtycxq(p); p.put("list", list); this.setAttributeFromDmp(p); return "dyhtycxq"; }
public String addAjToTshj() throws Exception { Dmp p = this.getParamsAsDmp(); String departcode = p.getAsString("_deptid"); String userid = p.getAsString("_userid"); p.put("departcode", departcode); tshjService.addAjToTshj(tshj, p); return querylist(); }
/** 新增处罚告知 */ public void addCfgz() { Map p = this.getParamsAsDmp(); p.put("id", CodeUtil.getTimeSequence()); UserInfo userInfo = getSessionContainer().getUserInfo(); p.put("jdr", userInfo.getUsername()); Dmp dmp = cfgzService.addCfgz(p); this.writeResponse(dmp.toJson()); }
// 中标通知书 public String queryZbtzsInfo() { Dmp dmp = this.getParamsAsDmp(); List zbtzs = jxpgService.queryzbtzs(dmp); if (zbtzs.size() > 0) { dmp.putAll((Map) zbtzs.get(0)); } this.setAttributeFromDmp(dmp); return "queryZbtzsInfo"; }
// 开标信息 public String queryKbInfo() { Dmp dmp = this.getParamsAsDmp(); List kb = jxpgService.querykb(dmp); if (kb.size() > 0) { dmp.putAll((Map) kb.get(0)); } this.setAttributeFromDmp(dmp); return "queryKbInfo"; }
// 指标详细情况 public String getGzbxxList() throws Exception { Dmp p = this.getParamsAsDmp(); p.put("zbxxList", jxpgService.getGzbxxList(p)); if ("1".equals(p.getAsString("hxzbpx"))) { List<Dmp> hxzbtj = jxpgService.hxzbtj(p); p.put("hxzbtj", hxzbtj.get(0)); } this.setAttributeFromDmp(p); return "getGzbxxList"; }
// 支付台账列表 public void getZftzList() { Dmp p = this.getParamsAsDmp(); try { List list = jxpgService.czgkzfList(p); p.put("list", list); } catch (Exception e) { e.printStackTrace(); } this.setAttributeFromDmp(p); }
public String queryShr() throws Exception { Dmp p = this.getParamsAsDmp(); String departcode = p.getAsString("_deptid"); String userid = p.getAsString("_userid"); p.put("departcode", departcode); List<Map> dsrList = tshjService.getShrList(p); p.put("dsrList", dsrList); this.setAttributeFromDmp(p); return "queryShr"; }
public String toadd() throws Exception { Dmp p = this.getParamsAsDmp(); tshj = new XzzfYwTshjks(); List list = CommonUtil.getListByMap("一般业务环节"); p.put("list", list); List lb = CommonUtil.getListByMap("特殊环节"); p.put("lb", lb); this.setAttributeFromDmp(p); return "toadd"; }
// 资金控制类指标廉情扣分 业务数据 public String getZjkzYwsj() { Dmp p = this.getParamsAsDmp(); String qtdw = p.getAsString("qtdw"); String jsdw = p.getAsString("jsdw"); Map temp = jxpgService.queryTzkz(p); Map dp = jxpgService.queryDthzcount(p); Object hezje = dp.get("htzje") == null ? null : dp.get("htzje"); p.put("hts", dp.get("hts")); p.put("htzje", dp.get("htzje")); p.put("qtdw", qtdw); p.put("jsdw", jsdw); p.putAll(temp); Float zj = (Float) p.get("zj"); Float js = (Float) p.get("js"); if (zj != null) { zj = zj / 10000; p.put("zj", zj); } if (js != null) { js = js / 10000; p.put("js", js); } this.setAttributeFromDmp(p); return "getZjkzYwsj"; }
// 预警等级 public String querydj() throws Exception { Dmp p = this.getParamsAsDmp(); List list = null; String deptid = p.get("_deptid").toString(); if ("001001".equals(deptid) || "001".equals(deptid)) { list = jxpgService.querydj(p); } p.put("list", list); this.setAttributeFromDmp(p); return "querydj"; }
// 合同信息 public void getHtxx() throws IOException { Dmp p = this.getParamsAsDmp(); String flag = p.get("flag") == null ? "" : (String) p.get("flag"); String qtdw = p.getAsString("qtdw"); String jsdw = p.getAsString("jsdw"); Pager pager = jxpgService.queryTzkzTab(p); Map<String, Object> jsonMap = new HashMap<String, Object>(); jsonMap.put("total", pager.getTotalRows()); jsonMap.put("rows", pager.getList()); String result = JSON.toJSONString(jsonMap, true); this.setAttributeFromDmp(p); this.getResponse().getWriter().write(result); }
// 项目预警信息 public void getXmyjxxList() throws IOException { Dmp p = this.getParamsAsDmp(); String status = p.getAsString("status"); if ("0".equals(status)) { p.put("status", ""); } Pager pager = jxpgService.queryAllProYjInfo(p); Map<String, Object> jsonMap = new HashMap<String, Object>(); jsonMap.put("total", pager.getTotalRows()); jsonMap.put("rows", pager.getList()); String result = JSON.toJSONString(jsonMap, true); this.setAttributeFromDmp(p); this.getResponse().getWriter().write(result); }
// 单个项目绩效详情 public String queryXmJxpg() { Dmp p = this.getParamsAsDmp(); String jsdw = p.getAsString("jsdw"); String qtdw = p.getAsString("qtdw"); String ctx = getRequest().getRealPath("/").replaceAll("\\\\", "\\\\\\\\"); String context = getRequest().getContextPath(); p.put("context", context); p.put("jsdw", jsdw); p.put("qtdw", qtdw); Map temp = jxpgService.queryJxpgInfo(p, ctx); p.putAll(temp); this.setAttributeFromDmp(p); return "queryXmJxpg"; }
// 绩效评估总览列表 public void getList() throws Exception { Dmp p = this.getParamsAsDmp(); Pager pager; String deptid = p.get("_deptid").toString(); if ("001001".equals(deptid) || "001".equals(deptid)) { pager = jxpgService.getXxsb(p); } else { pager = jxpgService.queryQtJsXm(p); } Map<String, Object> jsonMap = new HashMap<String, Object>(); jsonMap.put("total", pager.getTotalRows()); jsonMap.put("rows", pager.getList()); String result = JSON.toJSONString(jsonMap, true); this.setAttributeFromDmp(p); this.getResponse().getWriter().write(result); }
// 招标报名列表 public void getZbbmList() throws IOException { Dmp dmp = this.getParamsAsDmp(); List tbbm = jxpgService.querytbbm(dmp); if (tbbm.size() > 0) { dmp.putAll((Map) tbbm.get(0)); } List tbbmmx = jxpgService.querytbbmmx(dmp); if (tbbmmx.size() > 0) { dmp.put("tbbmmx", tbbmmx); } Map<String, Object> jsonMap = new HashMap<String, Object>(); jsonMap.put("total", tbbmmx.size()); jsonMap.put("rows", tbbmmx); String result = JSON.toJSONString(jsonMap, true); this.setAttributeFromDmp(dmp); this.getResponse().getWriter().write(result); }
public String querylist() throws Exception { Dmp p = this.getParamsAsDmp(); String departcode = p.getAsString("_deptid"); String userid = p.getAsString("_userid"); p.put("departcode", departcode); List list = CommonUtil.getListByMap("特殊环节"); p.put("tshjlb", list); p.put("xzqh", CommonUtil.getListByMap("行政区划")); p.put("userid", userid); Pager pager = tshjService.queryList(p); p.put("pager", pager); this.setAttributeFromDmp(p); return "querylist"; }
// 导出excl public String toExcelXmxx() throws Exception { Map p = this.getParamsAsDmp(); Dmp dmp = lxglService.toExclXmxx(p); ExcelServiceImpl excel = new ExcelServiceImpl(); ArrayList<XmxxPojo> list = new ArrayList<XmxxPojo>(); XmxxPojo pojo = new XmxxPojo(); pojo.setXmname(dmp.getAsString("xmname")); pojo.setQtdw(dmp.getAsString("qtdw")); pojo.setQtld(dmp.getAsString("qtld")); pojo.setJsdw(dmp.getAsString("jsdw")); pojo.setSummoney(dmp.getAsString("summoney")); pojo.setXmlxr(dmp.getAsString("xmlxr")); pojo.setXmtype(dmp.getAsString("xmtype")); pojo.setStartime(dmp.getAsString("starttime")); pojo.setEndtime(dmp.getAsString("endtime")); pojo.setXmbm(dmp.getAsString("xmbm")); pojo.setJsgm(dmp.getAsString("jsgm")); list.add(pojo); InputStream downStream = excel.getExcelInputStream( "com.zx.web.excel.pojo.XmxxPojo", list, null, new ArrayList<String>()); this.getResponse().reset(); this.getResponse().setContentType("application/vnd.ms-excel;charset=utf-8"); this.getResponse().setHeader("Content-Disposition", "attachment;filename=xmxxExcel.xls"); ServletOutputStream out = this.getResponse().getOutputStream(); BufferedInputStream bis = null; BufferedOutputStream bos = null; bis = new BufferedInputStream(downStream); bos = new BufferedOutputStream(out); byte[] buff = new byte[2048]; int bytesRead; while (-1 != (bytesRead = bis.read(buff, 0, buff.length))) { bos.write(buff, 0, bytesRead); } bis.close(); bos.close(); // this.setAttributeFromDmp(p); return null; }
public String toAddOrUpdate() throws Exception { Dmp p = this.getParamsAsDmp(); String id = p.get("id") == null ? "" : p.get("id").toString(); String ajid = p.get("ajid") == null ? "" : p.get("ajid").toString(); if (null == id || "".equals(id)) { tshj = new XzzfYwTshjks(); } else { tshj = tshjService.queryTshjById(id); if (tshj.getJbr() != null && !"".equals(tshj.getJbr())) { jbrname = tshjService.getJbrBycode(tshj.getJbr()); } if (tshj.getShr() != null && !"".equals(tshj.getShr())) { p.put("shrname", tshjService.getJbrBycode(tshj.getShr())); } } p.put("lb", CommonUtil.getListByMap("特殊环节")); Map m = tshjService.getLadjMapByAjid(ajid); p.put("obj", m); List list = CommonUtil.getListByMap("一般业务环节"); p.put("list", list); this.setAttributeFromDmp(p); return "addOrUpdate"; }
public String addOrUpdate() throws Exception { Dmp p = this.getParamsAsDmp(); String userid = p.getAsString("_userid"); if (tshj.getShr() == null) { String shr = p.get("tshj.shr") == null ? "" : (String) p.get("tshj.shr"); tshj.setShr(shr); } p.put("userid", userid); String lb = (String) p.get("lb"); // tshj.setTshjlbbh(lb); tshjService.saveOrUpdateTshj(tshj, p); return this.backForward("操作成功!", "/tshj/tshj_querylist.pt"); }
// 廉情预警 public String getLqyj() { Dmp p = this.getParamsAsDmp(); p.put("lx", 1); String ctx = getRequest().getRealPath("/"); Map temp = jxpgService.querylqyj(p, ctx); List hxzbtj = jxpgService.hxzbtj(p); List gyhtyjdj = jxpgService.querydj(p); // querydj.pt?xmid=2&lx=3 p.putAll(temp); p.put("hxzbtj", hxzbtj.get(0)); p.put("gyhtyjdj", gyhtyjdj); p.put("lx", 2); List zxmyjdj = jxpgService.querydj(p); p.put("zxmyjdj", zxmyjdj); Dmp pp = jxpgService.querylqyjlj(p); this.setAttributeFromDmp(pp); return "getLqyj"; }
/** 修改处罚告知 */ public void updateCfgz() { Map p = this.getParamsAsDmp(); p.put("id", p.get("strChecked")); Dmp dmp = cfgzService.updateCfgz(p); this.writeResponse(dmp.toJson()); }
/** 删除处罚告知信息 */ public void deleteCfgz() { Map p = this.getParamsAsDmp(); Dmp outDto = cfgzService.deleteCfgzItems(p); this.writeResponse(outDto.toJson()); }