From 41ba702346349240ed2b85a156e92aea72a6b2d9 Mon Sep 17 00:00:00 2001 From: xiaju <1784803958@qq.com> Date: Fri, 18 Jul 2025 11:07:06 +0800 Subject: [PATCH 1/2] =?UTF-8?q?IDP=E8=AE=BE=E8=AE=A1=E5=9B=BE=E7=BA=B8?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignDrawing/DesignDrawingService.cs | 222 +++++++++++++++--- SGGL/BLL/IDP/IDPDataService.cs | 41 +--- .../CQMS/DesignDrawing/ArchivesLib.aspx | 147 +++++++++--- .../CQMS/DesignDrawing/ArchivesLib.aspx.cs | 168 ++++++++++++- .../ArchivesLib.aspx.designer.cs | 171 ++++++++++++++ SGGL/Model/IDP/SessionItem.cs | 19 ++ SGGL/Model/Model.csproj | 1 + SGGL/WebAPI/Controllers/IDP/IDPController.cs | 12 +- .../PublishProfiles/FolderProfile.pubxml.user | 22 +- SGGL/WebAPI/WebAPI.csproj.user | 2 +- 10 files changed, 686 insertions(+), 119 deletions(-) create mode 100644 SGGL/Model/IDP/SessionItem.cs diff --git a/SGGL/BLL/CQMS/DesignDrawing/DesignDrawingService.cs b/SGGL/BLL/CQMS/DesignDrawing/DesignDrawingService.cs index 4f724174..edd26fbd 100644 --- a/SGGL/BLL/CQMS/DesignDrawing/DesignDrawingService.cs +++ b/SGGL/BLL/CQMS/DesignDrawing/DesignDrawingService.cs @@ -114,7 +114,7 @@ namespace BLL public static List GetWbsFullPathDropDownList(string projectId) { var list = (from x in Funs.DB.IDP_DesignDrawing - where x.ProjectId == projectId && x.WbsFullPath != null + where x.ProjectId == projectId && x.WbsFullPath != null && x.WbsFullPath != "" select x.WbsFullPath).Distinct().OrderBy(x => x).ToList(); return list; } @@ -146,7 +146,7 @@ namespace BLL public static List GetFileVersionDropDownList(string projectId) { var list = (from x in Funs.DB.IDP_DesignDrawing - where x.ProjectId == projectId && x.FileVersion != null + where x.ProjectId == projectId && x.FileVersion != null && x.FileVersion != "" select x.FileVersion).Distinct().OrderBy(x => x).ToList(); return list; } @@ -178,7 +178,7 @@ namespace BLL public static List GetMajorNoDropDownList(string projectId) { var list = (from x in Funs.DB.IDP_DesignDrawing - where x.ProjectId == projectId && x.MajorNo != null + where x.ProjectId == projectId && x.MajorNo != null && x.MajorNo != "" select x.MajorNo).Distinct().OrderBy(x => x).ToList(); return list; } @@ -209,7 +209,7 @@ namespace BLL public static List GetMajorNameDropDownList(string projectId) { var list = (from x in Funs.DB.IDP_DesignDrawing - where x.ProjectId == projectId && x.MajorName != null + where x.ProjectId == projectId && x.MajorName != null && x.MajorName != "" select x.MajorName).Distinct().OrderBy(x => x).ToList(); return list; } @@ -241,41 +241,195 @@ namespace BLL public static List GetStatusDropDownList(string projectId) { var list = (from x in Funs.DB.IDP_DesignDrawing - where x.ProjectId == projectId && x.Status != null + where x.ProjectId == projectId && x.Status != null && x.Status != "" select x.Status).Distinct().OrderBy(x => x).ToList(); return list; } - ///// - // /// 装工主名称下拉框 - // /// - // /// 项目id - // /// - //public static List GetWbsFullPathDropDownList(string projectId) - //{ - // var list = (from x in Funs.DB.Transfer_PunchlistFrom - // where x.ProjectId == projectId - // select x.Action_By).Distinct().OrderBy(x => x).ToList(); - // return list; - //} - ///// - ///// 装工主名称下拉框 - ///// - ///// 项目id - ///// 下拉框名字 - ///// 是否显示请选择 - //public static void InitActionByUnitDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) - //{ - // dropName.DataValueField = "string"; - // dropName.DataTextField = "string"; - // dropName.DataSource = GetActionByUnitDropDownList(projectId); - // dropName.DataBind(); - // if (isShowPlease) - // { - // Funs.FineUIPleaseSelect(dropName); - // } - //} + /// + /// 保密等级下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitClassDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetClassDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + /// + /// 保密等级下拉框 + /// + /// 项目id + /// + public static List GetClassDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.ClassificationLevelInProject != null && x.ClassificationLevelInProject != "" + select x.ClassificationLevelInProject).Distinct().OrderBy(x => x).ToList(); + return list; + } + + /// + /// 设计人下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitDesignUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetDesignUserNameDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 设计人下拉框 + /// + /// 项目id + /// + public static List GetDesignUserNameDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.DesignUserName != null && x.DesignUserName != "" + select x.DesignUserName).Distinct().OrderBy(x => x).ToList(); + return list; + } + + /// + /// 校核人下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitJiaoheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetJiaoheUserNameDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 校核人下拉框 + /// + /// 项目id + /// + public static List GetJiaoheUserNameDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.JiaoheUserName != null && x.JiaoheUserName != "" + select x.JiaoheUserName).Distinct().OrderBy(x => x).ToList(); + return list; + } + + /// + /// 审核人下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitShenheUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetShenheUserNameDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 审核人下拉框 + /// + /// 项目id + /// + public static List GetShenheUserNameDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.ShenheUserName != null && x.ShenheUserName != "" + select x.ShenheUserName).Distinct().OrderBy(x => x).ToList(); + return list; + } + /// + /// 审定人下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitShendingUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetShendingUserNameDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 审定人下拉框 + /// + /// 项目id + /// + public static List GetShendingUserNameDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.ShendingUserName != null && x.ShendingUserName != "" + select x.ShendingUserName).Distinct().OrderBy(x => x).ToList(); + return list; + } + + /// + /// 专业负责人下拉框 + /// + /// 项目id + /// 下拉框名字 + /// 是否显示请选择 + public static void InitMajorResponsibleUserNameDropDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease) + { + dropName.DataValueField = "string"; + dropName.DataTextField = "string"; + dropName.DataSource = GetMajorResponsibleUserNameDropDownList(projectId); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + /// + /// 专业负责人下拉框 + /// + /// 项目id + /// + public static List GetMajorResponsibleUserNameDropDownList(string projectId) + { + var list = (from x in Funs.DB.IDP_DesignDrawing + where x.ProjectId == projectId && x.MajorResponsibleUserName != null && x.MajorResponsibleUserName != "" + select x.MajorResponsibleUserName).Distinct().OrderBy(x => x).ToList(); + return list; + } } } diff --git a/SGGL/BLL/IDP/IDPDataService.cs b/SGGL/BLL/IDP/IDPDataService.cs index e3d21101..c4e3800e 100644 --- a/SGGL/BLL/IDP/IDPDataService.cs +++ b/SGGL/BLL/IDP/IDPDataService.cs @@ -1,21 +1,13 @@ -using Apache.NMS.ActiveMQ.Commands; -using Aspose.Words.Lists; -using Microsoft.SqlServer.Dts.Runtime; -using Model; +using Model; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Org.BouncyCastle.Ocsp; -using SgManager.AI; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Linq; using System.Net; using System.Security.Cryptography; -using System.Security.Policy; -using System.ServiceModel.Channels; using System.Text; namespace BLL @@ -25,15 +17,15 @@ namespace BLL /// public static class IDPDataService { - /// - /// 测试环境api地址 - /// - private static readonly string IDPApiUrl = "http://10.5.6.151:8100/"; ///// - ///// 正式环境api地址 + ///// 测试环境api地址 ///// + //private static readonly string IDPApiUrl = "http://10.5.6.151:8100/"; + /// + /// 正式环境api地址 + /// //private static readonly string IDPApiUrl = "https://idp.cwcec.com/"; - //private static readonly string IDPApiUrl = SysConstSetService.WuHuanIDPPath; + private static readonly string IDPApiUrl = SysConstSetService.WuHuanIDPPath; #region 接口授权认证 @@ -142,7 +134,7 @@ namespace BLL /// 质量管理设计图纸 /// /// 项目Id - /// 获取指定日期之后到现在的异动数据 + /// 获取指定时间之后到现在的异动数据 public static void GetIDPProjectDesignDrawingData(string projectId = "", string startDate = "") { try @@ -214,6 +206,7 @@ namespace BLL newItem.DisplayProjectName = item.displayProjectName; newItem.ProjectDeviceProcedureSubjectCode = item.projectDeviceProcedureSubjectCode; newItem.WbsFullPath = item.wbsFullPath; + newItem.FormatFileCode = item.formatFileCode; newItem.FormatFileName = item.formatFileName; newItem.FileVersion = item.fileVersion; newItem.MajorNo = item.majorNo; @@ -246,7 +239,6 @@ namespace BLL } } - if (listAdd.Any()) { AddIDP_DesignDrawing(listAdd); @@ -292,6 +284,7 @@ namespace BLL newItem.DisplayProjectName = obj.DisplayProjectName; newItem.ProjectDeviceProcedureSubjectCode = obj.ProjectDeviceProcedureSubjectCode; newItem.WbsFullPath = obj.WbsFullPath; + newItem.FormatFileCode = obj.FormatFileCode; newItem.FormatFileName = obj.FormatFileName; newItem.FileVersion = obj.FileVersion; newItem.MajorNo = obj.MajorNo; @@ -317,7 +310,7 @@ namespace BLL /// /// 接收保存数据 /// - /// + /// public static string SaveDesignDrawingData(List items) { try @@ -431,16 +424,4 @@ namespace BLL #endregion } - - public class SessionItem - { - /// - /// value - /// - public string value { get; set; } - /// - /// name - /// - public string name { get; set; } - } } diff --git a/SGGL/FineUIPro.Web/CQMS/DesignDrawing/ArchivesLib.aspx b/SGGL/FineUIPro.Web/CQMS/DesignDrawing/ArchivesLib.aspx index b2a7c7fd..232bb8ed 100644 --- a/SGGL/FineUIPro.Web/CQMS/DesignDrawing/ArchivesLib.aspx +++ b/SGGL/FineUIPro.Web/CQMS/DesignDrawing/ArchivesLib.aspx @@ -9,7 +9,7 @@ 档案文件库
- + - + - + - + - + - + + + + + + + + - <%-- - - --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -88,37 +124,70 @@ - + - + - + - + - + - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + - <%-- + <%-- --%> @@ -145,7 +214,7 @@ Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close" Width="1300px" Height="660px"> - <%-- + <%--