From 318546175578b971e5c2792bb88428521c018ec1 Mon Sep 17 00:00:00 2001 From: fei550 <1420031550@qq.com> Date: Mon, 13 Jul 2026 09:17:00 +0800 Subject: [PATCH] =?UTF-8?q?feat(clgl):=20=E5=A2=9E=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=94=B3=E8=AF=B7=E7=BC=96=E8=BE=91=E4=B8=8E=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持入库申请信息维护、入库明细批量导入及模板下载, 完善材料入库业务流程,减少人工录入和明细维护成本。 增加焊口流转区段信息,并统一相关单位工程列表排序 --- .../版本日志/SGGLDB_V2026-07-10-001-lpf.sql | 2 + .../版本日志/SGGLDB_V2026-07-10-002-lpf.sql | 219 ++++++++++ SGGL/BLL/BLL.csproj | 25 +- SGGL/BLL/CLGL/TwConst.cs | 1 + SGGL/BLL/DropListService.cs | 3 +- .../HJGL/WeldingManage/WeldJointService.cs | 6 +- .../CLGL/AntiCorrosionTrust.aspx.cs | 1 + SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx | 2 + SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx.cs | 11 +- .../CLGL/InPlanMaster.aspx.designer.cs | 9 + .../CLGL/InPlanMasterApplyEdit.aspx | 138 +++++++ .../CLGL/InPlanMasterApplyEdit.aspx.cs | 391 ++++++++++++++++++ .../InPlanMasterApplyEdit.aspx.designer.cs | 215 ++++++++++ .../CLGL/InPlanMasterDetailImport.aspx | 101 +++++ .../CLGL/InPlanMasterDetailImport.aspx.cs | 346 ++++++++++++++++ .../InPlanMasterDetailImport.aspx.designer.cs | 143 +++++++ SGGL/FineUIPro.Web/CLGL/OutPlanMaster.aspx.cs | 1 + SGGL/FineUIPro.Web/CLGL/OutputMaster.aspx.cs | 1 + .../File/Fastreport/焊口铭牌.frx | 8 +- SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 64 +-- .../HJGL/DataImport/DrawingImport.aspx.cs | 3 +- .../DataImport/MaterialInformation.aspx.cs | 1 + .../HJGL/DataImport/TDMImport.aspx.cs | 3 +- .../HJGL/HotProcessHard/HardFeedback.aspx.cs | 3 +- .../HJGL/HotProcessHard/HardReport.aspx.cs | 1 + .../HJGL/HotProcessHard/HardTrust.aspx.cs | 3 +- .../HotProcessHard/HotProessFeedback.aspx.cs | 3 +- .../HotProcessHard/HotProessReport.aspx.cs | 1 + .../HotProcessHard/HotProessTrust.aspx.cs | 3 +- .../HJGL/InfoQuery/JointQuery.aspx | 4 + .../HJGL/InfoQuery/JointQuery.aspx.cs | 9 +- .../HJGL/InfoQuery/PipelineQuery.aspx.cs | 1 + .../HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs | 3 +- .../HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs | 3 +- .../LeakVacuum/LeakVacuumComplete.aspx.cs | 3 +- .../HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs | 3 +- SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs | 1 + .../HJGL/PointTrust/PointBatch.aspx.cs | 3 +- .../HJGL/PointTrust/TrustBatch.aspx.cs | 3 +- .../HJGL/PreDesign/InstallList.aspx.cs | 3 +- .../PreDesign/PackagingManageSelect.aspx.cs | 3 +- .../HJGL/PreDesign/PipelingDivide.aspx | 6 +- .../HJGL/PreDesign/PipelingDivide.aspx.cs | 1 + .../HJGL/PreDesign/PrePipeline.aspx.cs | 1 + .../ProductionSchedulingPlan.aspx.cs | 4 +- .../HJGL/PreDesign/YardPlanning.aspx.cs | 3 +- .../PurgingCleaning/PC_ItemEndCheck.aspx.cs | 3 +- .../PurgingCleaningAudit.aspx.cs | 3 +- .../PurgingCleaningComplete.aspx.cs | 3 +- .../PurgingCleaningEdit.aspx.cs | 3 +- .../RepairAndExpand/RepairAndExpand.aspx.cs | 3 +- .../HJGL/RepairAndExpand/RepairTrust.aspx.cs | 3 +- .../HJGL/TestPackage/BItemEndCheck.aspx.cs | 3 +- .../HJGL/TestPackage/ItemEndCheck.aspx.cs | 3 +- .../HJGL/TestPackage/TestPackageAudit.aspx.cs | 3 +- .../TestPackage/TestPackageComplete.aspx.cs | 3 +- .../HJGL/TestPackage/TestPackageData.aspx.cs | 3 +- .../HJGL/TestPackage/TestPackageEdit.aspx.cs | 3 +- .../HJGL/WeldingManage/JotTwoDesign.aspx.cs | 1 + .../HJGL/WeldingManage/PipelineList.aspx.cs | 3 +- .../WeldingManage/PipelineListPDMSIn.aspx.cs | 34 +- .../WeldingManage/PreWeldReportAudit.aspx.cs | 3 +- .../HJGL/WeldingManage/WeldJointList.aspx | 10 +- .../HJGL/WeldingManage/WeldJointList.aspx.cs | 3 +- .../HJGL/WeldingManage/WeldMatMatch.aspx.cs | 1 + .../HJGL/WeldingManage/WeldReport.aspx.cs | 1 + .../HJGL/WeldingManage/WeldTask.aspx.cs | 1 + .../HJGL/WeldingManage/WeldingConDate.aspx | 5 +- .../HJGL/WeldingManage/WeldingConDate.aspx.cs | 7 +- .../HJGL/WeldingManage/WeldingPlan.aspx.cs | 1 + .../PublishProfiles/FolderProfile.pubxml | 23 +- .../common/mainMenu_HJGL3.aspx.cs | 1 + SGGL/Model/Model.cs | 27 +- 73 files changed, 1774 insertions(+), 145 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2026-07-10-001-lpf.sql create mode 100644 DataBase/版本日志/SGGLDB_V2026-07-10-002-lpf.sql create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterApplyEdit.aspx create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterApplyEdit.aspx.cs create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterApplyEdit.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterDetailImport.aspx create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterDetailImport.aspx.cs create mode 100644 SGGL/FineUIPro.Web/CLGL/InPlanMasterDetailImport.aspx.designer.cs diff --git a/DataBase/版本日志/SGGLDB_V2026-07-10-001-lpf.sql b/DataBase/版本日志/SGGLDB_V2026-07-10-001-lpf.sql new file mode 100644 index 00000000..6afd1a82 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-07-10-001-lpf.sql @@ -0,0 +1,2 @@ +ALTER TABLE dbo.HJGL_WeldJoint ADD FlowingSection nvarchar(200) NULL; +EXEC sys.sp_addextendedproperty 'MS_Description', N'流水段', 'schema', N'dbo', 'table', N'HJGL_WeldJoint', 'column', N'FlowingSection'; \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_V2026-07-10-002-lpf.sql b/DataBase/版本日志/SGGLDB_V2026-07-10-002-lpf.sql new file mode 100644 index 00000000..c38dcfb3 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2026-07-10-002-lpf.sql @@ -0,0 +1,219 @@ + +ALTER view dbo.View_HJGL_WeldJoint as + SELECT jot.[ProjectId] --项目Id + , pipe.[UnitWorkId] --单位工程Id + , uw.UnitWorkName --单位工程 + , pipe.[UnitId] --单位Id + , unit.UnitName --单位 + , jot.[PipelineCode] --管线号 + , pipe.[SingleNumber] --单线图号 + , pipe.[SingleName] --图纸名称 + , pipe.[MediumId] --介质Id + , medium.MediumCode + , medium.MediumName --介质名称 + , pipe.[PipingClassId] --管道等级Id + , pipingClass.PipingClassCode --管道等级 + , pipe.[DetectionRateId] --探伤比例Id + , dr.DetectionRateCode --探伤比例(例如5,10,20) + , pipe.DetectionType --探伤类型Id(可能多个,中间用|分隔) + , STUFF((SELECT ',' + DetectionTypeCode + FROM Base_DetectionType + WHERE CHARINDEX('|' + LTRIM(DetectionTypeId) + '|', '|' + pipe.DetectionType + '|') > 0 + FOR XML PATH('')), 1, 1, '') AS DetectionTypeStr --探伤类型(可能多个,中间用,分隔) + , pipe.DesignTemperature --设计温度℃ + , pipe.DesignPress --设计压力Mpa(g) + , pipe.TestMedium --压力试验介质Id + , tm.MediumName AS TestMediumName --压力试验介质 + , pipe.TestPressure --压力试验压力Mpa(g) + , pipe.PressurePipingClassId --压力管道级别Id + , ppc.PressurePipingClassCode --压力管道级别 + , pipe.PipeLenth --管线长度(m) + , pipe.LeakMedium --泄露性试验介质Id + , tm2.MediumName AS LeakMediumName --泄露性试验介质 + , pipe.LeakPressure --泄露性试验压力Mpa(g) + , pipe.PCMedium --吹洗要求Id + , pm.PurgeMethodCode --吹洗要求 + , pipe.VacuumPressure --真空试验压力Kpa(a) + , pipe.MaterialId --材质Id + , mat.MaterialCode AS PipeMaterialCode --材质 + , pipe.Remark AS PipeRemark --备注 + , jot.FlowingSection as FlowingSection --流水段 + , jot.[WeldJointId] --焊口Id + , jot.[WeldJointCode] --焊口号 + , jot.[Material1Id] --材质1Id + , mat1.MaterialCode AS Material1Code --材质1 + , jot.[Material2Id] --材质2Id + , mat2.MaterialCode AS Material2Code --材质2 + , jot.[Dia] --外径 + , jot.DNDia --DN公称直径 + , jot.[Size] --达因 + , jot.[Thickness] --壁厚 + , jot.[Specification] --规格 + , jot.[WeldTypeId] --焊缝类型Id + , WeldType.WeldTypeCode --焊缝类型 + , jot.[DetectionTypeId] --检测类型Id + , ndt.DetectionTypeCode --检测类型 + , jot.[Components1Id] --组件1号Id + , com1.ComponentsCode AS ComponentsCode1 --组件1号 + , jot.[Components2Id] --组件2号Id + , com2.ComponentsCode AS ComponentsCode2 --组件2号 + , jot.DesignIsHotProess --是否热处理 + , CASE jot.DesignIsHotProess WHEN 1 THEN '是' ELSE '否' END AS DesignIsHotProessStr --是否热处理 + , jot.[WeldingMethodId] --焊接方法Id + , WeldingMethod.WeldingMethodCode --焊接方法 + , jot.WPQId --WPS的Id + , wps.WPQCode --WPS编号 + , jot.MatchableWPQ --可匹配WPQ + , jot.[GrooveTypeId] --坡口类型Id + , GrooveType.GrooveTypeCode --坡口类型 + , jot.[WeldingRod] --焊条Id + , rod.ConsumablesCode AS WeldingRodCode --焊条 + , jot.[WeldingWire] --焊丝Id + , wire.ConsumablesCode AS WeldingWireCode --焊丝 + , jot.PreTemperature --预热温度 + , jot.[JointAttribute] --焊口属性 + , jot.TwoJointType --二次焊口新增类型 + , pipe.PipeArea --工厂预制/现场安装 + , daily.WeldingDate as WeldingDateD + , CONVERT(VARCHAR(100), daily.WeldingDate, 23) AS WeldingDate --焊接日期 + , BackingWelder.WelderCode AS BackingWelderCode --打底焊工 + , CoverWelder.WelderCode AS CoverWelderCode --盖面焊工 + , CoverWelderTeamGroup.TeamGroupName as CoverWelderTeamGroupName ----盖面焊工班组 + , BackingWelderTeamGroup.TeamGroupName as BackingWelderTeamGroupName --打底焊工班组 + , (CASE (SELECT COUNT(*) + FROM [dbo].[HJGL_HotProess_TrustItem] hpti + WHERE hpti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(ReportNo, '') + FROM [dbo].[HJGL_HotProess_Trust] hpt + LEFT JOIN [dbo].[HJGL_HotProess_TrustItem] hpti + ON hpti.HotProessTrustId = hpt.HotProessTrustId + WHERE hpti.WeldJointId = jot.WeldJointId) END) AS HotProessReportNo --热处理报告编号 + , (CASE (SELECT TOP 1 IsCompleted + FROM [dbo].[HJGL_HotProess_TrustItem] hpti + WHERE hpti.WeldJointId = jot.WeldJointId) + WHEN 1 THEN '完成' + WHEN 0 THEN '未完成' + ELSE '未热处理' END) AS HotProessResult --热处理检测结果 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Hard_TrustItem hti + WHERE hti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(InspectionNum, '') + FROM [dbo].HJGL_Hard_Trust ht + LEFT JOIN [dbo].HJGL_Hard_TrustItem hti ON hti.HardTrustID = ht.HardTrustID + WHERE hti.WeldJointId = jot.WeldJointId) END) AS HardReportNo --硬度报告编号 + , (CASE (SELECT TOP 1 IsPass + FROM [dbo].HJGL_Hard_TrustItem hti + WHERE hti.WeldJointId = jot.WeldJointId) + WHEN 1 THEN '合格' + WHEN 0 THEN '不合格' + ELSE '待检测' END) AS HardResult --硬度检测结果 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Batch_BatchTrustItem bti + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 TrustBatchCode + FROM [dbo].HJGL_Batch_BatchTrust bt + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchId = bt.TrustBatchId + WHERE bti.WeldJointId = jot.WeldJointId) END) AS TrustBatchCode --委托单编号 + , (CASE (SELECT COUNT(*) + FROM [dbo].HJGL_Batch_NDEItem ndei + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN 0 THEN '' + ELSE (SELECT TOP 1 ISNULL(NDECode, '') + FROM [dbo].HJGL_Batch_NDE nde + LEFT JOIN [dbo].HJGL_Batch_NDEItem ndei ON ndei.NDEID = nde.NDEID + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti + ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) END) AS NDECode --检测单编号 + , (CASE (SELECT TOP 1 CheckResult + FROM [dbo].HJGL_Batch_NDEItem ndei + LEFT JOIN [dbo].HJGL_Batch_BatchTrustItem bti ON bti.TrustBatchItemId = ndei.TrustBatchItemId + WHERE bti.WeldJointId = jot.WeldJointId) + WHEN '1' THEN '合格' + WHEN '2' THEN '不合格' + ELSE '' END) AS CheckResult --检测结果 + , jot.PipelineId + , jot.[JointArea] + , jot.[WeldingLocationId] + , jot.[HeartNo1] + , jot.[HeartNo2] + , jot.[IsHotProess] + , jot.[WeldingDailyId] + , jot.[BackingWelderId] + , jot.[CoverWelderId] + , jot.WeldingMode + , jot.Remark + , jot.IsTwoJoint + , jot.SubmitMan + , jot.AuditMan + , jot.AuditMan2 + , jot.AuditDate + , jot.AuditDate2 + , jot.WeldJointPoint + , task.TaskCode + , WeldingLocation.WeldingLocationCode + , CASE WHEN jot.WeldingDailyId IS NULL THEN '否' ELSE '是' END AS IsWelding + , CASE WHEN jot.WeldingDailyId IS NULL THEN '未完成' ELSE '已完成' END AS IsWeldOK + , CASE WHEN jot.IsHotProess = 1 THEN '是' ELSE '否' END AS IsHotProessStr + , BackingWelder.PersonName AS BackingWelderName + , CoverWelder.PersonName AS CoverWelderName + , (CASE + WHEN CoverWelder.WelderCode IS NOT NULL AND BackingWelder.WelderCode IS NOT NULL + THEN CoverWelder.WelderCode + '/' + BackingWelder.WelderCode + ELSE (ISNULL(CoverWelder.WelderCode, '') + ISNULL(BackingWelder.WelderCode, '')) END) AS WelderCode + , --焊工 + (CASE + WHEN mat1.MaterialCode IS NOT NULL AND mat2.MaterialCode IS NOT NULL + THEN mat1.MaterialCode + '/' + mat2.MaterialCode + ELSE (ISNULL(mat1.MaterialCode, '') + ISNULL(mat2.MaterialCode, '')) END) AS MaterialCode + , --材质 + + daily.WeldingDailyCode + , pointItem.PointBatchId + , point.PointBatchCode + , (CASE + WHEN pointItem.PointState = '1' THEN '已点口' + WHEN pointItem.PointState = '2' THEN '已扩透' + ELSE '' END) AS IsPoint + FROM [dbo].[HJGL_WeldJoint] jot + LEFT JOIN dbo.HJGL_Pipeline pipe ON pipe.PipelineId = jot.PipelineId + LEFT JOIN dbo.HJGL_WeldTask task ON task.WeldJointId = jot.WeldJointId + LEFT JOIN dbo.WBS_UnitWork uw ON uw.UnitWorkId = pipe.UnitWorkId + LEFT JOIN dbo.HJGL_WeldingDaily AS daily ON daily.WeldingDailyId = jot.WeldingDailyId + LEFT JOIN dbo.Base_Unit unit ON unit.UnitId = daily.UnitId + LEFT JOIN Base_WeldType AS WeldType ON WeldType.WeldTypeId = jot.WeldTypeId + LEFT JOIN dbo.Base_DetectionRate dr ON dr.DetectionRateId = pipe.DetectionRateId + LEFT JOIN Base_TestMedium tm ON tm.TestMediumId = pipe.TestMedium + LEFT JOIN Base_TestMedium tm2 ON tm2.TestMediumId = pipe.LeakMedium + LEFT JOIN Base_PurgeMethod pm ON pm.PurgeMethodId = pipe.PCMedium + LEFT JOIN Base_PressurePipingClass ppc ON ppc.PressurePipingClassId = pipe.PressurePipingClassId + LEFT JOIN Base_Material AS mat ON mat.MaterialId = pipe.MaterialId + LEFT JOIN Base_Material AS mat1 ON mat1.MaterialId = jot.Material1Id + LEFT JOIN Base_Material AS mat2 ON mat2.MaterialId = jot.Material2Id + LEFT JOIN Base_WeldingMethod AS WeldingMethod ON WeldingMethod.WeldingMethodId = jot.WeldingMethodId + LEFT JOIN Base_WeldingLocation AS WeldingLocation + ON WeldingLocation.WeldingLocationId = jot.WeldingLocationId + LEFT JOIN Base_Consumables AS wire ON wire.ConsumablesId = jot.WeldingWire + LEFT JOIN Base_Consumables AS rod ON rod.ConsumablesId = jot.WeldingRod + LEFT JOIN Base_GrooveType AS GrooveType ON GrooveType.GrooveTypeId = jot.GrooveTypeId + LEFT JOIN Base_Components AS com1 ON com1.ComponentsId = jot.Components1Id + LEFT JOIN Base_Components AS com2 ON com2.ComponentsId = jot.Components2Id + LEFT JOIN SitePerson_Person AS BackingWelder + ON BackingWelder.PersonId = jot.BackingWelderId and BackingWelder.ProjectId = jot.ProjectId + LEFT JOIN SitePerson_Person AS CoverWelder + ON CoverWelder.PersonId = jot.CoverWelderId and CoverWelder.ProjectId = jot.ProjectId + LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId = pipe.PipingClassId + LEFT JOIN dbo.Base_Medium medium ON medium.MediumId = pipe.MediumId + LEFT JOIN dbo.Base_DetectionType ndt ON ndt.DetectionTypeId = jot.DetectionTypeId + LEFT JOIN dbo.WPQ_WPQList wps ON wps.WPQId = jot.WPQId + LEFT JOIN dbo.HJGL_Batch_PointBatchItem pointItem ON pointItem.WeldJointId = jot.WeldJointId + LEFT JOIN dbo.HJGL_Batch_PointBatch point ON point.PointBatchId = pointItem.PointBatchId + LEFT JOIN dbo.ProjectData_TeamGroup AS CoverWelderTeamGroup + on CoverWelderTeamGroup.TeamGroupId = jot.CoverWelderTeamGroupId and + CoverWelderTeamGroup.ProjectId = jot.ProjectId + LEFT JOIN dbo.ProjectData_TeamGroup AS BackingWelderTeamGroup + on BackingWelderTeamGroup.TeamGroupId = jot.BackingWelderTeamGroupId and + BackingWelderTeamGroup.ProjectId = jot.ProjectId; \ No newline at end of file diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 5dd3238a..25a9b42c 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -865,19 +865,6 @@ - - - - - - - - - - - - - @@ -887,16 +874,6 @@ - - - - - - - - - - @@ -941,4 +918,4 @@ --> - + \ No newline at end of file diff --git a/SGGL/BLL/CLGL/TwConst.cs b/SGGL/BLL/CLGL/TwConst.cs index f597baa5..939103f4 100644 --- a/SGGL/BLL/CLGL/TwConst.cs +++ b/SGGL/BLL/CLGL/TwConst.cs @@ -73,6 +73,7 @@ namespace BLL }; public static Dictionary CategoryMap = new Dictionary { + { "全部" ,(int)Category.全部}, { "管件" ,(int)Category.管件}, { "管段" ,(int)Category.管段}, }; diff --git a/SGGL/BLL/DropListService.cs b/SGGL/BLL/DropListService.cs index 76dd763a..ecc6f019 100644 --- a/SGGL/BLL/DropListService.cs +++ b/SGGL/BLL/DropListService.cs @@ -225,9 +225,10 @@ namespace BLL /// public static ListItem[] HJGL_JointAttribute() { - ListItem[] list = new ListItem[2]; + ListItem[] list = new ListItem[3]; list[0] = new ListItem("预制口", "预制口"); list[1] = new ListItem("安装口", "安装口"); + list[2] = new ListItem("全部", ""); return list; } #endregion diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs index 96f318b2..f566517d 100644 --- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs +++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs @@ -119,7 +119,8 @@ namespace BLL TwoJointType = weldJoint.TwoJointType, CoverWelderTeamGroupId = weldJoint.CoverWelderTeamGroupId, BackingWelderTeamGroupId = weldJoint.BackingWelderTeamGroupId, - WeldJointPoint = weldJoint.WeldJointPoint + WeldJointPoint = weldJoint.WeldJointPoint, + FlowingSection = weldJoint.FlowingSection }; if (!string.IsNullOrEmpty(weldJoint.WeldJointId)) { @@ -191,6 +192,7 @@ namespace BLL newWeldJoint.CoverWelderTeamGroupId = weldJoint.CoverWelderTeamGroupId; newWeldJoint.BackingWelderTeamGroupId = weldJoint.BackingWelderTeamGroupId; newWeldJoint.WeldJointPoint = weldJoint.WeldJointPoint; + newWeldJoint.FlowingSection= weldJoint.FlowingSection; db.SubmitChanges(); } } @@ -510,7 +512,7 @@ namespace BLL baseQuery = baseQuery.Where(x => x.IsWeldOK == model.IsWeldOK); // 阶段三:排序与分页控制(索引优化关键) - var orderedQuery = baseQuery.OrderBy(x => x.PipelineId).ThenBy(x => x.WeldJointCode); + var orderedQuery = baseQuery.OrderBy(x => x.PipelineCode).ThenBy(x => x.WeldJointCode); // 阶段四:分页执行(数据库层面分页) var pagedData = orderedQuery diff --git a/SGGL/FineUIPro.Web/CLGL/AntiCorrosionTrust.aspx.cs b/SGGL/FineUIPro.Web/CLGL/AntiCorrosionTrust.aspx.cs index 315a656f..c72c93d6 100644 --- a/SGGL/FineUIPro.Web/CLGL/AntiCorrosionTrust.aspx.cs +++ b/SGGL/FineUIPro.Web/CLGL/AntiCorrosionTrust.aspx.cs @@ -59,6 +59,7 @@ namespace FineUIPro.Web.CLGL where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null && (string.IsNullOrEmpty(keyword) || x.UnitWorkName.Contains(keyword) || x.UnitWorkCode.Contains(keyword)) + orderby x.UnitWorkCode select x).ToList(); foreach (var q in unitWorkList.Where(x => x.ProjectType == "1")) diff --git a/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx b/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx index 27081c7f..7cc89667 100644 --- a/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx +++ b/SGGL/FineUIPro.Web/CLGL/InPlanMaster.aspx @@ -55,6 +55,8 @@ LabelWidth="70px" LabelAlign="Right" Width="170px"> + - - - + - - - - + @@ -17298,4 +17272,4 @@ --> - + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx.cs index 8c4fa55f..2c24f5f5 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/DrawingImport.aspx.cs @@ -58,6 +58,7 @@ namespace FineUIPro.Web.HJGL.DataImport var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -407,4 +408,4 @@ namespace FineUIPro.Web.HJGL.DataImport } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs index beeaef22..ed99ef09 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx.cs @@ -64,6 +64,7 @@ namespace FineUIPro.Web.HJGL.DataImport var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx.cs index dca121c5..47209574 100644 --- a/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/DataImport/TDMImport.aspx.cs @@ -57,6 +57,7 @@ namespace FineUIPro.Web.HJGL.DataImport var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -408,4 +409,4 @@ namespace FineUIPro.Web.HJGL.DataImport } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardFeedback.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardFeedback.aspx.cs index eb70059b..6a9d72e9 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardFeedback.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardFeedback.aspx.cs @@ -72,6 +72,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -394,4 +395,4 @@ namespace FineUIPro.Web.HJGL.HotProcessHard } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardReport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardReport.aspx.cs index 9be01425..db5ca63d 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardReport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardReport.aspx.cs @@ -73,6 +73,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardTrust.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardTrust.aspx.cs index 19479994..e2e5efd5 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardTrust.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HardTrust.aspx.cs @@ -106,6 +106,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -552,4 +553,4 @@ namespace FineUIPro.Web.HJGL.HotProcessHard } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessFeedback.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessFeedback.aspx.cs index b5de9ec2..32d4d072 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessFeedback.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessFeedback.aspx.cs @@ -73,6 +73,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -374,4 +375,4 @@ namespace FineUIPro.Web.HJGL.HotProcessHard } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessReport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessReport.aspx.cs index 140b0f0d..2b7d1114 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessReport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessReport.aspx.cs @@ -75,6 +75,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessTrust.aspx.cs b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessTrust.aspx.cs index 4122faad..cc477ae6 100644 --- a/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessTrust.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/HotProcessHard/HotProessTrust.aspx.cs @@ -108,6 +108,7 @@ namespace FineUIPro.Web.HJGL.HotProcessHard var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -690,4 +691,4 @@ namespace FineUIPro.Web.HJGL.HotProcessHard } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx index dea4a8ee..82b8473b 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx @@ -101,6 +101,10 @@ + + diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs index ff9c309e..7c39b8ff 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs @@ -258,6 +258,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); // 优化2: 批量获取所有相关管线数据,避免N+1查询问题 @@ -913,8 +914,12 @@ namespace FineUIPro.Web.HJGL.InfoQuery var jointIds = weldJointList.Select(x => x.WeldJointId).Where(x => !string.IsNullOrEmpty(x)).Distinct().ToList(); var pipelineIds = weldJointList.Select(x => x.PipelineId).Where(x => !string.IsNullOrEmpty(x)).Distinct().ToList(); var materialRows = (from x in Funs.DB.HJGL_PipeLineMat + join y in Funs.DB.HJGL_MaterialCodeLib on x.MaterialCode equals y.MaterialCode where jointIds.Contains(x.WeldJointId) && pipelineIds.Contains(x.PipelineId) - orderby x.WeldJointId, x.Number, x.PipeLineMatId + orderby + y.MaterialUnit == "米" ? 1 : + y.MaterialUnit == "个" ? 2 : + y.MaterialUnit == "片" ? 3 : 4 select x).ToList(); var materialCodes = materialRows.Where(x => !string.IsNullOrEmpty(x.MaterialCode)).Select(x => x.MaterialCode).Distinct().ToList(); @@ -952,7 +957,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery dr["WeldJointNo"] = weldJointNo; dr["MaterialText"] = string.IsNullOrEmpty(joint.Material1Code) ? joint.Material2Code : joint.Material1Code; dr["Spec"] = joint.Specification; - dr["DesignTemperature"] = joint.PreTemperature; + dr["DesignTemperature"] = joint.DesignTemperature; dr["MaterialCode1"] = GetMaterialDisplayCode(row1, lib1); dr["HeatNo1"] = lib1 == null ? string.Empty : lib1.HeatNo; dr["BatchNo1"] = lib1 == null ? string.Empty : lib1.BatchNo; diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs index 22194ba8..d58bbfc1 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/PipelineQuery.aspx.cs @@ -75,6 +75,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs index fd5e03cf..e33174a5 100644 --- a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LV_ItemEndCheck.aspx.cs @@ -92,6 +92,7 @@ namespace FineUIPro.Web.HJGL.LeakVacuum var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List LeakVacuumLists = (from x in Funs.DB.HJGL_LV_LeakVacuum where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -399,4 +400,4 @@ namespace FineUIPro.Web.HJGL.LeakVacuum } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs index c9f64df2..4e5cc052 100644 --- a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumAudit.aspx.cs @@ -90,6 +90,7 @@ namespace FineUIPro.Web.HJGL.LeakVacuum var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List LeakVacuumLists = (from x in Funs.DB.HJGL_LV_LeakVacuum where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -532,4 +533,4 @@ namespace FineUIPro.Web.HJGL.LeakVacuum } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumComplete.aspx.cs b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumComplete.aspx.cs index 39f51642..b7d711ac 100644 --- a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumComplete.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumComplete.aspx.cs @@ -90,6 +90,7 @@ namespace FineUIPro.Web.HJGL.LeakVacuum var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List LeakVacuumLists = (from x in Funs.DB.HJGL_LV_LeakVacuum where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -509,4 +510,4 @@ namespace FineUIPro.Web.HJGL.LeakVacuum } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs index 5731c39b..5db84dee 100644 --- a/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/LeakVacuum/LeakVacuumEdit.aspx.cs @@ -74,6 +74,7 @@ namespace FineUIPro.Web.HJGL.LeakVacuum var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List LeakVacuumLists = (from x in Funs.DB.HJGL_LV_LeakVacuum where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList(); List unitWork1 = null; @@ -501,4 +502,4 @@ namespace FineUIPro.Web.HJGL.LeakVacuum } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs index 56e627f6..9f746927 100644 --- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs @@ -131,6 +131,7 @@ namespace FineUIPro.Web.HJGL.NDT var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs index 496b4900..6347b3c2 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs @@ -75,6 +75,7 @@ namespace FineUIPro.Web.HJGL.PointTrust var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -1195,4 +1196,4 @@ namespace FineUIPro.Web.HJGL.PointTrust PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PointWeldJointView.aspx?unitWorkId={0}&rateId={1}&detectionType={2}", unitWorkId, rateId, detectionType, "新增 - "))); } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs index 3dec6a14..b2d06da2 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.cs @@ -52,6 +52,7 @@ namespace FineUIPro.Web.HJGL.PointTrust var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -1088,4 +1089,4 @@ namespace FineUIPro.Web.HJGL.PointTrust } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs index 012d3230..59c5b323 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/InstallList.aspx.cs @@ -52,6 +52,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -446,4 +447,4 @@ namespace FineUIPro.Web.HJGL.PreDesign } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageSelect.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageSelect.aspx.cs index e4e23047..219b2cd7 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageSelect.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManageSelect.aspx.cs @@ -92,6 +92,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); //获取当前项目出库单 Model.Tw_InOutMasterOutput querytable = new Model.Tw_InOutMasterOutput(); @@ -278,4 +279,4 @@ namespace FineUIPro.Web.HJGL.PreDesign #endregion 提交按钮 } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx index ddca91a0..706fa3e2 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx @@ -89,7 +89,7 @@ Width="180px" LabelWidth="80px" LabelAlign="Right"> - - - + --%> diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs index b437bdec..51432270 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx.cs @@ -99,6 +99,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs index c672b73c..95f8e13d 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx.cs @@ -64,6 +64,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs index 1acc91cb..7b5682b2 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs @@ -62,6 +62,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -980,6 +981,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWorks = null; @@ -1291,4 +1293,4 @@ namespace FineUIPro.Web.HJGL.PreDesign } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx.cs index 15551203..13645f60 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/YardPlanning.aspx.cs @@ -92,6 +92,7 @@ namespace FineUIPro.Web.HJGL.PreDesign var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -364,4 +365,4 @@ namespace FineUIPro.Web.HJGL.PreDesign } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PC_ItemEndCheck.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PC_ItemEndCheck.aspx.cs index ea78ef20..28fbc684 100644 --- a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PC_ItemEndCheck.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PC_ItemEndCheck.aspx.cs @@ -92,6 +92,7 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List PurgingCleaningLists = (from x in Funs.DB.HJGL_PC_PurgingCleaning where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -400,4 +401,4 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningAudit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningAudit.aspx.cs index 20aaa8f0..1e0a236c 100644 --- a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningAudit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningAudit.aspx.cs @@ -90,6 +90,7 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List PurgingCleaning = (from x in Funs.DB.HJGL_PC_PurgingCleaning where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -536,4 +537,4 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningComplete.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningComplete.aspx.cs index fa05e927..f8e9ca3c 100644 --- a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningComplete.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningComplete.aspx.cs @@ -90,6 +90,7 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List PurgingCleaning = (from x in Funs.DB.HJGL_PC_PurgingCleaning where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime select x).ToList(); List unitWork1 = null; @@ -506,4 +507,4 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningEdit.aspx.cs index 6b448441..bb3ae7ef 100644 --- a/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PurgingCleaning/PurgingCleaningEdit.aspx.cs @@ -75,6 +75,7 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List PurgingCleaning = (from x in Funs.DB.HJGL_PC_PurgingCleaning where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList(); List unitWork1 = null; @@ -501,4 +502,4 @@ namespace FineUIPro.Web.HJGL.PurgingCleaning } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.cs index e1fe3fb5..08af7ed9 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.cs @@ -176,6 +176,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -1119,4 +1120,4 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.cs b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.cs index 579705ba..f06c1fc0 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.cs @@ -51,6 +51,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -636,4 +637,4 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/BItemEndCheck.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/BItemEndCheck.aspx.cs index 1a95845e..854e465f 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/BItemEndCheck.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/BItemEndCheck.aspx.cs @@ -91,6 +91,7 @@ namespace FineUIPro.Web.HJGL.TestPackage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List testPackageLists = (from x in Funs.DB.PTP_TestPackage where x.ProjectId == this.CurrUser.LoginProjectId && x.TableDate >= startTime && x.TableDate < endTime @@ -378,4 +379,4 @@ namespace FineUIPro.Web.HJGL.TestPackage } } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/ItemEndCheck.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/ItemEndCheck.aspx.cs index d6dfedad..c426bc07 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/ItemEndCheck.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/ItemEndCheck.aspx.cs @@ -92,6 +92,7 @@ namespace FineUIPro.Web.HJGL.TestPackage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List testPackageLists = new List(); if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) @@ -609,4 +610,4 @@ namespace FineUIPro.Web.HJGL.TestPackage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageAudit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageAudit.aspx.cs index 28337d2a..276c85e9 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageAudit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageAudit.aspx.cs @@ -85,6 +85,7 @@ namespace FineUIPro.Web.HJGL.TestPackage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List testPackageLists = new List(); if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) @@ -673,4 +674,4 @@ namespace FineUIPro.Web.HJGL.TestPackage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageComplete.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageComplete.aspx.cs index 930a9e1b..4c3ac647 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageComplete.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageComplete.aspx.cs @@ -88,6 +88,7 @@ namespace FineUIPro.Web.HJGL.TestPackage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List testPackageLists = new List(); if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) @@ -505,4 +506,4 @@ namespace FineUIPro.Web.HJGL.TestPackage #endregion 查询 } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageData.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageData.aspx.cs index a8c975b7..2cee3b2f 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageData.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageData.aspx.cs @@ -89,6 +89,7 @@ namespace FineUIPro.Web.HJGL.TestPackage && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); // 按项目类型分组,避免重复查询 @@ -535,4 +536,4 @@ namespace FineUIPro.Web.HJGL.TestPackage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageEdit.aspx.cs index 9548c69c..3ee59337 100644 --- a/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/TestPackage/TestPackageEdit.aspx.cs @@ -93,6 +93,7 @@ namespace FineUIPro.Web.HJGL.TestPackage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List testPackageLists = new List(); if (!string.IsNullOrEmpty(this.txtCode.Text.Trim())) @@ -651,4 +652,4 @@ namespace FineUIPro.Web.HJGL.TestPackage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs index fbfcbb9a..231d90ca 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs @@ -58,6 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineList.aspx.cs index a16141df..1f9b3613 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineList.aspx.cs @@ -60,6 +60,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -627,4 +628,4 @@ namespace FineUIPro.Web.HJGL.WeldingManage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs index f3dd0835..cd5fb217 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs @@ -1025,8 +1025,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage PCMedium = x.PCMedium, MaterialId = x.MaterialId, PaintId = x.PaintId, - Remark = x.Remark, - FlowingSection = x.FlowingSection + Remark = x.Remark, }).DistinctBy(temp => new { temp.PipelineId, @@ -1052,8 +1051,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage temp.PCMedium, temp.MaterialId, temp.PaintId, - temp.Remark, - temp.FlowingSection + temp.Remark }).ToList(); for (int i = 0; i < pipelines.Count(); i++) { @@ -1082,7 +1080,6 @@ namespace FineUIPro.Web.HJGL.WeldingManage pipeline.MaterialId = pipelines[i].MaterialId; pipeline.PaintId = pipelines[i].PaintId; pipeline.Remark = pipelines[i].Remark; - pipeline.FlowingSection = pipelines[i].FlowingSection; var isExistPipelineCode = PipelineService.GetPipelineByCode(pipeline.PipelineCode, pipeline.UnitWorkId); if (isExistPipelineCode != null) // 更新管线 @@ -1127,6 +1124,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage ProjectId = this.CurrUser.LoginProjectId, IsHotProess = x.IsHotProess, WeldJointPoint = x.WeldJointPoint, + FlowingSection=x.FlowingSection }).DistinctBy(temp => new { temp.WeldJointCode, @@ -1143,7 +1141,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage temp.JointAttribute, temp.ProjectId, temp.IsHotProess, - temp.WeldJointPoint + temp.WeldJointPoint, + temp.FlowingSection }).ToList(); var pipelineCodes = weldJoints.Select(x => x.PipelineCode).Distinct().ToList(); @@ -1166,12 +1165,29 @@ namespace FineUIPro.Web.HJGL.WeldingManage weldJoint.ProjectId = weldJoints[i].ProjectId; weldJoint.IsHotProess = weldJoints[i].IsHotProess; weldJoint.WeldJointPoint = weldJoints[i].WeldJointPoint; + weldJoint.FlowingSection = weldJoints[i].FlowingSection; var isExistJot = allWeldJoints.FirstOrDefault(x => x.PipelineId == weldJoint.PipelineId && x.WeldJointCode == weldJoint.WeldJointCode); if (isExistJot != null) // 更新焊口 - { - weldJoint.WeldJointId = isExistJot.WeldJointId; - BLL.WeldJointService.UpdateWeldJoint(weldJoint); + { + isExistJot.PipelineId = getpipelines.Where(x => x.PipelineCode == weldJoints[i].PipelineCode).FirstOrDefault().PipelineId; + isExistJot.WeldJointCode = weldJoints[i].WeldJointCode; + isExistJot.PipelineCode = weldJoints[i].PipelineCode; + isExistJot.Material1Id = weldJoints[i].Material1Id; + isExistJot.Material2Id = weldJoints[i].Material2Id; + isExistJot.Dia = weldJoints[i].Dia; + isExistJot.DNDia = weldJoints[i].DNDia; + isExistJot.Size = weldJoints[i].Size; + isExistJot.Thickness = weldJoints[i].Thickness; + isExistJot.Specification = weldJoints[i].Specification; + isExistJot.WeldTypeId = weldJoints[i].WeldTypeId; + isExistJot.DetectionTypeId = weldJoints[i].DetectionTypeId; + isExistJot.JointAttribute = weldJoints[i].JointAttribute; + isExistJot.ProjectId = weldJoints[i].ProjectId; + isExistJot.IsHotProess = weldJoints[i].IsHotProess; + isExistJot.WeldJointPoint = weldJoints[i].WeldJointPoint; + isExistJot.FlowingSection = weldJoints[i].FlowingSection; + BLL.WeldJointService.UpdateWeldJoint(isExistJot); } else // 增加焊口 { diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PreWeldReportAudit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PreWeldReportAudit.aspx.cs index 62f59c1a..cb18419f 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PreWeldReportAudit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PreWeldReportAudit.aspx.cs @@ -53,6 +53,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -766,4 +767,4 @@ namespace FineUIPro.Web.HJGL.WeldingManage } #endregion } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx index 37a00d23..3e38fd8e 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx @@ -224,11 +224,7 @@ - - - + @@ -263,6 +259,10 @@ + + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs index 4a8db52c..79cfaa5d 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs @@ -72,6 +72,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -329,7 +330,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage IsWelding,IsHotProessStr,Material1Code,Material2Code,WeldTypeCode, Specification,HeartNo1,HeartNo2,Size,Dia,DNDia,Thickness,GrooveTypeCode, WeldingMethodCode,WeldingWireCode,WeldingRodCode,WeldingDate,WeldingDailyCode, - BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark,WeldJointPoint + BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark,WeldJointPoint,FlowingSection FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL "; List listStr = new List { }; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.cs index 3ea3cb90..01eadbad 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldMatMatch.aspx.cs @@ -140,6 +140,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs index 67b00331..e0b295c3 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldReport.aspx.cs @@ -59,6 +59,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs index a5897acd..fd456007 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs @@ -108,6 +108,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx index 9803e66d..25671cc4 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx @@ -99,7 +99,7 @@ @@ -108,6 +108,9 @@ Width="60px" HeaderTextAlign="Center" TextAlign="Center" ColumnID="tfNumber" /> + + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs index 57a4641b..246cf467 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs @@ -60,6 +60,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; @@ -265,7 +266,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage IsWelding,IsHotProessStr,Material1Code,Material2Code,WeldTypeCode, Specification,HeartNo1,HeartNo2,Size,Dia,DNDia,Thickness,GrooveTypeCode, WeldingMethodCode,WeldingWireCode,WeldingRodCode,WeldingDate,WeldingDailyCode, - BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark + BackingWelderCode,CoverWelderCode,MediumCode ,PreTemperature,JointArea,WPQCode,Remark,CAST(WeldJointCode as int) as WeldJointCodeInt FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL "; List listStr = new List { }; @@ -305,7 +306,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage strSql += " AND JointAttribute =@JointAttribute"; listStr.Add(new SqlParameter("@JointAttribute", drpJointAttribute.SelectedValue)); - } + } SqlParameter[] parameter = listStr.ToArray(); System.Data.DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); @@ -602,4 +603,4 @@ namespace FineUIPro.Web.HJGL.WeldingManage } } -} \ No newline at end of file +} diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingPlan.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingPlan.aspx.cs index 43a9ec79..cf98eba8 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingPlan.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingPlan.aspx.cs @@ -58,6 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile.pubxml b/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile.pubxml index 4a6cff0f..82945aef 100644 --- a/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile.pubxml +++ b/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile.pubxml @@ -1,18 +1,15 @@ - - - + + + - FileSystem - FileSystem + false + false + true Release Any CPU - - True - True - D:\Package\中国化学 - False + FileSystem + E:\Package\陕化建 + FileSystem + <_TargetId>Folder \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/mainMenu_HJGL3.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_HJGL3.aspx.cs index d344a140..8809cc78 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_HJGL3.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_HJGL3.aspx.cs @@ -65,6 +65,7 @@ namespace FineUIPro.Web.common var unitWorkList = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && x.SuperUnitWork == null && x.UnitId != null && x.ProjectType != null + orderby x.UnitWorkCode select x).ToList(); List unitWork1 = null; diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 66aee34b..f92f85cc 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -1,4 +1,5 @@ -#pragma warning disable 1591 + +#pragma warning disable 1591 //------------------------------------------------------------------------------ // // 此代码由工具生成。 @@ -110922,6 +110923,8 @@ namespace Model private System.Nullable _Misalignment; + private string _FlowingSection; + private EntitySet _HJGL_Hard_Report; private EntitySet _HJGL_Hard_TrustItem; @@ -111080,6 +111083,8 @@ namespace Model partial void OnFitupGapChanged(); partial void OnMisalignmentChanging(System.Nullable value); partial void OnMisalignmentChanged(); + partial void OnFlowingSectionChanging(string value); + partial void OnFlowingSectionChanged(); #endregion public HJGL_WeldJoint() @@ -112345,6 +112350,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FlowingSection", DbType="NVarChar(200)")] + public string FlowingSection + { + get + { + return this._FlowingSection; + } + set + { + if ((this._FlowingSection != value)) + { + this.OnFlowingSectionChanging(value); + this.SendPropertyChanging(); + this._FlowingSection = value; + this.SendPropertyChanged("FlowingSection"); + this.OnFlowingSectionChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_Hard_Report_HJGL_WeldJoint", Storage="_HJGL_Hard_Report", ThisKey="WeldJointId", OtherKey="WeldJointId", DeleteRule="NO ACTION")] public EntitySet HJGL_Hard_Report {