diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 01a39c76..665361d4 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -14336,6 +14336,7 @@ SuperviseCheckRectifyEdit.aspx + ASPXCodeBehind SuperviseCheckRectifyEdit.aspx @@ -14420,7 +14421,7 @@ True 0 / - http://localhost:14290/ + http://localhost:8653/ False False diff --git a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx index a7faddac..76a27117 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx @@ -5,8 +5,7 @@ - 总部检查 - + @@ -23,7 +22,7 @@ - @@ -36,9 +35,9 @@ SortField="RectifyItemId" FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Hidden="true"> - - + + @@ -53,11 +52,23 @@ + + + + + + + + + + @@ -70,26 +81,44 @@ Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px" Height="500px"> +
+ Alternate Text +
- - + - + function onGridDataLoad(event) { + this.mergeColumns(['RectifyCode'], { depends: true }); + } + + diff --git a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.cs index c4a06e2e..0c8883b1 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; +using System.Web; namespace FineUIPro.Web.HSSE.Check { @@ -127,5 +128,44 @@ namespace FineUIPro.Web.HSSE.Check ShowNotify("数据已提交成功!"); } } + + + /// + /// 获取整改前图片(放于Img中) + /// + /// + /// + protected string ConvertImageUrlByImage(object RectifyItemId) + { + string url = string.Empty; + if (RectifyItemId != null) + { + var RectifyNoticesItem = BLL.AttachFileService.GetAttachFileByToKeyId(RectifyItemId.ToString() + "#1"); + if (RectifyNoticesItem != null) + { + url = HttpUtility.HtmlDecode(BLL.UploadAttachmentService.ShowImage("../../", RectifyNoticesItem.AttachUrl)); + } + } + return url; + } + + /// + /// 获取整改后图片 + /// + /// + /// + protected string ConvertImageUrlByImage2(object RectifyItemId) + { + string url = string.Empty; + if (RectifyItemId != null) + { + var RectifyNoticesItem = BLL.AttachFileService.GetAttachFileByToKeyId(RectifyItemId.ToString() + "#2"); + if (RectifyNoticesItem != null) + { + url = BLL.UploadAttachmentService.ShowImage("../../", RectifyNoticesItem.AttachUrl); + } + } + return url; + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.designer.cs index cdf4faec..ea964a99 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/OfficeCheck.aspx.designer.cs @@ -68,6 +68,24 @@ namespace FineUIPro.Web.HSSE.Check /// protected global::FineUIPro.RadioButtonList rbStates; + /// + /// lbImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbImageUrl; + + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/Check/RectifyNoticesView.aspx b/SGGL/FineUIPro.Web/HSSE/Check/RectifyNoticesView.aspx index 1df17a02..c9a5082f 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/RectifyNoticesView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/RectifyNoticesView.aspx @@ -84,7 +84,7 @@ - %>'> + - 隐患整改 - - + +
@@ -48,6 +47,107 @@ --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -66,111 +166,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ Alternate Text +
+ diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.cs b/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.cs index 3de15077..c002679f 100644 --- a/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; +using System.Web; namespace FineUIPro.Web.OfficeCheck.Check { @@ -49,7 +50,7 @@ namespace FineUIPro.Web.OfficeCheck.Check this.btnSave.Hidden = true; this.btnAdd.Hidden = true; this.btnSubmit.Hidden = true; - this.Grid1.Columns[9].Hidden = true; + this.Grid1.Columns[11].Hidden = true; } this.CheckNoticeId = Request.Params["CheckNoticeId"]; @@ -133,14 +134,16 @@ namespace FineUIPro.Web.OfficeCheck.Check List listStr = new List(); if (Funs.DB.ProjectSupervision_RectifyItem.FirstOrDefault(x => x.RectifyId == this.hdRectifyNoticesId.Text) != null) { - strSql = @"select RectifyItemId,WrongContent,Requirement,LimitTime,RectifyResults,IsRectify,HiddenHazardType,null as CheckReportItemId + strSql = @"select RectifyItemId,WrongContent,Requirement,LimitTime,RectifyResults,IsRectify,HiddenHazardType + ,null as CheckReportItemId, RectifyItemId AS FileUrlId from ProjectSupervision_RectifyItem where RectifyId = @RectifyId"; listStr.Add(new SqlParameter("@RectifyId", this.hdRectifyNoticesId.Text)); } else { - strSql = @"select newid() as RectifyItemId,UnConformItem as WrongContent,null as Requirement,null as LimitTime, null as RectifyResults,0 as IsRectify,'1' as HiddenHazardType,item.CheckReportItemId + strSql = @"select newid() as RectifyItemId,UnConformItem as WrongContent,null as Requirement,null as LimitTime, null as RectifyResults,0 as IsRectify + ,'1' as HiddenHazardType,item.CheckReportItemId,item.CheckReportItemId AS FileUrlId from ProjectSupervision_CheckReportItem as item left join ProjectSupervision_CheckReport as Report on item.CheckReportId=Report.CheckReportId where Report.CheckNoticeId = @CheckNoticeId"; @@ -264,7 +267,7 @@ namespace FineUIPro.Web.OfficeCheck.Check } else { - string checkReportItemId= Grid1.Rows[e.RowIndex].Values[10].ToString(); + string checkReportItemId= Grid1.Rows[e.RowIndex].Values[12].ToString(); PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Rectify&menuId={1}&type=0&strParam=1", checkReportItemId, BLL.Const.CheckInfoMenuId))); } } @@ -528,5 +531,43 @@ namespace FineUIPro.Web.OfficeCheck.Check PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } } + + /// + /// 获取整改前图片(放于Img中) + /// + /// + /// + protected string ConvertImageUrlByImage(object FileUrlId) + { + string url = string.Empty; + if (FileUrlId != null) + { + var RectifyNoticesItem = BLL.AttachFileService.GetAttachFileByToKeyId(FileUrlId.ToString() + "#1"); + if (RectifyNoticesItem != null) + { + url = HttpUtility.HtmlDecode(BLL.UploadAttachmentService.ShowImage("../../", RectifyNoticesItem.AttachUrl)); + } + } + return url; + } + + /// + /// 获取整改后图片 + /// + /// + /// + protected string ConvertImageUrlByImage2(object FileUrlId) + { + string url = string.Empty; + if (FileUrlId != null) + { + var RectifyNoticesItem = BLL.AttachFileService.GetAttachFileByToKeyId(FileUrlId.ToString() + "#2"); + if (RectifyNoticesItem != null) + { + url = BLL.UploadAttachmentService.ShowImage("../../", RectifyNoticesItem.AttachUrl); + } + } + return url; + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.designer.cs index 8fec0a02..cf728a41 100644 --- a/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/RectifyEdit.aspx.designer.cs @@ -95,60 +95,6 @@ namespace FineUIPro.Web.OfficeCheck.Check /// protected global::FineUIPro.DatePicker txtCheckedDate; - /// - /// Toolbar1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Toolbar Toolbar1; - - /// - /// hdRectifyNoticesId 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.HiddenField hdRectifyNoticesId; - - /// - /// btnSave 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSave; - - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - - /// - /// btnSure 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSure; - - /// - /// Form2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form2; - /// /// Grid1 控件。 /// @@ -221,6 +167,15 @@ namespace FineUIPro.Web.OfficeCheck.Check /// protected global::System.Web.UI.WebControls.TextBox txtLimitTimes; + /// + /// lbImageUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lbImageUrl; + /// /// txtRectifyResults 控件。 /// @@ -230,6 +185,15 @@ namespace FineUIPro.Web.OfficeCheck.Check /// protected global::FineUIPro.TextBox txtRectifyResults; + /// + /// Label2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label Label2; + /// /// drpIsRectify 控件。 /// @@ -257,15 +221,6 @@ namespace FineUIPro.Web.OfficeCheck.Check /// protected global::FineUIPro.LinkButtonField del; - /// - /// Form3 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Form Form3; - /// /// next 控件。 /// @@ -284,6 +239,51 @@ namespace FineUIPro.Web.OfficeCheck.Check /// protected global::FineUIPro.DropDownList drpSignPerson; + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// hdRectifyNoticesId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdRectifyNoticesId; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnSubmit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSubmit; + + /// + /// btnSure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSure; + /// /// WindowAtt 控件。 ///