java_ATM鏈洪摱琛屽瓨鍙栨绯荤粺鐨勮璁′笌瀹炵幇鏈姣曚笟璁烘枃 - 鐧惧害鏂囧簱 联系客服

发布时间 : 星期一 文章java_ATM鏈洪摱琛屽瓨鍙栨绯荤粺鐨勮璁′笌瀹炵幇鏈姣曚笟璁烘枃 - 鐧惧害鏂囧簱更新完毕开始阅读ec1a1ace804d2b160b4ec0c1

商丘师范学院2012届本科毕业论文(设计)

String hm;

public void ff(String hm){ this.hm=hm; f.add(l1); l1.setBounds(90,50,80,30); f.add(t1); t1.setBounds(160,50,100,30); f.add(l2); l2.setBounds(90,100,80,30); f.add(t2); t2.setBounds(160,100,100,30); f.add(JB1); JB1.setBounds(140,170,80,30); JB1.addActionListener(this); f.setBounds(400,150,385,290); f.setLayout(null); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); f.setVisible(true); }

//public static void main (String[]agrs){ //Zzact c=new Zzact(); //c.ff(\ //} @Override

public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub Yhvo yvo=new Yhvo(); Yhvo yvo2=new Yhvo(); yvo.setHuming(t1.getText()); yvo2.setHuming(hm); yvo.setMima(\); yvo2.setMima(\); yvo2.setYue(-Integer.parseInt(t2.getText())); yvo.setYue(Integer.parseInt(t2.getText())); try { Yhdao.ff2(yvo,3); } catch (ClassNotFoundException e2) { // TODO Auto-generated catch block e2.printStackTrace();

33

商丘师范学院2012届本科毕业论文(设计)

} catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); }

Lsvo lvo=new Lsvo();

lvo.setHuming(t1.getText());

lvo.setCaozuo(\从账户\+hm+\转入\+Integer.parseInt(t2.getText())+\元\); List list = null; try { list = new Yhdao().ff();

} catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }

for(int i=0;i

} catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }

try { Yhdao.ff2(yvo2,3);

} catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); }

Lsvo lvo2=new Lsvo(); lvo2.setHuming(hm);

lvo2.setCaozuo(\向账户\+t1.getText()+\转入\+Integer.parseInt(t2.getText())+\元\); List list2 = null;

34

商丘师范学院2012届本科毕业论文(设计)

try { list2 = new Yhdao().ff(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } for(int i=0;i

package action;

import java.awt.TextArea;

import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.sql.SQLException; import java.util.List;

import javax.swing.JButton; import javax.swing.JFrame; import vo.Lsvo; import dao.Lsdao;

//用户历史界面

public class Lsact extends JFrame implements ActionListener{

35

商丘师范学院2012届本科毕业论文(设计) private static final long serialVersionUID = 1L; JFrame f=new JFrame(\用户历史查询\); TextArea t=new TextArea(15,130); //setWrapStyleWord();

JButton JB1 = new JButton(\查询\); String hm;

public void ff(String hm){ this.hm=hm; f.add(t); f.add(JB1); JB1.addActionListener(this); JB1.setBounds(290,260,60,30); t.setBounds(50,50,600,200); f.setBounds(400,150,700,350); f.setLayout(null); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); f.setVisible(true); }

//public static void main (String[]agrs){ // Lsact l=new Lsact(); //l.ff(\ //}

@Override

public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub List list=null; try { list = new Lsdao().ff(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } StringBuffer sb = new StringBuffer(); System.out.println(list); //SimpleDateFormat f=new SimpleDateFormat(\ sb.append(\账户 \ + \操作时间 36

\ +\