public void onClick$query() { isQuery = true; nameSearch = null; auditStateSearch = null; indicatorId = null; nameSearch = name.getValue(); if (auditState.getSelectedItem().getValue().equals("")) { auditStateSearch = null; } else if (auditState.getSelectedItem().getValue().equals("待审核")) { auditStateSearch = 0; } else if (auditState.getSelectedItem().getValue().equals("部门通过")) { auditStateSearch = 1; } else if (auditState.getSelectedItem().getValue().equals("主部门审核中")) { auditStateSearch = 2; } else if (auditState.getSelectedItem().getValue().equals("部门不通过")) { auditStateSearch = 3; } else if (auditState.getSelectedItem().getValue().equals("业务办通过")) { auditStateSearch = 4; } else if (auditState.getSelectedItem().getValue().equals("业务办不通过")) { auditStateSearch = 5; } else if (auditState.getSelectedItem().getValue().equals("归档")) { auditStateSearch = 6; } if (rank.getSelectedIndex() != 0) { Jxkh_BusinessIndicator qkType = (Jxkh_BusinessIndicator) rank.getSelectedItem().getValue(); indicatorId = qkType.getKbId(); } zxPaging.addEventListener( "onPaging", new EventListener() { public void onEvent(Event arg0) throws Exception { meetingList = jxkhQklwService.findMeetingByConditionAndPages( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber(), zxPaging.getActivePage(), zxPaging.getPageSize()); qklwListbox.setModel(new ListModelList(meetingList)); } }); int totalNum = jxkhQklwService.findMeetingByConditions( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber()); zxPaging.setTotalSize(totalNum); meetingList = jxkhQklwService.findMeetingByConditionAndPages( nameSearch, auditStateSearch, indicatorId, user.getDept().getKdNumber(), zxPaging.getActivePage(), zxPaging.getPageSize()); qklwListbox.setModel(new ListModelList(meetingList)); }
@Override public void render(Listitem item, Object data) throws Exception { if (data == null) return; Jxkh_BusinessIndicator type = (Jxkh_BusinessIndicator) data; item.setValue(type); Listcell c0 = new Listcell(); if (type.getKbName() == null) { c0.setLabel("--请选择--"); } else { c0.setLabel(type.getKbName()); } item.appendChild(c0); if (item.getIndex() == 0) item.setSelected(true); }