| | |
| | | |
| | | public void onNewBtnClick() { |
| | | this.sysUser = new SysUser(); |
| | | if (this.selectedList.size() > 1) { |
| | | FacesUtils.warn("不能多选"); |
| | | return; |
| | | } |
| | | if (this.selectedList.size() == 1) { |
| | | this.sysUser = this.sysUserService.getSysUser(this.selectedList.get(0).getId()); |
| | | } |
| | | this.action = Constants.ACTION_ADD; |
| | | } |
| | | |
| | |
| | | <p:panel styleClass="center-body"> |
| | | <p:panelGrid columns="5" styleClass="btn"> |
| | | <p:commandButton value="新建" styleClass="new-btn" |
| | | process="@this" |
| | | process="@form" |
| | | actionListener="#{userMngController.onNewBtnClick}" |
| | | oncomplete="PF('dialog').show();" |
| | | update=":dialog,:dialogForm" |