温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:在线考试系统完整版源码(C#&Access)
当前文件:
ExamOnlineAccess/ExamBLL/Auto Generated Code/JudgeProblemManager.cs[1K,2009-6-12 11:42:06],打开代码结构图
ExamOnlineAccess/ExamBLL/Auto Generated Code/JudgeProblemManager.cs[1K,2009-6-12 11:42:06],打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Data; 5
using ExamModel.Auto_Generated_Code; 6
using ExamDAL.Auto_Generated_Code; 7
8
namespace ExamBLL.Auto_Generated_Code 9
{ 10
public class JudgeProblemManager 11
{ 12
13
//添加单选题 14
public static bool AddJudgeProblem(JudgeProblem judPro) 15
{ 16
int count = JudgeProblemServices.AddJudgeProblem(judPro); 17
if (count > 0) 18
{ 19
return true; 20
} 21
else 22
{ 23
return false; 24
} 25
} 26
27
//更新单选题 28
public static bool UpdateJudgeProblem(JudgeProblem judPro) 29
{ 30
if (JudgeProblemServices.UpdateJudgeProblem(judPro)) 31
{ 32
return true; 33
} 34
else 35
{ 36
return false; 37
} 38
39
} 40
//通过ID删除 41
public static bool DeleteJudgeById(int judProID) 42
{ 43
if (JudgeProblemServices.DeleteJudgeById(judProID)) 44
{ 45
return true; 46
} 47
else 48
{ 49
return false; 50
} 51
} 52
53
54
55
56
//通过科目名查找单选题题目 57
public static DataSet GetJudgeByCoursename(Course course) 58
{ 59
return JudgeProblemServices.GetJudgeproByCourseName(course); 60
} 61
//通过ID获得科目对象 62
public static JudgeProblem GetJudgeproblemById(int judId) 63
{ 64
return JudgeProblemServices.GetJudgeproblemById(judId); 65
} 66
} 67
} 68






}
}