From b7bc12c355177779739b3d7c1dc66cf16f3f4f27 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Sat, 8 Feb 2025 14:41:56 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/HSSE/EduTrain/TestRecordService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs index 32f7241d..5e1d7713 100644 --- a/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs +++ b/SGGL/BLL/HSSE/EduTrain/TestRecordService.cs @@ -36,14 +36,16 @@ namespace BLL /// public static IEnumerable getListData(string personId, Grid Grid1) { - IQueryable getDataList = getDataLists.Where(x => x.TestManId == personId); + var db1 = Funs.DB; + IQueryable getDataList = (from x in db1.Training_TestRecord + where x.TestStartTime.HasValue + select x).Where(x => x.TestManId == personId); count = getDataList.Count(); if (count == 0) { return null; } getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); - var db1 = Funs.DB; return from x in getDataList join y in db1.Training_TestPlan on x.TestPlanId equals y.TestPlanId join z in db1.Training_Plan on y.PlanId equals z.PlanId into g From d902056b7e71f45da59494b8715d5055e3680840 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Sat, 8 Feb 2025 14:52:47 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=AF=A6=E6=83=85=E9=A1=B5=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs b/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs index a40c266f..ea2bda7d 100644 --- a/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs +++ b/SGGL/BLL/HSSE/QualityAudit/PersonQualityService.cs @@ -38,14 +38,16 @@ namespace BLL /// public static IEnumerable getListData(string personId, Grid Grid1) { - IQueryable getDataList = getDataLists.Where(x => x.PersonId == personId); + var db1 = Funs.DB; + IQueryable getDataList = (from x in db1.QualityAudit_PersonQuality + select x).Where(x => x.PersonId == personId); count = getDataList.Count(); if (count == 0) { return null; } getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); - var db1 = Funs.DB; + return from x in getDataList select new { From d8cd15555d2be5dbb9c39629c3c49ae5bb5e5b6a Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 10 Feb 2025 11:33:17 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs index 4400b648..1e3b62bb 100644 --- a/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs +++ b/SGGL/BLL/HSSE/OccupationHealth/PhysicalExaminationService.cs @@ -37,7 +37,9 @@ namespace BLL /// public static IEnumerable getListData(string projectId, string personName, Grid Grid1) { - IQueryable getDataList = getDataLists; + var db1 = Funs.DB; + IQueryable getDataList = from x in db1.SitePerson_Person + select x; if (!string.IsNullOrEmpty(projectId)) { getDataList = getDataList.Where(e => e.ProjectId == projectId); @@ -53,7 +55,7 @@ namespace BLL return null; } getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize); - var db1 = Funs.DB; + return from x in getDataList select new { From 1697e69054a8ae5c884102724e1c21edbac07029 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 18 Feb 2025 15:12:04 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SGGLDB_V2025-02-18-001-gaofei.sql | 3 + .../Hazard/ConstructionRiskListService.cs | 39 ++++++++++++- .../Excel/DataIn/施工作业风险导入模板.xls | Bin 22016 -> 21504 bytes .../HSSE/Hazard/ConstructionRisk.aspx | 4 +- .../HSSE/Hazard/ConstructionRiskEdit.aspx | 38 +++++++----- .../HSSE/Hazard/ConstructionRiskEdit.aspx.cs | 49 ++++++++++++++-- .../ConstructionRiskEdit.aspx.designer.cs | 54 ++++++++++++------ .../HSSE/Hazard/ConstructionRiskMap.aspx.cs | 6 +- .../HSSE/Hazard/ConstructionRiskView.aspx | 53 ++++++++++------- .../HSSE/Hazard/ConstructionRiskView.aspx.cs | 15 +++-- .../ConstructionRiskView.aspx.designer.cs | 54 ++++++++++++------ SGGL/Model/Model.cs | 48 ++++++++++++++++ 12 files changed, 277 insertions(+), 86 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2025-02-18-001-gaofei.sql diff --git a/DataBase/版本日志/SGGLDB_V2025-02-18-001-gaofei.sql b/DataBase/版本日志/SGGLDB_V2025-02-18-001-gaofei.sql new file mode 100644 index 00000000..07061f7f --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2025-02-18-001-gaofei.sql @@ -0,0 +1,3 @@ +alter table HSSE_ConstructionRisk add IsLarge bit null +alter table HSSE_ConstructionRisk add IsSuperLarge bit null +GO \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs b/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs index 307cfa36..1deb450a 100644 --- a/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs +++ b/SGGL/BLL/HSSE/Hazard/ConstructionRiskListService.cs @@ -8,7 +8,7 @@ namespace BLL { public static class ConstructionRiskListService { - + /// /// 要求主键获取危险清单信息 @@ -48,6 +48,8 @@ namespace BLL UnitId = constructionRisk.UnitId, RiskLevel = constructionRisk.RiskLevel, Coordinate = constructionRisk.Coordinate, + IsLarge = constructionRisk.IsLarge, + IsSuperLarge = constructionRisk.IsSuperLarge, SubUnitDutyPerson = constructionRisk.SubUnitDutyPerson, MainUnitDutyPerson = constructionRisk.MainUnitDutyPerson, MainUnitCheckPerson = constructionRisk.MainUnitCheckPerson, @@ -142,6 +144,8 @@ namespace BLL newHazardList.UnitId = hazardList.UnitId; newHazardList.RiskLevel = hazardList.RiskLevel; newHazardList.Coordinate = hazardList.Coordinate; + newHazardList.IsLarge = hazardList.IsLarge; + newHazardList.IsSuperLarge = hazardList.IsSuperLarge; newHazardList.SubUnitDutyPerson = hazardList.SubUnitDutyPerson; newHazardList.MainUnitDutyPerson = hazardList.MainUnitDutyPerson; newHazardList.MainUnitCheckPerson = hazardList.MainUnitCheckPerson; @@ -175,7 +179,27 @@ namespace BLL } /// - /// 获取作业风险描述下拉项 + /// 获取涉及的高风险作业下拉项 + /// + /// + public static ListItem[] RefLicenseList() + { + ListItem[] lis = new ListItem[10]; + lis[0] = new ListItem("不涉及", "不涉及"); + lis[1] = new ListItem("动火作业", "动火作业"); + lis[2] = new ListItem("高处作业", "高处作业"); + lis[3] = new ListItem("受限空间作业", "受限空间作业"); + lis[4] = new ListItem("射线作业", "射线作业"); + lis[5] = new ListItem("断路(占道)作业", "断路(占道)作业"); + lis[6] = new ListItem("夜间施工作业", "夜间施工作业"); + lis[7] = new ListItem("吊装作业", "吊装作业"); + lis[8] = new ListItem("动土作业", "动土作业"); + lis[9] = new ListItem("试压作业", "试压作业"); + return lis; + } + + /// + /// 获取作业风险下拉项 /// /// public static ListItem[] LicenseDesList() @@ -230,6 +254,17 @@ namespace BLL return lis; } + /// + /// 获取风险等级下拉项 + /// + /// + public static ListItem[] RiskLevelList3() + { + ListItem[] lis = new ListItem[1]; + lis[0] = new ListItem("重大风险", "重大风险"); + return lis; + } + /// /// 根据状态选择下一步办理类型 /// diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/施工作业风险导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/施工作业风险导入模板.xls index b1ab96ecb682f40048e6c231383821a6c635b073..74ac93cd01a2c892842a2a34844f4878cb1ccb0c 100644 GIT binary patch delta 3748 zcma)7niD z&<90+jH2UM+v>Og6vS{qBB# zxBI=lz3Sb#x(PQkijYKvP_G~e4EaxjFvU9O7R8%*{d}gLS*$`^YRh)5hAL*QVne?3 z1yks!2t+U`@FUfMcJ5#of=hvkYNniMu3{y`O|^kNh;d7Tns6vQ4l)M5R(i(29Vw7X z4dKDta2Pm)hcN;#@bF7;K1L7|!pch{Qs9qgmzAa=J&ME_3H(t7$qcPU@O}upK-PMV z)T&V(_Owd9#QFeA{aa+T4CEb6(vKWa4>=k(Z2*PdOQh)gDX`al7rh!*p8qw3Nrqk` zY#rPhAhl{V;yiS^$2secQ?!Fd8!zeK_8pDs%LkLWa?aIOF)&}Rf@8XHn5m0_oQME8 zVbEeV2;nR#OZ8IOY7k>yKN>RFNa!WXyLv4Sf-XI)3nusZR0u`rBI4|v-GERV+=z(A zAuvzJVh!+NEY`wk5{JUlhyr7nSKkm8wlQd95Mm76b&^>)oQq(w4ul8})`e+t1h9qz zm=O^!W@%()y;@^iW4*m1A(mya(M?gqJOgV~dzJf0AYP2sJ-!+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GpC02OL;wr=NE6gH@ghQ+!Kp<^d-Qg3TUqP^EqF zX&*mW?E$;El-D!P-~p!!f-^ke;7a?A(I@=i2tTlkYaTb3g$Hb$6pZ>(3{)J5WP+Oi zmtkXZOd*BaH$<1M{mMiB$&d_}nmi1jVdDkCT*G$Ro^`kJgQGYTrg&aaKEoyng1Lt6 zvN?yE`N0|v*u|x|wSmvDGX%k0!*9p^QMG!*~ZR%&kvr;fGz)RY6^!NzaXK-U?GXe)#LwX*lLKycymdQ zmtkBDrwN07O^x}GNDu^bU2QatIku0_*cTil4CXVno|aJpGv>P5Xma+g<_E_LgZWH7 z(>>uy3b%WygN&x*y`S-ewZdRNQ>VGXlN4?@IM`^a9k|60juQs+RbjI)*j2d6iNfs$ zhZs#G=#Zn^Xoun>=Z72?vx&%z02%mP0R6WTg}CCo42*vuF^vx9Y&ei6$AGmKe=Xxf zUu~SXwu;qe`fC|0`D%6E+Hx&Z6)R*PKn^9q#GuJjeCi3b81?0A=Pc#yjNQ`A$_h2*3vr zu(C9IVbA`meOD_UH=-76YN!fVMk(&-%s^MI({-Oq_HmvM^Q6j3#Dp4efSKEI;FH}K zRWDHFoH%Ozk7IO*4mlZR7pYEdSxG2Z1a4=~@a2mBI8 g(V{-6j>kh5R8`beZ?3j)(U#inRTY&edC9eZ0onKOuK)l5 diff --git a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx index 7a409f7c..ffccce62 100644 --- a/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Hazard/ConstructionRisk.aspx @@ -88,7 +88,7 @@ HeaderTextAlign="Center">