TabellaTb -> Categoria Documentale

Nella Tabella "CategoriaDocumentaleTb" devono essere presenti le voci equivalenti al Tipo di Comunicazione gestito nell' App.

E_TIPO.EVENTO = 0
E_TIPO.RIUNIONE = 1
E_TIPO.AMMINISTRAZIONE = 2
E_TIPO.FORMAZIONE = 3
E_TIPO.INFORMATICA = 4
E_TIPO.REGOLAMENTO = 5
E_TIPO.ALTRO = 6

declare @IDAzienda uniqueidentifier = 'xxxx-xxxxx-xxxxxx-xxxxxx';

INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'EVENTO','0',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'RIUNIONE','1',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'AMMINISTRAZIONE','2',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'FORMAZIONE','3',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'INFORMATICA','4',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'REGOLAMENTO','5',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
INSERT INTO [dbo].[TabellaTb] ([Id], DesTipoTabella, [Descrizione1],[Codice], [IsCheck1],[IsCheck2],[IsCheck3],[IsPredefinito], [IdAzienda] ,[DataCreazione] ,[UtenteCreazione]  ,[IsEliminato], IdUtenteCreazione) VALUES (newid(),'CATEGORIA_DOCUMENTALE', 'ALTRO','6',0,0,0,0,@IdAzienda, getdate(), 'T-SQL',0, '00000000-0000-0000-0000-000000000000')
GO


Revisione #10
Creato 2026-09-14 12:56:07 UTC da Admin
Aggiornato 2026-09-24 13:01:02 UTC da Admin