/// <summary> /// 依群組名稱取的資料 /// </summary> /// <param name="Name"></param> /// <returns></returns> public Dictionary <string, QuestionData> GetQuestionDataByGroupName(string Name) { Dictionary <string, QuestionData> retVal = new Dictionary <string, QuestionData>(); List <UDTQuestionsDataDef> dataList = UDTTransfer.ABUDTQuestionsDataSelectByGroupName(Name); dataList = (from da in dataList orderby da.Group, da.Name select da).ToList(); foreach (UDTQuestionsDataDef ud in dataList) { QuestionData qd = new QuestionData(ud); if (!retVal.ContainsKey(qd.Name)) { retVal.Add(qd.Name, qd); } } return(retVal); }