package com.gx.obe.evaluation.step.resutl.action;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;

import com.gx.obe.action.bean.Action;
import com.gx.obe.action.listener.ActionListener;
import com.gx.obe.components.core.Constants;
import com.gx.obe.evaluation.step.listener.ExpertEvaluationListener;
import com.gx.obe.evaluation.step.resutl.composite.ComplianceEvaluationResultComposite;

/**
 * @Description: 符合性评审结果
 * @author guoyr
 */
public class ComplianceEvaluationResultAction extends Action {
    
    @Override
    public void run() {
        ActionListener actionListener = this.getListener();
        if (null != actionListener) {
            actionListener.onLoad(this);
            Composite composite = actionListener.getParentComposite();
            composite.setData("tenderProjectEntity", this.getTenderProject());
            composite.setData("evaluationStep", this.getData("evaluationStep"));
            composite.setData(Constants.CUR_EXPERT, this.getData(Constants.CUR_EXPERT));
            composite.setData("menu", this.getMenu());
            ComplianceEvaluationResultComposite evaluationComposite = new ComplianceEvaluationResultComposite(composite, SWT.NONE);
            evaluationComposite.addExpertEvaluationListener((ExpertEvaluationListener) this.getData("expertEvaluationListener"));
            actionListener.loadComposite(this, evaluationComposite);
        }
    }
}
