DROP PROCEDURE IF EXISTS uspGetEditableAdatszotarTipusok 
GO
  CREATE PROCEDURE uspGetEditableAdatszotarTipusok
    @pTanevId INT
  AS
  BEGIN
    SET NOCOUNT ON;

    SELECT 
       dt.ID AS Id
      ,dt.C_NAME AS Name
    FROM T_DICTIONARYTYPE_OSSZES dt
    WHERE dt.TOROLT = 'F'
      AND dt.C_ISCUSTOMITEMALLOWED = 'T'
      AND dt.C_TANEVID = @pTanevId
  END
GO


