/// <summary> /// 不含分数 /// </summary> public PaperByManualSelection GetPaper(int paperID) { PaperByManualSelection paper = db.SelectByID(paperID.ToString()); ChangeFillBlankSubject(paper.FillBlankList); return(paper); }
/// <summary> /// 含分配的分数 /// </summary> public PaperByManualSelection GetPaper(int testID, int paperID) { PaperByManualSelection paper = db.SelectByID(testID, paperID); ChangeFillBlankSubject(paper.FillBlankList); return(paper); }
/// <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); }
public void CreatePaper(PaperByManualSelection paper) { db.Insert(paper); }