﻿<?xml version="1.0" encoding="utf-8"?>
<ReportsExport>
  <Reports>
    <Report id="48dc1b3a-e919-4178-9d74-024f9c764a70" codekey="Debeka_Export_WBT_content" categoryCodekey="LearningPrograms" name="Exporte für Workday - Lernprogrammexporte Inhaltsdaten" description="">
      <MetaData created="2024-02-21T11: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 
		    'Lernprogramm' 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',
			t.learningDuration AS 'Lerndauer',
			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 tblThemes 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>