(企业管理咨询)大学生心理健康教育与咨询中心设计与实现_第1页
(企业管理咨询)大学生心理健康教育与咨询中心设计与实现_第2页
(企业管理咨询)大学生心理健康教育与咨询中心设计与实现_第3页
(企业管理咨询)大学生心理健康教育与咨询中心设计与实现_第4页
(企业管理咨询)大学生心理健康教育与咨询中心设计与实现_第5页
已阅读5页,还剩55页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

内容摘 关键 引 需求分 可行性分 需求分 总体设 设计思 结构设 开发环境介 系统详细设计及介 用户功能模块设 中心简介模块设 咨询方式模块设 中心小黑板公告模块设 心灵物语文章功能模块设 大学生常见心理问题文章功能模块设 心理小游戏模块设 心理小测试功能模块设 图片中心功能模块设 心灵留言功能模块设 数据库设 概念设 逻辑设 建🖂数据库与程序连 系统实 前台界面设计与部分代 后台界面设计与部分代 系统测 总 参考文献 息时代发展新形势的一个重要方向,它拓展了心理健康教育工作的领B/SASP.NET实现,系统的设计主要是针对用户注册、修改密码、后台用户管理、C#语言作为主体开发语言,开发环境VS2010(VisualStudio2010)SQL2008关键词:心理健康教 咨询中 Abstract:Withtherapidexpansionofinformation,theglobalinformationhasenteredtheeraofcomputernetworkasthecore.Collegestudentsmentalhealtheducationandnetworkeducationworkstomeetthenewsituationoftheinformationageisanimportantdirection,itwillstimulateandbroadenthefieldofmentalhealtheducationwork,alsoprovidesanewformofpsychologicalhealtheducationworkandthedevelopmentopportunity.ThissystemmainlyistodescribeabasedonB/Smode,ASP.NET,collegepsychologicaleducationandcounselingcenter,thedesignandimplementationofthesystemdesignmainlyforuserregistration,changepasswords,usermanagement,onlinebackgroundmessages,browsethearticlesandpictures,etc.SystemmainlyusingC#languageasthemaindevelopmentlanguage,developmentenvironmentVS2010(VisualStudio2010),theapplicationofSQL2008(MicrosoftSQLServer2008)database,thesystemisoffriendlyinterface,simpleoperation,easytouse.Keywords:MentalHealth Advising ASP.NETVisualStudio2010,MicrosoftSQLServer2008,WebIIS,可以运行于WindowsXP,WindowsServer2000/2003,WindowsVista/7C#等编程语言进行开发。大学生学习心理问题和大学生人际交往问题等。用户通过浏览此模块可以进一步储备自身的心理知识,结合实际情况分析自己存在的心理情况,以更好的解决。对于普通用户,只能在前台进行浏览、查看大SQLServerWebServer同数据库进行数3-13-23-3的一部分,作为战略产品,不仅仅是ActiveServerPage(ASP)的Web员生成企业级Web应用程序所需的各种服务。ASP.NET的语法在很ASP过在现有ASP应用程序中逐渐添加ASP.NET功能,随时增强ASP用语言的基本库,消息机制,数据接口的处理都能无缝的整合到ASP.NET。WEB.NET技术提供迅速修造,部署,处理,并且使用连接的能力,提高了WEBWindows7IISWebMicrosoftSQLServer2008要的开发平台是VisualStudio2010,VisualStudio2010412(IDE)的界面被重新设计和组织,变得更加简单明了。VisualStudio2010同时带来了NETFramework4.0MicrosoftVisualStudio2010CTP(CommunityTechnologyPreview--CTWindows7MicrosoftSQLServerOracleC#作为主要的后台开发B/S4-14-2此模块主要是对本网站基本情况的一个简介,用户在访问网站的4-34-44-54-64-74-84-94-10大学生学习心理问题和大学生人际交往问题等。用户通过浏览此模块可以进一步储备自身的心理知识,结合实际情况分析自己存在的心理情况,以更好的解决。 114-124-134-144-154-164-174-18E-R5-E-R5-2E-R5-3E-R5-4IDE-R5-5IDE-RE-R5-7ID、标题、内容、编辑、添加日期和E-R5-8E-R5-9ID、标题、上传时间、图片和E-R5-10ID、标题、内容、留言时间、留言用户等E-R5-115-125-13管理员用户与各实体(包含普通用户)ID5-1UserInfoprimarynotnot5-2AdminInfoprimarynotnot5-3CenterIntroductionInfoprimarynot5-4ConsultingWayInfoprimarynot5-5BlackboardInfoprimarynot5-6MindLanguageInfoprimarynot5-7PsychologicalIssuesInfoprimarynot5-8PsychologicalGamesInfoprimarynot5-9SoulMessageInfoprimarynotnotnot建🖂usingusingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;publicpartialclassrol_UserRegister:System.Web.UI.PageSqlCommandcmd;//创建命名对象SqlConnectioncon;//创建连接对象protectedvoidPage_Load(objectsender,EventArgsstringstrCon="Server=WIN-BSND3IBRO7V\\DDY;Password=328652563;Usercon=newSqlConnection(strCon);中心小黑板公告栏的浏览等功能。同时,中心简介和中心小黑板中的内容是由下向上循环滚动的。其中站点导航是在母版面上定义。运行6-1。6-1用户注册分五步进行,第一步先阅读本网站的规则,单击下一步表示已经阅读完并且同意规则,不同意返回网站首页;第二步,注册用户名与密码同时验证该用户名是否已经存在,存在必须换另外一个才可以注册;第三步,填写注册用户的其他信息;第四步,确认信息6-26-36-26-3publicpartialrol_UserRegister:System.Web.UI.PageSqlCommandcmd;SqlConnectioncon;protectedvoidPage_Load(objectsender,EventArgsstringstrCon="Server=WIN-BSND3IBRO7V\\DDY;Password=328652563;Usercon=newSqlConnection(strCon);if(!Page.IsPostBack)MultiView1.ActiveViewIndex=0;}protectedvoidbttBack_Click(objectsender,EventArgsprotectedvoidbttNext_Click(objectsender,EventArgsMultiView1.ActiveViewIndex+=protectedvoidlbBack_Click(objectsender,EventArgs Response.Redirect("UserLogin.aspx");////单击下一步,并检测用户名是否已经被注册protectedvoidbttNext1_Click(objectsender,{stringsql="select*from UserInfowhereusername='"+tbName.Text+"'";cmd=newSqlCommand(sql,if(Convert.ToInt32(cmd.ExecuteScalar())>Label2.Text MultiView1.ActiveViewIndex+=1;}protectedvoidbttEnter_Click(objectsender,{MultiView1.ActiveViewIndex+=lbMessage.TexttbName.TextlbMessage.TexttbRealName.TextlbMessage.TextrblSex.SelectedItem.Text+"<br>";lbMessage.TextddlAddress.SelectedItem.Text+"<br>";lbMessage.TexttbTelphone.TextlbMessage.TextEmailtbEmail.Text"<br>";}protectedvoidbttEnter1_Click(objectsender,{stringstrsql="InsertIntomail,register_time)Values('"+tbName.Text+"','"+tbPwd.Text+"','"+tbRealName.Text+"','"+rblSex.SelectedItem.Text+"','"+ddlAddress.SelectedItem.Text+"','"+tbTelphone.Text+"','"+tbEmail.Text+"','"+System.DateTime.Now+"')";cmd=newSqlCommand(strsql,con); MultiView1.ActiveViewIndex+=1;Label1.Text=tbName.Text;//获取注册的用户名}protectedvoidLinkButton1_Click(objectsender,EventArgsngCenter.aspx");//跳转到首页}}6-4publicpartialclassrol_ChangePassword:System.Web.UI.Page SqlCommandcmd;SqlConnectioncon;protectedvoidPage_Load(objectsender,EventArgs stringstrCon="Server=WIN-BSND3IBRO7V\\DDY;Password=328652563;Usercon=newSqlConnection(strCon);protectedvoidbtUp_Click(objectsender,EventArgs{stringsql="select*from UserInfowheretelphone='"+tbTelphone.Text+"'";cmd=newSqlCommand(sql,if(Convert.ToInt32(cmd.ExecuteScalar())> cmd=con.CreateCommand();cmd.CommandText="updateUserInfoset[password]='"+tbPwd.Text+Label1.Textcon.Close();}{Label1.Text";6-56-6。

6-66-7。

6-7本页面主要是为用户提供一个畅所欲言的平台,用户只有注册成功以后才能在此页面留言,留言成功之后,普通用户可以返回查看所有的留言信息。在心灵留言主界面当中,采用了分页的方式,一页中有五条留言信息,包括用户留言主题、用户昵称和版主回复等信息,6-86-86-96-10publicpartialclassage_SoulMessageLeave:System.Web.UI.Page protectedvoidPage_Load(objectsender,EventArgs{if(!Page.IsPostBack)MultiView1.ActiveViewIndex=0;}protectedvoidLinkButton1_Click(objectsender, privateboolSiteLevelCustomAuthenticationMethod(stringUserName,stringPassword) boolboolReturnValue=SqlConnectionsqlConn=newSqlConnection("DataistSecurityInfo=True;UserID=sa;Password=328652563");SqlCommandsqlCmd=newSqlCommand("select[password]fromUserInfowhereuserName='"+tbName.Text.ToString()+"'",sqlConn); if(sqlCmd.ExecuteScalar().ToString()== boolReturnValue=true;}catch(Exception{boolReturnValue= returnprotected bttNext_Click(objectsender,EventArgs boolAuthenticated=false;Authenticated=if(Authenticated=={HttpCookiename=newHttpCookie("userName");name.Value=tbName.Text.ToString();Response.Cookies.Add(name);MultiView1.ActiveViewIndex+=lbMessage.Text";//Visible='<%#Eval("whetherAnswer")%>'}protectedvoidbttLeave_Click(objectsender,EventArgs{stringstrCon=istSecurityInfo=True;UserID=sa;Password=328652563";SqlConnectioncon=newSqlConnection(strCon);stringstrsql="InsertIntoSoulMessageInfope,messageAddTime)Values('"+tbName.Text+"','"+tbPwd.Text+"','"+tbTitle.Text+"','"+tbContent.Text.ToString()+"','"+ddlType.SelectedItem.Text+"','"+System.DateTime.Now+SqlCommandcmd=newSqlCommand(strsql,con);Response.Write("<ScriptLanguage=JavaScript>if(confirm('留言成功,等待版主回复!是否返回?'))window.location='SoulMessage.aspx'6-116-12。6-12publicpartialclassin:System.Web.UI.Page protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidbttLogin_Click(objectsender, boolAuthenticated=false;Authenticated=if(Authenticated== HttpCookiename=newHttpCookie("adminName");name.Value=tbName.Text.ToString();Label1.TextprivateboolSiteLevelCustomAuthenticationMethod(stringUserName,string{boolboolReturnValue

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论