public void ProcessGoodsAttributeTList(List<GoodsAttributeT> list) { rows.clear(); for (Iterator<GoodsAttributeT> it = list.iterator(); it.hasNext(); ) { GoodsAttributeT gat = (GoodsAttributeT) it.next(); if (StaticKey.ZERO.equals(gat.getAttributeType())) { gat.setAttributeType(StaticKey.SELECTITEM); } else { gat.setAttributeType(StaticKey.INPUTITEM); } if (StaticKey.ONE.equals(gat.getIssearch())) { gat.setIssearch(StaticKey.SUPPORT); } else { gat.setIssearch(StaticKey.UNSUPPORT); } if (StaticKey.ONE.equals(gat.getIssametolink())) { gat.setIssametolink(StaticKey.SUPPORT); } else { gat.setIssametolink(StaticKey.UNSUPPORT); } Map<String, Object> cellMap = new HashMap<String, Object>(); cellMap.put("id", gat.getGoodsattributeid()); cellMap.put( "cell", new Object[] { gat.getGoodsattributename(), gat.getAttributeType(), gat.getAttributelist(), gat.getSort(), gat.getGoodsTypeName(), gat.getIssearch(), gat.getIssametolink(), BaseTools.formateDbDate(gat.getCreatetime()), "<a id='editgoodsattribute' name='editgoodsattribute' href='goodsattribute.jsp?operate=edit&folder=goods&goodsTypeName=" + gat.getGoodsTypeName() + "'>[编辑]</a>" }); rows.add(cellMap); } }