1、获取当前用户id:
long userId = Long.parseLong(RequestContext.get().getUserId());
2、在工具栏出提示:
this.getView().showTipNotification(sb.toString());
this.getView().showMessage("请选择数据行");
3、//打开一页面:
FormShowParameter parameter = OperateUtil.getShowParameter(entityId, getOperationStatus(), this.getView());
// 携带list上选择的第一个主业务组织到新增界面
IListView listView = (IListView) this.getView();
List<Long> selectedMainOrgIds = listView.getSelectedMainOrgIds();
}
CloseCallBack closeCallBack = new CloseCallBack();
closeCallBack.setControlKey("billlistap");
closeCallBack.setActionId("listoperation");
parameter.setCloseCallBack(closeCallBack);
FormViewPluginProxy proxy = this.getView().getService(FormViewPluginProxy.class);
if (proxy instanceof ListViewPluginProxy) {
BeforeShowBillFormEvent e = new BeforeShowBillFormEvent(this.getView(), (BillShowParameter) parameter);
((ListViewPluginProxy) proxy).fireBeforeShowBill(e);
if (e.isCancel()) {
return null;
}
}
this.getView().showForm(parameter);
4、关闭页面
this.getView().close();
long userId = Long.parseLong(RequestContext.get().getUserId());
2、在工具栏出提示:
this.getView().showTipNotification(sb.toString());
this.getView().showMessage("请选择数据行");
3、//打开一页面:
FormShowParameter parameter = OperateUtil.getShowParameter(entityId, getOperationStatus(), this.getView());
// 携带list上选择的第一个主业务组织到新增界面
IListView listView = (IListView) this.getView();
List<Long> selectedMainOrgIds = listView.getSelectedMainOrgIds();
if (selectedMainOrgIds != null && selectedMainOrgIds.size() > 0) {//设置参数
parameter.setCustomParam("SELECT_ORG_ID", selectedMainOrgIds.get(0).toString());}
CloseCallBack closeCallBack = new CloseCallBack();
closeCallBack.setControlKey("billlistap");
closeCallBack.setActionId("listoperation");
parameter.setCloseCallBack(closeCallBack);
FormViewPluginProxy proxy = this.getView().getService(FormViewPluginProxy.class);
if (proxy instanceof ListViewPluginProxy) {
BeforeShowBillFormEvent e = new BeforeShowBillFormEvent(this.getView(), (BillShowParameter) parameter);
((ListViewPluginProxy) proxy).fireBeforeShowBill(e);
if (e.isCancel()) {
return null;
}
}
this.getView().showForm(parameter);
4、关闭页面
this.getView().close();