USE [Resources02_Def]
GO

IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=250)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], 
	[nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (250, 0, N'Hidden Fields By Assignee Category', N'Hidden Fields By Assignee Category', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 
	64, 1, 1, N'', NULL, 0, 48);

GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=251)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], 
	[nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (251, 250, N'New Rule (251)', N'Student-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 64, 1, 1, N'', NULL, 0, 48);

GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=252)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], 
	[nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (252, 250, N'New Rule (252)', N'Employee-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 64, 1, 1, N'', NULL, 0, 48);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=253)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], 
	[nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (253, 250, N'New Rule (253)', N'Teacher-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 64, 1, 1, N'', NULL, 0, 48);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=254)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], 
	[nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (254, 250, N'New Rule (254)', N'Contractor-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 64, 1, 1, N'', NULL, 0, 48);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=255)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (255, 0, N'Hidden Fields per Track as', N'Hidden Fields per Track as', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_per_Track_as_255', 
	64, 1, 1, N'', NULL, 0, 49);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=256)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (256, 255, N'New Rule (256)', N'Container-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_per_Track_as_255', 64, 1, 1, N'', NULL, 0, 49);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=257)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (257, 0, N'Hidden Tabs by Track As', N'Hidden Tabs by Track As', N'%Value0%-%Value1%', N'tblWrk_Hidden_Tabs_by_Track_As_257', 64, 1, 1, N'', NULL, 0, 50);
	
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=258)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (258, 257, N'New Rule (258)', N'Container-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Tabs_by_Track_As_257', 64, 1, 1, N'', NULL, 0, 50);
	
GO

IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=259)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (259, 164, N'New Rule (259)', N'Container-', N'%Value0%-%Value1%', N'tblWrk_Hide_Fields_By_Track_As_164', 64, 1, 1, N'', NULL, 0, 31);

GO
	
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=260)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (260, 250, N'New Rule (260)', N'<Empty>-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Fields_By_Assignee_Category_250', 64, 1, 1, N'', NULL, 0, 48);
	
GO

GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=261)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (261, 0, N'Hide Field By Container', N'Hide Field By Container', N'%Value0%-%Value1%', N'tblWrk_Hide_Field_By_Container_261', 64, 1, 1, N'', NULL, 0, 51)
GO
IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=262)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (262, 261, N'New Rule (262)', N'Container-', N'%Value0%-%Value1%', N'tblWrk_Hide_Field_By_Container_261', 64, 1, 1, N'', NULL, 0, 51)
GO

