Ejemplo n.º 1
0
 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";
 }
Ejemplo n.º 2
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";
 }
Ejemplo n.º 3
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";
 }