예제 #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;
 }