private void executeAudit(List beanList, int isGoonAudit, FuncButton button) {

    GkCommentDialog commentDialog =
        new GkCommentDialog(
            DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(),
            ModalityType.APPLICATION_MODAL);

    if (commentDialog.cancel) {

      return;
    }

    boolean success = true;

    String errorInfo = "";

    try {

      String comment = commentDialog.getComment();

      for (int i = 0; i < beanList.size(); i++) {

        ZcEbEvalReport report = (ZcEbEvalReport) beanList.get(i);

        report.setIsGoonAudit(isGoonAudit);

        report.setComment(comment);

        report.setAuditorId(WorkEnv.getInstance().getCurrUserId());
      }

      requestMeta.setFuncId(button.getFuncId());

      zcEbEvalServiceDelegate.updateZcEbEvalStatus(beanList, requestMeta);

      zcEbEvalServiceDelegate.auditFN(beanList, requestMeta);

    } catch (Exception e) {

      success = false;

      logger.error(e.getMessage(), e);

      errorInfo += e.getMessage();
    }

    if (success) {

      refreshCurrentTabData();

      JOptionPane.showMessageDialog(this, "审核成功!", "提示", JOptionPane.INFORMATION_MESSAGE);

    } else {

      JOptionPane.showMessageDialog(this, "审核失败 !" + errorInfo, "错误", JOptionPane.ERROR_MESSAGE);
    }
  }
  private void doSuggestPass() {

    List ZcEbEvalReportList = getCheckedList();

    if (ZcEbEvalReportList.size() == 0) {

      JOptionPane.showMessageDialog(this, "请选择需要送审的数据!", "提示", JOptionPane.INFORMATION_MESSAGE);

      return;
    }

    boolean success = true;

    try {

      GkCommentDialog commentDialog =
          new GkCommentDialog(this.getParentWindow(), ModalityType.APPLICATION_MODAL);

      if (commentDialog.cancel) {

        return;
      }

      String comment = commentDialog.getComment();

      for (int i = 0; i < ZcEbEvalReportList.size(); i++) {

        ZcEbEvalReport zcEbEvalReport = (ZcEbEvalReport) ZcEbEvalReportList.get(i);

        zcEbEvalReport.setComment(comment);

        if (WorkEnv.getInstance().containRole(AsOptionMeta.getOptVal("OPT_ZC_CGZX_FZR_ROLE"))) {

          zcEbEvalReport.setIsGoonAudit(0);
        }
      }

      requestMeta.setFuncId(this.suggestPassButton.getFuncId());

      zcEbEvalServiceDelegate.auditFN(ZcEbEvalReportList, requestMeta);

    } catch (BaseException ex) {

      success = false;

      UIUtilities.showStaickTraceDialog(ex, this, "错误", ex.getMessage());
    }

    if (success) {

      JOptionPane.showMessageDialog(this, "处理成功!", "提示", JOptionPane.INFORMATION_MESSAGE);

      refreshCurrentTabData();
    }
  }
  public void doSuggestPass() {
    ZcPProMake make = (ZcPProMake) ObjectUtil.deepCopy(this.listCursor.getCurrentObject());
    if (listPanel.checkBeforeSave(make, self)) {
      return;
    }
    if (isDataChanged()) {

      JOptionPane.showMessageDialog(this, "数据发生改变,请先保存.", "提示", JOptionPane.INFORMATION_MESSAGE);
      return;
    }
    BaseRule rule = getZcMakeCheckRule();

    Map parameter = new HashMap();

    parameter.put("data", make);

    // 填报提示信息

    Map resMap = rule.check(parameter);

    String resInfo = (String) resMap.get("resInfo");

    int num = JOptionPane.YES_OPTION;

    if (resInfo != null && resInfo.length() > 0) {

      num = JOptionPane.showConfirmDialog(this, resInfo, "提示", 0);
    }

    if (num == JOptionPane.YES_OPTION) {

      //      nd = ((AsValComboBox) zcPitemOpiway.getField()).getSelectedAsVal().getVal();

      pf = ((AsValComboBox) zcPifuCgfs.getField()).getSelectedAsVal().getVal();

      //      repaint();

      ZcPProMake afterSaveBill = null;

      GkCommentDialog commentDialog =
          new GkCommentDialog(
              DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(),
              ModalityType.APPLICATION_MODAL);

      if (commentDialog.cancel) {

        return;
      }

      boolean success = true;

      String errorInfo = "";

      try {

        requestMeta.setFuncId(this.suggestPassButton.getFuncId());

        make.setComment(commentDialog.getComment());

        make.setZcAttr1("N");

        make.setAuditorId(WorkEnv.getInstance().getCurrUserId());

        afterSaveBill = listPanel.getZcPProMakeServiceDelegate().auditFN(make, requestMeta);

      } catch (Exception e) {

        success = false;

        logger.error(e.getMessage(), e);

        errorInfo += e.getMessage();
      }

      if (success) {

        this.refreshAll(afterSaveBill, true);

        JOptionPane.showMessageDialog(this, "审核成功!", "提示", JOptionPane.INFORMATION_MESSAGE);

        this.listPanel.refreshCurrentTabData();

      } else {

        JOptionPane.showMessageDialog(this, "审核失败 !" + errorInfo, "错误", JOptionPane.ERROR_MESSAGE);
      }

      /*  if (!(pf.equals(nd))) {

        GkCommentDialog commentDialog = new GkCommentDialog(DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(),

        ModalityType.APPLICATION_MODAL, "同意" + "\n" + "采购单位申请的采购方式为" + nd + "\n" + "经审核,批复为" + pf + "方式");

        if (commentDialog.cancel) {

          return;

        }

        boolean success = true;

        ZcPProMake afterSaveBill = null;

        String errorInfo = "";

        try {

          requestMeta.setFuncId(this.suggestPassButton.getFuncId());

          make.setComment(commentDialog.getComment());

          make.setZcAttr1("N");

          make.setAuditorId(WorkEnv.getInstance().getCurrUserId());

          afterSaveBill = listPanel.getZcPProMakeServiceDelegate().auditFN(make, requestMeta);

        } catch (Exception e) {

          success = false;

          logger.error(e.getMessage(), e);

          errorInfo += e.getMessage();

        }

        if (success) {

          this.refreshAll(afterSaveBill, true);

          JOptionPane.showMessageDialog(this, "审核成功!", "提示", JOptionPane.INFORMATION_MESSAGE);

          this.listPanel.refreshCurrentTabData();

        } else {

          JOptionPane.showMessageDialog(this, "审核失败 !" + errorInfo, "错误", JOptionPane.ERROR_MESSAGE);

        }

      }*/

    }
  }
package com.ufgov.zc.client.zc.auditsheet;