銀行存取款系統(tǒng)大數(shù)據(jù)庫(kù)設(shè)計(jì)_第1頁(yè)
銀行存取款系統(tǒng)大數(shù)據(jù)庫(kù)設(shè)計(jì)_第2頁(yè)
銀行存取款系統(tǒng)大數(shù)據(jù)庫(kù)設(shè)計(jì)_第3頁(yè)
銀行存取款系統(tǒng)大數(shù)據(jù)庫(kù)設(shè)計(jì)_第4頁(yè)
銀行存取款系統(tǒng)大數(shù)據(jù)庫(kù)設(shè)計(jì)_第5頁(yè)
已閱讀5頁(yè),還剩28頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、文案大全銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)數(shù)據(jù)庫(kù)分析與設(shè)計(jì)學(xué)院:商學(xué)院學(xué)號(hào):一姓名:專(zhuān)業(yè):信息管理與信息系統(tǒng)班級(jí):14信管學(xué)期:2015-2016(1)1需求分析用戶(hù)的基本需求:用戶(hù)對(duì)銀行存取款客戶(hù)端的要求不高,他們需要的是自己通過(guò)直接操作來(lái)獲得自己所需要的服務(wù),如存款、取款、轉(zhuǎn)賬、查詢(xún)、修改密碼、繳費(fèi)等。每一個(gè)功能,用戶(hù)都可以根據(jù)系統(tǒng)的提示一步一步往下進(jìn)行,并且操作方便、簡(jiǎn)單、快捷,極大的節(jié)約了用戶(hù)辦理業(yè)務(wù)的時(shí)間。系統(tǒng)設(shè)計(jì)的目標(biāo):針對(duì)銀行業(yè)務(wù)種類(lèi)繁多、客戶(hù)需求量大等現(xiàn)象,為了減少銀行工作人員的工作任務(wù),延長(zhǎng)業(yè)務(wù)辦理的時(shí)間,方便客戶(hù),通過(guò)用戶(hù)與銀行存取款客戶(hù)端,使用戶(hù)自己就可以在客戶(hù)端上完成存款、取款、

2、查詢(xún)余額、轉(zhuǎn)賬、修改密碼的基礎(chǔ)功能,是的銀行業(yè)務(wù)科學(xué)化,提高賬戶(hù)管理水平和工作效率。(3)系統(tǒng)總體框架:銀行帳戶(hù)管理系統(tǒng)取款機(jī)管理普通管理管理員管理客戶(hù)操作開(kāi)戶(hù)銷(xiāo)戶(hù)取款機(jī)安裝拆除rF存取款查詢(xún)數(shù)據(jù)查詢(xún)統(tǒng)計(jì)業(yè)務(wù)流程圖:存款流程圖取款流程圖數(shù)據(jù)流:系統(tǒng)頂層數(shù)據(jù)流程圖:數(shù)據(jù)字典:數(shù)據(jù)流名稱(chēng):儲(chǔ)戶(hù)信息數(shù)據(jù)結(jié)構(gòu):賬號(hào)(ZH)銀行(YH)密碼(MM)姓名(XM)身份證號(hào)(SFZH)性別(XB)年齡(NL)地址(DZ)存款余額(CKYE)數(shù)據(jù)流名稱(chēng):銀行存款數(shù)據(jù)結(jié)構(gòu):存款單號(hào)(CKDH)賬號(hào)(ZH)日期(RQ)存款方式(CKFS)存款金額(JE)數(shù)據(jù)流名稱(chēng):銀行取款數(shù)據(jù)結(jié)構(gòu):取款單號(hào)(CKDH)賬號(hào)(ZH)

3、日期(RQ)取款方式(CKFS)金額(JE)2概念結(jié)構(gòu)設(shè)計(jì)(1)系統(tǒng)E-R圖3邏輯結(jié)構(gòu)設(shè)計(jì)儲(chǔ)戶(hù)(賬號(hào)、銀行、密碼、姓名、身份證號(hào)、性別、年齡、地址、存款余額)存款單(存款單號(hào)、賬號(hào)、日期、存款方式、金額)取款單(取款單號(hào)、賬號(hào)、日期、取款方式、金額)(注:“”表示主鍵,“”表示主鍵+外鍵,“”表示外鍵)儲(chǔ)戶(hù)字段名數(shù)據(jù)類(lèi)型長(zhǎng)度說(shuō)明描述ZHChar15賬號(hào)主鍵YHVarchar50銀行MMChar6密碼XMChar8姓名SFZHChar18身份證號(hào)XBChar2性別NLSmallint2年齡DZVarchar50地址CKYEFloat20存款余額存款單字段名數(shù)據(jù)類(lèi)型長(zhǎng)度說(shuō)明描述CKDHChar16

4、存款單號(hào)主鍵(年月日+序號(hào))ZHChar15賬號(hào)外鍵RQDatatime8日期JEFloat20金額CUFSChar20存款方式取款單字段名數(shù)據(jù)類(lèi)型長(zhǎng)度說(shuō)明描述QUDHCharr16取款單號(hào)主鍵(年月日+序號(hào))ZHChar15賬號(hào)外鍵RQDatatime8日期JEFloat20金額QKFSChar20取款方式銀行存取款系統(tǒng)用戶(hù)的增刪改一、增加用戶(hù)信息:代碼:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem丄

5、inq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespace銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)publicpartialclassForm1:FormpublicForm1()InitializeComponent();privatevoid確定_Click(objectsender,EventArgse)/連接字符串stringStrcnn=DataSource=;lnitialCatalog二銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì);lntegratedSecurity二True;/實(shí)例化連接對(duì)象SqlConn

6、ectionsqlcnn二newSqlConnection(Strcnn);/打開(kāi)連接通道sqlcnn.Open();/建立SQL語(yǔ)句stringSQLstr=insertinto用戶(hù)values(+txtno.Text.Trim()+,+txtname.Text.Trim()+,+txtsex.Text.Trim()+,+txtage.Text.Trim()+,+txtid.Text.Trim()+);建立SQLcommand對(duì)象SqlCommandsqlcmm=newSqlCommand(SQLstr,sqlcnn);/執(zhí)行查詢(xún)命令intresult=sqlcmm.ExecuteNonQu

7、ery();/判斷執(zhí)行是否成功if(result0)MessageBox.Show(插入用戶(hù)信息成功!);elseMessageBox.Show(插入用戶(hù)信息失敗!);/關(guān)閉連接通道sqlcnn.Close();privatevoid重置_Click(objectsender,EventArgse)/清除文本框的內(nèi)容txtno.Clear();txtname.Clear();txtsex.Clear();txtage.Clear();txtid.Clear();privatevoid退出_Click(objectsender,EventArgse)this.Close();privatevoi

8、dtxtid_TextChanged(objectsender,EventArgse)privatevoidlabel6_Click(objectsender,EventArgse)privatevoidtxtage_TextChanged(objectsender,EventArgse)privatevoidlabel5_Click(objectsender,EventArgse)privatevoidtxtsex_TextChanged(objectsender,EventArgse)privatevoidlabel4_Click(objectsender,EventArgse)priva

9、tevoidtxtname_TextChanged(objectsender,EventArgse)privatevoidlabel3_Click(objectsender,EventArgse)privatevoidtxtno_TextChanged(objectsender,EventArgse)privatevoidlabel2_Click(objectsender,EventArgse)privatevoidlabel1_Click(objectsender,EventArgse)截圖:查詢(xún)修改用戶(hù)信息:代碼:usingSystem;usingSystem.Collections.Ge

10、neric;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem丄inq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespace銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)publicpartialclassForm2:FormpublicForm2()InitializeComponent();privatevoid查詢(xún)_Click(objectsender,EventArgse)/連接字符串stringStrc

11、nn=DataSource=;lnitialCatalog=銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì);IntegratedSecurity二True;/實(shí)例化連接對(duì)象SqlConnectionsqlcnn二newSqlConnection(Strcnn);/打開(kāi)連接通道sqlcnn.Open();/建立SQL語(yǔ)句stringSQLstr=select*from用戶(hù)whereno二”+cmbno.Selectedltem.ToString()+;建立SQLcommand對(duì)象SqlCommandsqlcmm=newSqlCommand(SQLstr,sqlcnn);執(zhí)行查詢(xún)命令,結(jié)果填充到SqlDataReade

12、r數(shù)據(jù)中SqlDataReadersqlrd=sqlcmm.ExecuteReader();while(sqlrd.Read()txtname.Text=sqlrdname.ToString();txtsex.Text=sqlrdsex.ToString();txtage.Text=sqlrdage.ToString();txtid.Text=sqlrdid.ToString();sqlcnn.Close();privatevoidForm2data_Load(objectsender,EventArgse)privatevoid保存_Click(objectsender,EventArgse

13、)/連接字符串stringStrcnn=DataSource=;lnitialCatalog二銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì);IntegratedSecurity二True;/實(shí)例化連接對(duì)象SqlConnectionsqlcnn二newSqlConnection(Strcnn);/打開(kāi)連接通道sqlcnn.Open();/建立SQL語(yǔ)句stringSQLstr=update用戶(hù)setname=+txtname.Text.Trim()+,sex=+txtsex.Text.Trim()+,age=+txtage.Text.Trim()+,id=+txtid.Text.Trim()+whereno二+cm

14、bno.Selectedltem.ToString()+(VIVI.J建立SQLcommand對(duì)象SqlCommandsqlcmm=newSqlCommand(SQLstr,sqlcnn);/執(zhí)行查詢(xún)命令intresult=sqlcmm.ExecuteNonQuery();/判斷執(zhí)行是否成功if(result0)MessageBox.Show(修改用戶(hù)信息成功!);elseMessageBox.Show(修改用戶(hù)信息失敗!);/關(guān)閉連接通道sqlcnn.Close();privatevoid退出_Click(objectsender,EventArgse)this.Close();privat

15、evoidForm2_Load(objectsender,EventArgse)/連接字符串stringStrcnn=DataSource=;lnitialCatalog=銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì);IntegratedSecurity二True;/實(shí)例化連接對(duì)象SqlConnectionsqlcnn二newSqlConnection(Strcnn);/打開(kāi)連接通道sqlcnn.Open();/建立SQL語(yǔ)句stringSQLstr=select*from用戶(hù);sqlcnn);截圖:建立SQLcommand對(duì)象SqlCommandsqlcmm=newSqlCommand(SQLstr,執(zhí)行查詢(xún)命

16、令,結(jié)果填充到SqlDataReader數(shù)據(jù)中SqlDataReadersqlrd=sqlcmm.ExecuteReader();/通過(guò)循環(huán)一個(gè)一個(gè)讀取學(xué)號(hào)填入組合中while(sqlrd.Read()cmbno.ltems.Add(sqlrdno);sqlcnn.Close();二、刪除用戶(hù)信息代碼:usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem丄inq;usingSystem.Text;usingSy

17、stem.Windows.Forms;usingSystem.Data.SqlClient;namespace銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì)publicpartialclassForm3:FormpublicForm3()InitializeComponent();privatevoid刪除_Click(objectsender,EventArgse)/連接字符串stringStrcnn=DataSource=;lnitialCatalog=銀行存取款系統(tǒng)數(shù)據(jù)庫(kù)設(shè)計(jì);IntegratedSecurity二True;/實(shí)例化連接對(duì)象SqlConnectionsqlcnn二newSqlConnectio

18、n(Strcnn);/打開(kāi)連接通道sqlcnn.Open();/從listbox列表框中選擇的一行用戶(hù)信息,提取用戶(hù)的賬號(hào)stringSelectno二IstStu.Selectedltem.ToString().Substring(0,19);/建立SQL語(yǔ)句wherestringSQLstr=deletefrom用戶(hù)no二+Selectno+;建立SQLcommand對(duì)象SqlCommandsqlcmm=newSqlCommand(SQLstr,sqlcnn);/執(zhí)行查詢(xún)命令intresult=sqlcmm.ExecuteNonQuery();/判斷執(zhí)行是否成功if(result0)MessageBox.Show(刪除用戶(hù)信息成功!);elseMessageBox.Show(刪除用戶(hù)信息失敗!);從當(dāng)前的listbox列表框中,把選擇刪除的內(nèi)容移去。IstStu.ltems.Remove(lstStu.Selectedltem);/關(guān)閉連接通道sqlcnn.Close();privatevoid退出_Click(objectsender,EventArgse)this.Close();privatevoidForm3_Load(objectsend

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論