public Costinfo_Add() {
		setLayout(null);
		
		JLabel label = new JLabel("会员编号：");
		label.setBounds(33, 60, 75, 18);
		label.setFont(new Font("宋体", Font.PLAIN, 15));
		add(label);
		
		id = new JTextField();
		id.setFont(new Font("宋体", Font.PLAIN, 15));
		id.setColumns(10);
		id.setBounds(120, 53, 191, 32);
		add(id);
		
		JButton button = new JButton("查询");
		button.setFont(new Font("宋体", Font.PLAIN, 15));
		button.setBounds(370, 54, 95, 31);
		button.addActionListener(this);
		add(button);
		
		JLabel label_1 = new JLabel("会员名：");
		label_1.setFont(new Font("宋体", Font.PLAIN, 15));
		label_1.setBounds(33, 120, 75, 18);
		add(label_1);
		
		username = new JTextField();
		username.setEditable(false);
		username.setFont(new Font("宋体", Font.PLAIN, 15));
		username.setColumns(10);
		username.setBounds(120, 113, 191, 32);
		add(username);
		
		JLabel label_2 = new JLabel("账户余额：");
		label_2.setFont(new Font("宋体", Font.PLAIN, 15));
		label_2.setBounds(370, 120, 75, 18);
		add(label_2);
		
		amount = new JTextField();
		amount.setEditable(false);
		amount.setFont(new Font("宋体", Font.PLAIN, 15));
		amount.setColumns(10);
		amount.setBounds(469, 113, 191, 32);
		add(amount);
		
		projectName = new JComboBox();
		ProjectService ps = new ProjectService();
		List<Project> lists = ps.findProjects();
		List<String> pros = new ArrayList<String>();
		for(Project p : lists){
			pros.add(p.getProjectName());
		}
		projectName.setModel(new DefaultComboBoxModel(pros.toArray()));
		projectName.setFont(new Font("宋体", Font.PLAIN, 15));
		projectName.setBounds(120, 173, 191, 32);
		add(projectName);
		
		cost = new JTextField();
		cost.setFont(new Font("宋体", Font.PLAIN, 15));
		cost.setColumns(10);
		cost.setBounds(469, 173, 191, 32);
		add(cost);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(120, 293, 540, 185);
		add(scrollPane);
		
		costName = new JTextArea();
		scrollPane.setViewportView(costName);
		
		JLabel label_3 = new JLabel("消费项目：");
		label_3.setFont(new Font("宋体", Font.PLAIN, 15));
		label_3.setBounds(33, 180, 75, 18);
		add(label_3);
		
		JLabel label_4 = new JLabel("消费金额：");
		label_4.setFont(new Font("宋体", Font.PLAIN, 15));
		label_4.setBounds(370, 180, 75, 18);
		add(label_4);
		
		JLabel label_5 = new JLabel("消费时间：");
		label_5.setFont(new Font("宋体", Font.PLAIN, 15));
		label_5.setBounds(370, 240, 75, 18);
		add(label_5);
		
		JLabel label_6 = new JLabel("消费内容：");
		label_6.setFont(new Font("宋体", Font.PLAIN, 15));
		label_6.setBounds(33, 379, 75, 18);
		add(label_6);
		
		time = new JTextField();
		time.setFont(new Font("宋体", Font.PLAIN, 15));
		time.setEditable(false);
		time.setColumns(10);
		time.setBounds(469, 233, 191, 32);
		add(time);
		
		operator = new JComboBox();
		OperatorService os = new OperatorService();
		List<Operator> lists2 = os.findOperators();
		List<String> pros2 = new ArrayList<String>();
		for(Operator p : lists2){
			pros2.add(p.getProjectName());
		}
		operator.setModel(new DefaultComboBoxModel(pros2.toArray()));
		operator.setFont(new Font("宋体", Font.PLAIN, 15));
		operator.setBounds(120, 233, 191, 32);
		add(operator);
		
		JLabel label_7 = new JLabel("操作员：");
		label_7.setFont(new Font("宋体", Font.PLAIN, 15));
		label_7.setBounds(33, 240, 75, 18);
		add(label_7);
		
		JButton button_1 = new JButton("保存");
		button_1.setFont(new Font("宋体", Font.PLAIN, 15));
		button_1.setBounds(120, 499, 95, 31);
		button_1.addActionListener(this);
		add(button_1);
		
		JButton button_2 = new JButton("清空");
		button_2.setFont(new Font("宋体", Font.PLAIN, 15));
		button_2.setBounds(253, 499, 95, 31);
		button_2.addActionListener(this);
		add(button_2);

		time.setText(DateUtil.getSystemTime());
		if(!Constants.id.equals("")){
			id.setText(Constants.id);
			select();
		}
	}