﻿<?xml version="1.0" encoding="utf-8"?>
<ReportsExport>
  <Reports>
    <Report id="cdd6d0b7-5c2b-4870-b28f-86f994b67fe0" codekey="Debeka_Export_Test_content" categoryCodekey="TestsAndQuestions" name="Exporte für Workday - Testexport Inhaltsdaten" description="">
      <MetaData created="2024-02-21T15:13:07" createdBy="Administrator VIWIS" modified="2024-02-22T17:15:35" modifiedBy="Administrator Debeka" />
      <ExecutionDetails format="TableResult" commandType="SqlCommandOrQuery" exportHandler="" adminControl="" exportMultipleTablesToSheets="False" datesWithTime="False" extraParams="" />
      <Mandators mandatorMode="OnlyOwner" mandator_id="6279bb24-f218-49e0-9155-7c1cb1dba226" mandatorName="Debeka" isStandard="False" isUsedByMenu="False" />
      <Roles>
        <Role id="90" />
      </Roles>
	  <command>
        SELECT 
		    'Test' AS 'Typ ',
            t.id AS 'Objekt-ID',
			i.title AS 'Titel',
			i.titleForLearners AS 'Titel für Lerner',
            i.description AS 'Beschreibung',
			i.tag AS 'Kennzeichen',
			CASE WHEN t.timeLimit &gt; 0 THEN t.timeLimit / 60 ELSE null END AS 'Maximale Zeit',
			dbo.fn_GetEducationTimeString(i.educationTime) AS 'Erwerbbare Bildungszeit',
			CASE
				WHEN i.learningType_id = 1 THEN 'Präsenzveranstaltung'
				WHEN i.learningType_id = 2 THEN 'Einzeltraining'
				WHEN i.learningType_id = 3 THEN 'Blended Learning'
				WHEN i.learningType_id = 4 THEN 'gesteuertes E-Learning'
				WHEN i.learningType_id = 5 THEN 'selbstgesteuertes E-Learning'
				WHEN i.learningType_id = 6 THEN 'Lernen am Arbeitsplatz'
			ELSE '-'
			END as 'Lernart',
			CASE
				WHEN i.learningContent = 'Insurance1' THEN 'Privat-Vorsorge-Lebens-/Rentenversicherung'
				WHEN i.learningContent = 'Insurance2' THEN 'Privat-Vorsorge-Kranken-/Pflegeversicherung'
				WHEN i.learningContent = 'Insurance3' THEN 'Privat-Sach-/Schadenversicherung'
				WHEN i.learningContent = 'Insurance4' THEN 'Firmenkunden-Sach-/Schadenversicherung'
				WHEN i.learningContent = 'Insurance5General' THEN 'Spartenübergreifend'
				WHEN i.learningContent = 'Insurance6Business' THEN 'Firmenkunden-Vorsorge (bAV/Personenversicherung)'
				WHEN i.learningContent = 'Consulting' THEN 'Beratungskompetenz'
			ELSE '-'
			END as 'Lerninhalt'
        FROM tblTasTests t
            JOIN tblItems i on t.id = i.id
        WHERE i.deleted is null 
		  AND i.mandator_id = @current_mandator_id
        ORDER BY  title, titleForLearners
	</command>
	</Report>
  </Reports>
</ReportsExport>