freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

網(wǎng)絡(luò)工程java本atm機(jī)銀行存取款系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文(編輯修改稿)

2024-07-20 01:43 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 final long serialVersionUID = 1L。 private registerService rs = new registerServiceImpl()。 public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response)。 } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (utf8)。 (utf8)。 (text/html。charset=utf8)。 String name = (name)。//獲取姓名 String name1 = (name1)。//獲取姓名(拼音) String sex = (sex)。//獲取性別 String identifyCard =(identifyCard)。//獲取身份證號(hào)碼 String card = (card)。//獲取卡號(hào) String password = (password)。//獲取密碼 String province = (province)。//獲取開戶省 String city = (city)。//獲取開戶市 String vip = (vip)。//獲取vip String overdraft = (overdraft)。//獲取透支金額 String balance = (balance)。//獲取透支金額 BigDecimal card1 = new BigDecimal((card))。//將卡號(hào)轉(zhuǎn)為bigdecimal BigDecimal overdraft1 =new BigDecimal((overdraft))。//將密碼轉(zhuǎn)為double BigDecimal balance1 = new BigDecimal((balance))。//將密碼轉(zhuǎn)為double Users user = new Users(null, card1, password, name, name1, sex, identifyCard, province, city, vip, overdraft1,balance1)。 List list=(card1)。 String msg=。 if(()==0){ (user)。 (/ATM/)。 }else{ msg=card1+賬號(hào)已經(jīng)存在。 (msg, msg)。 (name, name)。 (name1, name1)。 (identifyCard, identifyCard)。 (province, province)。 (city, city)。 (/).forward(request, response)。 } }}用戶登陸成功后,進(jìn)入功能操作選擇界面。圖33 用戶主界面(jsp頁(yè)面)用戶登陸成功后,用戶可以選擇存款、取款、轉(zhuǎn)賬、查詢歷史操作;選擇不同的操作會(huì)跳轉(zhuǎn)到對(duì)應(yīng)的界面;該部分主要代碼如下:script language=JavaScript type=text/JavaScript function getmony(){ =/ATM/。 } function savemoney(){ =/ATM/。 } function transfermoney(){ =/ATM/。 } function querymoney(){ =/ATM//servlet/queryMoneyServlet。 } function transferdetails(){ =/ATM/servlet/queryDealsServlet。 } function modifypassword(){ =/ATM/。 }/script /head body form action=/ATM/servlet/existServlet method=post table align=center bgcolor=ff3333 width=300 width=600 height=300 thead tr th colspan=3 amp。nbsp。歡迎光臨/th /tr /thead tr td align=centerinput type=button name=getMoney id=getMoney value= 取 錢 onclick=getmony()。//td td align=centerinput type=button name=saveMoney id=saveMoney value= 存 錢 onclick=savemoney()。//td td align=centerinput type=button name=transferMoney id=transferMoney value= 轉(zhuǎn) 賬 onclick=transfermoney()。//td /tr tr td align=centerinput type=button name=queryMoney id=queryMoney value=查詢余額 onclick=querymoney()。 //td td align=centerinput type=button name=transferDetails id=transferDetails value=交易明細(xì) onclick=transferdetails()。//td td align=centerinput type=button name=modifyPassword id=modifyPassword value=修改密碼 onclick=modifypassword()。//td /tr tr td colspan=3 align=center input type=submit value= 退 出 //td /tr /table /form /body/html用戶點(diǎn)擊取款按鈕,可進(jìn)行取款操作。注:取款區(qū)域用來(lái)判斷收取手續(xù)費(fèi)類型圖34 用戶存款用戶輸入取款金額,金額不能為負(fù)數(shù)或字母。然后單擊取款按鈕,如果取款數(shù)不大于余額,讀取取款數(shù)額,將信息寫入數(shù)據(jù)庫(kù),提示取款成功和當(dāng)前余額,否則,提示取款錯(cuò)誤。該模塊主要代碼如下:package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class getMoneyServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response)。 } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (utf8)。 (utf8)。 (text/html。charset=utf8)。 //獲取取款省 String getprovince = new String((getprovince).getBytes(iso88591),utf8).trim()。 //獲取取款省 String getcity = new String((getcity).getBytes(iso88591),utf8).trim()。 String money = (money)。//獲取取款金額 BigDecimal money1 = new BigDecimal((money))。 registerService rs = new registerServiceImpl()。 getMoneyService gd = new getMoneyServiceImpl()。 HttpSession session =(true)。 Deals deal = null。 BigDecimal card = (BigDecimal) (userCard)。//獲取卡號(hào) List list =(card)。//根據(jù)card獲取登陸用戶 Users user = (Users) (0)。 BigDecimal balance = ()。//余額 BigDecimal overdraft = ()。 //透支額度 BigDecimal allmoney = (overdraft)。 String province = ().trim()。//省 String city = ().trim()。//市 List ratelist =null。//存儲(chǔ)匯率實(shí)體 Rates rate =null。//查詢出的匯率實(shí)體 BigDecimal ratevalue =null。//匯率值 if((province)amp。amp。 !(city)){ //同省不同市 BigDecimal ratetype = new BigDecimal((0))。 ratelist = (ratetype)。 rate = (Rates) (0)。 ratevalue =()。 BigDecimal getmoney =((ratevalue))。 if((allmoney)==1){ BigDecimal balance1 = ((getmoney)).setScale(2, )。 String time = (new Date())。 String transfer =否。 deal =new Deals(null, card, time, (),transfer, null)。 (deal)。//添加交易記錄 ((getmoney))。 (user)。//修改賬戶余額 (/ATM/)。 }else{ (/ATM/)。 } }else if(!(province)){ //不同省 BigDecimal ratetype = new BigDecimal((1))。 ratelist = (ratetype)。 rate =
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1