Beispiel #1
0
 public void InsertExamExceptionTime(int userId, int examId, DateTime dataTime)
 {
     try
     {
         exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter();
         adapter.InsertExamExceptionTime(userId, examId, dataTime);
     }
     catch (Exception e)
     {
         Log4NetHelper.WriteErrorLog(typeof(ExamManager), e);
     }
 }
Beispiel #2
0
 public ExamDS.exam_exceptionDataTable GetExceptionOccurTime(int userId, int examId)
 {
     try
     {
         exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter();
         return(adapter.GetOccurTime(userId, examId));
     }
     catch (Exception e)
     {
         Log4NetHelper.WriteErrorLog(typeof(ExamManager), e);
     }
     return(null);
 }
Beispiel #3
0
        public void TestGetExceptionOccurTime()
        {
            exam_exceptionTableAdapter exceptionAdapter = new exam_exceptionTableAdapter();
            int exceptionid = Convert.ToInt32(exceptionAdapter.InsertExceptionTime(userId, examId, DateTime.Parse("2015-09-09")));

            var table = examManager.GetExceptionOccurTime(userId, examId);

            foreach (var item in table)
            {
                Assert.AreEqual("2015-9-9 0:00:00", item.occur_time.ToString());
            }
            exceptionAdapter.DeleteException(exceptionid);
        }
Beispiel #4
0
        public void InsertExamExceptionTime(int userId, int examId, DateTime dataTime)
        {
            exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter();

            adapter.InsertExamExceptionTime(userId, examId, dataTime);
        }
Beispiel #5
0
        public OesDAL.ExamDS.exam_exceptionDataTable GetExceptionOccurTime(int userId, int examId)
        {
            exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter();

            return(adapter.GetOccurTime(userId, examId));
        }