diff --git a/DataBase/版本日志/SGGLDB_V2023-11-22.sql b/DataBase/版本日志/SGGLDB_V2023-11-22.sql
new file mode 100644
index 00000000..a031201e
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-22.sql
@@ -0,0 +1,172 @@
+
+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 --̽˱51020
+ ,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 --ע
+ ,pipe.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] --1Id
+ ,com1.ComponentsCode AS ComponentsCode1 --1
+ ,jot.[Components2Id] --2Id
+ ,com2.ComponentsCode AS ComponentsCode2 --2
+ ,jot.DesignIsHotProess --Ƿȴ
+ ,CASE jot.DesignIsHotProess WHEN 1 THEN '' ELSE '' END AS DesignIsHotProessStr --Ƿȴ
+ ,jot.[WeldingMethodId] --ӷId
+ ,WeldingMethod.WeldingMethodCode --ӷ
+ ,jot.WPQId --WPSId
+ ,wps.WPQCode --WPS
+ ,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 --溸
+ ,(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
+ ,WeldingLocation.WeldingLocationCode
+ ,CASE WHEN jot.WeldingDailyId IS NULL THEN '' ELSE '' END AS IsWelding
+ ,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.WBS_UnitWork uw ON uw.UnitWorkId=pipe.UnitWorkId
+LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=pipe.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 dbo.HJGL_WeldingDaily AS daily ON daily.WeldingDailyId=jot.WeldingDailyId
+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
+
+
+
+
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-23.sql b/DataBase/版本日志/SGGLDB_V2023-11-23.sql
new file mode 100644
index 00000000..a2f11d5d
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-23.sql
@@ -0,0 +1,5 @@
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('2C66A01D-B53F-46A1-89F0-30ED137C7498','','HJGL/WeldingReport/CheckResult.aspx',100,'F3B157B7-9BEE-4150-80CB-087828F1C51D','Menu_HJGL',0,1,1)
+ GO
+ INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('C5671119-2DDD-4A64-B7C6-492B96C5AEC7','2C66A01D-B53F-46A1-89F0-30ED137C7498','鿴',1)
+ GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-24.sql b/DataBase/版本日志/SGGLDB_V2023-11-24.sql
new file mode 100644
index 00000000..a26c6117
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-24.sql
@@ -0,0 +1,93 @@
+
+CREATE PROC [dbo].[sp_rpt_CheckResult]
+ @unitId NVARCHAR(50) = NULL, --λId
+ @detectionTypeId NVARCHAR(50) = NULL, --̽
+ @flowingSection NVARCHAR(50) = NULL, --̽
+ @date1 DATETIME = NULL,
+ @date2 DATETIME = NULL,
+ @projectId NVARCHAR(50) = NULL
+
+AS
+/**/
+
+select ndeItem.NDEItemID,unit.UnitName,jot.WeldJointCode,detectionType.DetectionTypeCode,ndeItem.TotalFilm,ndeItem.PassFilm,
+case ndeItem.CheckResult when '1' then 'ϸ' else 'ϸ' end as CheckResult,pipeline.FlowingSection
+from HJGL_Batch_NDEItem ndeItem
+LEFT JOIN dbo.Base_DetectionType detectionType ON detectionType.DetectionTypeId = ndeItem.DetectionTypeId
+LEFT JOIN dbo.HJGL_Batch_BatchTrustItem trustItem ON trustItem.TrustBatchItemId = ndeItem.TrustBatchItemId
+LEFT JOIN dbo.HJGL_WeldJoint jot ON jot.WeldJointId = trustItem.WeldJointId
+LEFT JOIN dbo.HJGL_Pipeline pipeline ON jot.PipelineId = pipeline.PipelineId
+LEFT JOIN dbo.HJGL_WeldingDaily daily ON daily.WeldingDailyId = jot.WeldingDailyId
+LEFT JOIN dbo.Base_Unit unit ON unit.UnitId = daily.UnitId
+WHERE (ndeItem.DetectionTypeId=@detectionTypeId OR @detectionTypeId IS NULL)
+AND (jot.ProjectId=@projectId OR @projectId IS NULL)
+AND (daily.UnitId = @unitId OR @unitId IS NULL)
+AND (daily.WeldingDate >= @date1 OR @date1 IS NULL)
+AND (daily.WeldingDate <= @date2 OR @date2 IS NULL)
+AND (pipeline.FlowingSection like '%'+@flowingSection+'%' OR @flowingSection IS NULL)
+ORDER BY daily.UnitId,detectionType.DetectionTypeCode,jot.WeldJointCode
+
+
+GO
+
+
+
+ALTER VIEW [dbo].[View_HJGL_Batch_PointBatchItem]
+AS
+/*************ϸ*************/
+SELECT PointBatchItem.PointBatchItemId,
+PointBatchItem.PointBatchId,
+PointBatch.ProjectId,
+PointBatch.UnitId,
+PointBatch.DetectionTypeId,
+PointBatch.DetectionRateId,
+PointBatch.PointBatchCode,
+Pipeline.UnitWorkId,
+PointBatchItem.WeldJointId,
+(CASE PointBatchItem.PointState WHEN '1' THEN '' WHEN '2' THEN '' END) AS PointState,
+(CASE PointBatchItem.IsBuildTrust WHEN 1 THEN '' ELSE '' END) AS IsBuildTrust,
+(CASE WHEN PointBatchItem.IsAudit=1 THEN ''
+ WHEN (PointBatchItem.IsAudit IS NULL OR PointBatchItem.IsAudit=0) AND PointBatchItem.PointState IS NOT NULL THEN ''
+ WHEN (PointBatchItem.IsAudit IS NULL OR PointBatchItem.IsAudit=0) AND PointBatchItem.PointState IS NULL THEN '' END) AS PointIsAudit,
+PointBatchItem.PointDate,--
+(CASE PointBatchItem.IsWelderFirst WHEN 1 THEN '' ELSE '' END) AS IsWelderFirst,
+PointBatchItem.RepairDate,--
+PointBatchItem.RepairRecordId,
+PointBatchItem.CutDate,--г
+PointBatchItem.PBackingWelderId,--
+PointBatchItem.PCoverWelderId,--溸
+UnitWork.UnitWorkCode,--
+WeldJoint.WeldJointCode,--ں
+WeldJoint.BackingWelderId AS WelderId, --ID
+BackingWelder.WelderCode AS BackingWelderCode,
+CoverWelder.WelderCode AS CoverWelderCode,
+WeldType.WeldTypeCode,
+WeldJoint.JointAttribute,
+WeldJoint.JointArea,--
+WeldJoint.Size,--ʵʴ羶
+WeldingDaily.WeldingDate,--
+WeldJoint.PipelineId, --ID
+WeldJoint.Material1Id AS Mat, --
+WeldJoint.Specification, --
+Pipeline.PipelineCode, --ߺ
+PipingClass.PipingClassName , --ܵȼ
+WeldJoint.BackingWelderId,
+WeldJoint.CoverWelderId
+FROM dbo.HJGL_Batch_PointBatchItem AS PointBatchItem
+LEFT JOIN dbo.HJGL_Batch_PointBatch AS PointBatch ON PointBatch.PointBatchId=PointBatchItem.PointBatchId
+LEFT JOIN dbo.HJGL_WeldJoint AS WeldJoint ON WeldJoint.WeldJointId=PointBatchItem.WeldJointId
+LEFT JOIN dbo.HJGL_Pipeline AS Pipeline ON Pipeline.PipelineId=WeldJoint.PipelineId
+LEFT JOIN dbo.WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId=Pipeline.UnitWorkId
+LEFT JOIN dbo.HJGL_WeldingDaily AS WeldingDaily ON WeldingDaily.WeldingDailyId=WeldJoint.WeldingDailyId
+LEFT JOIN dbo.Base_PipingClass AS PipingClass ON PipingClass.PipingClassId=Pipeline.PipingClassId
+LEFT JOIN SitePerson_Person AS BackingWelder ON BackingWelder.PersonId=WeldJoint.BackingWelderId
+LEFT JOIN SitePerson_Person AS CoverWelder ON CoverWelder.PersonId=WeldJoint.CoverWelderId
+LEFT JOIN Base_WeldType AS WeldType ON WeldType.WeldTypeId=WeldJoint.WeldTypeId
+LEFT JOIN HJGL_Hard_TrustItem HardTrustItem ON HardTrustItem.WeldJointId=PointBatchItem.WeldJointId
+where (WeldJoint.IsHotProess!=1 or (WeldJoint.IsHotProess=1 and HardTrustItem.IsPass=1))
+and BackingWelder.ProjectId=Pipeline.ProjectId and CoverWelder.ProjectId=Pipeline.ProjectId
+
+
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-25.sql b/DataBase/版本日志/SGGLDB_V2023-11-25.sql
new file mode 100644
index 00000000..2c5a219f
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-25.sql
@@ -0,0 +1,2 @@
+alter table [dbo].[WBS_ControlItemInit] add IsJDItem bit null
+GO
\ No newline at end of file
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-27.sql b/DataBase/版本日志/SGGLDB_V2023-11-27.sql
new file mode 100644
index 00000000..1e679f87
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-27.sql
@@ -0,0 +1,61 @@
+
+ALTER VIEW [dbo].[View_HJGL_Batch_PointBatchItem]
+AS
+/*************ϸ*************/
+SELECT PointBatchItem.PointBatchItemId,
+PointBatchItem.PointBatchId,
+PointBatch.ProjectId,
+PointBatch.UnitId,
+PointBatch.DetectionTypeId,
+PointBatch.DetectionRateId,
+PointBatch.PointBatchCode,
+Pipeline.UnitWorkId,
+PointBatchItem.WeldJointId,
+(CASE PointBatchItem.PointState WHEN '1' THEN '' WHEN '2' THEN '' END) AS PointState,
+(CASE PointBatchItem.IsBuildTrust WHEN 1 THEN '' ELSE '' END) AS IsBuildTrust,
+(CASE WHEN PointBatchItem.IsAudit=1 THEN ''
+ WHEN (PointBatchItem.IsAudit IS NULL OR PointBatchItem.IsAudit=0) AND PointBatchItem.PointState IS NOT NULL THEN ''
+ WHEN (PointBatchItem.IsAudit IS NULL OR PointBatchItem.IsAudit=0) AND PointBatchItem.PointState IS NULL THEN '' END) AS PointIsAudit,
+PointBatchItem.PointDate,--
+(CASE PointBatchItem.IsWelderFirst WHEN 1 THEN '' ELSE '' END) AS IsWelderFirst,
+PointBatchItem.RepairDate,--
+PointBatchItem.RepairRecordId,
+PointBatchItem.CutDate,--г
+PointBatchItem.PBackingWelderId,--
+PointBatchItem.PCoverWelderId,--溸
+UnitWork.UnitWorkCode,--
+WeldJoint.WeldJointCode,--ں
+WeldJoint.BackingWelderId AS WelderId, --ID
+BackingWelder.WelderCode AS BackingWelderCode,
+CoverWelder.WelderCode AS CoverWelderCode,
+WeldType.WeldTypeCode,
+WeldJoint.JointAttribute,
+WeldJoint.JointArea,--
+WeldJoint.Size,--ʵʴ羶
+WeldingDaily.WeldingDate,--
+WeldJoint.PipelineId, --ID
+WeldJoint.Material1Id AS Mat, --
+WeldJoint.Specification, --
+Pipeline.PipelineCode, --ߺ
+PipingClass.PipingClassName , --ܵȼ
+WeldJoint.BackingWelderId,
+WeldJoint.CoverWelderId
+FROM dbo.HJGL_Batch_PointBatchItem AS PointBatchItem
+LEFT JOIN dbo.HJGL_Batch_PointBatch AS PointBatch ON PointBatch.PointBatchId=PointBatchItem.PointBatchId
+LEFT JOIN dbo.HJGL_WeldJoint AS WeldJoint ON WeldJoint.WeldJointId=PointBatchItem.WeldJointId
+LEFT JOIN dbo.HJGL_Pipeline AS Pipeline ON Pipeline.PipelineId=WeldJoint.PipelineId
+LEFT JOIN dbo.WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId=Pipeline.UnitWorkId
+LEFT JOIN dbo.HJGL_WeldingDaily AS WeldingDaily ON WeldingDaily.WeldingDailyId=WeldJoint.WeldingDailyId
+LEFT JOIN dbo.Base_PipingClass AS PipingClass ON PipingClass.PipingClassId=Pipeline.PipingClassId
+LEFT JOIN SitePerson_Person AS BackingWelder ON BackingWelder.PersonId=WeldJoint.BackingWelderId
+LEFT JOIN SitePerson_Person AS CoverWelder ON CoverWelder.PersonId=WeldJoint.CoverWelderId
+LEFT JOIN Base_WeldType AS WeldType ON WeldType.WeldTypeId=WeldJoint.WeldTypeId
+LEFT JOIN HJGL_Hard_TrustItem HardTrustItem ON HardTrustItem.WeldJointId=PointBatchItem.WeldJointId
+where (WeldJoint.IsHotProess!=1 or WeldJoint.IsHotProess is null or (WeldJoint.IsHotProess=1 and HardTrustItem.IsPass=1))
+and BackingWelder.ProjectId=Pipeline.ProjectId and CoverWelder.ProjectId=Pipeline.ProjectId
+
+
+
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-28.sql b/DataBase/版本日志/SGGLDB_V2023-11-28.sql
new file mode 100644
index 00000000..d4097938
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-28.sql
@@ -0,0 +1,22 @@
+alter table WBS_WorkPackage add DrawProjectQuantity decimal(18,2) null
+GO
+
+ALTER VIEW [dbo].[View_WBS]
+AS
+select '1' as Id,'0' as SupId ,'JZ' as Code, '' as Name,'ProjectType' as WBSType,null as PlanStartDate,null as PlanEndDate,null as RealEndDate,null as WBSCode,null as JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,null as RealStartDate,null as IsMileStone,null as PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity,
+ProjectId from dbo.Base_Project
+Union
+select '2' as Id,'0' as SupId ,'AZ' as Code, 'װ' as Name,'ProjectType' as WBSType,null as PlanStartDate,null as PlanEndDate,null as RealEndDate,null as WBSCode,null as JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,null as RealStartDate,null as IsMileStone,null as PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity,
+ProjectId from dbo.Base_Project
+Union
+select UnitWorkId as Id,ProjectType as SupId ,UnitWorkCode as Code, UnitWorkName as Name,'UnitWork' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,null as Unit,null as PlanProjectQuantity,null as RealProjectQuantity,RealStartDate,null as IsMileStone,PlanCost,null as PreWorkCode,'' as ShowId,null as DrawProjectQuantity,
+ProjectId from dbo.WBS_UnitWork
+Union all
+select WorkPackageId as id,UnitWorkId as SupId,WorkPackageCode as Code,PackageContent as Name,'WorkPackage' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,Unit,PlanProjectQuantity,RealProjectQuantity,RealStartDate,IsMileStone,PlanCost,PreWorkCode,case when (select COUNT(*) from WBS_WorkPackage a where a.SuperWorkPackageId=w.WorkPackageId and a.IsApprove=1)=0 then WorkPackageId else '' end as ShowId,DrawProjectQuantity,
+ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is null
+Union all
+select WorkPackageId as id,SuperWorkPackageId as SupId,WorkPackageCode as Code, PackageContent as Name,'WorkPackage' as WBSType,PlanStartDate, PlanEndDate,RealEndDate,WBSCode,JDWeights,Unit,PlanProjectQuantity,RealProjectQuantity,RealStartDate,IsMileStone,PlanCost,PreWorkCode,case when (select COUNT(*) from WBS_WorkPackage a where a.SuperWorkPackageId=w.WorkPackageId and a.IsApprove=1)=0 then WorkPackageId else '' end as ShowId,DrawProjectQuantity,
+ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is not null
+
+
+GO
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-29.sql b/DataBase/版本日志/SGGLDB_V2023-11-29.sql
new file mode 100644
index 00000000..91b9c864
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-11-29.sql
@@ -0,0 +1,53 @@
+
+CREATE TABLE [dbo].[ZHGL_ConstructionLogHJGL](
+ [ConstructionLogHJGLId] [nvarchar](50) NOT NULL,
+ [ConstructionLogId] [nvarchar](50) NULL,
+ [UnitWorkId] [nvarchar](50) NULL,
+ [TodayCompleteSize] [decimal](18, 3) NULL,
+ [TotalCompleteSize] [decimal](18, 3) NULL,
+ [TotalSize] [decimal](18, 3) NULL,
+ [TotalRate] [nvarchar](20) NULL,
+ [TomorrowPlanSize] [decimal](18, 3) NULL,
+ CONSTRAINT [PK_ZHGL_ConstructionLogHJGL] PRIMARY KEY CLUSTERED
+(
+ [ConstructionLogHJGLId] ASC
+)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
+) ON [PRIMARY]
+
+GO
+
+ALTER TABLE [dbo].[ZHGL_ConstructionLogHJGL] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogHJGL_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId])
+REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId])
+GO
+
+ALTER TABLE [dbo].[ZHGL_ConstructionLogHJGL] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogHJGL_ZHGL_ConstructionLog]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'ConstructionLogHJGLId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'ConstructionLogId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'UnitWorkId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ɴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'TodayCompleteSize'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'TotalCompleteSize'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ܴ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'TotalSize'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۼɰٷֱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'TotalRate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ռƻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL', @level2type=N'COLUMN',@level2name=N'TomorrowPlanSize'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־ݱ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogHJGL'
+GO
+
+
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-11.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-11.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-11.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-11.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-12.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-12.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-12.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-12.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-13.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-13.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-13.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-13.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-15.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-15.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-15.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-15.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-21.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-21.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-21.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-21.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-22.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-22.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-22.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-22.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-25.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-25.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-25.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-25.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-09-27.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-27.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-09-27.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-09-27.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-07.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-07.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-07.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-07.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-17.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-17.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-17.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-17.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-20.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-20.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-20.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-20.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-23.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-23.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-23.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-23.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-24.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-24.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-24.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-24.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-25.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-25.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-25.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-25.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-26.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-26.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-26.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-26.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-27.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-27.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-27.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-27.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-10-30.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-30.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-10-30.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-10-30.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-01.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-01.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-11-01.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-01.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-08.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-08.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-11-08.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-08.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-09.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-09.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-11-09.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-09.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-10.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-10.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-11-10.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-10.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-11-14.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-14.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-11-14.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-14.sql
diff --git a/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-21.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-21.sql
new file mode 100644
index 00000000..6d348252
--- /dev/null
+++ b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-11-21.sql
@@ -0,0 +1,175 @@
+alter table HJGL_WeldJoint add AuditMan2 nvarchar(50) null
+GO
+alter table HJGL_WeldJoint add AuditDate2 datetime null
+GO
+
+
+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 --̽˱51020
+ ,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 --ע
+ ,pipe.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] --1Id
+ ,com1.ComponentsCode AS ComponentsCode1 --1
+ ,jot.[Components2Id] --2Id
+ ,com2.ComponentsCode AS ComponentsCode2 --2
+ ,jot.DesignIsHotProess --Ƿȴ
+ ,CASE jot.DesignIsHotProess WHEN 1 THEN '' ELSE '' END AS DesignIsHotProessStr --Ƿȴ
+ ,jot.[WeldingMethodId] --ӷId
+ ,WeldingMethod.WeldingMethodCode --ӷ
+ ,jot.WPQId --WPSId
+ ,wps.WPQCode --WPS
+ ,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 --κ
+ ,daily.WeldingDate as WeldingDateD
+ ,CONVERT(VARCHAR(100), daily.WeldingDate, 23) AS WeldingDate --
+ ,BackingWelder.WelderCode AS BackingWelderCode --
+ ,CoverWelder.WelderCode AS CoverWelderCode --溸
+ ,(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
+ ,WeldingLocation.WeldingLocationCode
+ ,CASE WHEN jot.WeldingDailyId IS NULL THEN '' ELSE '' END AS IsWelding
+ ,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.WBS_UnitWork uw ON uw.UnitWorkId=pipe.UnitWorkId
+LEFT JOIN dbo.Base_Unit unit ON unit.UnitId=pipe.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 dbo.HJGL_WeldingDaily AS daily ON daily.WeldingDailyId=jot.WeldingDailyId
+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
+
+
+
+GO
+
+
diff --git a/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql b/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql
index 20cc9602..a72dea5c 100644
--- a/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql
+++ b/DataBase/菜单初始化脚本/1-5焊接管理(Menu_HJGL).sql
@@ -543,6 +543,12 @@ GO
INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('47A49DB1-4689-421A-A93E-DCBD7C34D917','854C79DF-A1C0-4E3C-BCB4-7D5CD044F72B','鿴',1)
GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('2C66A01D-B53F-46A1-89F0-30ED137C7498','','HJGL/WeldingReport/CheckResult.aspx',100,'F3B157B7-9BEE-4150-80CB-087828F1C51D','Menu_HJGL',0,1,1)
+ GO
+ INSERT INTO Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('C5671119-2DDD-4A64-B7C6-492B96C5AEC7','2C66A01D-B53F-46A1-89F0-30ED137C7498','鿴',1)
+ GO
+
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
--VALUES('CF3CB43C-4031-4CFD-905F-154DC1CB881E','ۺϢ','HJGL/WeldingReport/IsoCompreInfo.aspx',80,'F3B157B7-9BEE-4150-80CB-087828F1C51D','Menu_HJGL',0,1,1)
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index b8bfa829..0ee1899e 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -644,6 +644,7 @@
+
diff --git a/SGGL/BLL/CQMS/WBS/ControlItemInitService.cs b/SGGL/BLL/CQMS/WBS/ControlItemInitService.cs
index bbd0b196..f7603317 100644
--- a/SGGL/BLL/CQMS/WBS/ControlItemInitService.cs
+++ b/SGGL/BLL/CQMS/WBS/ControlItemInitService.cs
@@ -51,6 +51,7 @@ namespace BLL
newControlItem.Standard = controlItem.Standard;
newControlItem.ClauseNo = controlItem.ClauseNo;
newControlItem.CheckAcceptType = controlItem.CheckAcceptType;
+ newControlItem.IsJDItem = controlItem.IsJDItem;
db.WBS_ControlItemInit.InsertOnSubmit(newControlItem);
db.SubmitChanges();
@@ -75,6 +76,7 @@ namespace BLL
newControlItem.Standard = controlItem.Standard;
newControlItem.ClauseNo = controlItem.ClauseNo;
newControlItem.CheckAcceptType = controlItem.CheckAcceptType;
+ newControlItem.IsJDItem = controlItem.IsJDItem;
db.SubmitChanges();
}
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageProjectService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageProjectService.cs
index 9c252348..2a63d1db 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageProjectService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageProjectService.cs
@@ -32,7 +32,7 @@ namespace BLL
public static void UpdateWorkPackageProject(Model.WBS_WorkPackageProject workPack)
{
Model.SGGLDB db = Funs.DB;
- Model.WBS_WorkPackageProject newPack = db.WBS_WorkPackageProject.First(e => e.WorkPackageCode == workPack.WorkPackageCode);
+ Model.WBS_WorkPackageProject newPack = db.WBS_WorkPackageProject.First(e => e.WorkPackageCode == workPack.WorkPackageCode && e.ProjectId == workPack.ProjectId);
newPack.WorkPackageCode = workPack.WorkPackageCode;
newPack.IsChild = workPack.IsChild;
newPack.PackageContent = workPack.PackageContent;
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
index fd000c2f..2c6e85c7 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
@@ -40,6 +40,7 @@ namespace BLL
newWorkPackage.RealStartDate = WorkPackage.RealStartDate;
newWorkPackage.RealEndDate = WorkPackage.RealEndDate;
newWorkPackage.Unit = WorkPackage.Unit;
+ newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity;
db.WBS_WorkPackage.InsertOnSubmit(newWorkPackage);
db.SubmitChanges();
@@ -76,6 +77,7 @@ namespace BLL
newWorkPackage.PlanCost = WorkPackage.PlanCost;
newWorkPackage.JDWeights = WorkPackage.JDWeights;
newWorkPackage.PreWorkCode = WorkPackage.PreWorkCode;
+ newWorkPackage.DrawProjectQuantity = WorkPackage.DrawProjectQuantity;
db.SubmitChanges();
}
@@ -444,7 +446,7 @@ namespace BLL
List newList = new List();
if (getWBSs.Count() > 0)
{
-
+
var projectTypes = getWBSs.Where(x => x.WBSType == "ProjectType" && x.SupId == "0");
int a = 1;
foreach (var item in projectTypes)
@@ -505,6 +507,7 @@ namespace BLL
table.Columns.Add(new DataColumn("JDWeights", typeof(String)));
table.Columns.Add(new DataColumn("Unit", typeof(String)));
table.Columns.Add(new DataColumn("PlanProjectQuantity", typeof(String)));
+ table.Columns.Add(new DataColumn("DrawProjectQuantity", typeof(String)));
table.Columns.Add(new DataColumn("RealProjectQuantity", typeof(String)));
table.Columns.Add(new DataColumn("PlanStartDate", typeof(DateTime)));
table.Columns.Add(new DataColumn("PlanEndDate", typeof(DateTime)));
@@ -551,30 +554,31 @@ namespace BLL
row[6] = item.JDWeights;
row[7] = item.Unit;
row[8] = item.PlanProjectQuantity;
- row[9] = item.RealProjectQuantity;
+ row[9] = item.DrawProjectQuantity;
+ row[10] = item.RealProjectQuantity;
if (item.PlanStartDate != null)
{
- row[10] = item.PlanStartDate;
+ row[11] = item.PlanStartDate;
}
if (item.PlanEndDate != null)
{
- row[11] = item.PlanEndDate;
+ row[12] = item.PlanEndDate;
}
if (item.RealStartDate != null)
{
- row[12] = item.RealStartDate;
+ row[13] = item.RealStartDate;
}
if (item.RealEndDate != null)
{
- row[13] = item.RealEndDate;
+ row[14] = item.RealEndDate;
}
if (item.IsMileStone != null)
{
- row[14] = item.IsMileStone;
+ row[15] = item.IsMileStone;
}
- row[15] = item.PlanCost;
- row[16] = item.PreWorkCode;
- row[17] = item.Code;
+ row[16] = item.PlanCost;
+ row[17] = item.PreWorkCode;
+ row[18] = item.Code;
if (!string.IsNullOrEmpty(item.ShowId))
{
var details = getDetails.Where(x => x.WorkPackageId == item.Id).ToList();
@@ -583,11 +587,11 @@ namespace BLL
var index = months.FindIndex(x => x.Equals(item1.Months));
if (item1.PlanNum != 0)
{
- row[18 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2);
+ row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2);
}
if (item1.ThisNum != 0)
{
- row[19 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2);
+ row[20 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2);
}
}
}
@@ -827,6 +831,45 @@ namespace BLL
}
}
+ ///
+ /// 更新分部分项工程实际完成时间
+ ///
+ ///
+ public static void UpdateWorkPackageRealEndDate2(string workPackageId)
+ {
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ var workPackage = db.WBS_WorkPackage.FirstOrDefault(x => x.WorkPackageId == workPackageId);
+ if (workPackage != null)
+ {
+ workPackage.RealEndDate = DateTime.Now;
+ UpdateWorkPackages(db, workPackage, null, null, null, workPackage.RealEndDate);
+ db.SubmitChanges();
+ var unitWork = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == workPackage.UnitWorkId);
+ //获取是否存在其他未完成的分部分项
+ var notEndOthenWorkPackage = db.WBS_WorkPackage.FirstOrDefault(x => x.UnitWorkId == unitWork.UnitWorkId && x.IsApprove == true && x.RealEndDate == null);
+ if (notEndOthenWorkPackage == null)
+ {
+ if (workPackage.RealEndDate != null)
+ {
+ if (unitWork.RealEndDate == null)
+ {
+ unitWork.RealEndDate = workPackage.RealEndDate;
+ }
+ else
+ {
+ if (unitWork.RealEndDate < workPackage.RealEndDate)
+ {
+ unitWork.RealEndDate = workPackage.RealEndDate;
+ }
+ }
+ }
+ }
+ }
+ db.SubmitChanges();
+ }
+ }
+
#region 根据工作包ID获取wbs节点及父节点字符串
///
/// 根据工作包ID获取wbs节点及父节点字符串
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 59aced14..1ae05411 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -3338,6 +3338,10 @@ namespace BLL
///
public const string WBSWorkPackageTemplateUrl = "File\\Excel\\DataIn\\WBS定制导入模板.xls";
///
+ /// WBS定制导入模板
+ ///
+ public const string WBSWorkPackageTemplate2Url = "File\\Excel\\DataIn\\WBS定制导入模板(电仪).xls";
+ ///
/// WBS编码规则
///
public const string WBSCodeTemplateUrl = "File\\Excel\\DataIn\\WBS编码规则.xlsx";
@@ -3447,6 +3451,10 @@ namespace BLL
/// 公司平均工效统计模板文件原始虚拟路径
///
public const string CompanyConstructionLogWorkEfficiencyTemplateUrl = "File\\Excel\\ConstructionLog\\公司平均工效统计.xlsx";
+ ///
+ /// 焊口二次设计信息模板文件原始虚拟路径
+ ///
+ public const string JotTwoDesignTemplateUrl = "File\\Excel\\DataOut\\焊口二次设计信息.xlsx";
#endregion
#region 初始化上传路径
diff --git a/SGGL/BLL/HJGL/PersonManage/WelderService.cs b/SGGL/BLL/HJGL/PersonManage/WelderService.cs
index 937ad266..5d363875 100644
--- a/SGGL/BLL/HJGL/PersonManage/WelderService.cs
+++ b/SGGL/BLL/HJGL/PersonManage/WelderService.cs
@@ -65,10 +65,10 @@ namespace BLL
///
///
///
- public static bool IsExisWelderCode(string welderId, string welderCode)
+ public static bool IsExisWelderCode(string welderId, string welderCode, string projectId)
{
bool isExitCode = false;
- var q = from x in Funs.DB.SitePerson_Person where x.WelderCode == welderCode && x.PersonId != welderId select x;
+ var q = from x in Funs.DB.SitePerson_Person where x.WelderCode == welderCode && x.PersonId != welderId && x.ProjectId == projectId select x;
if (q.Count() > 0)
{
isExitCode = true;
diff --git a/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs b/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
index c0be47d9..db4ebadd 100644
--- a/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
+++ b/SGGL/BLL/HJGL/PointTrust/PointBatchService.cs
@@ -100,31 +100,31 @@ namespace BLL
{
var newWeldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId);
- if (newWeldJoint != null )
+ if (newWeldJoint != null)
{
var isTrust = from x in Funs.DB.HJGL_Batch_BatchTrustItem
where x.WeldJointId == weldJointId
select x; ;
if (!isTrust.Any())
- {
- var pointBatchItems = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.WeldJointId == weldJointId select x;
- string pointBatchId = pointBatchItems.FirstOrDefault()?.PointBatchId;
+ {
+ var pointBatchItems = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.WeldJointId == weldJointId select x;
+ string pointBatchId = pointBatchItems.FirstOrDefault()?.PointBatchId;
- // 删除焊口所在批明细信息
- BLL.PointBatchDetailService.DeleteBatchDetail(weldJointId);
+ // 删除焊口所在批明细信息
+ BLL.PointBatchDetailService.DeleteBatchDetail(weldJointId);
+
+ // 删除批信息
+ var batch = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.PointBatchId == pointBatchId select x;
+ if (!string.IsNullOrEmpty(pointBatchId) && !batch.Any())
+ {
+ DeleteBatch(pointBatchId);
+ }
+ //BLL.Batch_NDEItemService.DeleteAllNDEInfoToWeldJoint(item.WeldJointId);
- // 删除批信息
- var batch = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.PointBatchId == pointBatchId select x;
- if (!string .IsNullOrEmpty(pointBatchId) && !batch.Any())
- {
- DeleteBatch(pointBatchId);
- }
- //BLL.Batch_NDEItemService.DeleteAllNDEInfoToWeldJoint(item.WeldJointId);
-
}
else
{
- // errlog += "焊口【" + newWeldJoint.WeldJointCode + "】已进委托单了,不能删除。";
+ // errlog += "焊口【" + newWeldJoint.WeldJointCode + "】已进委托单了,不能删除。";
}
}
}
@@ -138,7 +138,7 @@ namespace BLL
var newWeldJoint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId);
var pipeline = BLL.PipelineService.GetPipelineByPipelineId(newWeldJoint.PipelineId);
var project = BLL.ProjectService.GetProjectByProjectId(pipeline.ProjectId);
- var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(pipeline.UnitWorkId);
+ var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(pipeline.UnitWorkId);
var WeldingDaily = BLL.WeldingDailyService.GetPipeline_WeldingDailyByWeldingDailyId(newWeldJoint.WeldingDailyId);
var ndt = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(pipeline.DetectionType);
var ndtr = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(pipeline.DetectionRateId);
@@ -236,8 +236,33 @@ namespace BLL
batch.PointBatchId = SQLHelper.GetNewID(typeof(Model.HJGL_Batch_PointBatch));
batchId = batch.PointBatchId;
string perfix = project.ProjectCode + "-" + unitWork.UnitWorkCode + "-GD-DK-" + ndt.DetectionTypeCode + "-" + ndtr.DetectionRateValue.ToString() + "%-";
- batch.PointBatchCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode4ByProjectId", "dbo.HJGL_Batch_PointBatch", "PointBatchCode", project.ProjectId, perfix);
-
+ //batch.PointBatchCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode4ByProjectId", "dbo.HJGL_Batch_PointBatch", "PointBatchCode", project.ProjectId, perfix);
+ var maxBatch = (from x in Funs.DB.HJGL_Batch_PointBatch where x.ProjectId == project.ProjectId && x.PointBatchCode.Contains(perfix) select x).FirstOrDefault();
+ if (maxBatch == null)
+ {
+ batch.PointBatchCode = perfix + "0001";
+ }
+ else
+ {
+ int code = Funs.GetNewIntOrZero(maxBatch.PointBatchCode.Substring(maxBatch.PointBatchCode.Length - 4));
+ code = code + 1;
+ if (code < 10)
+ {
+ batch.PointBatchCode = perfix + "000" + code.ToString();
+ }
+ else if (code >= 10 && code < 100)
+ {
+ batch.PointBatchCode = perfix + "00" + code.ToString();
+ }
+ else if (code >= 100 && code < 1000)
+ {
+ batch.PointBatchCode = perfix + "0" + code.ToString();
+ }
+ else
+ {
+ batch.PointBatchCode = perfix + code.ToString();
+ }
+ }
batch.ProjectId = project.ProjectId;
batch.UnitWorkId = pipeline.UnitWorkId;
batch.BatchCondition = batchCondition;
diff --git a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
index 0172d0a1..e1471476 100644
--- a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
+++ b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs
@@ -1,5 +1,5 @@
using FineUIPro;
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -75,7 +75,7 @@ namespace BLL
IQueryable q1 = (from x in db.HJGL_PackagingManage
join y in db.HJGL_Pipeline_Component on x.PipelineComponentId equals y.PipelineComponentId
join z in db.HJGL_Pipeline on y.PipelineId equals z.PipelineId
- select x
+ select x
);
if (!string.IsNullOrEmpty(name))
{
@@ -121,7 +121,7 @@ namespace BLL
}
return PlanStartDate;
}
- public static List GetPackagingManageList(string projectId,string PackagingCode)
+ public static List GetPackagingManageList(string projectId, string PackagingCode)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
@@ -131,7 +131,7 @@ namespace BLL
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
from t in tt.DefaultIfEmpty()
where x.ProjectId == projectId
- &&(string.IsNullOrEmpty(PackagingCode)|| x.PackagingCode.Contains(PackagingCode) )
+ && (string.IsNullOrEmpty(PackagingCode) || x.PackagingCode.Contains(PackagingCode))
select new PackagingManageItem
{
PackagingManageId = x.PackagingManageId,
@@ -142,7 +142,7 @@ namespace BLL
StackingPosition = x.StackingPosition,
State = x.State,
ReceiveMan = t.PersonName,
- ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
+ ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
}).Distinct();
@@ -156,8 +156,8 @@ namespace BLL
///
public static void PutOutOrder(string PackagingManageId)
{
- var model= GetHJGL_PackagingManageById(PackagingManageId);
- if (model.State==state_0)
+ var model = GetHJGL_PackagingManageById(PackagingManageId);
+ if (model.State == state_0)
{
model.State = state_1;
UpdateHJGL_PackagingManage(model);
@@ -173,7 +173,7 @@ namespace BLL
{
DataTable tb = new DataTable();
var model = GetHJGL_PackagingManageById(PackagingManageId);
- if (!string .IsNullOrEmpty(model.PipelineComponentId))
+ if (!string.IsNullOrEmpty(model.PipelineComponentId))
{
var PipelineComponentIds = model.PipelineComponentId.Split(',');
string strSql = @"select com.PipelineComponentId, com.PipelineComponentCode,pipe.PlanStartDate,unitwork.UnitWorkName,'1' as num ,'个' as CU
@@ -185,7 +185,7 @@ namespace BLL
strSql += string.Format("where com.PipelineComponentId in ( {0}) ", "'" + string.Join("','", PipelineComponentIds) + "'");
SqlParameter[] parameter = listStr.ToArray();
tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- }
+ }
return tb;
}
@@ -195,7 +195,7 @@ namespace BLL
///
///
///
- public static List GetPackagingCode(string projectid)
+ public static List GetPackagingCode(string projectid)
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.HJGL_PackagingManage
@@ -244,8 +244,8 @@ namespace BLL
table.ContactName = newtable.ContactName;
table.ContactPhone = newtable.ContactPhone;
table.Remark = newtable.Remark;
- table.ReceiveMan=newtable.ReceiveMan;
- table.ReceiveDate=newtable.ReceiveDate;
+ table.ReceiveMan = newtable.ReceiveMan;
+ table.ReceiveDate = newtable.ReceiveDate;
db.SubmitChanges();
}
diff --git a/SGGL/BLL/HJGL/WPQ/WPQListService.cs b/SGGL/BLL/HJGL/WPQ/WPQListService.cs
index 3ff5c33f..c9d1f40d 100644
--- a/SGGL/BLL/HJGL/WPQ/WPQListService.cs
+++ b/SGGL/BLL/HJGL/WPQ/WPQListService.cs
@@ -202,7 +202,10 @@ namespace BLL
var mat1 = BLL.Base_MaterialService.GetMaterialByMaterialId(material1);
var mat2 = BLL.Base_MaterialService.GetMaterialByMaterialId(material2);
-
+ if (mat1.MaterialCode == "No matl" || mat2.MaterialCode == "No matl") //材质1或材质2有一种为无材质,则匹配不了wpq
+ {
+ return null;
+ }
int m1 = SNClass(mat1.MaterialClass);
int m2 = SNClass(mat2.MaterialClass);
diff --git a/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs b/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
index 0545d184..761cef9c 100644
--- a/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/PipelineService.cs
@@ -20,24 +20,24 @@ namespace BLL
///
/// 工厂预制
///
- public const string PipeArea_SHOP="1";
+ public const string PipeArea_SHOP = "1";
///
/// 现场安装
///
- public const string PipeArea_FIELD = "2";
+ public const string PipeArea_FIELD = "2";
public const int pageSize = 20;
public static List hJGL_Pipelines
{
-
- get;
- set;
-
+
+ get;
+ set;
+
}
///
/// 实际日期类型
///
- public enum ActDateType
+ public enum ActDateType
{
///
/// 实际开始日期(预制)
@@ -46,16 +46,16 @@ namespace BLL
///
/// 实际完成日期(预制)
///
- ActDateEnd_Shop ,
+ ActDateEnd_Shop,
///
/// 实际开始日期(安装)
///
- ActDateStart_FIELD ,
+ ActDateStart_FIELD,
///
/// 实际完成日期(安装)
///
- ActDateEnd_FIELD ,
- }
+ ActDateEnd_FIELD,
+ }
///
/// 管线划分
///
@@ -67,7 +67,7 @@ namespace BLL
list[1] = new ListItem("现场安装", PipeArea_FIELD);
return list;
}
- public static void RestPipelineAndJoints(string projectid )
+ public static void RestPipelineAndJoints(string projectid)
{
PipelineService.hJGL_Pipelines = PipelineService.GetPipelinesByProjectId(projectid);
WeldJointService.hJGL_WeldJoints = WeldJointService.GetWeldJointByProjectid(projectid);
@@ -92,7 +92,7 @@ namespace BLL
var PlanEndDate = mdoel.PlanEndDate;
var ActStartDate = new DateTime?();
var ActEndDate = new DateTime?();
- if (!string .IsNullOrEmpty(GetDateByPipelineId(pipelineId, ActDateType.ActDateStart_FIELD)))
+ if (!string.IsNullOrEmpty(GetDateByPipelineId(pipelineId, ActDateType.ActDateStart_FIELD)))
{
ActStartDate = Convert.ToDateTime(GetDateByPipelineId(pipelineId, ActDateType.ActDateStart_FIELD));
}
@@ -100,22 +100,22 @@ namespace BLL
{
ActEndDate = Convert.ToDateTime(GetDateByPipelineId(pipelineId, ActDateType.ActDateEnd_FIELD));
}
- if (PlanStartDate==null|| PlanEndDate==null)
+ if (PlanStartDate == null || PlanEndDate == null)
{
mdoel.State = 0;
UpdatePipeline(mdoel);
return;
}
- if (ActStartDate==null&&DateTime.Compare(DateTime.Now,PlanStartDate.Value)<0)
+ if (ActStartDate == null && DateTime.Compare(DateTime.Now, PlanStartDate.Value) < 0)
{
mdoel.State = 0;
}
- else if(ActStartDate == null && DateTime.Compare(DateTime.Now, PlanStartDate.Value) > 0)
+ else if (ActStartDate == null && DateTime.Compare(DateTime.Now, PlanStartDate.Value) > 0)
{
mdoel.State = 1;
}
- else if (ActStartDate!=null && DateTime.Compare(ActStartDate.Value, PlanStartDate.Value)<0 && ActEndDate==null)
+ else if (ActStartDate != null && DateTime.Compare(ActStartDate.Value, PlanStartDate.Value) < 0 && ActEndDate == null)
{
mdoel.State = 2;
}
@@ -138,7 +138,7 @@ namespace BLL
///
public static string GetDateByPipelineId(object pipelineId, ActDateType actDateType)
{
- string result ="";
+ string result = "";
string _pipelineId = pipelineId.ToString();
string ActDateStart_Shop = "";
string ActDateEnd_Shop = "";
@@ -149,15 +149,16 @@ namespace BLL
var joints = BLL.WeldJointService.GetWeldJointsByPipelineId(_pipelineId);
int joint_Shop_count = joints.Where(x => x.JointAttribute == "预制口").Count();
int joint_Field_count = joints.Where(x => x.JointAttribute == "安装口").Count();
- var TaskJoints = (from x in Funs.DB.View_HJGL_WeldingTask where x.ProjectId == pipemodel.ProjectId && x.PipelineCode == pipemodel.PipelineCode && x.WeldingDailyId!=null
- select x).ToList();
+ var TaskJoints = (from x in Funs.DB.View_HJGL_WeldingTask
+ where x.ProjectId == pipemodel.ProjectId && x.PipelineCode == pipemodel.PipelineCode && x.WeldingDailyId != null
+ select x).ToList();
var TaskJoints_Shop = TaskJoints.Where(x => x.JointAttribute == "预制口").ToList();
- var TaskJoints_Field= TaskJoints.Where(x => x.JointAttribute == "安装口").ToList();
- if (TaskJoints_Shop.Count>0)
+ var TaskJoints_Field = TaskJoints.Where(x => x.JointAttribute == "安装口").ToList();
+ if (TaskJoints_Shop.Count > 0)
{
ActDateStart_Shop = TaskJoints_Shop.OrderBy(x => x.TaskDate).First().TaskDate.Value.ToShortDateString();
}
- if (joint_Shop_count== TaskJoints_Shop.Count&& joint_Shop_count>0)
+ if (joint_Shop_count == TaskJoints_Shop.Count && joint_Shop_count > 0)
{
ActDateEnd_Shop = TaskJoints_Shop.OrderByDescending(x => x.TaskDate).First().TaskDate.Value.Date.ToShortDateString();
}
@@ -194,14 +195,14 @@ namespace BLL
///
public static void UpdataDateByWeldJointId(string WeldJointId)
{
-
- DateTime ? ActDateStart_FIELD = new DateTime();
- DateTime ? ActDateEnd_FIELD = new DateTime();
+
+ DateTime? ActDateStart_FIELD = new DateTime();
+ DateTime? ActDateEnd_FIELD = new DateTime();
string JointAttribute = "";
- var model_joint=BLL.WeldJointService.GetWeldJointByWeldJointId(WeldJointId);
- if (model_joint!=null)
+ var model_joint = BLL.WeldJointService.GetWeldJointByWeldJointId(WeldJointId);
+ if (model_joint != null)
{
JointAttribute = model_joint.JointAttribute;
var model_pipeline = GetPipelineByPipelineId(model_joint.PipelineId);
@@ -211,7 +212,7 @@ namespace BLL
select x).ToList();
switch (JointAttribute)
{
-
+
case "安装口":
int joint_Field_count = joints.Where(x => x.JointAttribute == "安装口").Count();
var TaskJoints_Field = TaskJoints.Where(x => x.JointAttribute == "安装口").ToList();
@@ -231,8 +232,8 @@ namespace BLL
break;
}
- }
-
+ }
+
}
///
/// 根据管线code获取管线信息
@@ -251,8 +252,8 @@ namespace BLL
public static List GetHJGL_PipelineList(HJGL_Pipeline model)
{
var db = Funs.DB;
- var pipelineList =( from x in Funs.DB.HJGL_Pipeline
- where
+ var pipelineList = (from x in Funs.DB.HJGL_Pipeline
+ where
(string.IsNullOrEmpty(model.ProjectId) || x.ProjectId.Contains(model.ProjectId))
&& (string.IsNullOrEmpty(model.UnitWorkId) || x.UnitWorkId.Contains(model.UnitWorkId))
&& (string.IsNullOrEmpty(model.PipelineCode) || x.PipelineCode.Contains(model.PipelineCode))
@@ -260,15 +261,15 @@ namespace BLL
&& (string.IsNullOrEmpty(model.DesignPress) || x.DesignPress.Contains(model.DesignPress))
/* && (string.IsNullOrEmpty(model.MaterialCode) || x.MaterialCode.Contains(model.MaterialCode))*/
select x).ToList();
- if (model.IsFinished!=null)
+ if (model.IsFinished != null)
{
- if (model.IsFinished==true)
+ if (model.IsFinished == true)
{
- pipelineList= pipelineList.Where(x => x.IsFinished == true).ToList();
+ pipelineList = pipelineList.Where(x => x.IsFinished == true).ToList();
}
else
{
- pipelineList = pipelineList.Where(x => x.IsFinished == false||x.IsFinished==null).ToList();
+ pipelineList = pipelineList.Where(x => x.IsFinished == false || x.IsFinished == null).ToList();
}
@@ -338,16 +339,17 @@ namespace BLL
///
///
///
- public static List GetNoComPipelinesByUnitWordId(string unitworkId)
+ public static List GetNoComPipelinesByUnitWordId(string unitworkId)
{
var q = (from x in Funs.DB.View_HJGL_WeldJoint
- where x.UnitWorkId == unitworkId
- select new {
- PipelineId=x.PipelineId,
- WeldingDate=x.WeldingDate,
- PipelineCode=x.PipelineCode
+ where x.UnitWorkId == unitworkId
+ select new
+ {
+ PipelineId = x.PipelineId,
+ WeldingDate = x.WeldingDate,
+ PipelineCode = x.PipelineCode
}).Distinct();
- if (q.Count()==0)
+ if (q.Count() == 0)
{
return new List();
}
@@ -359,10 +361,10 @@ namespace BLL
Count = (from x2 in g where x2.WeldingDate != null && x2.WeldingDate != "" select x2).Count(),
};
var NowComPipelineCode = (from x in q
- join y in noCompipeline on x.PipelineId equals y.PipelineId
- where y.Count == 0
- select x.PipelineCode
- ).Distinct(). ToList();
+ join y in noCompipeline on x.PipelineId equals y.PipelineId
+ where y.Count == 0
+ select x.PipelineCode
+ ).Distinct().ToList();
return NowComPipelineCode;
}
///
@@ -370,7 +372,7 @@ namespace BLL
///
///
///
- public static void DownPipeArea_SHOPFile(string projectid,string unitworkid)
+ public static void DownPipeArea_SHOPFile(string projectid, string unitworkid)
{
string templatePath = Funs.RootPath + @"File\Excel\DataOut\WeldingPlanDataOut_SHOP.xlsx";
string path = Funs.RootPath + @"File\Excel\DataOut\WeldingPlanDataOut_SHOP.xlsx";
@@ -442,7 +444,7 @@ namespace BLL
["Data"] = tb,
};
MiniExcel.SaveAsByTemplate(path, templatePath, value);
- HJGL_DataImportService.DownFile(path.Replace(Funs.RootPath,"") , "焊接施工计划(预制).xlsx");
+ HJGL_DataImportService.DownFile(path.Replace(Funs.RootPath, ""), "焊接施工计划(预制).xlsx");
File.Delete(path);
}
///
@@ -451,7 +453,7 @@ namespace BLL
///
///
public static void DownPipeArea_FIELDFile(string projectid, string unitworkid)
- {
+ {
string templatePath = Funs.RootPath + @"File\Excel\DataOut\WeldingPlanDataOut2.xlsx";
string path = Funs.RootPath + @"File\Excel\DataOut\WeldingPlanDataOut2.xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd-HH-mm}", DateTime.Now) + ".xlsx");
@@ -555,10 +557,10 @@ namespace BLL
q = Funs.DB.HJGL_Pipeline.FirstOrDefault(x => x.PipelineCode == pipelineCode && x.UnitWorkId == unitWorkId);
return q;
}
- ///
- /// 添加管线信息
- ///
- ///
+ ///
+ /// 添加管线信息
+ ///
+ ///
public static void AddPipeline(Model.HJGL_Pipeline pipeline)
{
Model.SGGLDB db = Funs.DB;
@@ -589,7 +591,7 @@ namespace BLL
newPipeline.PCtype = pipeline.PCtype;
newPipeline.MaterialId = pipeline.MaterialId;
newPipeline.State = pipeline.State;
- newPipeline.FlowingSection=pipeline.FlowingSection;
+ newPipeline.FlowingSection = pipeline.FlowingSection;
db.HJGL_Pipeline.InsertOnSubmit(newPipeline);
db.SubmitChanges();
}
@@ -755,7 +757,7 @@ namespace BLL
}
}
- public static void BindTreeNodes(FineUIPro.TreeNode node,string pipecode,string ProjectId,int pageSize)
+ public static void BindTreeNodes(FineUIPro.TreeNode node, string pipecode, string ProjectId, int pageSize)
{
var pipeline = (from x in Funs.DB.HJGL_Pipeline
where x.ProjectId == ProjectId && x.UnitWorkId == node.NodeID
@@ -798,7 +800,7 @@ namespace BLL
///
///
///
- public static void BindTreeNodes(FineUIPro.TreeNode node, string pipecode,string MaterialCode, string ProjectId, int pageSize)
+ public static void BindTreeNodes(FineUIPro.TreeNode node, string pipecode, string MaterialCode, string ProjectId, int pageSize)
{
//var pipeline = (from x in Funs.DB.HJGL_Pipeline
// where x.ProjectId == ProjectId && x.UnitWorkId == node.NodeID
@@ -806,8 +808,8 @@ namespace BLL
// orderby x.PipelineCode
// select x).ToList();
var pipeline = (from x in Funs.DB.HJGL_Pipeline
- join y in Funs.DB.HJGL_PipeLineMat.Where(m => m.MaterialCode.Contains(MaterialCode)) on x.PipelineId equals y.PipelineId
- where x.ProjectId == ProjectId && x.UnitWorkId == node.NodeID && x.PipelineCode.Contains(pipecode)
+ join y in Funs.DB.HJGL_PipeLineMat.Where(m => m.MaterialCode.Contains(MaterialCode)) on x.PipelineId equals y.PipelineId
+ where x.ProjectId == ProjectId && x.UnitWorkId == node.NodeID && x.PipelineCode.Contains(pipecode)
select x).Distinct().ToList();
var hJGL_WeldJoints = (from x in Funs.DB.HJGL_WeldJoint where x.ProjectId == ProjectId select x).ToList();
int pageindex = int.Parse(node.CommandName.Split('|')[0]);
@@ -837,23 +839,29 @@ namespace BLL
}
}
}
- public static void BindTreeNodes(FineUIPro.TreeNode node,bool isExitWPQId, string pipecode, string ProjectId, int pageSize)
+ public static void BindTreeNodes(FineUIPro.TreeNode node, bool isExitWPQId, string pipecode, string ProjectId, int pageSize, string pipeArea)
{
+ string pipeAreasql = string.Empty;
+ if (pipeArea != BLL.Const._Null)
+ {
+ pipeAreasql += " AND PipeArea='" + pipeArea + "'";
+ }
if (isExitWPQId)
{
- string strSql = "SELECT distinct PipelineId, PipelineCode FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL AND UnitWorkId =@UnitWorkId AND WPQId IS NULL";
+ string strSql = "SELECT distinct PipelineId, PipelineCode FROM View_HJGL_WeldJoint WHERE IsTwoJoint IS NULL AND UnitWorkId =@UnitWorkId AND WPQId IS NULL" + pipeAreasql;
List listStr = new List();
listStr.Add(new SqlParameter("@UnitWorkId", node.NodeID));
- if (!string .IsNullOrEmpty(pipecode))
+ if (!string.IsNullOrEmpty(pipecode))
{
strSql += " and PipelineCode=@PipelineCode ";
- listStr.Add(new SqlParameter("@PipelineCode", ""+ pipecode + ""));
+ listStr.Add(new SqlParameter("@PipelineCode", "" + pipecode + ""));
}
+ strSql += " order by PipelineCode";
SqlParameter[] parameter = listStr.ToArray();
System.Data.DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
var pipeline = Funs.TableToEntity(dt);
-
+
var hJGL_WeldJoints = (from x in Funs.DB.HJGL_WeldJoint where x.ProjectId == ProjectId select x).ToList();
int pageindex = int.Parse(node.CommandName.Split('|')[0]);
int pageCount = int.Parse(node.CommandName.Split('|')[1]);
@@ -890,6 +898,10 @@ namespace BLL
&& x.PipelineCode.Contains(pipecode)
orderby x.PipelineCode
select x).ToList();
+ if (pipeArea != BLL.Const._Null)
+ {
+ pipeline = pipeline.Where(x => x.PipeArea == pipeArea).ToList();
+ }
var hJGL_WeldJoints = (from x in Funs.DB.HJGL_WeldJoint where x.ProjectId == ProjectId select x).ToList();
int pageindex = int.Parse(node.CommandName.Split('|')[0]);
int pageCount = int.Parse(node.CommandName.Split('|')[1]);
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
index cfd95d31..03a74df0 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
@@ -9,7 +9,7 @@ namespace BLL
{
public static class WeldJointService
{
- public static List hJGL_WeldJoints
+ public static List hJGL_WeldJoints
{
get;
@@ -66,14 +66,14 @@ namespace BLL
}
public static List GetWeldJointsByPipelineId(string PipelineId)
{
- var q = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == PipelineId select x).ToList();
+ var q = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == PipelineId select x).ToList();
return q;
}
public static Model.HJGL_WeldJoint GetWeldJointsByWeldJointCode(string PipelineId, string WeldJointCode)
- {
- var q=(from x in Funs.DB.HJGL_WeldJoint where x.PipelineId==PipelineId && x.WeldJointCode==WeldJointCode select x ).FirstOrDefault();
-
+ {
+ var q = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == PipelineId && x.WeldJointCode == WeldJointCode select x).FirstOrDefault();
+
return q;
}
@@ -87,7 +87,6 @@ namespace BLL
Model.SGGLDB db = Funs.DB;
Model.HJGL_WeldJoint newWeldJoint = new Model.HJGL_WeldJoint
{
- WeldJointId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint)),
ProjectId = weldJoint.ProjectId,
PipelineId = weldJoint.PipelineId,
PipelineCode = weldJoint.PipelineCode,
@@ -97,7 +96,7 @@ namespace BLL
Material2Id = weldJoint.Material2Id,
Thickness = weldJoint.Thickness,
Dia = weldJoint.Dia,
- DNDia=weldJoint.DNDia,
+ DNDia = weldJoint.DNDia,
Size = weldJoint.Size,
DetectionTypeId = weldJoint.DetectionTypeId,
JointArea = weldJoint.JointArea,
@@ -120,18 +119,27 @@ namespace BLL
Remark = weldJoint.Remark,
IsTwoJoint = weldJoint.IsTwoJoint,
SubmitMan = weldJoint.SubmitMan,
- TwoJointType=weldJoint.TwoJointType
+ TwoJointType = weldJoint.TwoJointType
};
-
+ if (!string.IsNullOrEmpty(weldJoint.WeldJointId))
+ {
+ newWeldJoint.WeldJointId = weldJoint.WeldJointId;
+ }
+ else
+ {
+ newWeldJoint.WeldJointId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint));
+ }
db.HJGL_WeldJoint.InsertOnSubmit(newWeldJoint);
db.SubmitChanges();
}
public static void AddBulkWeldJoint(List weldJoints)
{
- Model.SGGLDB db = Funs.DB;
- db.HJGL_WeldJoint.InsertAllOnSubmit(weldJoints);
- db.SubmitChanges();
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ db.HJGL_WeldJoint.InsertAllOnSubmit(weldJoints);
+ db.SubmitChanges();
+ }
}
///
@@ -246,6 +254,24 @@ namespace BLL
}
}
+ ///
+ /// 二次焊口施工经理审核
+ ///
+ ///
+ ///
+ ///
+ public static void UpdateJointAudit2(string jointId, string auditMan, DateTime? auditDate)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.HJGL_WeldJoint newWeldJoint = db.HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == jointId);
+ if (newWeldJoint != null)
+ {
+ newWeldJoint.AuditMan2 = auditMan;
+ newWeldJoint.AuditDate2 = auditDate;
+ db.SubmitChanges();
+ }
+ }
+
///
/// 根据主键删除焊口信息
///
@@ -267,7 +293,7 @@ namespace BLL
public static void DeleteWeldJointByPipelineId(string pipelineId)
{
Model.SGGLDB db = Funs.DB;
- var weldline = db.HJGL_WeldJoint.Where(e => e.PipelineId == pipelineId);
+ var weldline = db.HJGL_WeldJoint.Where(e => e.PipelineId == pipelineId);
if (weldline != null)
{
db.HJGL_WeldJoint.DeleteAllOnSubmit(weldline);
@@ -279,7 +305,7 @@ namespace BLL
/// 根据unitworkid删除焊口
///
///
- public static void DeleteWeldJointByUnitWorkId(string unitworkId)
+ public static void DeleteWeldJointByUnitWorkId(string unitworkId)
{
var oldPipeline = BLL.PipelineService.GetPipelinesByUnitWordId(unitworkId);
if (oldPipeline != null)
@@ -335,14 +361,14 @@ namespace BLL
{
Model.SGGLDB db = Funs.DB;
var q = (from x in db.HJGL_WeldJoint
- join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId into tt
- from g in tt.DefaultIfEmpty()
- where g.UnitWorkId == UnitWorkId
+ join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId into tt
+ from g in tt.DefaultIfEmpty()
+ where g.UnitWorkId == UnitWorkId
select x).ToList();
return q;
}
- public static List GetWeldJointByProjectid(string ProjectId)
+ public static List GetWeldJointByProjectid(string ProjectId)
{
Model.SGGLDB db = Funs.DB;
@@ -350,7 +376,7 @@ namespace BLL
where x.ProjectId == ProjectId
select x).ToList();
return q;
- }
+ }
///
/// 根据焊口Id获取插入焊口数
@@ -427,13 +453,14 @@ namespace BLL
public static List GetViewWeldJointsBymodel(Model.View_HJGL_WeldJoint model)
{
var q = (from x in Funs.DB.View_HJGL_WeldJoint
- where
+ where
(string.IsNullOrEmpty(model.ProjectId) || x.ProjectId.Contains(model.ProjectId))
&& (string.IsNullOrEmpty(model.UnitWorkId) || x.UnitWorkId.Contains(model.UnitWorkId))
&& (string.IsNullOrEmpty(model.PipelineId) || x.PipelineId.Contains(model.PipelineId))
&& (string.IsNullOrEmpty(model.PipelineCode) || x.PipelineCode.Contains(model.PipelineCode))
&& (string.IsNullOrEmpty(model.WeldJointCode) || x.WeldJointCode.Contains(model.WeldJointCode))
- orderby x.WeldJointCode select x).AsParallel().ToList();
+ orderby x.WeldJointCode
+ select x).AsParallel().ToList();
return q;
}
///
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
index 8949031b..24e91bfd 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldingDailyService.cs
@@ -322,6 +322,14 @@ namespace BLL
updateWeldJoint.BackingWelderId = null;
BLL.WeldJointService.UpdateWeldJoint(updateWeldJoint);
+ var weldTask = BLL.WeldTaskService.GetWeldTaskByWeldJointId(weldJointId);
+ if (weldTask != null)
+ {
+ weldTask.CoverWelderId = null;
+ weldTask.BackingWelderId = null;
+ BLL.WeldTaskService.UpdateWeldTask(weldTask);
+ }
+
var pointBatchItems = from x in Funs.DB.HJGL_Batch_PointBatchItem where x.WeldJointId == weldJointId select x;
string pointBatchId = pointBatchItems.FirstOrDefault().PointBatchId;
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs
new file mode 100644
index 00000000..65e9c06e
--- /dev/null
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogHJGLService.cs
@@ -0,0 +1,69 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ public class ConstructionLogHJGLService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 获取施工日志焊接数据明细列表
+ ///
+ ///
+ ///
+ ///
+ public static List getListData(string ConstructionLogId)
+ {
+ return (from x in db.ZHGL_ConstructionLogHJGL
+ where x.ConstructionLogId == ConstructionLogId
+ select x).ToList();
+ }
+
+ ///
+ /// 增加施工日志焊接数据明细
+ ///
+ /// 施工日志焊接数据明细实体
+ public static void AddConstructionLogHJGL(Model.ZHGL_ConstructionLogHJGL constructionLogHJGL)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.ZHGL_ConstructionLogHJGL newConstructionLogHJGL = new Model.ZHGL_ConstructionLogHJGL();
+ newConstructionLogHJGL.ConstructionLogHJGLId = constructionLogHJGL.ConstructionLogHJGLId;
+ newConstructionLogHJGL.ConstructionLogId = constructionLogHJGL.ConstructionLogId;
+ newConstructionLogHJGL.UnitWorkId = constructionLogHJGL.UnitWorkId;
+ newConstructionLogHJGL.TodayCompleteSize = constructionLogHJGL.TodayCompleteSize;
+ newConstructionLogHJGL.TotalCompleteSize = constructionLogHJGL.TotalCompleteSize;
+ newConstructionLogHJGL.TotalSize = constructionLogHJGL.TotalSize;
+ newConstructionLogHJGL.TotalRate = constructionLogHJGL.TotalRate;
+ newConstructionLogHJGL.TomorrowPlanSize = constructionLogHJGL.TomorrowPlanSize;
+
+ db.ZHGL_ConstructionLogHJGL.InsertOnSubmit(newConstructionLogHJGL);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据月报id删除对应的所有施工日志焊接数据明细
+ ///
+ /// 施工日志焊接数据明细编号
+ public static void DeleteConstructionLogHJGLsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var q = (from x in db.ZHGL_ConstructionLogHJGL where x.ConstructionLogId == ConstructionLogId select x).ToList();
+ if (q.Count() > 0)
+ {
+ db.ZHGL_ConstructionLogHJGL.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据月报id获取对应的所有施工日志焊接数据明细
+ ///
+ /// 施工日志焊接数据明细编号
+ public static List GetConstructionLogHJGLsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ return (from x in db.ZHGL_ConstructionLogHJGL where x.ConstructionLogId == ConstructionLogId orderby x.UnitWorkId select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/EditSpotCheck.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/EditSpotCheck.aspx.cs
index d999a89d..a3abb8b3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/EditSpotCheck.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/EditSpotCheck.aspx.cs
@@ -967,6 +967,12 @@ namespace FineUIPro.Web.CQMS.Check
foreach (var item in list)
{
Model.WBS_ControlItemAndCycle c = BLL.ControlItemAndCycleService.GetControlItemAndCycleById(item.ControlItemAndCycleId);
+ Model.WBS_ControlItemInit cInit = BLL.ControlItemInitService.GetControlItemInitByCode(c.InitControlItemCode);
+ bool isJDItem = false;
+ if (cInit != null && cInit.IsJDItem.HasValue)
+ {
+ isJDItem = cInit.IsJDItem.Value;
+ }
if (c != null)
{
if (!string.IsNullOrEmpty(c.HGForms) || !string.IsNullOrEmpty(c.SHForms))
@@ -980,7 +986,18 @@ namespace FineUIPro.Web.CQMS.Check
{
c.RealEndDate = DateTime.Now;
BLL.ControlItemAndCycleService.UpdateControlItemAndCycle(c);
- BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
+ if (isJDItem) //进度完成项
+ {
+ BLL.WorkPackageService.UpdateWorkPackageRealEndDate2(c.WorkPackageId);
+ }
+ else //非进度完成项
+ {
+ Model.WBS_WorkPackage workPackage = BLL.WorkPackageService.GetWorkPackageByWorkPackageId(c.WorkPackageId);
+ if (workPackage.RealEndDate == null) //分部分项还未生成实际完成时间
+ {
+ BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
+ }
+ }
}
else //检查多次
{
@@ -989,7 +1006,18 @@ namespace FineUIPro.Web.CQMS.Check
{
c.RealEndDate = DateTime.Now;
BLL.ControlItemAndCycleService.UpdateControlItemAndCycle(c);
- BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
+ if (isJDItem) //进度完成项
+ {
+ BLL.WorkPackageService.UpdateWorkPackageRealEndDate2(c.WorkPackageId);
+ }
+ else //非进度完成项
+ {
+ Model.WBS_WorkPackage workPackage = BLL.WorkPackageService.GetWorkPackageByWorkPackageId(c.WorkPackageId);
+ if (workPackage.RealEndDate == null) //分部分项还未生成实际完成时间
+ {
+ BLL.WorkPackageService.UpdateWorkPackageRealEndDate(c.WorkPackageId);
+ }
+ }
}
}
}
diff --git a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx
index ab645096..19e89f0d 100644
--- a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx
@@ -39,6 +39,15 @@
EmptyText="输入查询条件" Width="190px" LabelWidth="80px"
LabelAlign="Right">
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.cs b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.cs
index 2a96a30e..f7260c40 100644
--- a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.cs
@@ -191,11 +191,15 @@ namespace FineUIPro.Web.CQMS.PersonManage
rootNode.Text = item.UnitName;
rootNode.EnableClickEvent = true;
this.tvControlItem.Nodes.Add(rootNode);
- var getWelders = (from x in Funs.DB.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkPostId == Const.WorkPost_Welder && x.States == Const.ProjectPersonStates_1 && x.UnitId == item.UnitId select x).ToList();
+ var getWelders = (from x in Funs.DB.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkPostId == Const.WorkPost_Welder && x.UnitId == item.UnitId select x).ToList();
if (!string.IsNullOrEmpty(txtQueryWelderCode.Text.Trim()))
{
getWelders = getWelders.Where(x => x.WelderCode.Contains(txtQueryWelderCode.Text.Trim())).ToList();
}
+ if (!string.IsNullOrEmpty(txtName.Text.Trim()))
+ {
+ getWelders = getWelders.Where(x => x.PersonName.Contains(txtName.Text.Trim())).ToList();
+ }
foreach (var sitem in getWelders)
{
TreeNode tn = new TreeNode();
diff --git a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.designer.cs
index 10b5cf05..3d1b574b 100644
--- a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManage.aspx.designer.cs
@@ -7,13 +7,11 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.CQMS.PersonManage
-{
-
-
- public partial class WelderManage
- {
-
+namespace FineUIPro.Web.CQMS.PersonManage {
+
+
+ public partial class WelderManage {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// panelLeftRegion 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelLeftRegion;
-
+
///
/// Toolbar3 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar3;
-
+
///
/// txtQueryWelderCode 控件。
///
@@ -67,7 +65,25 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtQueryWelderCode;
-
+
+ ///
+ /// Toolbar4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar4;
+
+ ///
+ /// txtName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtName;
+
///
/// btnQuery 控件。
///
@@ -76,7 +92,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnQuery;
-
+
///
/// tvControlItem 控件。
///
@@ -85,7 +101,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tree tvControlItem;
-
+
///
/// panelCenterRegion 控件。
///
@@ -94,7 +110,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelCenterRegion;
-
+
///
/// Toolbar1 控件。
///
@@ -103,7 +119,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// ToolbarFill2 控件。
///
@@ -112,7 +128,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill2;
-
+
///
/// btnEdit 控件。
///
@@ -121,7 +137,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnEdit;
-
+
///
/// btnDelete 控件。
///
@@ -130,7 +146,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnDelete;
-
+
///
/// SimpleForm1 控件。
///
@@ -139,7 +155,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// drpUnitId 控件。
///
@@ -148,7 +164,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label drpUnitId;
-
+
///
/// txtWelderName 控件。
///
@@ -157,7 +173,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtWelderName;
-
+
///
/// txtWelderCode 控件。
///
@@ -166,7 +182,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtWelderCode;
-
+
///
/// rblSex 控件。
///
@@ -175,7 +191,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label rblSex;
-
+
///
/// txtBirthday 控件。
///
@@ -184,7 +200,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtBirthday;
-
+
///
/// txtCertificateCode 控件。
///
@@ -193,7 +209,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtCertificateCode;
-
+
///
/// txtWelderLevel 控件。
///
@@ -202,7 +218,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtWelderLevel;
-
+
///
/// cbIsOnDuty 控件。
///
@@ -211,7 +227,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.CheckBox cbIsOnDuty;
-
+
///
/// txtCertificateLimitTime 控件。
///
@@ -220,7 +236,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtCertificateLimitTime;
-
+
///
/// Grid1 控件。
///
@@ -229,7 +245,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// Toolbar2 控件。
///
@@ -238,7 +254,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// txtQualificationItem 控件。
///
@@ -247,7 +263,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtQualificationItem;
-
+
///
/// ToolbarFill1 控件。
///
@@ -256,7 +272,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// btnNew 控件。
///
@@ -265,7 +281,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnNew;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -274,7 +290,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -283,7 +299,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -292,7 +308,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -301,7 +317,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Menu1 控件。
///
@@ -310,7 +326,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuAudit 控件。
///
@@ -319,7 +335,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuAudit;
-
+
///
/// btnMenuEdit 控件。
///
@@ -328,7 +344,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuEdit;
-
+
///
/// btnMenuDelete 控件。
///
@@ -337,7 +353,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuDelete;
-
+
///
/// btnView 控件。
///
@@ -346,7 +362,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnView;
-
+
///
/// Menu2 控件。
///
@@ -355,7 +371,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu2;
-
+
///
/// btnMenuTreeAudit 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs
index f54529fa..e72eadea 100644
--- a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs
@@ -139,7 +139,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
{
string PersonId = Request.Params["PersonId"];
var q = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.WelderCode == this.txtWelderCode.Text.Trim()
- && (x.PersonId != PersonId || (PersonId == null && PersonId != null)));
+ && (x.PersonId != PersonId || (PersonId == null && PersonId != null)) && x.ProjectId == this.CurrUser.LoginProjectId);
if (q != null)
{
Alert.ShowInTop("焊工号已经存在!", MessageBoxIcon.Warning);
@@ -170,7 +170,18 @@ namespace FineUIPro.Web.CQMS.PersonManage
//newWelder.Sex = this.rblSex.SelectedValue;
//newWelder.Birthday = Funs.GetNewDateTime(this.txtBirthday.Text.Trim());
newWelder.IdentityCard = this.txtIdentityCard.Text.Trim();
- newWelder.CertificateCode = this.txtCertificateCode.Text.Trim();
+ if (!string.IsNullOrEmpty(this.txtCertificateCode.Text.Trim()))
+ {
+ newWelder.CertificateCode = this.txtCertificateCode.Text.Trim();
+ }
+ else
+ {
+ var welder = BLL.SitePerson_PersonService.GetSitePersonByProjectIdPersonId(this.CurrUser.LoginProjectId, PersonId);
+ if (welder != null)
+ {
+ newWelder.CertificateCode = welder.IdentityCard;
+ }
+ }
//newWelder.CertificateLimitTime = Funs.GetNewDateTime(this.txtCertificateLimitTime.Text.Trim());
newWelder.WelderLevel = this.txtWelderLevel.Text.Trim();
//if (this.cbIsOnDuty.Checked)
@@ -184,10 +195,10 @@ namespace FineUIPro.Web.CQMS.PersonManage
newWelder.Remark = this.txtRemark.Text.Trim();
//newWelder.PhotoUrl = this.PhotoAttachUrl;
newWelder.Isprint = "0";
- // newWelder.IsUsed = true;
+ // newWelder.IsUsed = true;
if (!string.IsNullOrEmpty(PersonId))
{
- if (!BLL.WelderService.IsExisWelderCode(PersonId, this.txtWelderCode.Text))
+ if (!BLL.WelderService.IsExisWelderCode(PersonId, this.txtWelderCode.Text, this.CurrUser.LoginProjectId))
{
newWelder.PersonId = PersonId;
BLL.WelderService.UpdateWelder(newWelder);
@@ -201,7 +212,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
else
{
PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
- if (!BLL.WelderService.IsExisWelderCode(PersonId, this.txtWelderCode.Text))
+ if (!BLL.WelderService.IsExisWelderCode(PersonId, this.txtWelderCode.Text, this.CurrUser.LoginProjectId))
{
newWelder.PersonId = PersonId;
// BLL.WelderService.AddWelder(newWelder);
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx
index 2c8dd5ea..668efa6b 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx
@@ -77,6 +77,11 @@
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.cs
index d81af6f6..d1e2ae7e 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.cs
@@ -102,6 +102,10 @@ namespace FineUIPro.Web.CQMS.WBS
this.txtSHForms.Text = controlItem.SHForms;
this.txtStandard.Text = controlItem.Standard;
this.txtClauseNo.Text = controlItem.ClauseNo;
+ if (controlItem.IsJDItem == true)
+ {
+ this.cbIsJDItem.Checked = true;
+ }
}
}
}
@@ -130,6 +134,7 @@ namespace FineUIPro.Web.CQMS.WBS
newControlItem.SHForms = this.txtSHForms.Text.Trim();
newControlItem.Standard = this.txtStandard.Text.Trim();
newControlItem.ClauseNo = this.txtClauseNo.Text.Trim();
+ newControlItem.IsJDItem = this.cbIsJDItem.Checked;
if (Request.Params["type"] == "add")
{
BLL.ControlItemInitService.AddControlItemInit(newControlItem);
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.designer.cs
index 52473a32..e21574dd 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitEdit.aspx.designer.cs
@@ -147,6 +147,15 @@ namespace FineUIPro.Web.CQMS.WBS {
///
protected global::FineUIPro.TextBox txtClauseNo;
+ ///
+ /// cbIsJDItem 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox cbIsJDItem;
+
///
/// Toolbar1 控件。
///
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx
index 05076cf0..488f2215 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx
@@ -88,6 +88,7 @@
+
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx.cs
index 4bad54d8..b2a3a6e2 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/ControlItemInitSet.aspx.cs
@@ -455,7 +455,7 @@ namespace FineUIPro.Web.CQMS.WBS
///
private void BindGrid()
{
- string strSql = @"SELECT ControlItemCode,WorkPackageCode,ControlItemContent,ControlPoint,ControlItemDef,Weights,HGForms,SHForms,Standard,ClauseNo"
+ string strSql = @"SELECT ControlItemCode,WorkPackageCode,ControlItemContent,ControlPoint,ControlItemDef,Weights,HGForms,SHForms,Standard,ClauseNo,IsJDItem"
+ @" FROM WBS_ControlItemInit ";
List listStr = new List();
strSql += " where WorkPackageCode = @WorkPackageCode";
diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx
index 9a9ee096..843cbead 100644
--- a/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx
+++ b/SGGL/FineUIPro.Web/CQMS/WBS/WorkPackageSet2.aspx
@@ -41,6 +41,7 @@
+
@@ -115,7 +116,7 @@
+ Width="1000px" Height="460px" OnClose="Window1_Close">