USE [Configuration02_Def]
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=1)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 20, N'Rule Name', 1, 22)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=2)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 40, NULL, 2, 29)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=3)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 10, NULL, 3, 911)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=4)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 5, NULL, 4, 922)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=5)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 10, NULL, 5, 909)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=1 AND nRow=6)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (1, N'Left', 5, NULL, 6, 926)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=2 AND nRow=1)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (2, N'Left', 5, 'Row', 1, 927)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=2 AND nRow=2)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (2, N'Left', 10, 'VIZOR Group', 2, 920)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=2 AND nRow=3)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (2, N'Left', 10, NULL, 3, 921)
GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=3 AND nRow=1)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (3, N'Left', 20, NULL, 1, 22)

GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=3 AND nRow=2)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (3, N'Left', 10, NULL, 2, 17)

GO

IF NOT EXISTS(SELECT * FROM [dbo].[tblSystemLayouts] WHERE nID=3 AND nRow=3)
	INSERT [dbo].[tblSystemLayouts] ([nID], [tAlign], [nWidth], [tTitle], [nRow], [nDtsFieldID]) 
	VALUES (3, N'Left', 40, NULL, 3, 29)

GO

