




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、重慶交通大學信息科學與工程學院綜合性設計性實驗報告班 級: 計算機科學與技術 專業(yè) 2011 級 2 班 學號:631106060205姓名:黃 斌 實驗項目名稱: 帝皇KTV點歌系統(tǒng) 實驗項目性質: 設計性 實驗所屬課程: A實訓 實驗室(中心): 語音樓8樓 指 導 教 師 : 何偉 實驗完成時間: 2014 年 6 月 6 日教師評閱意見: 簽名: 年 月 日實驗成績:一、實驗目的 (1) 培養(yǎng)學生綜合運用多學科理論、知識與技能解決問題的能力; (2) 使學生掌握科學研究的工作步驟和基本方法,使其具有較強的自學能力和對工作環(huán)境的適應能力; (3) 培養(yǎng)學生調查、收集、加工各種信息的能力及
2、獲取新知識的能力; (4) 培養(yǎng)學生樹立正確的設計思想、嚴肅認真的科學態(tài)度和嚴謹求實的工作態(tài)度; (5) 培養(yǎng)學生優(yōu)良的思維方法,強化解決工作實際問題的意識; (6) 培養(yǎng)學生進行系統(tǒng)開發(fā)的基本能力,掌握解決一個實際問題、完成一個軟件開放項目的一般流程和基本方法。二、實驗內容及要求 主要內容: (1) 認真學習.NET技術和C#編程語言; (2)完成該系統(tǒng)的詳細的設計方案(包括前臺和后臺); (3) 利用VS2010+.NET完成該平臺的代碼實現(xiàn); 技術要求: (1)系統(tǒng)安全、可靠、易于配置; (2)功能齊全,易于擴展; (3)操作方便、界面友好; (4)設計合理、易于維護;3、 實驗設備及軟
3、件 設備:系統(tǒng)win7以上,硬盤500G以上,內存越高越好 軟件:SQL server 2008,VS2010,ASP .Net四、設計方案 題目 卡拉ok點歌系統(tǒng) 設計的主要思路 隨著生活水平的不斷提高,人們的業(yè)余生活也變得越來越豐富多彩,而去練歌房唱歌成了人們工作之余的一種普遍的娛樂方式。傳統(tǒng)的卡拉OK點歌房一直使用光盤來為顧客播放歌曲,由于光盤上的歌曲存放的數(shù)量有限,而且播放起來很不方便,當我們所選要唱的歌曲不在光盤上的時候這樣顯得很不方便。鑒于此,本課題擬制作一個卡拉ok點歌系統(tǒng),這個系統(tǒng)最大的特點就是靈活性非常高,可以隨時添加最新的流行歌曲,并且最大限度實現(xiàn)系統(tǒng)的易維護性和易操作性。
4、 主要功能 后臺數(shù)據(jù)輸入、數(shù)字點歌、明星點歌、拼音點歌、歌名點歌五、主要代碼數(shù)據(jù)庫連接類: public SqlConnection SqlCon() string sqlCon = "server=SUPERSUPER;database=帝?皇êKTV;Integrated Security=True" SqlConnection conn = new SqlConnection(); return conn; 數(shù)據(jù)庫表的實體類:有 明星信息的實體類(dh_authorInfo)、歌曲類型信息的實體類(dh_dictionary)、歌曲信息的實體類(dh_mus
5、icInfo)、用戶信息的實體類(dh_musicInfo) 獲取當前時間信息的方法:public string getSellID() int intYear = DateTime.Now.Day; int intMonth = DateTime.Now.Month; int intDate = DateTime.Now.Year; int intHour = DateTime.Now.Hour; int intSecond = DateTime.Now.Second; int intMinute = DateTime.Now.Minute; string strTime = null; s
6、trTime = intYear.ToString(); if (intMonth < 10) strTime += "0" + intMonth.ToString(); else strTime += intMonth.ToString(); if (intDate < 10) strTime += "0" + intDate.ToString(); else strTime += intDate.ToString(); if (intHour < 10) strTime += "0" + intHour.ToSt
7、ring(); else strTime += intHour.ToString(); if (intMinute < 10) strTime += "0" + intMinute.ToString(); else strTime += intMinute.ToString(); if (intSecond < 10) strTime += "0" + intSecond.ToString(); else strTime += intSecond.ToString(); return ("GQ-" + strTime);
8、取字符首字母的方法: public static string GetCodstring(string UnName) int i = 0; ushort key = 0; string strResult = string.Empty; /創(chuàng)洹?建¨兩?個?不?同?的?encoding對?象ó Encoding unicode = Encoding.Unicode; /創(chuàng)洹?建¨GBK碼?對?象ó Encoding gbk = Encoding.GetEncoding(936); /將?unicode字?符?串?轉羇換?為a字?節(jié)ú byte
9、 unicodeBytes = unicode.GetBytes(UnName); /再ù轉羇化為aGBK碼? byte gbkBytes = Encoding.Convert(unicode, gbk, unicodeBytes); while (i < gbkBytes.Length) /如?果?為a數(shù)簓字?字?母?其?他?ASCII符?號? if (gbkBytesi <= 127) strResult = strResult + (char)gbkBytesi; i+; #region 否?則ò生?成é漢o字?拼音?簡ò碼?,取?拼音
10、?首骸?字?母? else key = (ushort)(gbkBytesi * 256 + gbkBytesi + 1); if (key >= 'uB0A1' && key <= 'uB0C4') strResult = strResult + "A" else if (key >= 'uB0C5' && key <= 'uB2C0') strResult = strResult + "B" else if (key >= &
11、#39;uB2C1' && key <= 'uB4ED') strResult = strResult + "C" else if (key >= 'uB4EE' && key <= 'uB6E9') strResult = strResult + "D" else if (key >= 'uB6EA' && key <= 'uB7A1') strResult = strResult + &
12、quot;E" else if (key >= 'uB7A2' && key <= 'uB8C0') strResult = strResult + "F" else if (key >= 'uB8C1' && key <= 'uB9FD') strResult = strResult + "G" else if (key >= 'uB9FE' && key <= 'uBBF
13、6') strResult = strResult + "H" else if (key >= 'uBBF7' && key <= 'uBFA5') strResult = strResult + "J" else if (key >= 'uBFA6' && key <= 'uC0AB') strResult = strResult + "K" else if (key >= 'uC0AC
14、9; && key <= 'uC2E7') strResult = strResult + "L" else if (key >= 'uC2E8' && key <= 'uC4C2') strResult = strResult + "M" else if (key >= 'uC4C3' && key <= 'uC5B5') strResult = strResult + "N"
15、 else if (key >= 'uC5B6' && key <= 'uC5BD') strResult = strResult + "O" else if (key >= 'uC5BE' && key <= 'uC6D9') strResult = strResult + "P" else if (key >= 'uC6DA' && key <= 'uC8BA') strR
16、esult = strResult + "Q" else if (key >= 'uC8BB' && key <= 'uC8F5') strResult = strResult + "R" else if (key >= 'uC8F6' && key <= 'uCBF9') strResult = strResult + "S" else if (key >= 'uCBFA' &&
17、; key <= 'uCDD9') strResult = strResult + "T" else if (key >= 'uCDDA' && key <= 'uCEF3') strResult = strResult + "W" else if (key >= 'uCEF4' && key <= 'uD188') strResult = strResult + "X" else if (ke
18、y >= 'uD1B9' && key <= 'uD4D0') strResult = strResult + "Y" else if (key >= 'uD4D1' && key <= 'uD7F9') strResult = strResult + "Z" else strResult = strResult + "?" i = i + 2; #endregion /end while return strResult; 由于代碼較多,其它代碼不再詳述。六、測試結果及說明選擇音樂后的播放界面:登錄后的點歌界面,包括數(shù)字點歌、拼音點歌、明星點歌、歌名點歌四個選項,點歌完之后,點擊選擇按鈕選擇需要播放的音樂,再播放。數(shù)字點歌界面,需要輸入查詢條件,每個點歌都有其特定的限制。后臺數(shù)據(jù)維護界面,包括4個方面: 第一個是明星信息,可以添加、修改、刪除表中顯示的信息。第二個是歌曲信息,功能類似。第三個是歌曲類型信息,功能類似。第四個是用戶管理,可以添加用戶,可以更改密碼,刪除用戶。明星添加界面,明星編號隨機自動生成。歌曲信息界面,
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 有關油罐車車輛租賃合同
- 二手房居間買賣合同
- 消防水電工程合同
- 辦公室行政人員聘用合同
- 聘用至退休合同續(xù)簽書
- 小區(qū)智能化系統(tǒng)工程合同書
- 電信行業(yè)通信設備維護服務合同
- 9 種豆子 教學設計-2023-2024學年科學二年級下冊冀人版
- 第6課 從隋唐盛世到五代十國 教學設計-2023-2024學年統(tǒng)編版(2019)高中歷史必修中外歷史綱要上冊
- Unit 6 Nurturing Nature Developing ideas The best job in the world 教學設計 -2024-2025學年高二英語外研版(2019)選擇性必修第一冊
- 2025年官方策劃完整個人離婚協(xié)議書模板
- 2025年度跨境電商平臺股權合同轉讓協(xié)議
- 2025年益陽醫(yī)學高等??茖W校高職單招數(shù)學歷年(2016-2024)頻考點試題含答案解析
- 餐飲業(yè)的供應鏈管理與優(yōu)化
- 心律失常介入并發(fā)癥及預防
- 口腔醫(yī)院市場營銷新入職員工培訓
- 軍隊文職備考(面試)近年考試真題(參考300題)
- 金融業(yè)稅收優(yōu)惠政策指引
- 腦梗死臨床表現(xiàn)護理
- 新高考英語|語法專項之括號法突破長難句 講解課件-2025屆高三英語上學期一輪復習專項
- 《光通信技術簡介》課件
評論
0/150
提交評論