USE [HelpDesk02_Def]
GO

IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=50)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (50, 0, N'Hidden Tabs per Ticket Type', N'Hidden Tabs per Ticket Type', N'%Value0%-%Value1%', N'tblWrk_Hidden_Tabs_per_Ticket_Type_50', 64, 1, 1, N'', NULL, 0, 16);

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

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

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

IF NOT EXISTS ( SELECT * FROM [dbo].[tblRule]  WHERE nID=54)
	INSERT [dbo].[tblRule] ([nID], [nParentID], [tName], [tCaption], [tTmplNameRule], [tTableName], [nDBType], [nTrigger], [nState], [tDescription], [nValidationLevel], [bFinished], [nOrder]) 
	VALUES (54, 50, N'New Rule (54)', N'Problem-', N'%Value0%-%Value1%', N'tblWrk_Hidden_Tabs_per_Ticket_Type_50', 64, 1, 1, N'', NULL, 0, 16)

	