public void setTypeChange(String type, String lvl) {
    try {

      spnlTree.remove(treAcctJJ);
      DataSet ds = AbastractFilterPanel.getSelectDs(type, lvl);
      treAcctJJ =
          new CustomTree(
              "经济科目",
              ds,
              IPubInterface.BSI_ID,
              IPubInterface.ACCT_FNAME,
              IPubInterface.BSI_PARENT_ID,
              null,
              IPubInterface.ACCT_CODE_JJ,
              true);
      treAcctJJ.setIsCheckBoxEnabled(true);
      spnlTree.getViewport().add(treAcctJJ);
      if (ds.getRecordCount() < 200) treAcctJJ.expandAll();

    } catch (Exception e) {
      new MessageBox("刷新数据失败!", e.getMessage(), MessageBox.ERROR, MessageBox.BUTTON_OK).show();
      e.printStackTrace();
    }
  }