




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
ATM自助取款机系统java代码(大全) 第一篇:ATM自助取款机系统java代码(大全)publicvoidactionPerformed(ActionEvente)//界面显示控制{StringIC_Number=“";Stringpassword=”“;StringIC_No=”“;z30.setVisible(false);floatleftmoney=0;floatmoneys=0;floatmon=0;floatmoney1=0;floatmoney2=0;if(true){intNo_50=0,No_100=0;Stringstrin=”selectNO_50,NO_100fromATMATM_ID='123456789'“;ResultSetrsSQLSelect=executeQuery(strin);try{if(rsSQLSelect.next()){No_50=Integer.parseInt(rsSQLSelect.getString(”NO_50“));No_100=Integer.parseInt(rsSQLSelect.getString(”NO_100“));where}}catch(Exceptioner){System.out.println(”查询ATM机信息出错!“);}if(No_50==0&&No_100==0){z1.setVisible(false);t1.setText(”对不起,本ATM自动取款机暂停服务!“);cl.show(c,”1“);}}cl.show(c,”1“);if(e.getSource()==z1){t3.setText(”“);text1.setText(”“);cl.show(c,”2“);}if(e.getSource()==z4||e.getSource()==z6||e.getSource()==z11||e.getSource()==z16||e.getSource()==z18||e.getSource()==z22){closeDBConnection();cl.show(c,”1“);}if(e.getSource()==z2){closeDBConnection();System.exit(0);}if(e.getSource()==z3){IC_Number=text1.getText().trim();if(getname(IC_Number)){z5.setVisible(true);pw1.setVisible(true);t4.setVisible(true);pw1.setText(”“);t5.setText(”“);cl.show(c,”3“);}else{t3.setText(”您输入的卡号不存在,请重新输入!“);cl.show(c,”2“);}}if(e.getSource()==z5){password=pw1.getText().trim();IC_Number=text1.getText().trim();if(!login(IC_Number,password)){t5.setText(”您输入的密码错误,请重新输入!“);pw1.setText(”“);n--;cl.show(c,”3“);}else{t5.setText(”“);cl.show(c,”4“);}if(n{n=2;t5.setText(”您已经三次输入错误密码,谢谢您的使用,欢迎下次光临!“);z5.setVisible(false);pw1.setVisible(false);t4.setVisible(false);cl.show(c,”3“);}}if(e.getSource()==z7){t33.setText(”“);cl.show(c,”5“);}if(e.getSource()==z8)//余额查询{DBAccessd=newDBAccess();Stringstr3=”“;Stringstri=”“;IC_Number=text1.getText().trim();t29.setText(IC_Number);leftmoney=getmoney(IC_Number);t30.setText(Float.toString(leftmoney));stri=”selectbank_namefromIC,bankwhereIC.bank_NO=bank.bank_NOandIC_ID='“+IC_Number+”'“;ResultSetrsSQLSelect=d.executeQuery(stri);try{if(rsSQLSelect.next()){str3=rsSQLSelect.getString(”bank_nam

An****70
实名认证
内容提供者


最近下载