Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
alter table dbo.ActionPlan_ActionPlanListApprove drop constraint FK_ActionPlan_ActionPlanListApprove_ActionPlan_ActionPlanList
|
||||
GO
|
||||
@@ -0,0 +1,4 @@
|
||||
alter table [dbo].[Information_EPSummaryReport] add Quarter int null
|
||||
GO
|
||||
alter table [dbo].[InformationProject_EPSummaryReport] add Quarter int null
|
||||
GO
|
||||
@@ -0,0 +1,12 @@
|
||||
alter table WBS_ControlItemInit add CheckAcceptType char(1) null
|
||||
GO
|
||||
alter table WBS_ControlItemProject add CheckAcceptType char(1) null
|
||||
GO
|
||||
alter table WBS_ControlItemAndCycle add CheckAcceptType char(1) null
|
||||
GO
|
||||
alter table WBS_WorkPackageInit add SubItemType char(1) null
|
||||
GO
|
||||
alter table WBS_WorkPackageProject add SubItemType char(1) null
|
||||
GO
|
||||
alter table WBS_WorkPackage add SubItemType char(1) null
|
||||
GO
|
||||
@@ -0,0 +1,44 @@
|
||||
ALTER VIEW [dbo].[View_InformationProject_ConstructionStandardSelectedItem]
|
||||
/*±ê×¼¹æ·¶±æÊ¶Ñ¡ÔñÏîÁбíÊÓͼ*/
|
||||
AS
|
||||
SELECT Item.ConstructionStandardSelectedItemId,
|
||||
Item.ConstructionStandardIdentifyId,
|
||||
Item.StandardId,
|
||||
Identify.ProjectId,
|
||||
List.StandardGrade,
|
||||
List.StandardNo,
|
||||
List.StandardName,
|
||||
List.AttachUrl,
|
||||
List.IsSelected1,
|
||||
List.IsSelected2,
|
||||
List.IsSelected3,
|
||||
List.IsSelected4,
|
||||
List.IsSelected5,
|
||||
List.IsSelected6,
|
||||
List.IsSelected7,
|
||||
List.IsSelected8,
|
||||
List.IsSelected9,
|
||||
List.IsSelected10,
|
||||
List.IsSelected11,
|
||||
List.IsSelected12,
|
||||
List.IsSelected13,
|
||||
List.IsSelected14,
|
||||
List.IsSelected15,
|
||||
List.IsSelected16,
|
||||
List.IsSelected17,
|
||||
List.IsSelected18,
|
||||
List.IsSelected19,
|
||||
List.IsSelected20,
|
||||
List.IsSelected21,
|
||||
List.IsSelected22,
|
||||
List.IsSelected23,
|
||||
List.IsSelected90
|
||||
FROM dbo.Law_HSSEStandardsList AS List
|
||||
LEFT JOIN dbo.InformationProject_ConstructionStandardSelectedItem AS Item ON List.StandardId =Item.StandardId
|
||||
LEFT JOIN dbo.InformationProject_ConstructionStandardIdentify AS Identify ON Item.ConstructionStandardIdentifyId =Identify.ConstructionStandardIdentifyId
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE Base_Certificate ADD Type VARCHAR(10) NULL
|
||||
GO
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1特岗;2安管;3特种设备;-1其他)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_Certificate', @level2type=N'COLUMN',@level2name=N'Type'
|
||||
GO
|
||||
@@ -0,0 +1,50 @@
|
||||
alter table [dbo].[WBS_WorkPackage] add PreJobId nvarchar(50) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add PlanProjectQuantity decimal(18,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add RealProjectQuantity decimal(18,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add PlanStartDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add PlanEndDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add RealStartDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add RealEndDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add Unit nvarchar(50) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add IsMileStone bit null
|
||||
GO
|
||||
|
||||
alter table [dbo].[WBS_UnitWork] add PlanStartDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_UnitWork] add PlanEndDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_UnitWork] add RealStartDate datetime null
|
||||
GO
|
||||
alter table [dbo].[WBS_UnitWork] add RealEndDate datetime null
|
||||
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
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
alter table [dbo].[WBS_WorkPackage] add PlanCost decimal(18,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add JDWeights decimal(9,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_WorkPackage] add PreWorkCode nvarchar(50) null
|
||||
GO
|
||||
|
||||
alter table [dbo].[WBS_UnitWork] add PlanCost decimal(18,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_UnitWork] add JDWeights decimal(9,2) null
|
||||
GO
|
||||
alter table [dbo].[WBS_ControlItemAndCycle] add RealEndDate datetime null
|
||||
GO
|
||||
|
||||
ALTER 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 '2' as Id,'0' as SupId ,'AZ' 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,WorkPackageCode+'-'+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, WorkPackageCode+'-'+PackageContent as Name,'WorkPackage' as WBSType,
|
||||
ProjectId from dbo.WBS_WorkPackage w where IsApprove=1 and SuperWorkPackageId is not null
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user