Exemplo n.º 1
0
 /**
  * 处理商品评论迭代
  *
  * @param gct
  */
 public void ProcessGoodsCommentList(List<GoodsCommentT> gct) {
   total = this.getGoodsCommentTService().countfindAllGoodsComment();
   for (Iterator<GoodsCommentT> it = gct.iterator(); it.hasNext(); ) {
     GoodsCommentT gctt = (GoodsCommentT) it.next();
     gctt.setState(StaticKey.DataShowState.getName(gctt.getState()));
     Map<String, Object> cellMap = new HashMap<String, Object>();
     cellMap.put("id", gctt.getGoodsid());
     cellMap.put(
         "cell",
         new Object[] {
           gctt.getGoodsname(),
           gctt.getState(),
           "<a id='showgoodscomment' href='goodscommentlistment.jsp?operate=edit&goodsname="
               + gctt.getGoodsname()
               + "&goodsid="
               + gctt.getGoodsid()
               + "' name='showgoodscomment'>[查看详细]</a>"
         });
     rows.add(cellMap);
   }
 }