This commit is contained in:
李超 2023-05-11 10:30:57 +08:00
commit ec4b8265ea
5 changed files with 9 additions and 19 deletions

Binary file not shown.

View File

@ -36,8 +36,8 @@
</f:DatePicker> </f:DatePicker>
<f:RadioButtonList runat="server" ID="rbType" Width="200px" Label="级别" LabelWidth="50px" <f:RadioButtonList runat="server" ID="rbType" Width="200px" Label="级别" LabelWidth="50px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"> AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
<f:RadioItem Text="重大" Value="0" Selected="true" /> <f:RadioItem Text="重大" Value="0" />
<f:RadioItem Text="一般" Value="1" /> <f:RadioItem Text="一般" Value="1" Selected="true"/>
</f:RadioButtonList> </f:RadioButtonList>
<f:ToolbarFill runat="server"></f:ToolbarFill> <f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();"> <f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();">

View File

@ -37,8 +37,8 @@
</f:DropDownList> </f:DropDownList>
<f:RadioButtonList runat="server" ID="rbType" Width="200px" Label="级别" LabelWidth="50px" <f:RadioButtonList runat="server" ID="rbType" Width="200px" Label="级别" LabelWidth="50px"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged"> AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
<f:RadioItem Text="重大" Value="0" Selected="true" /> <f:RadioItem Text="重大" Value="0" />
<f:RadioItem Text="一般" Value="1" /> <f:RadioItem Text="一般" Value="1" Selected="true" />
</f:RadioButtonList> </f:RadioButtonList>
<f:ToolbarFill runat="server"></f:ToolbarFill> <f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose"> <f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">

View File

@ -1,6 +1,7 @@
using BLL; using BLL;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Configuration;
using System.Data; using System.Data;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Linq; using System.Linq;
@ -152,18 +153,12 @@ namespace FineUIPro.Web.DataShow
protected string ConvertImageUrlByImage(object registrationId) protected string ConvertImageUrlByImage(object registrationId)
{ {
string url = string.Empty; 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) if (registrationId != null)
{ {
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
if (registration != null) if (registration != null)
{ {
url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.ImageUrl); url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], registration.ImageUrl);
} }
} }
return url; return url;
@ -178,21 +173,16 @@ namespace FineUIPro.Web.DataShow
protected string ConvertImgUrlByImage(object registrationId) protected string ConvertImgUrlByImage(object registrationId)
{ {
string url = string.Empty; 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) if (registrationId != null)
{ {
var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString()); var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(registrationId.ToString());
if (registration != null) if (registration != null)
{ {
url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.RectificationImageUrl); url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["SGGLUrl"], registration.RectificationImageUrl);
} }
} }
return url; return url;
} }
} }
} }

View File

@ -17,7 +17,7 @@
<add key="SystemName" value="数字化施工管理信息平台V1.0"/> <add key="SystemName" value="数字化施工管理信息平台V1.0"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/> <add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
<add key="aspnet:MaxHttpCollectionKeys" value="50000"/> <add key="aspnet:MaxHttpCollectionKeys" value="50000"/>
<add key="SGGLUrl" value="http://localhost/sggl/"/> <add key="SGGLUrl" value="http://localhost:1295/"/>
<add key="SystemVersion" value="SGGLPackFile_V2022-11-11-001"/> <add key="SystemVersion" value="SGGLPackFile_V2022-11-11-001"/>
<!--启用与集团实名制 True启用 False 不启用--> <!--启用与集团实名制 True启用 False 不启用-->
<add key="EnableRealName" value="False"/> <add key="EnableRealName" value="False"/>