朋友網《.NET開發(fā)基礎》綜合方案設計書報告_第1頁
朋友網《.NET開發(fā)基礎》綜合方案設計書報告_第2頁
朋友網《.NET開發(fā)基礎》綜合方案設計書報告_第3頁
朋友網《.NET開發(fā)基礎》綜合方案設計書報告_第4頁
朋友網《.NET開發(fā)基礎》綜合方案設計書報告_第5頁
已閱讀5頁,還剩22頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、.NET開發(fā)基礎 綜合設計報告 題目 成員: 朋友網 李曉丹 軟件 101 2010111105 董金文 軟件 101 2010111133 指導老師: 李璟 完成日期: 2013616 一、系統(tǒng)開發(fā)環(huán)境及配置 -1 - 三、系統(tǒng)總體設計 -1- 3.1系統(tǒng)結構設計-.1.- 3.2系統(tǒng)功能模塊 -.2- 四、系統(tǒng)詳細設計-3- 4.1前臺主要功能-.3- 4.2后臺主要功能 -.6- 五、系統(tǒng)數(shù)據(jù)庫設計 -7- 六、系統(tǒng)編碼實現(xiàn) -7- 6.1前臺設計與核心代碼 .-.7 - 6.2后臺設計與核心代碼 .-.1 9- 六、 丿總結-22- 參考文獻-23- 1 系統(tǒng)開發(fā)環(huán)境及配置 開發(fā)環(huán)境:

2、 Microsoft Visual Studio.NET (簡稱 VS.NET) 編程語言: C# html語言 配置:安裝了 .NET框架以及VS2008開發(fā)工具的計算機。 (1)最低配置 PIII CPU ,128MM存,20GB硬盤。 (2)建議配置 P4 CPU,256MB及以上內存,80GB硬盤 軟件環(huán)境 (1)Windows XP及以上操作系統(tǒng) (2)完整安裝Office (3)服務器配置 二、系統(tǒng)需求分析 朋友網,原名QC校友。是騰訊公司打造的真實社交平臺,為用戶提供行業(yè)、公司、學校、班級、 熟人等真實的社交場景。2011年7月5日,騰訊公司正式宣布旗下社區(qū)騰訊朋友更名為朋友網。

3、”。 朋友網是繼Email、BBS、IM之后出現(xiàn)的第四種網絡交流方式,是網絡時代的個人聯(lián)系同學 的新型方式,是以超級鏈接為武器的網絡日記,是代表著新的生活方式和新的工作方式,更代 表著新的學習方式。具體說來,朋友網這個概念解釋為使用特定的軟件,在網絡上發(fā)表文章、 上傳照片、聯(lián)系同學的好軟件。 簡言之,朋友網就是以網絡作為載體,簡易迅速便捷地發(fā)布自己的心得,及時有效輕松地 與他人進行交流,再集豐富多彩的個性化展示于一體的綜合性平臺。 朋友網的出現(xiàn)集中體現(xiàn)了互聯(lián)網時代媒體界所體現(xiàn)的商業(yè)化壟斷與非商業(yè)化自由,大眾化 傳播與個性化(分眾化,小眾化)表達,單向傳播與雙向傳播3個基本矛盾、方向和互動。 朋

4、友網作為一種新表達的方式,它的傳播不僅情緒,包括大量的智慧、意見和思想。某種意義上 說,它也是一種新的文化現(xiàn)象,博客的出現(xiàn)和繁榮,真正凸現(xiàn)網絡的知識價值,標志著互聯(lián)網發(fā)展開 始步入更高的階段。 總的的說朋友網已經與人們的日常生活密不可分。 三、系統(tǒng)總體設計 3.1系統(tǒng)結構設計 25 相 nn 冊 管 理 日志管理 朋友 網 友情鏈接 相冊 上傳 編輯 刪除 L 日志 上傳 日志 修改 個人 信息 瀏覽 用戶 注冊 用戶 登錄 3.2系統(tǒng)功能模塊 a. 個人注冊: (1) 本功能面向新注冊的會員。 b. 相冊管理功能: (1) 該功能面向所有普通用戶。 (2) 普通用戶可以在自己的主頁中上傳照片

5、。 (3) 用戶可以編輯、刪除自己寫的照片。 c. 日志管理功能: (1) 普通用戶可以在自己的主頁中發(fā)表日志、查看他人日志 (2) 用戶可以編輯、刪除自己寫的日志 d. 個人主頁信息: (1)該功能面向所有普通用戶。 (2 )個人主頁的相冊、日志。 e. 后臺管理: (1) 用戶注冊。 (2) 用戶登錄。 F.友情鏈接 四、系統(tǒng)詳細設計 4.1前臺主要功能 在前臺系統(tǒng)的創(chuàng)建過程中主要實現(xiàn)的是用戶瀏覽信息平臺的搭建 前臺系統(tǒng)主要包含以下幾個頁面 網站首頁文件 日志瀏覽顯示文件 新用戶注冊文件 注冊成功 所有日志瀏覽、刪除、發(fā)表 相冊的編輯、刪除 個人主頁 主要界面: 朋反網 pengyou.c

6、Dm 朋友就在你身邊 賽這想可敢與冏學、聞李.彖兄 好應.分導主活中的點曲電滴 赴冷與業(yè)富打弘銓一下業(yè)友闔吧 用戶客 巒碼 朋友就在你身邊 用戶1已登錄威助。 版扭所有:山茶遅蔬文學軟件W1 學枚地址:斑南歷城區(qū)港咖 電話:1旳出日6E132 郵扁:danfjinivtnl 9916163匸 冃冃友網 pngyc * margin : 0px; padding : 0px; border : 0px; body font-size : 12px; font-family :宋體 background-image : url(images/) container width : 840px; m

7、argin: 0px auto ; #top height : 100px; width : 840px; float : left ; margin-left : 0px; padding-left : 0px; background-image : url(images/bg-hd.jpg) #middle height : 381px; width : 840px; float : left ; margin-left : 0px; padding-left : 0px; background-color :#cedbe3; #left height : 380px; width : 5

8、40px; float : left ; background-image : url(images/login1.jpg) #right float : left ; height : 378px; width : 496px; #bottom width : 840px; height : 100px; background-color : #cedbe3; information height : 50px; background-color : #cedbe3; vform id =form1 runat =server vasp: TextBox ID=TextBoxPassword

9、 runat =server v img src =images/register.png/ vspan lang =zh-cn 版權所有:山東建筑大學軟件101 學校地址:濟南歷城區(qū)港溝鎮(zhèn) 電話箱:v/div v/bodyx/html 主頁 vstyle type =text/css * margin : 0px ; padding : 0; list-style : none; line-height : 1.8 ; body font-size : 12px; font-family :宋體; container width : 840px; margin: 0

10、px auto ; #infobox padding : 0px 20px; background-color : #f7f7f8 #pagelist li a width : 90px; line-height : 60px; color : Green; display : block ; text-decoration : none; #pagelist li abt text-decoration : none; #pagelist li a:hover bt text-decoration : underline #pagelist2 list-style : none; float

11、 : left ; #pagelist2 li width : 140px; height : px; text-align : left ; font-size : 12px; margin-bottom : 2px; margin-left : 2px; margin-right : 2px; margin-top : 2px; #pagelist2 li img vertical-align : top; #pagelist2 a font-size : 12px; text-decoration : none; line-height : 20px; #head1 a font-siz

12、e : 12px; text-decoration : none; line-height : 20px; color : Green; #center #333; border-top : 2px solid padding : 15px; height : 2px; .c clear : both ; height : 1px; overflow : hidden ; background : #333 #infobox li border-right : 1px solid #000; float : left ; margin-right : 1px; text-align : cen

13、ter ; margin-top : -4px ; #infobox span display : none; #infobox a:hover span display : block ; position : absolute ; border : 1px solid #640000; background : #FFFFCC margin-top : 26px!important ; margin-top : 20px; color : #000; padding : 5px; white-space : nowrap; #nav #content height : 500px; wid

14、th :840; #left1 width : 150px; height : 500px; float : left ; #left2 width : 200px; height : 500px; float : left ; #py_media width : 147px; height : 92px; float : left ; #user1 width : 60px; height : 60px; float : left ; #user2 width : 86px; height : 28px; float : left ; #blank width : 147px; height

15、 : 60px; #middle width : 650px; float : left ; height : 501px; #right width : 262px; height : 495px; float : left ; #date float : left #friend width : 207px; float : left ; height : 26px; #middle float : left ; #submiddle float : left ; height : 127px; width : 644px; #submiddle1 float : left ; width

16、 : 618px; height : 72px; #submiddle2 float : right ; #submiddle3 float : left ; width : 618px; height : 342px; #subsubmid float : left ; width : 86px; height : 126px; #subsubmid2 float : left ; width : 478px; height : 126px; alt = / img src =images/host_01.gif a a a a href =index.aspx href =photoAl.

17、aspx href =goodFri.aspx href =appli.aspx class lbt target =_blank首頁 首頁 class lbt target =_blank相冊 相冊 class lbt target =_blank 好友 好友 應用 應用 我的主頁 我的主頁 /li v/div vdiv id=left1 上傳頭像 全部動靜 與我相關 相冊 日志 va href =index.aspx target =_blank 音樂 vdiv id =submiddle1 v/div v/div vdiv id =submiddle3 dir =ltr vdiv id

18、=subsubmid2 v/asp: HyperLink vbr / vbr / vasp: Label ID=Label1 runat =serverv/ asp: Label v/ div v/ div v/ div vdiv id =right vdiv id =date vimg src =images/date.png / v/div vdiv id =friend vdiv id =head1可能認識的人 ex.aspx target=_blank 全部 va href =index.aspx target =_blank 換一組 v/av/div vul id =addFrien

19、d vli vimg src =images/wang.jpg alt = width =50px height =50 / vimg src =images/dong.jpg alt = width =50px height =50 / vimg src =images/xi.jpg alt = width =50px height =50 / v/li 王艷 董金文 席光鋒 img src =images/ma.jpg alt = img src =images/shao.jpg alt =width =50px height =50 / width =50px height =50 /

20、馬大兵 召B艷 蕭艷 6.2后臺設計與核心代碼 查看日志 public partial class lookLog : System.Web.UI. Page protected void Page_Load( object sender, EventArgs e) string ConnStr = Data Source=.SQLExpress;AttachDbFilename=|DataDirectory|DBFriend.mdf;lntegrated Security=True;User Instance=True; ; SqlConnection conn = new SqlConne

21、ction (ConnStr); SqlCommandcmd = new SqlCommand); SqlDataAdapter sda = new SqlDataAdapter (); DataSet ds = new DataSet (); conn.Open(); cmd.Connection = conn; cmd.CommandText =select * from Log ; sda.SelectCommand = cmd; sda.Fill(ds); GridViewl.DataSource = ds.TablesO; GridView1.DataBind(); conn.Clo

22、se(); 發(fā)表日志、修改日志 public partial class modifyLog : System.Web.UI. Page private string message; protected void Page_Load( object sender, System. EventArgs e) if (Session username .ToString()=) Response.Redirect(login.aspx ); message = Request.QueryStringmess; Session id = Request.QueryString id; if (!l

23、sPostBack) TextBoxInit(); protected void ButtonOK_Click( object sender, System. EventArgs e) string strConn = Data Source=.SQLExpress;AttachDbFilename=|DataDirectory|DBFriend.mdf;Integrated Security=True;User Instance=True; ; if (message = 0 )/ 發(fā)表日志 if (FindZhuTi() = true ) this .CIientScript.Regist

24、erStartupScript(this .GetType(), , alert(庫中已經有要發(fā)布的標題, 無法重復發(fā)布!);); return ; else SqlConnection conn = new SqlConnection (strConn); 標題,內容,發(fā)布日期,發(fā)布者,瀏覽次數(shù)) conn.Open(); SqlCommandcommand = new SqlCommandinsert into Log(id, id ,message); title , this .TextBox1.Text.Trim(); content , this .TextBox2.Text.Tr

25、im(); date, DateTime.Now.ToString( yyyy-MM-dd hh:mm:ss); username, Session username .ToString(); values(id,title,content,date,username,0) , conn); command.Parameters.AddWithValue( command.Parameters.AddWithValue( command.Parameters.AddWithValue( command.Parameters.AddWithValue( command.Parameters.AddWithValue( command.ExecuteNonQuery(); conn.Close(); Server.Transfer(log.aspx); else if (message = 1)/ 修改日志 SqlCo

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論