/// <summary> /// 取得HTML和JS的替換內容 /// </summary> /// <returns>替換內容</returns> private void GetHtmlReplaceContentMaps() { TopicManagementList.ForEach(d => { // 構造題型并取得結果 TopicParameterBase parameter = PolicyHelper.Instance.Structure(d.TopicIdentifier, d.Number); // 題型HTML信息作成并對指定的HTML模板標識進行替換 ConcurrentDictionary <SubstituteType, string> htmlMaps = MakeHtml.GetHtmlReplaceTagDict(d.TopicIdentifier, parameter); _htmlMaps.Add(d.TopicIdentifier, htmlMaps); }); }
/// <summary> /// 取得HTML和JS的替換內容 /// </summary> /// <param name="topicIdentifier">題型種類</param> /// <returns>替換內容</returns> private ConcurrentDictionary <SubstituteType, string> GetHtmlReplaceContentMaps(string topicIdentifier) { // 題型編號取得 string identifier = TopicManagementList.Where(d => topicIdentifier.Equals(d.TopicIdentifier, StringComparison.CurrentCultureIgnoreCase)).First().Number; // 構造題型并取得結果 TopicParameterBase parameter = PolicyHelper.Instance.Structure(topicIdentifier, identifier); // 題型HTML信息作成并對指定的HTML模板標識進行替換 ConcurrentDictionary <SubstituteType, string> htmlMaps = MakeHtml.GetHtmlReplaceTagDict(topicIdentifier, parameter); return(htmlMaps); }