package com.connor.erp.ItemAddTransferSendToERP;

import com.connor.erp.toolkit.FileType;
import com.connor.erp.toolkit.UtilApi;
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCSession;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;

public class ViewResultOfItemTransferHandler extends AbstractHandler {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    AbstractAIFUIApplication application = AIFUtility.getCurrentApplication();
    TCSession session = (TCSession)application.getSession();
    UtilApi.getTaskItemAddResult(application, session, FileType.item, "基础物料新增结果", Boolean.valueOf(true), null, "");
    return null;
  }
}
