﻿INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'B1F87873-FEC8-4BEC-8AB6-AFDEDB26ECEE', N'现场考勤人力', NULL, N'JDGL/SGManPower/ManPowerWork.aspx', 20, N'1BCD283A-F33C-488C-8FCA-F7B7B9C1A003', N'Menu_JDGL', '0', '0', '1');
INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'CE4D8228-3971-4F81-B992-5FC564CBFDA6', N'人力统计分析', NULL, N'JDGL/SGManPower/ManPowerStat.aspx', 30, N'1BCD283A-F33C-488C-8FCA-F7B7B9C1A003', N'Menu_JDGL', '0', '0', '1');
INSERT INTO [dbo].[Sys_Menu] ([MenuId], [MenuName], [Icon], [Url], [SortIndex], [SuperMenu], [MenuType], [IsOffice], [IsEnd], [IsUsed]) VALUES (N'D87CD627-A18C-4C5D-962D-424E582F2379', N'施工人力计划', NULL, N'JDGL/SGManPower/ManPowerPlan.aspx', 10, N'1BCD283A-F33C-488C-8FCA-F7B7B9C1A003', N'Menu_JDGL', '0', '0', '1');
go

INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'2DC82E2D-3578-445E-9AA2-11D65E3F8775', N'D87CD627-A18C-4C5D-962D-424E582F2379', N'删除', 3);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'856EA8BF-DE2D-4344-B265-780358C69F8D', N'D87CD627-A18C-4C5D-962D-424E582F2379', N'增加', 1);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'AC79636E-969A-42AB-82AC-19D3945EC703', N'D87CD627-A18C-4C5D-962D-424E582F2379', N'保存', 4);
INSERT INTO [dbo].[Sys_ButtonToMenu] ([ButtonToMenuId], [MenuId], [ButtonName], [SortIndex]) VALUES (N'FEDA3FD4-2436-460F-A75A-027D2D267CE4', N'D87CD627-A18C-4C5D-962D-424E582F2379', N'修改', 2);

go



--施工计划人力表
CREATE TABLE [dbo].[JDGL_SGManPower] (
  [Id] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [ProjectId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [UnitId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [UnitWorkId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [WorkPostId] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Version] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [Quantity] int  NULL,
  [PlanDate] datetime  NULL,
  [CompileMan] nvarchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [CompileTime] datetime  NULL,
  [Remarks] nvarchar(500) COLLATE Chinese_PRC_CI_AS  NULL,
  CONSTRAINT [PK_JDGL_SGManPower] PRIMARY KEY CLUSTERED ([Id])
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].[JDGL_SGManPower] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'主健',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'Id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目id',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'ProjectId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'单位id',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'UnitId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'装置id',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'UnitWorkId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'岗位id',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'WorkPostId'
GO

EXEC sp_addextendedproperty
'MS_Description', N'版本',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'Version'
GO

EXEC sp_addextendedproperty
'MS_Description', N'数量',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'Quantity'
GO

EXEC sp_addextendedproperty
'MS_Description', N'日期',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'PlanDate'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制人',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'CompileMan'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编制时间',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'CompileTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'备注',
'SCHEMA', N'dbo',
'TABLE', N'JDGL_SGManPower',
'COLUMN', N'Remarks'