【正文】
登 錄 名 3 SentMailTime Varchar(50) 發(fā)送郵件時(shí)間 4 Subject Varchar(100) 郵件主題 5 SentMailBox Varchar(50) 放送郵件郵箱 6 ContentTxt Text 內(nèi)容 7 AttachmentLocation Varchar(100) 附件位置 8 SentPerson Varchar(50) 發(fā)送人名稱 9 AttachmentFileName Varchar(50) 附件名稱 DraftLetter 數(shù)據(jù)表中 字段 LoginName 表示用戶登錄名,其取值與 User 數(shù)據(jù)表中的字段 LoginName 對應(yīng),字段 SentMailName 存儲放送郵件的郵箱地址,AttachmentLocation 字段存儲已發(fā)送郵件的附件存儲路徑, AttachmentFileName字段存儲已發(fā)送郵件的附件名稱。 表 56 MFriend 數(shù)據(jù) 表 序號 字段 類型 說明 1 ID Int 主鍵 2 LoginName Varchar(50) 登 錄 名 3 Name Varchar(50) 聯(lián)系人名 4 MailBox Varchar(50) 電子郵箱 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 13 序號 字段 類型 說明 5 Type Varchar(50) 聯(lián)系人類型 6 PictureBig Varchar(100) 大 頭像 7 PictureSmall Varchar(100) 小頭像 8 Address Varchar(100) 地址 9 Varchar(50) 號碼 10 Telephone Varchar(50) 電話號碼 MFriendType 數(shù)據(jù)表設(shè)計(jì) 如表 57 所示。 ER 圖實(shí)體模型建立將為后續(xù)建立 邏輯層的類提供參考,方便了邏輯層的搭建,而業(yè)務(wù)層建立在 邏輯層之上,整個(gè)系統(tǒng)能安全高效的運(yùn)行完全靠最上層業(yè)務(wù)層實(shí)現(xiàn)。 圖 51 用戶實(shí)體 歌曲實(shí)體 ER 圖 ,其中 MusicPath 為歌曲存儲路徑,實(shí)體設(shè)計(jì) 如圖 52 所示。草稿箱實(shí)體設(shè)計(jì)圖如 圖 56 所示。 MFriendType ID TypeName 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 17 第六章 系統(tǒng) N 層搭建 系統(tǒng) Web 全部配置 本系統(tǒng)的開發(fā)工具是 Visual Studio Express 20xx 和 SQLServer20xx,在開發(fā)的初期要對整個(gè)系統(tǒng)進(jìn)行整體的配置。uid=sa。Password=bbmmproviderName=qlClient//connectionStrings;其次,電子 郵件管理系統(tǒng)在放送郵件是要用到FCKeditor ,也在 appSettings 節(jié)點(diǎn)下添加 add key=FCKeditor:BasePath value=~/fckeditor/ /add key=FCKeditor:UserFilesPath value=~/userfiles/ /同時(shí)也要在項(xiàng)目中應(yīng)用用 文件,并且把 FCKeditor 文件放在系統(tǒng)目錄下。另外 CSS 文件放在項(xiàng)目文件下的 css 文件夾中(注意 css 文件夾下的樣式文件引用的圖片放在 css 文件夾下的 Pictures 文件夾中)。在這一層中建立基類 DataBase,該文件放在 APP_Code 中, DataBase 完成的功能是鏈接數(shù)據(jù)庫,執(zhí)行查詢操作和非查詢操作。在這一層中建立了 SqlStringFormat、GetSafeData、 MString 類, SqlStringFormat 類主要實(shí)現(xiàn) 接收 字符串,然后對字符串處理返回適合數(shù)據(jù)庫操作的字符串。最基本的建立方式按照ER 圖中的實(shí)體建立相應(yīng)的類,按照 ER 圖中的實(shí)體的屬性構(gòu)建類中類的屬性,再根據(jù)需要編寫對類實(shí)體對象的操作,也就是在類中構(gòu)建類的方法 ,從而實(shí)現(xiàn)對對象或者類的操作。它主要是提供用戶注冊,讓用戶填寫相關(guān)個(gè)人信息,成為電子郵件管理系統(tǒng)的注冊用戶。填寫服務(wù)器配 置表單時(shí),設(shè)置了驗(yàn)證設(shè)置,而且在該頁面也提供了對表單信息的重設(shè) ,在表單的下面提供了郵件服務(wù)器配置信息轉(zhuǎn)換,支持多郵件服務(wù)器轉(zhuǎn)換。該模塊上提供對草稿箱中郵件的編輯刪除和查看,在單擊編輯后還可以看見提供郵件轉(zhuǎn)發(fā)的功能模塊 ,單擊收件人可以查看收件人的相關(guān)信息。該模塊也是該系統(tǒng)中主要的模塊,發(fā)送功能的實(shí)現(xiàn)主要是通過 Jmail 插件和FCKeditor 插件來實(shí)現(xiàn)的 ,在 Visual Studio Express 20xx 中建立 Bin 文件夾,右鍵點(diǎn)擊選擇【添加引用】在選項(xiàng)卡中可以看到【瀏覽】選項(xiàng)卡,選擇 Jmail 插件所在文件的 就可以了,同理添加引用 FCKeditor 插件。發(fā)送郵件 頁 面如圖 74 所示。 接收 郵件 頁 面如圖 75 所示。 圖 76 添加聯(lián)系人 頁 面 通訊錄管理 頁 面如圖 77 所示 第七章 系統(tǒng)功能模塊設(shè)計(jì) 24 圖 77 通 訊錄管理 頁 面 時(shí)間 日歷模塊 時(shí)間按日歷模 塊主要功能是讀取本地系統(tǒng)的時(shí)間,給用戶以直觀的時(shí)間表達(dá)。時(shí)間日歷效果如圖 78 所示。音樂編輯界面提供了對文件的上傳功能,用戶可以根據(jù)自己的愛好為音樂文件命名。用CSS+DIV 布局再結(jié)合 Datalist 控件的本身自帶 的屬性很容易實(shí)現(xiàn)一種播放列表效果。 圖 711 用戶信息更改 頁面 系統(tǒng)功能測試 系 統(tǒng)的功能測試分在兩個(gè)階段測試,第一階段是在每一個(gè)功能模塊設(shè)計(jì)完瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 27 成后進(jìn)行測試,第二個(gè)階段是在整個(gè)系 統(tǒng)開發(fā)完成后進(jìn)行測試。系統(tǒng)的測試主要測試郵件發(fā)送模塊和郵件接收模塊,分不同的郵箱對著兩個(gè)模塊進(jìn)行測試,最終表明,系統(tǒng)支持多郵箱發(fā)送郵件和接收郵件。 該系統(tǒng)實(shí)現(xiàn)了對郵件的收發(fā)功能,同時(shí)也為用戶提供了多郵箱接收和發(fā)送郵件,同時(shí)也在郵件的功能上添加了空間音樂的功能,能方便地使用戶存放、欣賞自己喜歡的音樂。 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 29 參考文獻(xiàn) [1] 曹劉陽 . 編寫高質(zhì)量代碼 Web 前端開發(fā)修煉之道 [M]. 北京:機(jī)械工業(yè)出版社, 20xx04 [2] Bill Evjen ,Scott Hanselman,Devin Rader. SP1 高級編程 [M]. 北京:清華大學(xué)出版社, 20xx01 [3] Steve Caplin .Photoshop 以假亂真的藝術(shù) [M]. 北京:電子工業(yè)出版社,20xx09 [4] Nicholas . Professional JavaScript for Web Developers Second Edition[M] . 北京:人民郵電出版社, 20xx07 [5] 單東林,張曉菲,魏然 . 鋒利的 JQuery[M] . 北京:人民郵電出版社,20xx06 [6] Jacob Design CSS Themes and Master Pages[M]. 北京:清華大學(xué)出版社, 20xx06 [7] 唐微,胡智勇,錢君 . 在網(wǎng)站開發(fā)中的技術(shù)研究 [J]. 遼寧科技學(xué)院報(bào), 20xx,( 02) [8] 劉莉,張思亮,楊金會 . 在電子商務(wù)網(wǎng)站中的應(yīng)用 [J]. 商場現(xiàn)代化, 20xx,( 16) [9] 楊興凱,劉宏 . 基于 Web Services跨平臺存取數(shù)據(jù)庫 [J]. 電腦學(xué)習(xí), 20xx,( 06) [10]劉立群,劉宏 . 基于 實(shí)現(xiàn)文件上傳 [J]. 現(xiàn)代計(jì)算機(jī), 20xx,( 02) 瓊州學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 30 附錄 Overview is a unified Web development model that includes the services necessary for you to build enterpriseclass Web applications with a minimum of coding. is part of the .NET Framework, and when coding applications you have access to classes in the .NET Framework. You can code your applications in any language patible with the mon language runtime (CLR), including Microsoft Visual Basic, C, JScript .NET, and J. These languages enable you to develop applications that benefit from the mon language runtime, type safety, inheritance, and so on. includes: ? A page and controls framework ? The piler ? Security infrastructure ? Statemanagement facilities ? Application configuration ? Health monitoring and performance features ? Debugging support ? An XML Web services framework ? Extensible hosting environment and application life cycle management ? An extensible designer environment The page and controls framework is a programming framework that runs on a Web server to dynamically produce and render Web pages. Web pages can be requested from any browser or client device, and renders markup (such as HTML) to the requesting browser. As a rule, you can use the same page for multiple browsers, because renders the appropriate markup for the browser making the request. However, you can design 瓊州學(xué)院本科畢業(yè)論文 (設(shè)計(jì) ) 31 your Web page to target a specific browser, such as Microsoft Inter Explorer 6, and take advantage of the features of that browser. supports mobile controls for Webenabled devices such as cellular phones, handheld puters, and personal digital assistants (PDAs). Web pages are pletely objectoriented. Within Web pages you can work with HTML elements using properties, methods, and events. The page framework removes the implementation details of the separation of client and server inherent in Webbased applications by presenting a unified model for responding to client events in code that runs at the server. The framework also automatically maintains the state of a page and the controls on that page during the page processing life cycle. The page and controls framework also enables you to encapsulate mon UI functionality in easytouse, reusable controls. Controls are written once, can be used in many pages, and are integrated into the Web page that they