예제 #1
0
        public Result GetTotalLastSetupQuestionTime(Exam oExam)
        {
            //new CLogger("Start GetTotalLastSetupQuestionTime QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Start GetTotalLastSetupQuestionTime QuestionBO+BO", ELogLevel.Debug);

            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.GetTotalLastSetupQuestionTime(oExam);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during GetTotalLastSetupQuestionTime..";
                oResult.ResultException = oEx;

                //new CLogger("Exception GetTotalLastSetupQuestionTime QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Exception GetTotalLastSetupQuestionTime QuestionBO+BO", ELogLevel.Debug, oEx);
            }

            //new CLogger("Out GetTotalLastSetupQuestionTime QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Out GetTotalLastSetupQuestionTime QuestionBO+BO", ELogLevel.Debug);

            return oResult;
        }
예제 #2
0
        public Result DeleteQuestionList(List<Question> oListQuestion, int[] iarrChecked)
        {
            //new CLogger("Start DeleteQuestionList QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Start DeleteQuestionList QuestionBO+BO", ELogLevel.Debug);

            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.DeleteQuestionList(oListQuestion,iarrChecked);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during Question Delete..";
                oResult.ResultException = oEx;

                //new CLogger("Exception DeleteQuestionList QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Exception DeleteQuestionList QuestionBO+BO", ELogLevel.Debug, oEx);
            }

            //new CLogger("Out DeleteQuestionList QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Out DeleteQuestionList QuestionBO+BO", ELogLevel.Debug);

            return oResult;
        }
예제 #3
0
        public Result UpdateQuestion(Question oQuestion)
        {
            //new CLogger("Start UpdateQuestion QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Start UpdateQuestion QuestionBO+BO", ELogLevel.Debug);

            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.UpdateQuestion(oQuestion);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during Question Update..";
                oResult.ResultException = oEx;

                //new CLogger("Exception UpdateQuestion QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Exception UpdateQuestion QuestionBO+BO", ELogLevel.Debug, oEx);
            }

            //new CLogger("Out UpdateQuestion QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Out UpdateQuestion QuestionBO+BO", ELogLevel.Debug);

            return oResult;
        }
예제 #4
0
        public Result QuestionSetupListShowByQuestionLevel(QuestionSetup oQuestionSetup)
        {
            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.QuestionSetupListShowByQuestionLevel(oQuestionSetup);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during QuestionSetupListShowByQuestionLevel..";
                oResult.ResultException = oEx;
            }

            return oResult;
        }
예제 #5
0
        public Result QuestionListShowForSetup(Question oQuestion,Exam oExam)
        {
            //new CLogger("Start QuestionListShowForSetup QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Start QuestionListShowForSetup QuestionBO+BO", ELogLevel.Debug);

            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.QuestionListShowForSetup(oQuestion,oExam);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during QuestionListShowForSetup..";
                oResult.ResultException = oEx;

                //new CLogger("Exception QuestionListShowForSetup QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Exception QuestionListShowForSetup QuestionBO+BO", ELogLevel.Debug, oEx);
            }

            //new CLogger("Out QuestionListShowForSetup QuestionBO+BO", FileNameManagerInDLL.sLogFileName, 1).WriteLog("Out QuestionListShowForSetup QuestionBO+BO", ELogLevel.Debug);

            return oResult;
        }
예제 #6
0
        public Result LoadAllQuestionsOfAnExam(Exam oSelectedExam)
        {
            Result oResult = new Result();
            QuestionDAO oQuestionDAO = new QuestionDAO();

            try
            {
                oResult = oQuestionDAO.LoadAllQuestionsOfAnExam(oSelectedExam);
            }
            catch (Exception oEx)
            {
                oResult.ResultIsSuccess = false;
                oResult.ResultMessage = "Exception occured during LoadAllQuestionsOfAnExam..";
                oResult.ResultException = oEx;
            }

            return oResult;
        }