移交管理
This commit is contained in:
@@ -306,6 +306,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_PunchlistFrom where ProjectId = '{ProjectId}';";
|
||||
BLL.SQLHelper.ExecutSql(strSql);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
@@ -341,6 +384,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))
|
||||
{
|
||||
@@ -515,7 +559,7 @@ namespace FineUIPro.Web.Transfer
|
||||
IDrawing patriarch = sheet.CreateDrawingPatriarch();
|
||||
// 第四步:设置锚点
|
||||
int rowline = 1; // y方向
|
||||
// 参数说明:(在起始单元格的X坐标0-1023,Y的坐标0-255,在终止单元格的X坐标0-1023,Y的坐标0-255,起始单元格列数,行数,终止单元格列数,行数)
|
||||
// 参数说明:(在起始单元格的X坐标0-1023,Y的坐标0-255,在终止单元格的X坐标0-1023,Y的坐标0-255,起始单元格列数,行数,终止单元格列数,行数)
|
||||
IClientAnchor anchor = patriarch.CreateAnchor(0, 0, 0, 0, 17, i, 18, i + 1);
|
||||
// 第五步:把图片插到相应的位置+1
|
||||
IPicture pict = patriarch.CreatePicture(anchor, pictureIdx);
|
||||
|
||||
Reference in New Issue
Block a user