在线考试系统项目报告Word文档下载推荐.docx
《在线考试系统项目报告Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《在线考试系统项目报告Word文档下载推荐.docx(30页珍藏版)》请在冰豆网上搜索。
(2)权限管理模块主要是对各使用者对系统的操作权限进行管理。
例如学生只能查看个人信息,选择试卷,答卷,查看成绩等;
教师只能出题,组卷,判卷,查看学生成绩等;
管理员可以全面对系统进行操作及数据维护等。
2在教师端子系统中:
(1)出题模块主要是由教师根据题型不同向题库中输入题目以及答案,方便组卷。
题目自动存入对应的数据库中。
(2)组卷模块中可以由系统随机组卷,输入各题型的数量,分值,系统自动从题库中随机选择题目构成试卷;
也可以由教师自主选择题目进行出题.
(3)统计成绩模块中教师可以根据学生答卷情况对成绩进行统计,方便教师对学生答卷情况有直观了解,利于教学。
(4)提交成绩模块由教师将学生综合成绩情况输入相关管理系统。
3在学生端子系统中:
(1)选择试卷模块由学生选择所要进行的考试试卷.
(2)答卷模块显示学生所选试卷,供学生作答,选择判断直接对选项进行选择,主观题填写在相应的文本框中.
(3)交卷模块会自动根据题库中的信息对学生的选择判断题进行判卷,减少了教师的工作量。
1.3功能分析
1.3.1功能模块图设计
1.4用例图设计
4.1学生用例图设计
1.4.2教师用例图设计
第二章系统设计
1总体时序图设计
2数据库设计
1试卷类型表设计
2.2.2试题表设计
3试题内容表设计
4试卷表设计
2.2。
5试卷详情表设计
2.2.6试卷分值表设计
7考生答卷表设计
2.8考生答卷详情表设计
3表见关系设计
3.1试题
3。
2章节试题统计
2.3。
3试卷
4试卷详细
3.5试卷考题详细
3.6考卷列表
第三章程序设计
3.1在线考试系统后台程序实现
3.1.1母版页设计
3.1。
2后台题库添加页面设计
3后台题库管理页面设计
4后台试卷生成
5后台试卷详情查看页面
3.1.6后台试卷管理页面
3.2在线考试系统前台程序实现
1试卷列表页面设计
2.2前台考试页面设计
第四章编码设计
4.1试卷详情的编码
publicpartialclassAdmin_OnlineExam_PaperDetail:
System.Web.UI。
Page
{
protectedvoidPage_Load(objectsender,EventArgse)
{
if(!
Page。
IsPostBack)
{
InitPageData();
}
privatevoidInitPageData()
intchoiceCount=0,blankCount=0,judgeCount=0;
doublechoicePoint=0,blankPoint=0,judgePoint=0;
Stringsql="
”;
StringpaperID=Request.QueryString[”paperID"
];
sql="
select*fromUV_Exam_PaperQuestionDetailwherePaperID=”+paperID;
DataTabledtChoice=newDataTable();
dtChoice.Columns。
Add(”chooseNo”);
dtChoice。
Columns.Add("
questionContent”);
Columns。
Add("
RightAnswer"
);
optionA"
);
optionB”);
Add(”optionC"
dtChoice.Columns.Add(”optionD"
DataTabledtBlank=newDataTable();
dtBlank。
questionContent"
Columns.Add(”blankNo”);
dtBlank.Columns。
DataTabledtJudge=newDataTable();
dtJudge。
questionContent”);
Add(”judgeNo"
dtJudge.Columns。
StringsqlQuery=sql+"
andQuestionTypeID=1"
;
DataTabledtAll=CommonUtils.GetTableBySql(sqlQuery).Copy();
for(inti=0;
i〈dtAll.Rows.Count;
i++)
DataRowdrAll=dtAll.Rows[i];
DataRowdrTmp=dtChoice.NewRow();
BooleanisRightAnswer=Convert.ToBoolean(drAll[”IsRight”]);
drTmp[”chooseNo”]=i/4+1;
if(i%4==0)
drTmp["
]=drAll[”QuestionContent”];
if(isRightAnswer)drTmp[”RightAnswer"
]=”A”;
optionA”]=drAll[”SelectContent"
];
}
i++;
drAll=dtAll。
Rows[i];
isRightAnswer=Convert.ToBoolean(drAll[”IsRight”]);
if(i%4==1)
drTmp[”optionB”]=drAll[”SelectContent”];
if(isRightAnswer)drTmp["
RightAnswer”]=”B”;
isRightAnswer=Convert。
ToBoolean(drAll[”IsRight"
]);
drAll=dtAll.Rows[i];
if(i%4==2)
drTmp[”optionC"
]=drAll["
SelectContent"
];
RightAnswer”]=”C”;
i++;
drAll=dtAll.Rows[i];
isRightAnswer=Convert.ToBoolean(drAll[”IsRight”]);
if(i%4==3)
drTmp[”optionD"
]=drAll[”SelectContent”];
if(isRightAnswer)drTmp[”RightAnswer"
]=”D”;
dtChoice.Rows。
Add(drTmp);
choiceCount=dtChoice。
Rows.Count;
choicePoint=Convert。
ToDouble(dtAll。
Rows[0][”Point”]);
sqlQuery=sql+”andQuestionTypeID=2andIsRight=1"
dtAll=CommonUtils。
GetTableBySql(sqlQuery).Copy();
i〈dtAll.Rows。
Count;
i++)
DataRowdrAll=dtAll.Rows[i];
DataRowdrTmp=dtBlank。
NewRow();
drTmp[”questionContent"
]=drAll[”QuestionContent"
drTmp["
blankNo"
]=i+1;
drTmp[”RightAnswer”]=drAll[”SelectContent"
dtBlank.Rows。
blankCount=dtBlank。
Rows。
blankPoint=Convert.ToDouble(dtAll.Rows[0]["
Point"
]);
sqlQuery=sql+”andQuestionTypeID=3"
;
dtAll=CommonUtils.GetTableBySql(sqlQuery).Copy();
Count;
i+=2)
DataRowdrAll=dtAll。
Rows[i];
DataRowdrTmp=dtJudge.NewRow();
drTmp[”questionContent”]=drAll[”QuestionContent"
];
judgeNo"
]=i/2+1;
BooleanisRightAnswer=Convert.ToBoolean(drAll[”IsRight”]);
if(isRightAnswer)
drTmp[”RightAnswer”]="
正确"
else
drTmp[”RightAnswer"
]="
错误”;
Rows.Add(drTmp);
judgeCount=dtJudge.Rows.Count;
judgePoint=Convert。
ToDouble(dtAll.Rows[0][”Point”]);
dtlChoose。
DataSource=dtChoice。
DefaultView;
DataBind();
lblChooseCount。
Text=Convert。
ToString(choiceCount);
lblChoosePoint.Text=Convert.ToString(choicePoint);
lblChooseTotalPoint.Text=Convert。
ToString(choiceCount*choicePoint);
dtlJudge。
DataSource=dtJudge.DefaultView;
lblJudgeCount。
ToString(judgeCount);
lblJudgePoint.Text=Convert。
ToString(judgePoint);
lblJudgeTotalPoint.Text=Convert。
ToString(judgeCount*judgePoint);
dtlBlank.DataSource=dtBlank。
dtlBlank.DataBind();
lblBlankCount.Text=Convert.ToString(blankCount);
lblBlankPoint。
Text=Convert.ToString(blankPoint);
lblBlankTotalPoint.Text=Convert.ToString(blankCount*blankPoint);
lblPageTitle。
Text=Convert.ToString(dtAll.Rows[0][”PaperName"
]);
lblExamTimeLength。
ToString(dtAll。
Rows[0][”TimeLength"
lblExamStartTime.Text=Convert.ToString(dtAll。
Rows[0]["
ExamDate"
]);
lblQuestionCount。
Text=Convert.ToString(choiceCount+judgeCount+blankCount);
lblTotalScore。
ToString(choiceCount*choicePoint+judgeCount*judgePoint+blankCount*blankPoint);
lblCreateDateTime。
ToString(dtAll.Rows[0][”CreateDate"
}
4。
2题库管理的编码
publicpartialclassAdmin_OnlineExam_Question:
System。
Web.UI。
{
privatestringsql=””;
privateUpdatePanelUpdatePanel1;
protectedvoidPage_Load(objectsender,EventArgse)
UpdatePanel1=(UpdatePanel)Master。
FindControl(”UPN"
if(Session[CommonUtils.Session_UserId]==null)
Response.Write("
<
Scriptlanguage=’javascript'
>
alert('
请先登录!
’)<
/script〉”);
Response。
End();
else
if(!
Page.IsPostBack)
InitPageData();
}
stringsubjectID=this。
ddlSubject.SelectedValue;
stringchapterID=this。
ddlChapter.SelectedValue;
stringquestionTypeID=this。
ddlQuestionType。
SelectedValue;
stringteacherID=Convert。
ToString(Session[CommonUtils.Session_UserId]);
;
sql=”select*fromUV_Select_TeacherSubjectRelationwhere1=1"
sql+=”andteacherID=”+teacherID;
CommonUtils.ECDropDownList(this。
ddlSubject,sql,”subjectName”,"
subjectID"
,true);
sql=”select*fromUT_Exam_QuestionType”;
CommonUtils。
ECDropDownList(this.ddlQuestionType,sql,"
questionTypeName"
,”ID”,true);
"
0"
.Equals(subjectID)&
&
!
”"
。
Equals(subjectID))
select*fromUT_Base_ChapterwheresubjectID="
+subjectID;
ECDropDownList(this.ddlChapter,sql,”chapterName"
,"
ID”,true);
StringoperFlag=Request.QueryString[”operFlag”];
if(operFlag==null)
operFlag="
add"
if(”add”.Equals(operFlag))
InitPageData_Add();
this。
btnClose.Visible=false;
btnConfirm。
Visible=true;
this.btnModify.Visible=false;
elseif("
query"
Equals(operFlag))
stringquestionID=Request.QueryString["
ID”];
InitPageData_NotAdd(questionID);
btnClose。
Visible=true;
btnConfirm.Visible=false;
btnModify。
Visible=false;
elseif(”modify”.Equals(operFlag))
stringquestionID=Request.QueryString[”ID”];
this.btnClose.Visible=false;
btnConfirm.Visible=false;
protectedvoidddlSubject_SelectedIndexChanged(objectsender,EventArgse)
stringsubjectID=this.ddlSubject.SelectedValue;
InitDDLChapter(subjectID);
}
privatevoidInitDDLChapter(stringsubjectID)
0”.Equals(subjectID)&
&!
””.Equals(subjectID))
select*fromUT_Base_ChapterwheresubjectID=”+subjectID;
CommonUtils.ECDropDownList(this.ddlChapter,sql,"
chapterName"
,”ID"
true);
protectedvoidddlQuestionType_SelectedIndexChanged(objectsender,EventArgse)
if(questionTypeID.Equals(”1"
))
this.pnlSelect。
this.pnlBlanck.Visible=false;
pnlJudge.Visible=false;
if(questionTypeID.Equals("
3"
pnlSelect.Visible=false;
pnlBlanck。
pnlJudge。
if(questionTypeID.Equals(”2"
pnlBlanck.Visible=true;
this.pnlJudge。
privatevoidInitPageData_Add()
this.txtBlankAnswer.Text="
txtBlankContent。
Text="
this.txtJudgeContent.Text="
”;
this.txtSelectA.Text=”"
this.txtSelectB。
this.txtSelectC。
this.txtSelectContent。
this.txtSelectD。
Text=”"
rdbRightAnswer。
SelectedIndex=—1;
rdlJudgeResult.SelectedIndex=—1;
第五章编码测试
5.1页面测试
测试用例阶段
实际测试阶段
页面操作
判断方法
期望输出
实际输出
备注
打开页面
1.开考到开考15分钟之前