示例#1
0
 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");
 }
示例#2
0
 // 合同信息
 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);
 }
示例#3
0
 // 资金控制类指标廉情扣分 业务数据
 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";
 }
示例#4
0
 // 预警等级
 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";
 }
示例#5
0
 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";
 }
示例#6
0
 // 绩效评估总览列表
 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);
 }