/// <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); }
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(""); }
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 ""; }
/// <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; }