dot net开发,菜鸟问题,如何判断题目是否已作废
DAL层的代码!!!!!!!!!
#region 得到习题库的所有的习题信息
/// <summary>
///
/// </summary>
/// <returns></returns>
public List<T_VAllExeTest> GetAllExeTest()
{
List<T_VAllExeTest> list = new List<T_VAllExeTest>();
SqlDataReader reader = SQLHelper.RunProcedure("P_Select_AllExeTest", null);
while (reader.Read())
{
T_VAllExeTest exercise = new T_VAllExeTest();
exercise.T_ExeTestID = reader.GetInt32(reader.GetOrdinal("T_ExeTestID"));
exercise.T_ExeTestType = reader.GetInt16(reader.GetOrdinal("T_ExeTestType"));
exercise.T_ExeTestTypeNickName = (exercise.T_ExeTestType == 1) ? "选择题" : "判断题";
exercise.T_ExeTestValue = reader.GetString(reader.GetOrdinal("T_ExeTestValue"));
exercise.T_ExeTestAns = reader.GetString(reader.GetOrdinal("T_ExeTestAns"));
if(exercise.T_ExeTestAns.Equals("0")){
exercise.T_ExeTestAns = "对";
}else if(exercise.T_ExeTestAns.Equals("1")){
exercise.T_ExeTestAns = "错";
};
//********获得习题作废标记,作废标记显示为“删除”*********
exercise.T_ExeTestWasteMark = reader.GetBoolean(reader.GetOrdinal("T_ExeTestWasteMark"));
list.Add(exercise);
}
reader.Close();
return list;
&n