From 8b0b178d888872f4cacfb31ddae4e24fcfc46fe7 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Mon, 15 Dec 2025 15:01:07 +0800 Subject: [PATCH] 1 --- .../DCGL/ServerCheck/CheckRectifyEdit.aspx | 8 ++++- .../DCGL/ServerCheck/CheckRectifyEdit.aspx.cs | 32 +++++++++++++++++-- .../CheckRectifyEdit.aspx.designer.cs | 9 ++++++ 3 files changed, 46 insertions(+), 3 deletions(-) diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx index 6d4749b..d4ac162 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx @@ -122,7 +122,13 @@ ToolTip="相关照片附件" DataIFrameUrlFields="NoticeItemId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Check&type=-1" Title="相关照片" ColumnID="WindowAtt"> --%> - + + + + + diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs index 1e80daa..3075aa4 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.cs @@ -105,6 +105,27 @@ namespace FineUIPro.Web.DCGL.ServerCheck } return url; } + /// + /// 获取整改后图片(放于Img中) + /// + /// + /// + protected string ConvertImaUrlByImage(object id) + { + string url = string.Empty; + string httpUrl = string.Empty; + var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault(); + if (sysSet6 != null) + { + httpUrl = sysSet6.SetValue; + } + var attachFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == id.ToString()); + if (attachFile != null) + { + url = BLL.UploadAttachmentService.ShowImage(httpUrl, attachFile.AttachUrl); + } + return url; + } /// /// 保存按钮 @@ -269,9 +290,12 @@ namespace FineUIPro.Web.DCGL.ServerCheck sb.Append(""); sb.Append(""); sb.Append(""); + sb.AppendFormat("", ""); + sb.Append(""); + sb.Append(""); foreach (GridColumn column in grid.Columns) { - if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del" && column.ColumnID != "CheckRectifyItemId") + if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del" && column.ColumnID != "CheckRectifyItemId" && column.ColumnID != "WindowAtt1") { sb.AppendFormat("", column.HeaderText); } @@ -282,7 +306,7 @@ namespace FineUIPro.Web.DCGL.ServerCheck sb.Append(""); foreach (GridColumn column in grid.Columns) { - if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del" && column.ColumnID != "CheckRectifyItemId") + if (column.ColumnID != "ckbIsSelected" && column.ColumnID != "Punish" && column.ColumnID != "Del" && column.ColumnID != "CheckRectifyItemId" && column.ColumnID != "WindowAtt1") { string html = row.Values[column.ColumnIndex].ToString(); if (column.ColumnID == "tfPageIndex") @@ -297,6 +321,10 @@ namespace FineUIPro.Web.DCGL.ServerCheck { html = (row.FindControl("lbImageUrl1") as AspNet.Label).Text; } + if (column.ColumnID == "tfImageUrl2") + { + html = (row.FindControl("tfImageUrl2") as AspNet.Label).Text; + } sb.AppendFormat("", html); } } diff --git a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs index f1ac82f..ef71075 100644 --- a/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs +++ b/SUBQHSE/FineUIPro.Web/DCGL/ServerCheck/CheckRectifyEdit.aspx.designer.cs @@ -158,6 +158,15 @@ namespace FineUIPro.Web.DCGL.ServerCheck /// protected global::System.Web.UI.WebControls.Label lbImageUrl1; + /// + /// tfImageUrl2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label tfImageUrl2; + /// /// txtOrderEndPerson 控件。 ///
集团督查检查隐患列表
{0}
{0}