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 GetQueryTemplate(string helpid) { return(dac.GetQueryTemplate(helpid)); }