@Override
	public void actionPerformed(ActionEvent e) {
		while (model.getRowCount() > 0) {
			model.removeRow(model.getRowCount() - 1);
		}
		CostinfoService cs = new CostinfoService();
		String ids = textField.getText();
		if(!Check.checkNull(new String[]{"编号"}, new String[]{ids})){
			return ;
		}
		Constants.id = ids;
		List<Costinfo> list = cs.findCostinfosByCusId(ids);
		for (Costinfo c : list) {
			String[] dd = { "" + (model.getRowCount() + 1),
					c.getCustomer().getId(), c.getCustomer().getUsername(),
					c.getProjectName(), c.getCost().toString(), c.getTime(),
					c.getOperator() };
			model.addRow(dd);
		}
		for (int i = 0; i < table.getColumnCount(); i++) {
			table.getColumn(table.getColumnName(i)).setCellRenderer(tcr);
		}

		//FitTableColumns(table);
	}