标签:
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()); } } } } }
标签:
原文地址:http://www.cnblogs.com/huanghongbo/p/4635677.html