예제 #1
0
        /// <summary>
        /// 不含分数
        /// </summary>
        public PaperByManualSelection GetPaper(int paperID)
        {
            PaperByManualSelection paper = db.SelectByID(paperID.ToString());

            ChangeFillBlankSubject(paper.FillBlankList);
            return(paper);
        }
예제 #2
0
        /// <summary>
        /// 含分配的分数
        /// </summary>
        public PaperByManualSelection GetPaper(int testID, int paperID)
        {
            PaperByManualSelection paper = db.SelectByID(testID, paperID);

            ChangeFillBlankSubject(paper.FillBlankList);
            return(paper);
        }
예제 #3
0
        /// <summary>
        /// 含考生的回答
        /// </summary>
        public PaperByManualSelection GetPaper(int testID, int paperID, int recorderID)
        {
            PaperByManualSelection paper = db.SelectByID(testID, paperID);

            if (paper != null)
            {
                new DBTestRecorder().SetTestRecorderAnswer(recorderID, paper.FillBlankList, paper.JudgeList, paper.SingleSelectionList, paper.MultiSelectionList, paper.SimpleAnswerList);
            }

            ChangeFillBlankSubject(paper.FillBlankList);
            return(paper);
        }
예제 #4
0
 public void CreatePaper(PaperByManualSelection paper)
 {
     db.Insert(paper);
 }