diff --git a/.vs/SGGL_CD/v17/.wsuo b/.vs/SGGL_CD/v17/.wsuo
index 9eaf282e..d0ca065e 100644
Binary files a/.vs/SGGL_CD/v17/.wsuo and b/.vs/SGGL_CD/v17/.wsuo differ
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx
index 5473a570..3427e7b9 100644
--- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx
@@ -36,8 +36,8 @@
-
-
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx
index e1593bd4..e76686f5 100644
--- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx
@@ -37,8 +37,8 @@
-
-
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs
index 99952f98..8964368f 100644
--- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs
+++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs
@@ -1,6 +1,7 @@
using BLL;
using System;
using System.Collections.Generic;
+using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
@@ -152,18 +153,12 @@ namespace FineUIPro.Web.DataShow
protected string ConvertImageUrlByImage(object registrationId)
{
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;
- }
if (registrationId != null)
{
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
if (registration != null)
{
- url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.ImageUrl);
+ url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], registration.ImageUrl);
}
}
return url;
@@ -178,21 +173,16 @@ namespace FineUIPro.Web.DataShow
protected string ConvertImgUrlByImage(object registrationId)
{
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;
- }
if (registrationId != null)
{
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
if (registration != null)
{
- url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.RectificationImageUrl);
+ url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], registration.RectificationImageUrl);
}
}
return url;
+
}
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config
index 3a29e4c2..6a71d1cb 100644
--- a/SGGL/FineUIPro.Web/Web.config
+++ b/SGGL/FineUIPro.Web/Web.config
@@ -17,7 +17,7 @@
-
+