예제 #1
0
        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());
        }
예제 #2
0
 public CommonHelpEntity GetCommonHelpItem(string helpid)
 {
     return(dac.GetCommonHelpItem(helpid));
 }