第一范文网 - 专业文章范例文档资料分享平台

大学生心理就业测试毕业设计说明书

来源:用户分享 时间:2025/5/16 10:33:48 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

@Password varchar(50), @AdminName varchar(50) ) as

if exists(select * from Admin where AdminName=@AdminName) begin

update Admin set Password=@Password where AdminName=@AdminName

end

4.2 综合管理模块

用户在进入系统首页之后,可以看到三种登录方式:普通用户登录、管理员登录和匿名登录。如果选择匿名登录方式,进入之后可以查看相关的消息、新闻以及网上调查等功能,如果还想进一步使用其他功能,需要注册之后登录才能使用。

如果用户选择普通用户登录,就进入到普通用户登录界面,如图4-2所示。如果是第一次进入系统,可以点击注册按钮进入到注册页面,注册时选择自己的类型(学生、学校、企业),由于三者的功能不一样,所以在注册的时候要如实注册,是学生就注册学生,是学校就注册学校,是企业就注册企业。注册成功之后返回到登录页面,输入自己的用户名和密码,选择正确的类型就可以进入系统了。在这里所要注意的是,登录时选择的类型不一样,进入系统所能操作的功能也不一样。

如果是管理员,在首页选择管理员登录进入管理员登录页面,如图4-3所示。登录之后就可以进入相应的操作。

图4-2 普通用户登录页面

第28页 共51页

图4-3 管理员登录页面

在用户操作完成相应的操作的之后,为了防止个人信息泄露,可以安全退出,返回登录页面。

普通用户登录与管理员登录的代码差不多,所以这里给出普通用户登录的代码如下:

protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {

string UserName = this.TextBox_username.Text; string Password = this.TextBox_pass.Text; string Yzm = this.TextBox_yzm.Text;

string Type = this.DropDownList1.SelectedItem.Text; if (UserName == \) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \请输入用户名!')\, true); return; }

if (Password == \) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \请输入密码!')\, true); return; }

if (Yzm == \) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \请输入验证码!')\, true); return; }

string pwd = FormsAuthentication.HashPasswordForStoringInConfigFile(Password, \);

第29页 共51页

DataSet ds = CoSt.Read(\+UserName+\Password='\+pwd+\);

if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) {

int UserID = Convert.ToInt32(ds.Tables[0].Rows[0][0].ToString()); int Count = Convert.ToInt32(ds.Tables[0].Rows[0][10].ToString()); string Type_sql = ds.Tables[0].Rows[0][\].ToString(); if (Yzm.ToLower() != Session[\].ToString()) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \验证码输入有误!')\, true); return; } else {

if (Type != Type_sql) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \类型选择有误!')\, true); return; } else {

Count = Count + 1;

CoSt.UpdateCount(UserID, Count); Session[\] = UserName; if (Type == \学生\) {

Response.Redirect(\); }

if (Type == \学校\) {

Response.Redirect(\); }

if (Type == \企业\) {

Response.Redirect(\); } } } } else {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \登录失败,请检查后再试!')\, true);

第30页 共51页

}

}

4.3 职业测评模块

当已经注册用户登录系统之后就可以使用此模块的功能,主要分为学生权限与管理员权限。此模块的功能是整个系统的核心。其中学生权限主要功能有如下几个部分:

1.学生职业测试

学生登录系统之后,选择职业测试后,系统从数据中读取其选择测试的测试题目和答案选项,生成测试试卷。具体功能代码如下:

protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {

DataSet ds1 = CoSt.Read(\ + Session[\].ToString() + \);

if (ds1.Tables.Count > 0 && ds1.Tables[0].Rows.Count > 0) {

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), \, \尊敬的用户,你已进行过测试!')\, true); this.Panel_jrcs.Visible = false; this.Panel_csjg.Visible = true; return; } else {

dlDataB(); }

this.Panel1.Visible = false; this.Panel2.Visible = true; }

public void dlDataB() {

string sql = \; DataSet ds = CoSt.Read(sql); this.DataList1.DataSource = ds; this.DataList1.DataBind();

}

系统生成测试试卷后,学生可以开始进行测试,学生回答完全部试题后,系统根据学生的测试答题,按照题目的计分评价标准得出测试类型与数据库中测试类型匹配后,显示测试类型的结果。如果学生没有回答完全部题目,学生将不能得到测试结果,系统

第31页 共51页

搜索更多关于: 大学生心理就业测试毕业设计说明书 的文档
大学生心理就业测试毕业设计说明书.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4446n39moz2teb88imy9_9.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top