@Override
  protected void performTask(ActionForm actionForm, RequestEvent requestEvent, String userIndr)
      throws Exception {
    Map<Object, Object> requestParam = requestEvent.getReqMapParam();
    ArticleFormatForm formatForm = (ArticleFormatForm) actionForm;
    this.dealMethod = formatForm.getDealMethod();
    ArticleFormat format = null;
    HttpServletRequest request =
        (HttpServletRequest) requestEvent.getReqMapParam().get("HttpServletRequest");

    // 显示列表
    if (dealMethod.equals("")) {

      formatForm.setQueryKey("findFormatPage");

      // 显示明细
    } else if (dealMethod.equals("detail")) {

      requestParam.put("id", formatForm.getId());

      // 添加格式
    } else if (dealMethod.equals("add")) {

      requestParam.put("format", formatForm.getFormat());

      // 删除格式
    } else if (dealMethod.equals("delete")) {

      requestParam.put("formatIds", formatForm.getIds());

      // 设置属性
    } else if (dealMethod.equals("attribute")) {

      // 修改格式
    } else if (dealMethod.equals("modify")) {

      format = formatForm.getFormat();
      requestParam.put("format", format);

      // 导出
    } else if (dealMethod.equals("export")) {
      String exportFormatIds = formatForm.getExportFormatIds();
      if (exportFormatIds == null || exportFormatIds.equals("") || exportFormatIds.equals("null")) {
        exportFormatIds = null;
      }
      requestParam.put("exportFormatIds", exportFormatIds);
      requestParam.put("request", request);

      // 导入
    } else if (dealMethod.equals("import")) {
      String path = formatForm.getPath();
      requestParam.put("path", path);
    }
  }