进度和实施计划修改

This commit is contained in:
2023-07-26 09:35:27 +08:00
parent 0bdd467fdb
commit 71eac2c7a9
5 changed files with 113 additions and 15 deletions
+24 -1
View File
@@ -24,4 +24,27 @@ GO
alter table [dbo].[WBS_UnitWork] add RealStartDate datetime null
GO
alter table [dbo].[WBS_UnitWork] add RealEndDate datetime null
GO
GO
CREATE VIEW [dbo].[View_WBS]
AS
select '1' as Id,'0' as SupId ,'JZ' as Code, '½¨Öþ¹¤³Ì' as Name,'ProjectType' as WBSType,
ProjectId from dbo.WBS_UnitWork
Union
select UnitWorkId as Id,ProjectType as SupId ,UnitWorkCode as Code, UnitWorkCode+'-'+UnitWorkName as Name,'UnitWork' as WBSType,
ProjectId from dbo.WBS_UnitWork
Union all
select WorkPackageId as id,UnitWorkId as SupId,WorkPackageCode as Code, PackageContent as Name,'WorkPackage' as WBSType,
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,
ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is not null
GO