• 大小: 1.84MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-01
  • 语言: 其他
  • 标签: 考试系统  

资源简介

计算机应用迅猛发展,网络应用不断扩大,如远程教育和虚拟大学的出现等,使得基于Web的在线考试系统成为现实。基于Web的在线考试系统可以发挥网络的优势,建立大型、高效、共享的题库和实现随时随地的考试,降低考试成本,减少人为干扰,减轻教师负担,节约人力、物力和财力。

资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Collections;
using System.Data.SqlClient;
using MyOnLineExam.DataAccesslayer;
using MyOnLineExam.DataAccessHelper;


namespace MyOnLineExam.BusinessLogiclayer
{
    //考试科目类
    public class Course
    {
        #region 私有成员
        private int _ID;                                               //题目编号            
        private string _Name;                                         //题目        

        #endregion 私有成员

        #region 属性

        public int ID
        {
            set
            {
                this._ID = value;
            }
            get
            {
                return this._ID;
            }
        }
        public string Name
        {
            set
            {
                this._Name = value;
            }
            get
            {
                return this._Name;
            }
        }
        
        #endregion 属性

        #region 方法
        
        //向Course表中添加考试科目信息
        //输出:
        //      插入成功:返回True;
        //      插入失败:返回False;
        public bool InsertByProc()
        {
            SqlParameter[] Params = new SqlParameter[1];

            Database DB = new Database();

            Params[0] = DB.MakeInParam(“@Name“ SqlDbType.VarChar 50 Name);               //考试科目名称           

            int Count = -1;
            Count = DB.RunProc(“Proc_CourseAdd“ Params);
            if (Count > 0)
                return true;
            else return false;
        }

        //更新科目的信息
        public bool UpdateByProc(int CID)
        {
            SqlParameter[] Params = new SqlParameter[2];

            Database DB = new Database();

            Params[0] = DB.MakeInParam(“@ID“ SqlDbType.Int 4 CID);               //用户编号            
            Params[1] = DB.MakeInParam(“@Name“ SqlDbType.VarChar 200 Name);      //用户权限           

            int Count = -1;
            Count = DB.RunProc(“Proc_CourseModify“ Params);
            if (Count > 0)
                return true;
            else return false;
        }
        
        //删除科目
        //输入:
        //      CID - 科目编号;
        //输出:
        //      删除成功:返回True;
        //      删除失败:返回False;
        public bool DeleteByProc(int CID)
        {
            SqlParameter[] Params = new SqlParameter[1];

            Database DB = new Database();

            Params[0] = DB.MakeInParam(“@ID“ SqlDbType.Int4 CID);               //科目编号          
            
            int Count = -1;
            Count = DB.RunProc(“Proc_CourseDelete“ Params);
            if (Count > 0)
                return true;
            else return false;
        }
        
        //查询所用考试科目
        //不需要参数
        public DataSet QueryCourse()
        {
            Database DB = new Database();           
            return DB.GetDataSet(“Proc_CourseList“);
        }
        
        #endregion 方法

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3265  2007-03-05 17:25  在线考试系统.net.net\App_Code\BusinessLogiclayer\Course.cs

     文件       6508  2007-03-05 17:25  在线考试系统.net.net\App_Code\BusinessLogiclayer\FillBlankProblem.cs

     文件       5771  2007-03-05 17:25  在线考试系统.net.net\App_Code\BusinessLogiclayer\JudgeProblem.cs

     文件       8260  2007-03-05 17:25  在线考试系统.net.net\App_Code\BusinessLogiclayer\MultiProblem.cs

     文件       4626  2008-03-31 09:45  在线考试系统.net.net\App_Code\BusinessLogiclayer\Paper.cs

     文件       3503  2007-03-05 17:25  在线考试系统.net.net\App_Code\BusinessLogiclayer\Scores.cs

     文件       8332  2007-03-05 17:26  在线考试系统.net.net\App_Code\BusinessLogiclayer\SingleProblem.cs

     文件       8238  2008-03-31 09:45  在线考试系统.net.net\App_Code\BusinessLogiclayer\Users.cs

     文件       2733  2008-03-31 09:43  在线考试系统.net.net\App_Code\DataAccessHelper\GetSafeData.cs

     文件        470  2007-03-05 17:26  在线考试系统.net.net\App_Code\DataAccessHelper\SQLString.cs

     文件       9561  2008-03-31 09:44  在线考试系统.net.net\App_Code\DataAccesslayer\Database.cs

     文件       4469  2008-03-31 11:35  在线考试系统.net.net\Controls\admin_left.ascx

     文件        427  2007-03-05 17:26  在线考试系统.net.net\Controls\admin_left.ascx.cs

     文件    3145728  2008-03-31 11:36  在线考试系统.net.net\DB_51aspx\myOnlineExam.mdf

     文件      47362  2008-03-31 11:38  在线考试系统.net.net\DB_51aspx\MyOnLineExam.sql

     文件    1048576  2008-03-31 11:36  在线考试系统.net.net\DB_51aspx\myOnlineExam_log.ldf

     文件       4945  2007-07-18 09:38  在线考试系统.net.net\from.gif

     文件       1238  2007-03-05 17:26  在线考试系统.net.net\Images\Answer.GIF

     文件       1244  2007-03-05 17:26  在线考试系统.net.net\Images\Confirm.GIF

     文件       1236  2007-03-05 17:26  在线考试系统.net.net\Images\Delete.GIF

     文件       1263  2007-03-05 17:26  在线考试系统.net.net\Images\Excel.GIF

     文件       4945  2007-07-18 09:38  在线考试系统.net.net\Images\from.gif

     文件       1345  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp01.gif

     文件       1219  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp02.gif

     文件       1230  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp03.gif

     文件       1247  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp04.gif

     文件       1114  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp05.gif

     文件       1191  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp06.gif

     文件       1149  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp07.gif

     文件       1282  2007-03-05 17:26  在线考试系统.net.net\Images\ico_Xp08.gif

............此处省略76个文件信息

评论

共有 条评论