/// <summary> /// 获取问答卷列表 /// </summary> /// <param name="ExampaperID"></param> /// <returns></returns> public List <Survey_QuestionAndAnswer> GetSurvey_QuestionAndAnswerByExampaperID(int ExampaperID) { List <Survey_QuestionAndAnswer> qaaList = null; var t = SurveyExampaperdb.GetServeyExamPaper(ExampaperID); if (t != null) { var SurveyQuestionList = GetSurvey_QuestionByExampaperID(ExampaperID); qaaList = SurveyQuestionList.Select(c => new Survey_QuestionAndAnswer { sq = c, sqalist = sqadb.GetSurvey_QuestionAnswerByQuestionID(c.QuestionID).ToList() }).ToList(); return(qaaList); } return(qaaList); }
public List <Survey_QuestionAnswer> GetSurvey_QuestionAnswerByQuestionID(int QuestionID) { return(Sdb.GetSurvey_QuestionAnswerByQuestionID(QuestionID)); }