nc的各种弹窗方法:
1、一般的简单弹出的通用方法:通过功能编码获取注册信息VO传入FuncletWindowLauncher的方法里(里面有多种弹出方式,就不copy出来了)自己选择跳转到目标节点或者弹出小框显示
IQueryTemplateQry templateQry = NCLocator.getInstance().lookup(nc.itf.uap.qrytemplate.IQueryTemplateQry.class);QryTempletVOWithInfo info = templateQry.findAndGetTemplateVO(this.getTemplateContainer().getQueryTempletLoader().getQueryTempletData().getTemplateInfo());FuncRegisterVO funcRegisterVO = WorkbenchEnvironment.getInstance().getFuncRegisterVO("40080602");//40083010FuncNodeLauncher.openFuncNodeForDialog(funcRegisterVO.getFuncode(), String.valueOf(5), null);FuncletWindowLauncher.openFuncNodeDialog(ClientToolKit.getApplet(), funcRegisterVO);
2、一般是弹出报表节点用的
// 构造初始化环境相关参数vo,这里直接用物料存量的元数据idAggReportInitializeVO reportInitVO = (NCLocator.getInstance().lookup(IArapBillService.class).getReportInitializeVOByMdid("e4f48eaf-5567-4383-a370-a59cb3e8a451"));// 构造查询条件ReportQueryCondVO qryCondVO = new ReportQueryCondVO();this.openFreeReport(((ReportInitializeVO) reportInitVO.getParentVO()).getNode_code(), qryCondVO);
private void openFreeReport(String nodeCode, ReportQueryCondVO qryCondVO) {BaseQueryCondition qryCond = new FipubBaseQueryCondition(true, qryCondVO);FreeReportDrillParam drillParam = new FreeReportDrillParam();drillParam.setSrcCondition(qryCond);FuncletInitData initData = new FuncletInitData();initData.setInitData(drillParam);
// FreeReportFuncletUtil.openReportNode(nodeCode, initData);FreeReportFuncletUtil.showReportByUfrDialogWithRepNameReturnParameters("40083010", 5, drillParam);}
3、自定义弹窗方法,一般用于拉单或者别的复杂一些的场景