1229-gaofei
This commit is contained in:
@@ -482,7 +482,7 @@ namespace FineUIPro.Web
|
||||
/// <returns>数据表</returns>
|
||||
protected DataTable GetPagedDataTable(FineUIPro.Grid Grid1, DataTable tb)
|
||||
{
|
||||
int pageIndex = Grid1.PageIndex;
|
||||
int pageIndex = Grid1.PageIndex;
|
||||
int pageSize = Grid1.PageSize;
|
||||
|
||||
string sortField = Grid1.SortField;
|
||||
@@ -882,7 +882,7 @@ namespace FineUIPro.Web
|
||||
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
|
||||
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
|
||||
sb.Append("<tr>");
|
||||
|
||||
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
@@ -931,7 +931,7 @@ namespace FineUIPro.Web
|
||||
}
|
||||
}
|
||||
sb.AppendFormat("<td style='vnd.ms-excel.numberformat:@;width:140px;'>{0}</td>", html);
|
||||
// sb.AppendFormat("<td>{0}</td>", html);
|
||||
// sb.AppendFormat("<td>{0}</td>", html);
|
||||
}
|
||||
|
||||
sb.Append("</tr>");
|
||||
@@ -950,15 +950,15 @@ namespace FineUIPro.Web
|
||||
public static string GetGridTableHtml2(Grid grid)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
|
||||
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/><html xmlns:x=\"urn:schemas-microsoft-com:office:excel\">");
|
||||
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
|
||||
sb.Append("<tr>");
|
||||
|
||||
foreach (GridColumn column in grid.Columns)
|
||||
{
|
||||
if (column.ColumnID != "AttachFile" && column.ColumnID!= "lbfAction1" && column.ColumnID != "AttachFile2")
|
||||
if (column.ColumnID != "AttachFile" && column.ColumnID != "lbfAction1" && column.ColumnID != "AttachFile2")
|
||||
{
|
||||
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
|
||||
sb.AppendFormat("<td x:str>{0}</td>", column.HeaderText.Replace("<br/>", ""));
|
||||
}
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
Reference in New Issue
Block a user