コード例 #1
0
        /// <summary>
        /// 属性列表对象。适用于repList_ItemDataBound
        /// </summary>
        public string GetHTML(string templateList, List <ITableImplement> listObj)
        {
            BuildByTemplate bt = new BuildByTemplate(BuildType.ForHtmlValue);

            bt.ConnectKey = conn;
            string htmlList = bt.BuildByStr(templateList, "bs", listObj, @"c:\123.txt");

            return(htmlList);
        }
コード例 #2
0
 public string GetTemplate(string template, ITableImplement valObj, ITableImplement condObj)
 {
     try
     {
         BuildByTemplate bt = new BuildByTemplate(BuildType.ForHtmlTemplate);
         bt.ConnectKey = conn;
         string template1 = bt.BuildByStr(template, "bs", Parse(valObj, condObj), @"c:\123.txt");
         return(template1);
     }
     catch (Exception ex)
     {
         File.AppendAllText(Path.Combine(WebHelper.GetAppPath(), "abc.txt"), ex.ToString());
         throw ex;
     }
     return("");
 }
コード例 #3
0
 public string GetTemplate(string template, ITableImplement valObj, ITableImplement condObj)
 {
     try
     {
         BuildByTemplate bt = new BuildByTemplate(BuildType.ForHtmlTemplate);
         bt.ConnectKey = conn;
         string template1 = bt.BuildByStr(template, "bs", Parse(valObj, condObj), @"c:\123.txt");
         return template1;
     }
     catch (Exception ex)
     {
         File.AppendAllText(Path.Combine(WebHelper.GetAppPath(), "abc.txt"), ex.ToString());
         throw ex;
     }
     return "";
 }
コード例 #4
0
 /// <summary>
 /// 属性列表对象。适用于repList_ItemDataBound
 /// </summary>
 public string GetHTML(string templateList, List<ITableImplement> listObj)
 {
     BuildByTemplate bt = new BuildByTemplate(BuildType.ForHtmlValue);
     bt.ConnectKey = conn;
     string htmlList = bt.BuildByStr(templateList, "bs", listObj, @"c:\123.txt");
     return htmlList;
 }