移交管理

This commit is contained in:
2024-11-18 15:14:57 +08:00
parent 6c7bb34357
commit 9d4672a210
53 changed files with 4021 additions and 2409 deletions
@@ -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))
{