/** 查询员工 */
  private void doSearch(OrganType organType) {
    OrganSearchCriteria criteriaVo = new OrganSearchCriteria();
    criteriaVo.setKey(display.getName().getValue());
    criteriaVo.setOrganType(organType);

    resultTable.setPageStart(0);
    resultTable.setRowCount(0, false);
    listViewAdapter =
        new OrganizationChooseAsyncDataProvider(
            dispatch, errorHandler, sessionManager, criteriaVo, false);
    listViewAdapter.addDataDisplay(resultTable);
  }
  private void buildTable() {

    resultTable = new ListCellTable<OrganicationClient>();
    final SingleSelectionModel<OrganicationClient> selectionModel = setSelectionModel(resultTable);
    initTableColumns(selectionModel);

    simplePager.setDisplay(resultTable);
    resultTable.setWidth(ViewConstants.page_width);
    resultTable.setPageSize(ViewConstants.per_page_number_in_dialog);
    resultTable.setPageStart(0);
    display.getResultPanel().clear();
    display.getResultPanel().add(resultTable);
    display.getResultpage().add(simplePager);
  }
  /**
   * 初始化table
   *
   * @param selectionModel
   */
  private void initTableColumns(final SelectionModel<OrganicationClient> selectionModel) {

    //		Sorting<OrganicationClient> ref = new Sorting<OrganicationClient>() {
    //			@Override
    //			public void sortingCurrentPage(Comparator<OrganicationClient> comparator) {
    //				//listViewAdapter.sortCurrentPage(comparator);
    //			}
    //
    //			@Override
    //			public void sortingAll(String sorting, String direction) {
    //				listViewAdapter.sortFromDateBase(sorting, direction);
    //			}
    //		};

    resultTable.addColumn(
        "名称",
        new TextCell(),
        new GetValue<OrganicationClient, String>() {
          @Override
          public String getValue(OrganicationClient staff) {
            return staff.getName();
          }
        });
  }