/** @see com.pureinfo.ark.interaction.ActionBase#executeAction() */
 public ActionForward executeAction() throws PureException {
   String[] sIds = request.getParameterValues("id");
   int[] nIds = ActionFormUtil.Strings2Ints(sIds);
   for (int i = 0; i < nIds.length; i++) {
     int nPatentId = nIds[i];
     updateOnePatent(nPatentId);
   }
   return mapping.findForward("success");
 }
  /** @see com.pureinfo.ark.interaction.ActionBase#executeAction() */
  public ActionForward executeAction() throws PureException {
    String[] sIds = request.getParameterValues("id");
    int[] nIds = ActionFormUtil.Strings2Ints(sIds);
    IProductMgr productMgr = (IProductMgr) ArkContentHelper.getContentMgrOf(Product.class);
    Product product = null;
    try {
      for (int i = 0; i <= nIds.length - 1; i++) {
        product = (Product) productMgr.lookupTempById(nIds[i]);
        if (request.getParameter("role") == null) product.setDocSubmitted(true);
        else product.setDocSubmitted(false);
        productMgr.saveToTemp(product, false);
      }
    } finally {
      if (product != null) {
        product.clear();
      }
    }

    request.setAttribute("forward", ProductConstants.PATH_SUCCESS_ALL_PRODUCT_CHECK_LIST_PAGE);
    if (request.getParameter("role") == null) request.setAttribute("message", "选中成果的材料已设置为提交!");
    else request.setAttribute("message", "选中成果的材料已设置为未交!");
    return mapping.findForward("success");
  }