private void select() {
   TsCarMstDTO item = car.getSelectionItem();
   if (item.getCar_num().length() == 0) {
     TsWgtInfManager wim = new TsWgtInfManager();
     TsWgtInfDTO param = new TsWgtInfDTO();
     param.setWgt_stat_cd(DTSConstants.WGT_STAT_FST);
     ArrayList<TsWgtInfDTO> fstList = wim.selectTsWgtInf(param);
     for (int i = 0; i < fstList.size(); i++) fstList.get(i).setNo(i + 1);
     listData = fstList.toArray(new TsWgtInfDTO[0]);
     gridViewer.setInput(listData);
   } else {
     filter();
   }
 }
 public ArrayList<TsWgtInfDTO> filter(TsCarMstDTO item) {
   ArrayList<TsWgtInfDTO> filtered = new ArrayList<TsWgtInfDTO>();
   if (item.getCar_cd() != null && item.getCar_cd().length() > 0) {
     for (int i = 0; i < listData.length; i++) {
       if (listData[i].getCar_cd().equals(item.getCar_cd())) {
         filtered.add(listData[i]);
       }
     }
   } else {
     for (int i = 0; i < listData.length; i++) {
       if (StringUtil.nullToBlank(listData[i].getCar_num()).indexOf(item.getCar_num()) > -1) {
         filtered.add(listData[i]);
       }
     }
   }
   return filtered;
 }