diff --git a/DataBase/版本日志/SUBQHSE_V2025-09-15-xiaj.sql b/DataBase/版本日志/SUBQHSE_V2025-09-15-xiaj.sql
new file mode 100644
index 00000000..8916591c
--- /dev/null
+++ b/DataBase/版本日志/SUBQHSE_V2025-09-15-xiaj.sql
@@ -0,0 +1,5 @@
+
+
+
+ALTER TABLE Comprehensive_InspectionEquipment
+ALTER COLUMN UsedPlace NVARCHAR(500);
\ No newline at end of file
diff --git a/DataBase/版本日志/SUBQHSE_V2025-09-16-xiaj(角色补充项目主管).sql b/DataBase/版本日志/SUBQHSE_V2025-09-16-xiaj(角色补充项目主管).sql
new file mode 100644
index 00000000..4f34021a
--- /dev/null
+++ b/DataBase/版本日志/SUBQHSE_V2025-09-16-xiaj(角色补充项目主管).sql
@@ -0,0 +1,17 @@
+
+
+
+update Sys_Role set RoleCode='101' where RoleName='Ŀ';
+
+
+--ɫĿ
+IF NOT EXISTS (SELECT 1 FROM Sys_Role WHERE RoleName = 'Ŀ')
+BEGIN
+ insert into Sys_Role(RoleId,RoleName,RoleCode,IsSystemBuilt,RoleType,IsAuditFlow)
+ values('b51072d6-5c8d-4763-b010-b3492b50feac','Ŀ','100',1,1,1)
+END
+GO
+
+
+
+
diff --git a/SGGL/BLL/API/APIGetHttpService.cs b/SGGL/BLL/API/APIGetHttpService.cs
index 081aad15..a59ba58a 100644
--- a/SGGL/BLL/API/APIGetHttpService.cs
+++ b/SGGL/BLL/API/APIGetHttpService.cs
@@ -20,8 +20,8 @@ namespace BLL
public static string Http(string url, string method = "GET", string contenttype = "application/json;charset=utf-8", Hashtable header = null, string data = null)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 |
-SecurityProtocolType.Tls | SecurityProtocolType.Tls11 |
-SecurityProtocolType.Tls12;
+ SecurityProtocolType.Tls | SecurityProtocolType.Tls11 |
+ SecurityProtocolType.Tls12;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;
diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs
index cebc0fe2..06462030 100644
--- a/SGGL/BLL/Common/CommonService.cs
+++ b/SGGL/BLL/Common/CommonService.cs
@@ -589,6 +589,7 @@ namespace BLL
///
public static string CreateGetHttpResponse(string url)
{
+ System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;//创建请求对象
request.Method = "Get";//请求方式
request.ContentType = "application/x-www-form-urlencoded";//链接类型
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index cba955dc..e6c00786 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -390,6 +390,10 @@ namespace BLL
#region 内置项目角色定义
///
+ /// 项目主管
+ ///
+ public const string ProjectSupervisor = "b51072d6-5c8d-4763-b010-b3492b50feac";
+ ///
/// 项目经理
///
public const string ProjectManager = "1184835B-73AF-47FB-9F83-20740CE2FAD7";
diff --git a/SGGL/BLL/OpenService/FileInsertService.cs b/SGGL/BLL/OpenService/FileInsertService.cs
index 3f19aac2..5331491e 100644
--- a/SGGL/BLL/OpenService/FileInsertService.cs
+++ b/SGGL/BLL/OpenService/FileInsertService.cs
@@ -5,6 +5,7 @@ using System.Text;
using System.Collections;
using System.IO;
using System.Web;
+using System.Text.RegularExpressions;
namespace BLL
{
@@ -44,6 +45,7 @@ namespace BLL
}
}
+
///
/// 获取多附件数据流类
///
@@ -61,18 +63,30 @@ namespace BLL
{
if (strs.Count() > i)
{
+ //string physicalpath = Funs.AttachRootPath;
string physicalpath = Funs.RootPath;
- //HttpContext.Current.Request.PhysicalApplicationPath;
- string fullPath = physicalpath + strs[i];
+ string fpath = strs[i];
+ string fullPath = physicalpath + fpath;
if (!File.Exists(fullPath))
{
byte[] fileContext = item;
- int index = fullPath.LastIndexOf("\\");
- string filePath = fullPath.Substring(0, index);
+ string fileName = Regex.Match(fullPath, @"[^/\\?]+(\?.*)?$").Value;
+ string filePath = fullPath.Replace(fileName, "");
+ //int index = fullPath.LastIndexOf("\\");
+ //string filePath = fullPath.Substring(0, index) ;
+ //string filePath = index > 0 ? fullPath.Substring(0, index) : fullPath;
- if (!Directory.Exists(filePath))
+ try
{
- Directory.CreateDirectory(filePath);
+ if (!Directory.Exists(filePath))
+ {
+ Directory.CreateDirectory(filePath);
+ }
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog($"附件【{filePath}】获取异常!");
+ //continue;
}
//string savePath = fullPath + fileName;
@@ -93,6 +107,7 @@ namespace BLL
}
}
+
///
/// 数据和附件插入到多附件表
///
diff --git a/SGGL/BLL/PZHGL/GJSX/GJSXMonitorService.cs b/SGGL/BLL/PZHGL/GJSX/GJSXMonitorService.cs
index 4a2bf1e2..e0ffeee7 100644
--- a/SGGL/BLL/PZHGL/GJSX/GJSXMonitorService.cs
+++ b/SGGL/BLL/PZHGL/GJSX/GJSXMonitorService.cs
@@ -125,7 +125,7 @@ namespace BLL