定义个onBoImportAction()方法,在要使用的时候直接调用,方法具体功能在注释中。
注意:这几个是要import的包,都是标准产品自带的
import nc.vo.jz.pub.excel2.itf.ExcelImportCfgFactory;
import nc.vo.jz.pub.excel2.itf.IExcelImportCfg;
import nc.vo.jz.pub.excel2.itf.NCImportColInfo;
private void onBoImportAction() throws BusinessException{
//Excel导入的适配器
NCExcelImportAdapter<? extends SuperVO> excelImport = null;
try {
excelImport = new NCExcelImportAdapter(
getClientUI(),this.EXCEL_CFG_FACTROY.getExcelImportCfg(),
CollectcontBVO.class);//CollectcontBVO.class为导出的指定页签vo
//调用弹出
if(excelImport.showMode() ==