![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NC portal
岳_来越好
这个作者很懒,什么都没留下…
展开
-
NC portal获取当前登录者vo数据
LfwRuntimeEnvironment.getLfwSessionBean().getUserObj(CpUserVO.class);//获取当前登录者vo数据原创 2017-03-10 11:52:18 · 1522 阅读 · 0 评论 -
NC portal给参照设置条件(添加过滤条件)
给参照设置值(过滤参照),先给参照设置监听IRefNoderefNode =this.getCurrentView().getViewModels().getRefNode("phoneBvodef1_hrhi_0001Z7HI10PSN0000ZJ2");NCRefNodencModel = ((NCRefNode) refNode);ncModel.setDataListener(原创 2017-03-10 14:19:44 · 3105 阅读 · 0 评论 -
NC portal获取按钮控件,控制其显示与置灰
获取按钮控件,控制其显示与置灰MenubarComp comp = (MenubarComp) ViewUtil.getCurrentView().getViewMenus().getMenuBar("menubar");comp.getElementById("edit").setEnabled(false);原创 2017-03-10 14:34:08 · 1108 阅读 · 0 评论 -
NC portal获取按钮控件,控制其显示与隐藏
获取按钮控件,控制其显示与隐藏 LfwView main=LfwRuntimeEnvironment.getWebContext().getPageMeta().getView("main");GridComp gridb=(GridComp) main.getViewComponents().getComponent("phoneBvo_grid");MenubarComp mc原创 2017-03-10 14:32:12 · 1608 阅读 · 0 评论 -
NC portal保存只能获取当前子表选中行的数据集问题
保存是获取子表数据只能获取到当前选中的行代码如下:LfwViewmain=LfwRuntimeEnvironment.getWebContext().getPageMeta().getView("main");Dataset bodyds =main.getViewModels().getDataset("phoneBvo");Row[] bodyRows =bodyds.getA原创 2017-03-10 14:25:50 · 637 阅读 · 0 评论 -
NC portal关闭当前窗口
//WindowContext windowContext =AppLifeCycleContext.current().getWindowContext();//windowContext.closeView(""); // 关闭当前窗口 AppLifeCycleContext.current().getApplicationContext().closeWinDialog();原创 2017-03-10 14:17:06 · 762 阅读 · 0 评论 -
NC portal设置表头表体编辑性
LfwView main=LfwRuntimeEnvironment.getWebContext().getPageMeta().getView("main");//表体GridComp gridb=(GridComp) main.getViewComponents().getComponent("phoneBvo_grid");GridColumn phoneno=(GridColu原创 2017-03-10 14:14:24 · 1574 阅读 · 1 评论 -
NC portal通过接口调用vo集(可以是aggvo)
IMDPersistenceQueryService service = NCLocator.getInstance().lookup(IMDPersistenceQueryService.class);NCObject ncObject1 =service.queryBillOfNCObjectByPK(PsndocAggVO.class, pk); //通过此接口可调用vo集数据(可以原创 2017-03-10 14:11:15 · 590 阅读 · 0 评论 -
NC portal 获取当前界面主表(子表)的值
LfwView main = AppLifeCycleContext.current().getViewContext().getView();//主表Dataset datasParent=main.getViewModels().getDataset("headid");//获取当前视图某个表的数据集Row row=datasParent.getSelectedRow();//获取原创 2017-03-10 11:37:44 · 1830 阅读 · 0 评论 -
NC portal通过表头主键查询子表vo数据集合
//单据主键 String pk = (String)headrow.getValue(ds.nameToIndex(ds.getPrimaryKeyField())); Listlistvo=null; try { listvo = (List)new BaseDAO().executeQuery(原创 2017-04-22 17:02:58 · 1068 阅读 · 0 评论