ImageVerifierCode 换一换
格式:DOCX , 页数:8 ,大小:16.31KB ,
资源ID:8052876      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-8052876.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(ATM自助取款机系统java代码.docx)为本站会员(b****6)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

ATM自助取款机系统java代码.docx

1、ATM自助取款机系统java代码public void actionPerformed(ActionEvent e) /界面显示控制 String IC_Number=”; String password=; String IC_No=; z30。setVisible(false); float leftmoney=0; float moneys=0; float mon=0; float money1=0; float money2=0; if(true) int No_50=0,No_100=0; String strin=”select NO_50,NO_100 from ATM whe

2、re ATM_ID=123456789”; ResultSet rsSQLSelect=executeQuery(strin); try if(rsSQLSelect.next()) No_50=Integer。parseInt(rsSQLSelect.getString(NO_50”)); No_100=Integer。parseInt(rsSQLSelect。getString(”NO_100”); catch(Exception er)System。out。println(查询ATM机信息出错!); if(No_50=0&No_100=0) z1。setVisible(false); t

3、1。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()=z16e。getSource()=z18|e。getSource()=z22) closeDBConnection(); cl。show(c,1”); if(e。getSource()=z2) clo

4、seDBConnection(); 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) passwor

5、d=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(n0) n=2; t5.setText(您已经三次输入错误密码,谢谢您的使用,欢迎下次光临!”); z5。setVisible(false); pw1。setVisible(false); t4。setVisible(f

6、alse); cl。show(c,3); if(e.getSource()=z7) t33.setText(”); cl。show(c,5); if(e。getSource()=z8) /余额查询 DBAccess d=new DBAccess(); String str3=; String stri=”; IC_Number=text1。getText().trim(); t29.setText(IC_Number); leftmoney=getmoney(IC_Number); t30。setText(Float.toString(leftmoney)); stri=”select ban

7、k_name from IC,bank where IC.bank_NO=bank.bank_NO and IC_ID=”+IC_Number+”; ResultSet rsSQLSelect=d。executeQuery(stri); try if(rsSQLSelect。next() str3=rsSQLSelect.getString(”bank_name); /mit(); catch(Exception er) t32.setText(str3); cl.show(c,10); if(e.getSource()=z9) t23。setText(); cl.show(c,9); if(

8、e。getSource()=z10) t28。setText(”); cl。show(c,”11”); if(e。getSource()=z12) DBAccess d=new DBAccess(); IC_Number=text1。getText()。trim(); fetchmoney=Integer。parseInt(text2.getText(); if(fetchmoney=0) t9.setText(”取款金额非法!请重新输入!); text2.setText(”); cl.show(c,6”); return; if(fetchmoney1000) t9.setText(”每次交

9、易金额最大为1000元!”); text2。setText(”); cl。show(c,”6”); return ; if(fetchmoney50!=0) t9。setText(”取款金额只能为50的倍数!”); text2。setText(); cl。show(c,”6”); return ; leftmoney=getmoney(IC_Number); if(fetchmoneyleftmoney) t9。setText(”您的余额不足,请重新输入取款金额!); text2.setText(”); cl。show(c,”6”); return ; int No_50=0,No_100=0

10、,x_50=0,x_100=0,mo=0; String str1=select NO_50,NO_100 from ATM where ATM_ID=123456789”; ResultSet rsSQLSelect=d。executeQuery(str1); try if(rsSQLSelect。next() No_50=Integer.parseInt(rsSQLSelect。getString(”NO_50); No_100=Integer.parseInt(rsSQLSelect。getString(”NO_100)); catch(Exception er)System。out.p

11、rintln(查询ATM机信息出错!”); x_100=fetchmoney/100; if(No_100x_100) mo=fetchmoneyNo_100*100; x_50=mo/50; if(x_50No_50) t9。setText(取款机现钞不足!”); text2。setText(”); cl。show(c,6”); return; else No_50=No_50x_50; No_100=0; else No_100=No_100-x_100; x_50=(fetchmoneyx_100100)/50; if(x_50No_50) t9。setText(取款机50面值现钞不足!

12、); text2.setText(); cl。show(c,”6”); return; else No_50=No_50-x_50; String str2=update ATM set NO_50=+No_50+ where ATM_ID=”+ATM_id+; String str3=update ATM set NO_100=”+No_100+ where ATM_ID=+ATM_id+”; d。executeUpdate(str2); d.executeUpdate(str3); setmoney(fetchmoney,IC_Number); t12。setText(Float。toString(fetchmoney); cl.show(c,”7); text2.setText(”);

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2