【正文】
年 月 日28數(shù)據(jù)庫原理及應(yīng)用課程設(shè)計報告數(shù)據(jù)庫原理及應(yīng)用課程設(shè)計一、課程設(shè)計的目的《數(shù)據(jù)庫原理及應(yīng)用》課程設(shè)計是計算機科學(xué)與技術(shù)專業(yè)集中實踐性環(huán)節(jié)之一,是學(xué)習(xí)完《數(shù)據(jù)庫原理及應(yīng)用》課程后進行的一次全面的綜合練習(xí)。l (3)訂閱功能:用戶可以訂閱報刊,系統(tǒng)自動計算所需金額,并顯示在界面上;管理員不可訂閱報刊,必須以用戶身份訂閱報刊。39。以下僅列出按報刊查詢代碼和界面(按用戶、部門查詢類似,不再列出)。39。 then messagebox(系統(tǒng)提示,對不起!請您輸入數(shù)量!) returnend ifif ctime=0 or ctime= or ctime= or ctime= then messagebox(系統(tǒng)提示,請輸入有效數(shù)字!) = returnelseif ctime= then year=elseif ctime=1 or ctime= then year=elseif ctime= then year=elseif ctime=2 or ctime= then year=elseif ctime= then year= elseif ctime=3 or ctime= then year=elseif ctime= then year= elseif ctime=4 or ctime= then year=elseif ctime= then year=elseif ctime=5 or ctime= then year=else messagebox(系統(tǒng)提示,訂閱年限輸入不正確!請按照示例方式輸入:,!)end ifif number=0 then messagebox(系統(tǒng)提示,請輸入有效數(shù)字!) = returnelseif number=1 then numb=1elseif number=2 then numb=2elseif number=3 then numb=3elseif number=4 then numb=4elseif number=5 then numb=5else messagebox(系統(tǒng)提示,輸入不正確!請按照示例方式輸入:1,并不要超過5!) returnend ifselect Uname,Upasswordinto :gs_operator_id,:gs_passwordfrom consumerwhere Uname=:name。 系統(tǒng)不足及改進 由于是初次用PowerBuilder做東西,并且時間有限,不足之處不可避免。 我會繼續(xù)學(xué)習(xí)數(shù)據(jù)庫的知識,學(xué)習(xí)PowerBuilder的知識,只有通過不斷的學(xué)習(xí)充實自己,才能讓自己有所得。)()ll_row=()if ll_row=0 then messagebox(系統(tǒng)提示,無記錄!) returnend if數(shù)據(jù)窗口:統(tǒng)計界面:(18)制作用戶菜單中登錄更菜單:同管理員更改登錄做法;4 系統(tǒng)評價 系統(tǒng)特色本系統(tǒng)是面向企業(yè)內(nèi)部的人員,用于訂閱報刊,并計算出相應(yīng)金額。 then messagebox(系統(tǒng)提示,對不起!請您輸入報刊號!) returnend ifif ctime= or ctime=39。39。MessageBox(系統(tǒng)提示,恭喜!注冊成功!)取消按鈕:close(w_enroll)(6)制作管理員主菜單mainmenu,制作管理員主界面w_main,將mainmenu放入w_main中;菜單:主界面:(7)制作管理員主菜單中錄入菜單:制作錄入數(shù)據(jù)窗口d_magazien, d_inputconsumer;制作管理員錄入報刊界面w_inputmagazine,錄入用戶界面w_inputconsumer;將d_magazien,d_inputconsumer分別放入w_inputmagazine,d_inputconsumer中;錄入報刊代碼及界面:(錄入用戶代碼及界面類似,不再列出)窗口代碼:(sqlca) ()數(shù)據(jù)窗框控制框代碼:int b_select string num,nameif =b_2 then b_select=messagebox(系統(tǒng)提示,確定刪除所選列?,exclamation!,yesno!) if b_select=1 then (0) end ifend ifif =b_3 then () if 0 then rollback。39。本系統(tǒng)主要有以下功能模塊:l (1)登陸功能:登陸系統(tǒng)為身份驗證登錄。本系統(tǒng)就是面向一個企業(yè)的報刊訂閱管理系統(tǒng)。用戶可以更改自己的注冊信息,但用戶名不能更改。39。+number+39。end if取消按鈕:close(parent)界面:(15)制作用戶菜單中訂閱菜單:制作數(shù)據(jù)窗口d_show_magazine,制作訂閱報刊界面:w_subscribe,將d_show_magazine加入其中。select Ssuminto :moneyfrom subscribewhere Uname=:name and Mnumber=:magazinenum 。但只有兩周的課程設(shè)計時間,時間比較倉促,所以開發(fā)的系統(tǒng)不是很完善,有一些功能未實現(xiàn),但是報刊訂閱的基本功能均已實現(xiàn)。這個課程設(shè)計使我鞏固了數(shù)據(jù)庫的知識。update consumerset subscribenum=:kindnumwhere Uname=:name 。39。制作管理員按用戶統(tǒng)計界面w_stat_consumer,按部門統(tǒng)計界面w_stat_department,按報刊統(tǒng)計界面w_stat_magazine。39。本系統(tǒng)的結(jié)構(gòu)功能圖: ER圖本系統(tǒng)采用ER圖(實體關(guān)系圖)的方法進行數(shù)據(jù)庫概念結(jié)構(gòu)設(shè)計。它能夠?qū)崿F(xiàn)報刊訂閱的基本功能,包括新報刊信息的錄入、訂閱、查詢等操作以及后臺數(shù)據(jù)庫的備份和恢復(fù)。本系統(tǒng)主要面向的用戶有系統(tǒng)管理員、讀者。39。 then MessageBox(系統(tǒng)提示,對不起!請輸入部門號!否則無法注冊!) () returnend ifs