diff --git a/DataBase/版本日志/SUBQHSE_V2025-07-16-gf.sql b/DataBase/版本日志/SUBQHSE_V2025-07-16-gf.sql new file mode 100644 index 00000000..206b71d8 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2025-07-16-gf.sql @@ -0,0 +1,42 @@ +alter table Information_MillionsMonthlyReport add KeyWorkNum int null +alter table Information_MillionsMonthlyReport add KeyWorkOKNum int null +alter table Information_MillionsMonthlyReport add KeyWorkOKRate nvarchar(20) null +GO + + +/*************ҵʱȫͳ±**************/ +ALTER VIEW [dbo].[View_Information_MillionsMonthlyReport] +AS +SELECT +Report.MillionsMonthlyReportId, +Report.UnitId, +Report.FillingDate, +Report.UpState, +(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate, +Group_0008.ConstText as YearStr, +Group_0009.ConstText as MonthStr, +U.UnitName, +Report.Year, +Report.Month, +Report.DutyPerson, +Report.RecordableIncidentRate, +Report.LostTimeRate, +Report.LostTimeInjuryRate, +Report.DeathAccidentFrequency, +Report.AccidentMortality, +Report.HandleState, +Report.HandleMan, +Report.KeyWorkNum, +Report.KeyWorkOKNum, +Report.KeyWorkOKRate, +US.UserName +FROM dbo.Information_MillionsMonthlyReport AS Report +LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId +LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year] +LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month] +LEFT JOIN Sys_User AS US ON US.UserId=Report.HandleMan + + +GO + + 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/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs index cad704ed..f72f1bcd 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -92,16 +92,15 @@ { try { - CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); var upReport = from x in db.Information_MillionsMonthlyReport where x.MillionsMonthlyReportId == millionsMonthlyReportId - select new CNCECHSSEService.Information_MillionsMonthlyReport + select new Information_MillionsMonthlyReport { MillionsMonthlyReportId = x.MillionsMonthlyReportId, UnitId = x.UnitId, Year = x.Year, Month = x.Month, - FillingMan = x.FillingMan, + FillingMan = x.FillingMan + "|" + (x.KeyWorkNum ?? 0).ToString() + "|" + (x.KeyWorkOKNum ?? 0).ToString() + "|" + (x.KeyWorkOKRate ?? ""), FillingDate = x.FillingDate, DutyPerson = x.DutyPerson, RecordableIncidentRate = x.RecordableIncidentRate, @@ -129,7 +128,7 @@ var upReportItem = from x in db.Information_MillionsMonthlyReportItem where x.MillionsMonthlyReportId == millionsMonthlyReportId - select new CNCECHSSEService.Information_MillionsMonthlyReportItem + select new Information_MillionsMonthlyReportItem { MillionsMonthlyReportItemId = x.MillionsMonthlyReportItemId, MillionsMonthlyReportId = x.MillionsMonthlyReportId, diff --git a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs index a807d8fa..b19cb2fa 100644 --- a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs +++ b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs @@ -73,6 +73,9 @@ namespace BLL BreakGroundLicenseNum = MillionsMonthlyReport.BreakGroundLicenseNum, ElectricityLicenseNum = MillionsMonthlyReport.ElectricityLicenseNum, RTLicenseNum = MillionsMonthlyReport.RTLicenseNum, + KeyWorkNum = MillionsMonthlyReport.KeyWorkNum, + KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum, + KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate, NightLicenseNum = MillionsMonthlyReport.NightLicenseNum, CommissionerNum = MillionsMonthlyReport.CommissionerNum, SoleDutyNum = MillionsMonthlyReport.SoleDutyNum, @@ -120,6 +123,9 @@ namespace BLL newMillionsMonthlyReport.NightLicenseNum = MillionsMonthlyReport.NightLicenseNum; newMillionsMonthlyReport.CommissionerNum = MillionsMonthlyReport.CommissionerNum; newMillionsMonthlyReport.SoleDutyNum = MillionsMonthlyReport.SoleDutyNum; + newMillionsMonthlyReport.KeyWorkNum = MillionsMonthlyReport.KeyWorkNum; + newMillionsMonthlyReport.KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum; + newMillionsMonthlyReport.KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate; Funs.DB.SubmitChanges(); } 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"> - <%-- + <%--