Beispiel #1
0
 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();
 }
Beispiel #2
0
 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";
 }
Beispiel #3
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");
 }
Beispiel #4
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";
 }
Beispiel #5
0
 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";
 }