예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="examquestiondata"></param>
        /// <param name="entityQuestion"></param>
        /// <param name="examAnswerestimateData"></param>
        /// <param name="entityAnswer"></param>
        public void EditEstimateQuestion(ref ExamQuestionData examquestiondata
                                         , ref ExamAnswerEstimateData examAnswerestimateData)
        {
            #region
            ExamAnswerEstimateClass answerestimateclass = new ExamAnswerEstimateClass();
            this.SaveExamQuestion(examquestiondata);
            answerestimateclass.SaveSingleT(examAnswerestimateData);

            #endregion
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="examquestiondata"></param>
        /// <param name="entityQuestion"></param>
        /// <param name="examAnswerestimateData"></param>
        /// <param name="entityAnswer"></param>
        public void AddEstimateQuestion(ref ExamQuestionData examquestiondata
                                        , EntityExamQuestion entityQuestion, ref ExamAnswerEstimateData examAnswerestimateData
                                        , EntityExamAnswerEstimate entityAnswer)
        {
            #region
            entityQuestion.questionId = this._examquestionclass.GetMaxAddOne(examquestiondata).ToString();
            ExamAnswerEstimateClass    answerestimateclass    = new ExamAnswerEstimateClass();
            ExamAnswerEstimateBusiness answerestimatebusiness = new ExamAnswerEstimateBusiness();

            entityAnswer.answerId   = answerestimateclass.GetMaxAddOne(examAnswerestimateData).ToString();
            entityAnswer.questionId = entityQuestion.questionId;

            this.AddRow(ref examquestiondata, entityQuestion);
            answerestimatebusiness.AddRow(ref examAnswerestimateData, entityAnswer);

            this.SaveExamQuestion(examquestiondata);
            answerestimateclass.SaveSingleT(examAnswerestimateData);

            #endregion
        }