ext_EasyGrid

来源:百度文库 编辑:神马文学网 时间:2024/10/06 11:25:27
示例一:1.页面: 
 
 
   

  2.findNoticeListByLoginuser.action:分页参数String starString = this.getRequest().getParameter("start");
  String limitString = this.getRequest().getParameter("limit");String result = "[";
   String t = "";List noticeList = flowModle.findNoticeListByTouser(umInfo.getUmid(),start,limit);t += "{"
    + "\"dep_name\":\" " + departmentInfo.getName() + "\","
    + "\"dep_type\":\"" + type+"\","
    + "\"dep_grade\":\"" + departmentInfo.getGrade()+"\","
    + "\"dep_status\":\"" + stateString+"\","
    + "\"dep_id\":\"" + departmentInfo.getDid()+"\","
    + "\"dep_id_flow\":\"" + departmentInfo.getDid()+"\","
    + "\"dep_id_operation\":\""+departmentInfo.getDid()+ "\""
    +"},";if(t!=null && !"".equals(t)){
    t =   t.charAt(t.length() - 1) == ',' ? t.substring(0,t.length() - 1):t;
   }result = result + t + "]";
   String json = "{totalProperty:" + count + ",root:"
     + result.replaceAll("\n", "") + "}";   outString(json);JSON:totalProperty:1(一共有多少条记录){totalProperty:1,root:[{"processInstanceId":"FeiYongBaoXiao-1","Notice_id":"7","startNotice_user":"qh","Notice_time":"2010-12-13","workFlow_name":"费用报销流程"}]} 示例二:
 
    listqh.html
   
   
   
       href="/dyzc/scripts/ext320/resources/css/ext-all.css" />
  
     rel="stylesheet" />
  
  
  
     href="/dyzc/resources/css/inputHighlight.css" />