欢迎来到装配图网! | 帮助中心 装配图网zhuangpeitu.com!
装配图网
ImageVerifierCode 换一换
首页 装配图网 > 资源分类 > DOCX文档下载
 

ATM自助取款机系统java代码(共11页)

  • 资源ID:51988188       资源大小:16.27KB        全文页数:11页
  • 资源格式: DOCX        下载积分:20积分
快捷下载 游客一键下载
会员登录下载
微信登录下载
三方登录下载: 微信开放平台登录 支付宝登录   QQ登录   微博登录  
二维码
微信扫一扫登录
下载资源需要20积分
邮箱/手机:
温馨提示:
用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
支付方式: 支付宝    微信支付   
验证码:   换一换

 
账号:
密码:
验证码:   换一换
  忘记密码?
    
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

ATM自助取款机系统java代码(共11页)

精选优质文档-倾情为你奉上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 where ATM_ID=''" 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); 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<0) 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) /余额查询 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 bank_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(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(fetchmoney>1000) t9.setText("每次交易金额最大为1000元!"); text2.setText(""); cl.show(c,"6"); return ; if(fetchmoney%50!=0) t9.setText("取款金额只能为50的倍数!"); text2.setText(""); cl.show(c,"6"); return ; leftmoney=getmoney(IC_Number); if(fetchmoney>leftmoney) t9.setText("您的余额不足,请重新输入取款金额!"); text2.setText(""); cl.show(c,"6"); return ; int No_50=0,No_100=0,x_50=0,x_100=0,mo=0; String str1="select NO_50,NO_100 from ATM where ATM_ID=''" 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.println("查询ATM机信息出错!"); x_100=fetchmoney/100; if(No_100<x_100) mo=fetchmoney-No_100*100; x_50=mo/50; if(x_50>No_50) t9.setText("取款机现钞不足!"); text2.setText(""); cl.show(c,"6"); return; else No_50=No_50-x_50; No_100=0; else No_100=No_100-x_100; x_50=(fetchmoney-x_100*100)/50; if(x_50>No_50) t9.setText("取款机50面值现钞不足!"); 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(""); 专心-专注-专业

注意事项

本文(ATM自助取款机系统java代码(共11页))为本站会员(29)主动上传,装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知装配图网(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!