20220919版本日志整理,部门人员列表及导出功能调整

This commit is contained in:
2022-09-20 11:47:25 +08:00
parent 01ce3c0381
commit 7412e411a7
25 changed files with 361 additions and 1348 deletions
@@ -1,6 +1,7 @@
using BLL;
using System;
using System.Linq;
using System.Text;
namespace FineUIPro.Web.Person
{
@@ -256,5 +257,24 @@ namespace FineUIPro.Web.Person
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonView.aspx?PersonId={0}", Grid1.SelectedRowID, "查看 - ")));
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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.ContentEncoding = Encoding.UTF8;
this.Grid1.PageSize = this.Grid1.RecordCount;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
}
#endregion
}
}