62,263
社区成员
发帖
与我相关
我的任务
分享
string title = "style='color:White;background-color:#2176B9;border:1px solid #D4E2EB;text-align:center;vertical-align:middle;height:50px;'";
StringBuilder html = new StringBuilder();
html.Append("<table><tr><td colspan='8' " + headline + ">" + titleText + "</td></tr></table>");
html.Append("<table cellspacing='1' CellPadding='5' " + table + ">");
html.Append("<tr>");
html.Append("<td colspan='8'>");//13
html.Append("<b>操作员:</b>" + user.Name + "; ");
html.Append("<b>总面积(平方米):</b>" + areaTotal + "; ");
html.Append("<b>总卡数(张):</b>" + cardTotal + "; ");
html.Append("<b>导出时间:</b>" + string.Format("{0:yyyy-MM-dd}", DateTime.Now) + "; ");
html.Append("</td>");
html.Append("</tr>");
html.Append("<tr>");
html.Append("<td colspan='8'>");
html.Append("<b>筛选条件【</b>");
html.Append(condition);
html.Append("<b>】</b>");
html.Append("</td>");
html.Append("</tr>");
html.Append("<tr></tr>");
html.Append("<tr>");
html.Append("<td " + title + ">序号</td>");
html.Append("<td width='100pt' " + title + ">项目名称</td>");
html.Append("<td " + title + ">建筑面积(平方米)</td>");
html.Append("<td " + title + ">工程地址</td>");
html.Append("<td " + title + ">施工单位</td>");
html.Append("<td " + title + ">监理单位</td>");
html.Append("<td " + title + ">形象进度</td>");
......