49 lines
2.8 KiB
MySQL
49 lines
2.8 KiB
MySQL
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
|||
|
VALUES('D00B3C53-2972-4D24-B88F-B38880D4A24F','<EFBFBD>豸<EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><EFBFBD><EFBFBD>','JDGL/WBS/EquipmentMaterialType.aspx',5,'0','Menu_JDGL',0,1,1)
|
|||
|
GO
|
|||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
|||
|
VALUES('3B588E9C-B89C-466B-B1A6-A8986F04EBA6','D00B3C53-2972-4D24-B88F-B38880D4A24F','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',1)
|
|||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
|||
|
VALUES('9522CCE6-9F26-4C4B-84AC-708E7FC7F39D','D00B3C53-2972-4D24-B88F-B38880D4A24F','<EFBFBD><EFBFBD>',2)
|
|||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
|||
|
VALUES('D2F495A5-33D0-49B2-BEF5-BA96C9283D71','D00B3C53-2972-4D24-B88F-B38880D4A24F','ɾ<EFBFBD><EFBFBD>',3)
|
|||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
|||
|
VALUES('2AE8CA32-9218-41A1-AEFF-33B5EB416B08','D00B3C53-2972-4D24-B88F-B38880D4A24F','<EFBFBD><EFBFBD><EFBFBD><EFBFBD>',4)
|
|||
|
GO
|
|||
|
|
|||
|
|
|||
|
|
|||
|
CREATE TABLE [dbo].[WBS_EquipmentMaterialType](
|
|||
|
[EquipmentMaterialTypeId] [nvarchar](50) NOT NULL,
|
|||
|
[EquipmentMaterialTypeCode] [nvarchar](50) NULL,
|
|||
|
[EquipmentMaterialTypeName] [nvarchar](50) NULL,
|
|||
|
[Remark] [nvarchar](100) NULL,
|
|||
|
CONSTRAINT [PK_WBS_EquipmentMaterialType] PRIMARY KEY CLUSTERED
|
|||
|
(
|
|||
|
[EquipmentMaterialTypeId] 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
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeId'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeCode'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'EquipmentMaterialTypeName'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD><EFBFBD>ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType', @level2type=N'COLUMN',@level2name=N'Remark'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'<EFBFBD>豸<EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_EquipmentMaterialType'
|
|||
|
GO
|
|||
|
|
|||
|
|
|||
|
alter table WBS_CostControl add EquipmentMaterialTypeId nvarchar(50) null
|
|||
|
GO
|
|||
|
alter table WBS_CostControl add constraint FK_WBS_CostControl_WBS_EquipmentMaterialType
|
|||
|
foreign key (EquipmentMaterialTypeId) references WBS_EquipmentMaterialType (EquipmentMaterialTypeId)
|
|||
|
GO
|