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); } }
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); }
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); }
public void InsertExamExceptionTime(int userId, int examId, DateTime dataTime) { exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter(); adapter.InsertExamExceptionTime(userId, examId, dataTime); }
public OesDAL.ExamDS.exam_exceptionDataTable GetExceptionOccurTime(int userId, int examId) { exam_exceptionTableAdapter adapter = new exam_exceptionTableAdapter(); return(adapter.GetOccurTime(userId, examId)); }