码迷,mamicode.com
首页 > 其他好文 > 详细

遍历页面上table中的内容

时间:2015-07-10 14:50:23      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:

    OAAdvancedTableBean innerTable = 
      (OAAdvancedTableBean)webBean.findChildRecursive("PoScoreTeamMemberTbl");
    // create an enumerator
    OAInnerDataObjectEnumerator enum1 = 
      new OAInnerDataObjectEnumerator(pageContext, innerTable);

    else if ("chooseMemberEvent".equals(event))
    {
      String rowRef = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
      Row r = am.findRowByRef(rowRef);
      Number TeamId = (Number)r.getAttribute("TeamId");
      Number UserTempId = (Number)r.getAttribute("UserTempId");
      if (TeamId != null && UserTempId != null)
      {
        PonNegTeamMembersVORowImpl row = 
          ((PoEvaluateAMImpl)am).getCurrentTeamMemberRow(UserTempId.toString());
        while (enum1.hasMoreElements() && row != null)
        {
          RowSet innerRowSet = (RowSet)enum1.nextElement();
          Row[] rowsInRange = innerRowSet.getAllRowsInRange();
          for (int i = 0; i < rowsInRange.length; i++)
          {
            Row nextRow = rowsInRange[i];
            if (nextRow.getAttribute("TeamId").equals(TeamId) && 
                nextRow.getAttribute("UserTempId").equals(UserTempId))
            {
              nextRow.setAttribute("PositonName", row.getPositonName());
              nextRow.setAttribute("MenuName", row.getMenuName());
            }
          }
        }
      }
    }

 

遍历页面上table中的内容

标签:

原文地址:http://www.cnblogs.com/huanghongbo/p/4635677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!