public string GetHelpObject(string helpid) { CommonHelpDac dac = new CommonHelpDac(); CommonHelpEntity item = dac.GetCommonHelpItem(helpid); var sb = new StringBuilder("var helpObj={"); sb.Append("title:'" + item.Title + "',"); sb.Append("icon:'" + string.Empty + "',"); sb.Append("codeField:'" + item.CodeField + "',"); sb.Append("nameField:'" + item.NameField + "',"); sb.Append("selectMode:" + 1 + ","); sb.Append("t0:'"); sb.Append(string.Empty); sb.Append("',t1:'"); sb.Append(dac.GetQueryTemplate(helpid).Replace("\r\n", string.Empty).Replace("'", "''")); sb.Append("',t2:'"); sb.Append(dac.GetListTemplate(helpid).Replace("\r\n", string.Empty).Replace("'", "''")); sb.Append("'\r\n};"); return(sb.ToString()); }
/// <summary> /// 取得列表的模板信息 /// </summary> /// <param name="helpid"></param> /// <returns></returns> public string GetListTemplate(string helpid) { return(dac.GetListTemplate(helpid)); }