// 条件查询
 private void termQuery(int currentPage) {
   TOrder torder = new TOrder();
   torder.setOrderID(orderNum.getText().getText().trim());
   TUser tuser = new TUser();
   tuser.setUserID(userNum.getText().getText().trim());
   torder.setTUser(tuser);
   torder.setOperator(seller.getText().getText().trim());
   torder.setHappenTime(startTime.getDate());
   torder.setEndTime(endTime.getDate());
   tableJsp.getViewport().remove(table);
   tableJsp.getViewport().add(waitComponent);
   try {
     pageView.setCurrentPage(currentPage);
     PageModel<TOrder> pageModel =
         orderService.getScrollService(pageView.getFirstResult(), pageView.getMaxResult(), torder);
     pageView.setPageModel(pageModel);
     pageView.setPageIndex(
         PageIndex.getPageIndex(
             pageView.getPageCode(), pageView.getCurrentPage(), pageView.getTotalPage()));
     if (pageModel != null) {
       tableJsp.getViewport().remove(waitComponent);
       tableJsp.getViewport().add(table);
       orderOnlineModel.setRowData(pageModel.getResultList());
       table.updateUI();
       pagingComponent.show();
     } else {
       // 没有订单数据
       waitComponent.setText("不存在数据");
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
  private void init() {
    pageView = new PageView<TOutBill>();
    articlesUsingModel = new ArticlesUsingModel();
    table = uiFactory.createRPJTable(articlesUsingModel, null, this, 30, JLabel.CENTER);
    tableJsp = uiFactory.createJScrollPane(table);
    pagingComponent = new PagingComponent();
    pagingComponent.setPageDelegale(this);

    this.add(initTop(), BorderLayout.NORTH);
    this.add(tableJsp, BorderLayout.CENTER);
    this.add(initTail(), BorderLayout.SOUTH);
  }
 private void initView() {
   pageView = new PageView<TOrder>();
   orderOnlineModel = new OrderHistoryModel();
   table = uiFactory.createJTable(orderOnlineModel, this, this, 30, JLabel.CENTER);
   //		table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
   tableJsp = new JScrollPane(table);
   pagingComponent = new PagingComponent();
   pagingComponent.setPageDelegale(this);
   this.add(topPanel(), BorderLayout.NORTH);
   this.add(tableJsp, BorderLayout.CENTER);
   this.add(pagingComponent, BorderLayout.SOUTH);
   // 排序
   TableRowSorter<OrderHistoryModel> tableRowSorter =
       new TableRowSorter<OrderHistoryModel>(orderOnlineModel);
   table.setRowSorter(tableRowSorter);
 }
 private void init() {
   pageView = new PageView<TUser>();
   memberQueryCardModel = new MemberQueryCardModel();
   table = uiFactory.createRPJTable(memberQueryCardModel, null, this, 30, JLabel.CENTER);
   tableJsp = uiFactory.createJScrollPane(table);
   TableColumnModel columnModel = table.getColumnModel();
   columnModel.getColumn(0).setCellEditor(table.getDefaultEditor(Boolean.class));
   columnModel.getColumn(0).setCellRenderer(table.getDefaultRenderer(Boolean.class));
   pagingComponent = new PagingComponent();
   pagingComponent.setPageDelegale(this);
   JPanel main_jp = new JPanel(new BorderLayout());
   main_jp.setBackground(Util.PANEL_COLOR);
   main_jp.add(this.initTop(), BorderLayout.NORTH);
   main_jp.add(tableJsp, BorderLayout.CENTER);
   main_jp.add(this.initTail(), BorderLayout.SOUTH);
   this.add(main_jp);
 }
  private void init() {
    // TODO Auto-generated method stub
    pageView = new PageView<TShopCharge>();
    memberQueryShopChargeModel = new MemberQueryShopChargeModel();
    table = uiFactory.createRPJTable(memberQueryShopChargeModel, null, this, 30, JLabel.CENTER);
    // table设置列宽度 AUTO_RESIZE_SUBSEQUENT_COLUMNS 填满父容器  JTable.AUTO_RESIZE_OFF 自适应
    table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
    tableJsp = uiFactory.createJScrollPane(table);
    pagingComponent = new PagingComponent();
    pagingComponent.setPageDelegale(this);

    this.add(this.topPanel(), BorderLayout.NORTH);
    this.add(tableJsp, BorderLayout.CENTER);
    this.add(pagingComponent, BorderLayout.SOUTH);
    this.add(this.initTail(), BorderLayout.SOUTH);

    this.termQuery(1);
    // 排序
    TableRowSorter<MemberQueryShopChargeModel> tableRowSorter =
        new TableRowSorter<MemberQueryShopChargeModel>(memberQueryShopChargeModel);
    table.setRowSorter(tableRowSorter);
  }