增加施工月报

This commit is contained in:
2023-09-11 08:27:33 +08:00
parent b53e552cfa
commit 1d92a3e926
20 changed files with 4625 additions and 45 deletions
@@ -0,0 +1,219 @@
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','施工月报','PZHGL/InformationProject/ConstructionMonthReport.aspx',95,'0','Menu_PZHGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('AFEBD968-295E-4E43-8D86-508B1E0B784B','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('C6A2DA3D-163C-4FA5-8EF1-67F07CB72429','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('143704FE-D865-42A4-ABA6-EAB87466AA51','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('833F9250-7646-4C1B-97AA-70511DD04C31','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','保存',4)
GO
CREATE TABLE [dbo].[ZHGL_ConstructionMonthReport](
[ConstructionMonthReportId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[Month] [datetime] NULL,
[OwnerName] [nvarchar](100) NULL,
[ContractScope] [nvarchar](1000) NULL,
[ContractPriceAndPricingModel] [nvarchar](300) NULL,
[ContractStartDate] [datetime] NULL,
[ContractEndDate] [datetime] NULL,
[MainConstructionActivities] [nvarchar](3000) NULL,
[ProgressDeviationAndCauseAnalysis] [nvarchar](3000) NULL,
[KeyDeviationAndCauseAnalysis] [nvarchar](3000) NULL,
[TargetedCorrectiveMeasures] [nvarchar](3000) NULL,
[NextMonthWork] [nvarchar](3000) NULL,
[NeedCoordinateMatter] [nvarchar](3000) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_ZHGL_ConstructionMonthReport] PRIMARY KEY CLUSTERED
(
[ConstructionMonthReportId] 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_ConstructionMonthReport] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionMonthReport_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReport] CHECK CONSTRAINT [FK_ZHGL_ConstructionMonthReport_Base_Project]
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReport] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionMonthReport_Person_Persons] FOREIGN KEY([CompileMan])
REFERENCES [dbo].[Person_Persons] ([PersonId])
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReport] CHECK CONSTRAINT [FK_ZHGL_ConstructionMonthReport_Person_Persons]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ConstructionMonthReportId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'月报月份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'Month'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'业主名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'OwnerName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同范围' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ContractScope'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同价格和计价模式' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ContractPriceAndPricingModel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同施工开工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ContractStartDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同施工完工日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ContractEndDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工进度偏差及原因分析' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'ProgressDeviationAndCauseAnalysis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关键路径偏差及原因分析' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'KeyDeviationAndCauseAnalysis'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'针对性纠偏措施' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'TargetedCorrectiveMeasures'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下月施工工作要点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'NextMonthWork'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'需协调解决事项' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'NeedCoordinateMatter'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工月报表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReport'
GO
CREATE TABLE [dbo].[ZHGL_ConstructionMonthReportMainCost](
[ConstructionMonthReportMainCostId] [nvarchar](50) NOT NULL,
[ConstructionMonthReportId] [nvarchar](50) NULL,
[ContractConstructionCost] [decimal](18, 4) NULL,
[ThisRequestCost] [decimal](18, 4) NULL,
[TotalRequestCost] [decimal](18, 4) NULL,
[ThisCollection] [decimal](18, 4) NULL,
[TotalCollection] [decimal](18, 4) NULL,
[TotalCollectionRate] [decimal](9, 2) NULL,
CONSTRAINT [PK_ZHGL_ConstructionMonthReportMainCost] PRIMARY KEY CLUSTERED
(
[ConstructionMonthReportMainCostId] 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_ConstructionMonthReportMainCost] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionMonthReportMainCost_ZHGL_ConstructionMonthReport] FOREIGN KEY([ConstructionMonthReportId])
REFERENCES [dbo].[ZHGL_ConstructionMonthReport] ([ConstructionMonthReportId])
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReportMainCost] CHECK CONSTRAINT [FK_ZHGL_ConstructionMonthReportMainCost_ZHGL_ConstructionMonthReport]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'ConstructionMonthReportMainCostId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'外键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'ConstructionMonthReportId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同施工费' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'ContractConstructionCost'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月请款' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'ThisRequestCost'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计请款' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'TotalRequestCost'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月收款' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'ThisCollection'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计收款' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'TotalCollection'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计收款百分比' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost', @level2type=N'COLUMN',@level2name=N'TotalCollectionRate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'总包工程施工请款情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportMainCost'
GO
CREATE TABLE [dbo].[ZHGL_ConstructionMonthReportSubCost](
[ConstructionMonthReportSubCostId] [nvarchar](50) NOT NULL,
[ConstructionMonthReportId] [nvarchar](50) NULL,
[UnitId] [nvarchar](50) NULL,
[ContractAmount] [decimal](18, 4) NULL,
[ThisNeedPay] [decimal](18, 4) NULL,
[ThisRealPay] [decimal](18, 4) NULL,
[TotalNeedPay] [decimal](18, 4) NULL,
[TotalRealPay] [decimal](18, 4) NULL,
[TotalRealPayRate] [decimal](9, 2) NULL,
CONSTRAINT [PK_ZHGL_ConstructionMonthReportSubCost] PRIMARY KEY CLUSTERED
(
[ConstructionMonthReportSubCostId] 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_ConstructionMonthReportSubCost] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionMonthReportSubCost_Base_Unit] FOREIGN KEY([UnitId])
REFERENCES [dbo].[Base_Unit] ([UnitId])
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReportSubCost] CHECK CONSTRAINT [FK_ZHGL_ConstructionMonthReportSubCost_Base_Unit]
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReportSubCost] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionMonthReportSubCost_ZHGL_ConstructionMonthReport] FOREIGN KEY([ConstructionMonthReportId])
REFERENCES [dbo].[ZHGL_ConstructionMonthReport] ([ConstructionMonthReportId])
GO
ALTER TABLE [dbo].[ZHGL_ConstructionMonthReportSubCost] CHECK CONSTRAINT [FK_ZHGL_ConstructionMonthReportSubCost_ZHGL_ConstructionMonthReport]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'ConstructionMonthReportSubCostId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'外键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'ConstructionMonthReportId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'施工单位Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'UnitId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'合同金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'ContractAmount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月应付' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'ThisNeedPay'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'本月实付' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'ThisRealPay'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计应付' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'TotalNeedPay'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计实付' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'TotalRealPay'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'累计付款百分比' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost', @level2type=N'COLUMN',@level2name=N'TotalRealPayRate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分包工程施工付款情况表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionMonthReportSubCost'
GO
@@ -121,6 +121,19 @@ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('EB1E4B30-66E6-45E2-B8D8-8D8382E97E15','3A9039B2-20DC-47FA-A943-E3604FBBF699','保存',4)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','施工月报','PZHGL/InformationProject/ConstructionMonthReport.aspx',95,'0','Menu_PZHGL',0,1,1)
GO
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('AFEBD968-295E-4E43-8D86-508B1E0B784B','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','增加',1)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('C6A2DA3D-163C-4FA5-8EF1-67F07CB72429','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','修改',2)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('143704FE-D865-42A4-ABA6-EAB87466AA51','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','删除',3)
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
VALUES('833F9250-7646-4C1B-97AA-70511DD04C31','F50EDEF0-FCDE-4B84-8D30-1F16E03FE26F','保存',4)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('25AC041E-0B27-4D7C-860B-1A06518B6673','文件柜','',100,'0','Menu_PZHGL',0,0,1)
GO