20240816 修改项目列表导出
This commit is contained in:
@@ -3,6 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.ProjectData
|
||||
@@ -102,6 +103,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 双击行事件
|
||||
/// <summary>
|
||||
/// 双击事件
|
||||
/// </summary>
|
||||
@@ -116,7 +118,9 @@ namespace FineUIPro.Web.ProjectData
|
||||
}
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectSetView.aspx?ProjectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查看
|
||||
/// <summary>
|
||||
/// 查看
|
||||
/// </summary>
|
||||
@@ -126,6 +130,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectSetView.aspx?ProjectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
@@ -204,12 +209,9 @@ namespace FineUIPro.Web.ProjectData
|
||||
protected void btnOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
Response.ClearContent();
|
||||
string filename = Funs.GetNewFileName();
|
||||
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("项目信息" + filename, System.Text.Encoding.UTF8) + ".xls");
|
||||
Response.ContentType = "application/excel";
|
||||
Response.AddHeader("content-disposition", "attachment; filename=项目信息.xls");
|
||||
Response.ContentType = "application/vnd.ms-excel";
|
||||
Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = this.Grid1.RecordCount;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user