From 857a427be6b00fb88d6e5101ebc77fa8d38f2ef8 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Wed, 7 Jun 2023 10:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E7=A9=BF=E9=80=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SGGLDB_CD_V2023-06-06-001.sql | 6 ++ SGGL/BLL/Common/CommonService.cs | 11 ++ SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs | 7 +- SGGL/FineUIPro.Web/DataShow/Check.aspx.cs | 6 +- .../DataShow/CompanyPerson.aspx.cs | 9 +- .../FineUIPro.Web/DataShow/HJGLDefect.aspx.cs | 2 +- .../DataShow/HJGLWelding.aspx.cs | 2 +- .../DataShow/HiddenRectification.aspx | 2 +- .../DataShow/HiddenRectification.aspx.cs | 2 +- .../DataShow/HiddenRectificationItem.aspx.cs | 24 ++++- .../DataShow/LargeEngineering.aspx.cs | 2 +- .../DataShow/LargeEngineeringItem.aspx.cs | 7 +- SGGL/FineUIPro.Web/DataShow/Project.aspx.cs | 4 +- .../DataShow/QualityControlPoint.aspx.cs | 2 +- .../DataShow/QualityInstruments.aspx.cs | 2 +- .../DataShow/QualityPerson.aspx.cs | 4 +- .../DataShow/QualityProblem.aspx | 10 +- .../DataShow/QualityProblem.aspx.cs | 10 +- .../DataShow/QualityProblemItem.aspx.cs | 6 +- .../DataShow/QualityTraining.aspx.cs | 2 +- .../DataShow/SecurityRisk.aspx.cs | 2 +- .../DataShow/SecurityRiskItem.aspx.cs | 9 +- .../DataShow/WorkingHours.aspx.cs | 2 +- SGGL/FineUIPro.Web/ErrLog.txt | 42 ++++++++ .../HSSE/Hazard/HazardListEdit.aspx.cs | 1 + SGGL/Model/Model.cs | 100 +++++++++++++++++- 26 files changed, 231 insertions(+), 45 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_CD_V2023-06-06-001.sql diff --git a/DataBase/版本日志/SGGLDB_CD_V2023-06-06-001.sql b/DataBase/版本日志/SGGLDB_CD_V2023-06-06-001.sql new file mode 100644 index 00000000..d541d3ff --- /dev/null +++ b/DataBase/版本日志/SGGLDB_CD_V2023-06-06-001.sql @@ -0,0 +1,6 @@ +alter table Base_Project add isDelete bit null + +ALTER TABLE [dbo].[Base_Project] ADD [ProjectAttribute] [varchar](50) NULL + +Alter TABLE [dbo].[Accident_AccidentPersonRecord] Add + [IsAttempt] [char](1) NULL \ No newline at end of file diff --git a/SGGL/BLL/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs index 309f6ce7..aa74639c 100644 --- a/SGGL/BLL/Common/CommonService.cs +++ b/SGGL/BLL/Common/CommonService.cs @@ -725,5 +725,16 @@ namespace BLL { return Funs.DB.Base_Unit.FirstOrDefault(x=>x.UnitId==Const.UnitId_CD); } + + /// + /// 得到本单位Id + /// + /// + public static string GetThisUnitId() + { + string unitId = Const.UnitId_CD; + + return unitId; + } } } diff --git a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs index 828a7bd9..3278df13 100644 --- a/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Accident.aspx.cs @@ -53,12 +53,7 @@ namespace FineUIPro.Web.DataShow if (rbType.SelectedValue == "0") { - strSql += " AND AccidentType.AccidentTypeName LIKE @values"; - listStr.Add(new SqlParameter("@values", "% 未遂%")); - } - else - { - strSql += " AND '未遂' NOT IN (AccidentType.AccidentTypeName)"; + strSql += " AND Record.IsAttempt='1'"; } } else diff --git a/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs index 68ff82dc..0114067e 100644 --- a/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Check.aspx.cs @@ -1,8 +1,12 @@ -using BLL; +using Aspose.Words; +using BLL; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { diff --git a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs index b710c640..89fd70c3 100644 --- a/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/CompanyPerson.aspx.cs @@ -26,7 +26,7 @@ namespace FineUIPro.Web.DataShow } } - /// + /// /// 绑定数据 /// private void BindGrid() @@ -37,16 +37,17 @@ namespace FineUIPro.Web.DataShow + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId " + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE 1=1 "; List listStr = new List(); + string UnitId = CommonService.GetThisUnitId(); if (this.rbCom.SelectedValue == "0") { - strSql += " AND Person.UnitId = @UnitId"; + strSql += " AND Person.UnitId = @UnitId"; + listStr.Add(new SqlParameter("@UnitId", UnitId)); } else { strSql += " AND Person.UnitId != @UnitId"; + listStr.Add(new SqlParameter("@UnitId", UnitId)); } - listStr.Add(new SqlParameter("@UnitId", Const.UnitId_CD)); - if (rbType.SelectedValue == "0") { strSql += " AND Person.WorkPostId = @WorkPostId"; diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs index 5cb335d8..91e9cd40 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HJGLDefect.aspx.cs @@ -35,7 +35,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"SELECT Project.ProjectId,Project.ProjectName,Defects_Definition,COUNT(Item.CHT_CheckItemID) AS Counts + string strSql = @"SELECT NEWID() AS ID,Project.ProjectId,Project.ProjectName,Defects_Definition,COUNT(Item.CHT_CheckItemID) AS Counts FROM CH_CheckItem AS Item LEFT JOIN CH_Check AS Checks ON Item.CHT_CheckID =Checks.CHT_CheckID LEFT JOIN Base_Project AS Project ON Checks.ProjectId =Project.ProjectId diff --git a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs index d6b2f6f7..c8e610a6 100644 --- a/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HJGLWelding.aspx.cs @@ -34,7 +34,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0) "; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx index 3427e7b9..a1ecc9b5 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx @@ -37,7 +37,7 @@ - + diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs index dbf0a5eb..42bc6869 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectification.aspx.cs @@ -33,7 +33,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0) "; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs index 8964368f..95f7dd72 100644 --- a/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/HiddenRectificationItem.aspx.cs @@ -1,10 +1,13 @@ -using BLL; +using Aspose.Words; +using BLL; +using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; -using System.Configuration; using System.Data; using System.Data.SqlClient; +using System.IO; using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { @@ -153,12 +156,18 @@ 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(ConfigurationManager.AppSettings["SGGLUrl"], registration.ImageUrl); + url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.ImageUrl); } } return url; @@ -173,16 +182,21 @@ 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(ConfigurationManager.AppSettings["SGGLUrl"], registration.RectificationImageUrl); + url = BLL.UploadAttachmentService.ShowImage(httpUrl, registration.RectificationImageUrl); } } return url; - } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs index 3eaef7bc..fa4c4f63 100644 --- a/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineering.aspx.cs @@ -43,7 +43,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0) "; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs index df3fcf26..463a6b9a 100644 --- a/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/LargeEngineeringItem.aspx.cs @@ -1,8 +1,13 @@ -using BLL; +using Aspose.Words; +using BLL; +using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { diff --git a/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs index a1fb51d1..80554519 100644 --- a/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/Project.aspx.cs @@ -32,12 +32,12 @@ namespace FineUIPro.Web.DataShow private void BindGrid() { string strSql = "SELECT Project.ProjectId,Project.ProjectCode,Project.ProjectName,unit.UnitName,Project.StartDate,Project.EndDate,Project.ProjectAddress,ShortName, ConstructionMoney," - + @" (CASE WHEN ProjectState='" + BLL.Const.ProjectState_2 + "' THEN '暂停中' WHEN ProjectState='" + BLL.Const.ProjectState_3 + "' THEN '已完工' ELSE '施工中' END) AS ProjectStateName,Project.ProjectState" + + @" (CASE WHEN ProjectState='" + BLL.Const.ProjectState_2 + "' THEN '暂停中' WHEN ProjectState='" + BLL.Const.ProjectState_3 + "' THEN '已完工' ELSE '施工中' END) AS ProjectStateName,Project.ProjectState,(case ProjectAttribute when 'GONGCHENG' then '工程' when 'SHIYE' then '实业' else '' end) as ProjectAttributeName" + @" ,ProjectMoney,DATEDIFF(DAY,Project.StartDate,GETDATE()) AS DayCount,ProjectType.ProjectTypeName AS ProjectTypeName,sysConst.ConstText as ProjectStateName2" + @" FROM Base_Project AS Project LEFT JOIN Base_Unit as unit on unit.UnitId=Project.UnitId " + @" LEFT JOIN Base_ProjectType AS ProjectType ON Project.ProjectType =ProjectType.ProjectTypeId" + @" LEFT JOIN Sys_Const AS sysConst ON Project.ProjectState2 =sysConst.ConstValue AND sysConst.GroupId= '" + BLL.ConstValue.GroupId_ProjectState + "' " - + @" WHERE 1=1"; + + @" WHERE (ProjectAttribute='GONGCHENG' OR ProjectAttribute IS NULL ) and (Project.isDelete IS NULL OR Project.isDelete =0) "; List listStr = new List(); if (this.ckState.SelectedValue != "0") diff --git a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs index d90b2bc7..d88e21cc 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityControlPoint.aspx.cs @@ -35,7 +35,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs index 1c7be0de..612b9602 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityInstruments.aspx.cs @@ -34,7 +34,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs index 3a6b7271..41817452 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityPerson.aspx.cs @@ -42,7 +42,7 @@ namespace FineUIPro.Web.DataShow + @" FROM Person_CompanyBranchPerson AS Person " + @" LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=Person.UnitId " + @" LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId=WorkPost.WorkPostId WHERE WorkPost.IsCQMS=1 "; - + string UnitId = CommonService.GetThisUnitId(); if (this.rbCom.SelectedValue == "1") { strSql += " AND Person.UnitId = @UnitId"; @@ -51,7 +51,7 @@ namespace FineUIPro.Web.DataShow { strSql += " AND Person.UnitId != @UnitId"; } - listStr.Add(new SqlParameter("@UnitId", Const.UnitId_CD)); + listStr.Add(new SqlParameter("@UnitId", UnitId)); this.Grid1.Columns[1].Hidden = true; } else diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx index 4db771a9..03ef5aa7 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx @@ -34,8 +34,8 @@ - - + + @@ -52,8 +52,8 @@ - - + + @@ -91,7 +91,7 @@ diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs index 30e1b596..d0e9f3ba 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblem.aspx.cs @@ -33,7 +33,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) @@ -166,7 +166,7 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getT = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString() ); + var getT = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString()); if (datetime1.HasValue) { getT = getT.Where(x => x.CheckDate >= datetime1); @@ -175,7 +175,7 @@ namespace FineUIPro.Web.DataShow { getT = getT.Where(x => x.CheckDate <= datetime2); } - + cout1 = getT.Count(); } return cout1; @@ -197,7 +197,7 @@ namespace FineUIPro.Web.DataShow { getT = getT.Where(x => x.CheckDate <= datetime2); } - + cout1 = getT.Count(); } return cout1; @@ -232,7 +232,7 @@ namespace FineUIPro.Web.DataShow var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); var getALL = Funs.DB.Check_CheckControl.Where(x => x.ProjectId == projectId.ToString()); - + if (datetime1.HasValue) { getALL = getALL.Where(x => x.CheckDate >= datetime1); diff --git a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs index 6415ff6b..4c5c3773 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityProblemItem.aspx.cs @@ -1,9 +1,13 @@ -using BLL; +using Aspose.Words; +using BLL; +using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { diff --git a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs index b304f043..31331a99 100644 --- a/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/QualityTraining.aspx.cs @@ -34,7 +34,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs index 6e8b8a5f..c3d996eb 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRisk.aspx.cs @@ -35,7 +35,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs index 9c06345f..8831ee44 100644 --- a/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/SecurityRiskItem.aspx.cs @@ -1,8 +1,15 @@ -using BLL; +using Aspose.Words; +using BLL; +using FineUIPro.Web.BaseInfo; +using Model; +using Org.BouncyCastle.Asn1.Ocsp; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Text; namespace FineUIPro.Web.DataShow { diff --git a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs index edebf72f..b12448b7 100644 --- a/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/WorkingHours.aspx.cs @@ -34,7 +34,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1"; + string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 and (isDelete IS NULL OR isDelete =0)"; List listStr = new List(); string cpara = string.Empty; if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index affdef98..6f717082 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -1529,3 +1529,45 @@ IP地址:::1 出错时间:05/25/2023 16:49:49 + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/DataShow/Unit.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:06/06/2023 10:02:51 +出错文件:http://localhost:1295/DataShow/Unit.aspx +IP地址:::1 + +出错时间:06/06/2023 10:02:51 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/DataShow/Unit.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:06/06/2023 10:02:54 +出错文件:http://localhost:1295/DataShow/Unit.aspx +IP地址:::1 + +出错时间:06/06/2023 10:02:54 + diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs index c5616a91..3f294ecb 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/HazardListEdit.aspx.cs @@ -627,6 +627,7 @@ namespace FineUIPro.Web.HSSE.Hazard JObject values = mergedRow.Value("values"); Model.Hazard_HazardSelectedItem hazardSelectedItem = new Model.Hazard_HazardSelectedItem { + HazardSelectedItemId = Guid.NewGuid().ToString(), HazardId = values.Value("HazardId"), HazardListTypeId = values.Value("HazardListTypeId"), WorkStage = values.Value("WorkStage"), diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index d7fcca7e..f4cc28ae 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -10423,6 +10423,8 @@ namespace Model private string _States; + private string _IsAttempt; + private EntityRef _Base_AccidentType; private EntityRef _Base_Project; @@ -10469,6 +10471,8 @@ namespace Model partial void OnCompileDateChanged(); partial void OnStatesChanging(string value); partial void OnStatesChanged(); + partial void OnIsAttemptChanging(string value); + partial void OnIsAttemptChanged(); #endregion public Accident_AccidentPersonRecord() @@ -10821,6 +10825,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAttempt", DbType="Char(1)")] + public string IsAttempt + { + get + { + return this._IsAttempt; + } + set + { + if ((this._IsAttempt != value)) + { + this.OnIsAttemptChanging(value); + this.SendPropertyChanging(); + this._IsAttempt = value; + this.SendPropertyChanged("IsAttempt"); + this.OnIsAttemptChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentPersonRecord_Base_AccidentType", Storage="_Base_AccidentType", ThisKey="AccidentTypeId", OtherKey="AccidentTypeId", IsForeignKey=true)] public Base_AccidentType Base_AccidentType { @@ -24695,6 +24719,10 @@ namespace Model private string _ProjectNum; + private System.Nullable _IsDelete; + + private string _ProjectAttribute; + private EntitySet _Accident_AccidentHandle; private EntitySet _Accident_AccidentPersonRecord; @@ -25339,6 +25367,10 @@ namespace Model partial void OnMonitorIdChanged(); partial void OnProjectNumChanging(string value); partial void OnProjectNumChanged(); + partial void OnIsDeleteChanging(System.Nullable value); + partial void OnIsDeleteChanged(); + partial void OnProjectAttributeChanging(string value); + partial void OnProjectAttributeChanged(); #endregion public Base_Project() @@ -26320,6 +26352,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isDelete", Storage="_IsDelete", DbType="Bit")] + public System.Nullable IsDelete + { + get + { + return this._IsDelete; + } + set + { + if ((this._IsDelete != value)) + { + this.OnIsDeleteChanging(value); + this.SendPropertyChanging(); + this._IsDelete = value; + this.SendPropertyChanged("IsDelete"); + this.OnIsDeleteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectAttribute", DbType="VarChar(50)")] + public string ProjectAttribute + { + get + { + return this._ProjectAttribute; + } + set + { + if ((this._ProjectAttribute != value)) + { + this.OnProjectAttributeChanging(value); + this.SendPropertyChanging(); + this._ProjectAttribute = value; + this.SendPropertyChanged("ProjectAttribute"); + this.OnProjectAttributeChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Accident_AccidentHandle_Base_Project", Storage="_Accident_AccidentHandle", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet Accident_AccidentHandle { @@ -148695,6 +148767,8 @@ namespace Model private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + private string _HazardSelectedItemId; + private string _HazardId; private string _HazardListTypeId; @@ -148739,6 +148813,8 @@ namespace Model partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); + partial void OnHazardSelectedItemIdChanging(string value); + partial void OnHazardSelectedItemIdChanged(); partial void OnHazardIdChanging(string value); partial void OnHazardIdChanged(); partial void OnHazardListTypeIdChanging(string value); @@ -148786,7 +148862,27 @@ namespace Model OnCreated(); } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardSelectedItemId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string HazardSelectedItemId + { + get + { + return this._HazardSelectedItemId; + } + set + { + if ((this._HazardSelectedItemId != value)) + { + this.OnHazardSelectedItemIdChanging(value); + this.SendPropertyChanging(); + this._HazardSelectedItemId = value; + this.SendPropertyChanged("HazardSelectedItemId"); + this.OnHazardSelectedItemIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardId", DbType="NVarChar(50)")] public string HazardId { get @@ -148826,7 +148922,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardListId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HazardListId", DbType="NVarChar(50)")] public string HazardListId { get