示例#1
0
 public SysUser getUserByURI(HttpServletRequest request) {
   UserRightInfo uri = (UserRightInfo) request.getSession().getAttribute("URI");
   if (uri != null && uri.getUser() != null) return uri.getUser();
   else {
     return null;
   }
 }
示例#2
0
  /** 备注修改 */
  public void getRemarkLabel(List<MyLabel> myLabels) {
    if (uri.hasRight("sb30")) {
      MyLabel ml = new MyLabel();
      StringBuffer sb = new StringBuffer();
      sb.append("onclick=\"");
      sb.append("showDiv11(");
      sb.append("'" + this.id + "'");
      sb.append(")\"");
      ml.setEvents(sb.toString());
      if (this.memo != null) {
        ml.setLabText("<font color=\"red\">[备注]</font>");
      } else {
        ml.setLabText("[备注]");
      }
      // ml.setEndText("<br/>");
      myLabels.add(ml);

      commonOperate.setMyLabels(myLabels);
    }
  }