移交管理
This commit is contained in:
@@ -181,6 +181,49 @@ namespace FineUIPro.Web.Transfer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 导出
|
||||
|
||||
/// <summary>
|
||||
/// 导出
|
||||
/// </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 = System.Text.Encoding.UTF8;
|
||||
this.Grid1.PageSize = 100000;
|
||||
this.BindGrid();
|
||||
Response.Write(GetGridMultiHeaderTableHtml(Grid1));
|
||||
//Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 清空数据
|
||||
|
||||
/// <summary>
|
||||
/// 清空数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrWhiteSpace(ProjectId))
|
||||
{
|
||||
string strSql = $"delete from Transfer_Civil_Structure where ProjectId = '{ProjectId}';";
|
||||
BLL.SQLHelper.ExecutSql(strSql);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
@@ -212,6 +255,7 @@ namespace FineUIPro.Web.Transfer
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDel.Hidden = false;
|
||||
this.btnClear.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user