Exemplo n.º 1
0
 /**
  * 新建入口
  *
  * @return
  */
 public String newHead() {
   IUser tuser = UserThreadLocal.get();
   PTUserBO user = userUCC.getSingleById(tuser.getUserTid());
   Iterator<PTDeptBO> deptIte = deptUCC.getDeptByUserId(user.getTid()).iterator();
   // 如果head不为空,创建一个对象保存
   if (head == null) {
     head = new CzPgscZskwhCld();
     head.setNigaoren(String.valueOf(user.getTid()));
     head.setNigaorenxm(user.getUsername());
     head.setNgrq(new Date());
     head.setPgzz(0D);
     head.setZczmjz(0D);
     head.setZjfd(0D);
     head.setZjz(0D);
     head.setJzrzmjz(0D);
     head.setZczmyz(0D);
     head.setCldzt("0");
     if (deptIte.hasNext()) {
       PTDeptBO dept = deptIte.next();
       head.setNgbm(String.valueOf(dept.getRsvdNum1()));
       head.setNgbmmc(dept.getRsvdStr1());
     }
     head.setLxdh(user.getCellphone());
     head.setLssccs(0L);
     // 设置默认的办理部门为风险管理部
     head.setBlbm("风险管理部");
     head.setBlbmbh("11589");
     headService.newHead(head);
     request.setAttribute("headId", head.getId());
     request.getSession().setAttribute("zcczpgscclid", head.getId());
   }
   // request.setAttribute("head", head);
   request.setAttribute("user", user);
   return "tomodify";
 }
Exemplo n.º 2
0
 // 查看审查意见
 public String editScyjQuery() {
   IUser tuser = UserThreadLocal.get();
   PTUserBO user = userUCC.getSingleById(tuser.getUserTid());
   radioValue = headService.findRadioValue(pgscYj.getCldId(), String.valueOf(user.getTid()));
   request.setAttribute("user", user);
   return "editScyj";
 }