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

正文內(nèi)容

數(shù)據(jù)庫課程設(shè)計報告——銀行管理系統(tǒng)-資料下載頁

2025-08-09 15:54本頁面
  

【正文】 irm_Click(object sender, EventArgs e) { string constr = [DB]。 = new SqlConnection(constr)。 = new SqlCommand()。 = con。 sql = select 貸款額度 from 銀行卡 where 卡號 =39。 + cardno + 39。 = sql。 ()。對貸款額度進行判斷,是否足夠貸款。 SqlDataReader result = ()。 if (()) { ()。 switch ()對不同的貸款時間,轉(zhuǎn)到不同的函數(shù)。 { case 0: one()。 break。 case 1: five()。 break。 case 2: ten()。 break。 default: (請選擇正確的貸款時間!)。 break。 } } else {對用戶誤操作進行提示! (您當前卡貸款額度不足!)。 } } private void one() { string constr = [DB]。 = new SqlConnection(constr)。一年內(nèi)還清的函數(shù)! = new SqlCommand()。 = con。 string mo = 。 int money = (mo)。 Random ro = new Random()。 int random = (2000,3000)。 nowtime = new ()。 nowtime = 。 string time = (d)。計算利率和利息 double lilv1 = 。 double lixi = money * lilv1。 double huankuan = money + lixi。 sql = insert into 貸款(卡號,貸款號,貸款金額,貸款日期,貸款利率,是否有貸款,利息,應(yīng)還金額) values(39。 + cardno + 39。,39。 + random + 39。,39。 + mo + 39。,39。+time+39。,39。 + lilv1 + 39。,39。139。,39。+lixi+39。,39。+huankuan+39。) 。 = sql。 if ( == ) {數(shù)據(jù)庫中貸款表添加 ()。 } ()。 (貸款成功!)。 } private void five() { string constr = [DB]。 = new SqlConnection(constr)。 = new SqlCommand()。貸款五年時間函數(shù) = con。 string mo = 。 int money = (mo)。 Random ro = new Random()。 int random = (2000, 3000)。 nowtime = new ()。 nowtime = 。 string time = (d)。 double lilv1 = 。 double lixi = money * lilv1。 double huankuan = money + lixi。 sql = insert into 貸款(卡號,貸款號,貸款金額,貸款日期,貸款利率,是否有貸款,利息,應(yīng)還金額) values(39。 + cardno + 39。,39。 + random + 39。,39。 + mo + 39。,39。 + time + 39。,39。 + lilv1 + 39。,39。139。,39。 + lixi + 39。,39。 + huankuan + 39。) 。 = sql。 if ( == ) { ()。 } ()。 (貸款成功!)。 } private void ten() { string constr = [DB]。 = new SqlConnection(constr)。 = new SqlCommand()。 = con。貸款十年函數(shù) string mo = 。 int money = (mo)。 Random ro = new Random()。 int random = (2000, 3000)。 nowtime = new ()。 nowtime = 。 string time = (d)。 double lilv1 = 。 double lixi = money * lilv1。 double huankuan = money + lixi。 sql = insert into 貸款(卡號,貸款號,貸款金額,貸款日期,貸款利率,是否有貸款,利息,應(yīng)還金額) values(39。 + cardno + 39。,39。 + random + 39。,39。 + mo + 39。,39。 + time + 39。,39。 + lilv1 + 39。,39。139。,39。 + lixi + 39。,39。 + huankuan + 39。) 。 = sql。 if ( == ) { ()。 } ()。 (貸款成功!)。 }程序運行截圖:點擊查詢貸款金額查看數(shù)據(jù)庫進行確認:5. 貸款信息查看貸款信息查看是對貸款進行查看,正好利用上面的數(shù)據(jù)。程序流程圖:沒有貸款,對用戶提示!判斷是否有貸款有貸款,進行顯示!程序源代碼: private void userloaninfor_Click(object sender, EventArgs e) { string constr = [DB]。 = new SqlConnection(constr)。 = new SqlCommand()。 = con。 sql = select * from 貸款 where 卡號 = 39。+cardno+39。 = sql。判斷是否有貸款 if ( == ) { ()。 } SqlDataReader result = ()。 if (()) { ()。在表中填充數(shù)據(jù) ListViewItem item1 = new ListViewItem()。 (result[卡號].ToString())。 (result[貸款號].ToString())。 (result[貸款金額].ToString())。 (result[貸款日期].ToString())。 (result[貸款利率].ToString())。 (result[是否有貸款].ToString())。 (result[利息].ToString())。 (result[應(yīng)還金額].ToString())。 (item1)。 } }程序運行截圖:6. 貸款償還如果金額不是貸款金額則提示用戶,本銀行只支持一次性償還!程序流程圖輸入償還貸款金額對貸款表進行刪除,對還貸表進行添加。是貸款金額程序源代碼: private void button6_Click(object sender, EventArgs e) { string constr = [DB]。 = new SqlConnection(constr)。 = new SqlCommand()。 = con。 string pay = 。 int pay1 = (pay)。 sql = select 應(yīng)還金額 from 貸款 where 卡號 = 39。 + cardno + 39。查詢應(yīng)還金額 = sql。 if ( == ) { ()。 } SqlDataReader result = ()。 if (()) {判斷金額是否等于貸款金額 string daikuan = result[應(yīng)還金額].ToString()。 int dai = (daikuan)。 ()。 if (pay1 == dai) { sql = select * from 貸款 where 卡號 = 39。 + cardno + 39。 = sql。 if ( == ) { ()。 } SqlDataReader result1 = ()。 if (()) { string time = result1[貸款日期].ToString()。 string lilv = result1[貸款利率].ToString()。 string lixi = result1[利息].ToString()。
點擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1