コード例 #1
0
  protected void filter() {
    TsCarMstDTO item = car.getSelectionItem();
    ArrayList<TsWgtInfDTO> items = filter(item);

    gridViewer.setInput(items.toArray(new TsWgtInfDTO[0]));
    gridViewer.getGrid().setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
  }
コード例 #2
0
 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();
   }
 }