【正文】
t affor d it. T he other dad forbade those words to be used. He insisted I say, How can I afford it? One is a statement, and the other is a question. One lets you off the hook, and the other forces you to think. My soontoberich dad would explain that by automatically saying the words I can39。s thoughts on one39。s financial programming and mindset. It was learned while the child was young. Money is not taught in schools. Schools focus on scholastic and professional skills, but not on financial skills. This explains how smart bankers, doctors and accountants who earned excellent grades in school may still struggle financially all of their lives. Our staggering national debt is due in large part to highly educated politicians and government officials making financial decisions w ith little or no training on the subject of money. I often look ahead to the new millennium and wonder what will happen when we have millions of people who will need financial and medical assistance. They will be dependent on their families or the government for financial support. What will happen when Medicare and Social Security run out of money? How w ill a nation survive if teaching children about money continues to be left to parentsmost of whom will be, or already are, poor? Because I had two influential fathers, I learned from both of them. I had to think about each dad39。t know what he39。s statement. It would have been much easier to simply say, Yeah, he39。 最后向所有 支持和幫助過我的老師和同學(xué)表示衷心的感謝! tern University to do his advanced studies, all on full financial scholarships. The other father never finished the eighth gr ade. Both men were successful in their careers, working hard all their lives. Both earned substantial ines. Yet one struggled financially all his life. The other would bee one of the richest men in Hawaii. One died leaving tens of millions of dollars to his family, charities and his church. The other left bills to be paid. Both men were strong, charismatic and influential. Both men offered me advice, but they did not advise the same things. Both men believed strongly in education but did not remend the same course of study. If I had had only one dad, I would have had to accept or reject his advice. Having two dads advising me offered me the choice of contrasting points of view。我在忻州師范學(xué)院不僅學(xué)到了知識,而且從各位老師那里學(xué)到了嚴(yán)謹?shù)闹螌W(xué)態(tài)度、踏實認真的工作精神和為人正直的作風(fēng),這都將使我終身受益。 感謝王建國主任和胡志軍老師,他們一直在鼓勵我克服學(xué)習(xí)和生活中的困難,使我順利完成論文。 由于畢業(yè)設(shè)計時間較短,加之本人水平 有限,所以該系統(tǒng)還有許多不盡人意的地方,比如用戶界面不夠美觀,出錯處理不夠完善等多方面問題,這些都有待進一步改善。 5 結(jié)束語 經(jīng)過一個月的開發(fā)和設(shè)計,卡拉 OK 歌庫管理系統(tǒng)的設(shè)計與實現(xiàn)基本開發(fā)完畢,其功能基本符合用戶需求,能夠完成歌曲基本信息的添加、修改、刪除,歌曲的多條件查詢以及相關(guān)報表的打印,并提供部分系統(tǒng)維護功能,使用戶方便進行數(shù)據(jù)備份與數(shù)據(jù)刪除。 數(shù)據(jù)轉(zhuǎn)入部分代碼為: use 歌曲列表 in 0 select 歌曲列表 append from A:歌曲列表 use in 歌曲列表 ? use 字數(shù) in 0 select 字數(shù) append from A:字數(shù) use in 字數(shù) 系統(tǒng)維護界面表單如下: 圖 xtwh表單界面 其中,當(dāng)用戶單擊用戶權(quán)限維護按鈕時,進入如下表單: 圖 xtqxwh表單界面 系統(tǒng)完成 (1) 建立項目文件 用 VFP的項目管理器可把歌庫管理程序的表單、表、程序及其它文件統(tǒng)一管理起來,生成項目文件 。 ③ 用戶權(quán)限維護:主要是對系統(tǒng)用戶密碼的修改等進行管理。該表單的數(shù)據(jù)環(huán)境為空,它主要有如下四個選項: ① 歌曲記錄轉(zhuǎn)出:這里指數(shù)據(jù)的備份,即將系統(tǒng)中的數(shù)據(jù)存在 A軟盤上。在此模塊中,系統(tǒng)管理員可以修改用戶的重要信息(如密碼)等。 查詢歌曲表單界面如下: 圖 chaxun表單界面 部分代碼如下: sele dtjcx if =1 if =1 set filter to 分 類 名 稱 _a =alltrim() and 姓名 =alltrim() if =1 set filter to 分 類 名 稱 _a =alltrim() and 姓名 =alltrim() and 分類名稱 _b =alltrim() endif else ? 本表單還設(shè)計了對所查詢的結(jié)果進行打印的功能,部分代碼如下: if i==1 set filter to 分 類 名 稱_a=alltrim( ) report form w to print preview else if i==2 set filter to 分 類 名 稱_b=alltrim( ) report form w to print preview else report form w to print preview endif endif (5) 報表打印模塊設(shè)計 本系統(tǒng)的報表打印的類型比較多,除了對所需的數(shù)據(jù)表進行打印以外,主要是被 ,當(dāng)查詢到相關(guān)內(nèi)容時,直接被打印出來。若要重新清空條件,必須單擊下方的 [取消查詢 ]按鈕。 本系統(tǒng)的查詢功能主要在 ,在此表單上先設(shè)置pageframe1頁框,以供不同類型的查詢需求,在三個 page頁面中設(shè)置 grid1表格中的記錄應(yīng)滿足的條件,即過濾那些不需要的記錄(并非刪除,只是不顯示而已)。該系統(tǒng)的查詢?yōu)槎鄺l件查詢,結(jié)構(gòu)化查詢語言( SQL)是一種數(shù)據(jù)記錄的命令,目前已有 ANSI(美國國家標(biāo)準(zhǔn)局)版本。由于歌曲管理系統(tǒng)所涉及的表較多,為了用戶的方便,在此設(shè)計綜合了歌曲列表、歌星資料、語言和字數(shù)四個表編輯的表單,以提供不同的需求。設(shè)計此表單時 ,應(yīng)新建一個視圖,把所有相關(guān)的內(nèi)容聯(lián)系起來成為一個可供瀏覽的表。 (2) 歌曲瀏覽模塊的設(shè)計與實現(xiàn) 歌曲瀏覽模塊是管理人員對歌庫管理系統(tǒng)中所有歌曲綜合資料的的提取,由于歌曲資料所涉及的內(nèi)容較多,為了方便管理 ,設(shè)計時把不同的信息放在不同的表中進行管理。因此,在進入系統(tǒng)之前要設(shè)置密碼輸入功能,本系統(tǒng)啟動后,進入登錄表單,按 “ 確定 ” 后運行口令程序,本系統(tǒng)采用的 是一種動態(tài)的口令程序設(shè)計方法。 表 歌曲列表 字段名 類型 索引 序號 C(10) 主索引 歌曲名稱 C(20) 語言分類 ID C(4) 普通索引 歌星分類 ID C(4) 普通索引 字數(shù)分類 ID C(4) 普通索引 簡拼 C(10) 是否新歌 L(1) 情歌對唱 L(1) 發(fā)行 公司 C(10) 表 歌星資料 字段名 類型 索引 歌星分類 ID C(4) 普通索引 姓名 C(16) 簡拼 C(8) 表 語言 字段名 類型 索引 語言分類 ID C(4) 普通索引 分類名稱 C(10) 表 字數(shù) 字段名 類型 索引 字數(shù)分類 ID C(4) 普通索引 分類名稱 C(10) 表 用戶表 字段名 類型 索引 用戶名 C(10) 密碼 C(6) 模塊的設(shè)計與實現(xiàn) (1) 登錄模塊的設(shè)計與實現(xiàn) [2] 此模塊由 ,用于接收用戶名 /密碼輸入,判斷是否為合法用戶 ,該表單的數(shù)據(jù)環(huán)境為 用戶表 .dbf,在此表單上加入 spinner控件, 其值由 [確定 ]按鈕的 click事件設(shè)置,表示當(dāng)前用戶是否合法用戶。 4 系統(tǒng)設(shè)計和實現(xiàn) 數(shù)據(jù)表設(shè)計 因本系統(tǒng)中涉及的計算基本沒有,所以對表之間的關(guān)系運算基本不多,故本系統(tǒng)中的表全部采用臨時表的形式。由于程序員本身能力的局限性,所以編寫的代碼,即使經(jīng)過反復(fù)檢查也難免出錯,所以在本階段力求使用有限的時間找出盡可能多的錯誤,力求系統(tǒng)盡量正確。這一點在數(shù)據(jù)維護模塊中實現(xiàn)。盡管系統(tǒng)中采取各種保護措施來防止數(shù)據(jù)的安全性和完整性的破壞,問題仍然是不可避免的,而且這些故障輕則造成運行事務(wù)非正常中斷,影響數(shù)據(jù)庫中數(shù)據(jù)的正確性,重則破壞數(shù)據(jù)庫,使數(shù)據(jù)庫中全部或部分數(shù)據(jù)丟失。 根據(jù)以上分析,從數(shù)據(jù)庫中取出的信息可分成四個主題:每個主題都是一個獨立 的表,即歌曲檔案管理系統(tǒng)中應(yīng)包括五個表:歌曲列表、歌星資料、語言、字數(shù)、用戶表。由于管理人員可能存在調(diào)動的可能,所以,系統(tǒng)中應(yīng)有添加新用戶、刪除舊用戶、修改密碼并確認密碼的功能。 加工編號: ② 加工名:分類處理(查詢) 加工邏輯:根據(jù)用戶輸入的查詢條件進行查詢處理,將結(jié)果以報表的形式反饋給用戶。 數(shù)據(jù)流圖與數(shù)據(jù)字典 (1) 數(shù)據(jù)流圖( DFD) 經(jīng)過分析,得出的數(shù)據(jù)流圖如圖 、圖 、圖 。 (6) 系統(tǒng)維護模塊 系統(tǒng)維護功能主要是指對數(shù)據(jù)進行備份和數(shù)據(jù)的初始化,如:數(shù)據(jù)的轉(zhuǎn)入和數(shù)據(jù)的轉(zhuǎn)出。管理員可以根據(jù)一個條件進行查詢,也可以根據(jù)多個條件綜合起來進行查詢,查詢結(jié)果可以隨時被打印,打印部分見報表打印模塊。為了方便用戶,本系統(tǒng)提供了多種查詢方式。 (3) 歌曲編輯模塊 歌曲編輯模塊主要是對歌曲的資料進行添加、修改、刪除,由于輸入的數(shù)據(jù)量大,管理員不時的對歌曲資料進行新 歌的輸入和舊歌的輸出,還有輸入時難免會有出錯的時候,設(shè)計此模塊是非常重要的,分別對歌曲列表、歌星資料、語言、字數(shù)四個表進行編輯,因此,管理員可以方便的對歌庫資料進行修改。 (2) 歌曲瀏覽模塊 該模塊的主要功能是負責(zé)綜合瀏覽歌曲記錄,由于數(shù)據(jù)量大,所以該模塊的設(shè)計應(yīng)從方便管理員的角度出發(fā)。因此,實現(xiàn)本系統(tǒng)使用 Visual FoxPro作為開發(fā)工具是個比較好的選擇。 可行性分析 目前開發(fā)數(shù)據(jù)庫的工具有 V