Compare commits
	
		
			No commits in common. 'master' and 'rpta_0.2_Release' have entirely different histories. 
		
	
	
		
			master
			...
			rpta_0.2_R
		
	
		
	
				 157 changed files with 1127 additions and 18075 deletions
			
			
		@ -1,740 +0,0 @@ | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?> | 
					 | 
				
			||||||
<transformation> | 
					 | 
				
			||||||
  <info> | 
					 | 
				
			||||||
    <name>excel_into_tmp_stip_meldung</name> | 
					 | 
				
			||||||
    <description/> | 
					 | 
				
			||||||
    <extended_description/> | 
					 | 
				
			||||||
    <trans_version/> | 
					 | 
				
			||||||
    <trans_type>Normal</trans_type> | 
					 | 
				
			||||||
    <trans_status>0</trans_status> | 
					 | 
				
			||||||
    <directory>/</directory> | 
					 | 
				
			||||||
    <parameters> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>Hochschule</name> | 
					 | 
				
			||||||
        <default_value>361</default_value> | 
					 | 
				
			||||||
        <description/> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>Modus</name> | 
					 | 
				
			||||||
        <default_value>2</default_value> | 
					 | 
				
			||||||
        <description>2=Löschen und Hinzufügen oder nur 1=Hinzufügen</description> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>PATH_TO_UPLOADFILE</name> | 
					 | 
				
			||||||
        <default_value>file:///home/superx/Downloads/Template_für_die_manuelle_Schnittstelle_des_STBB.xlsx</default_value> | 
					 | 
				
			||||||
        <description>Pfad zur  Exceldatei mit Quelldaten</description> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
    </parameters> | 
					 | 
				
			||||||
    <log> | 
					 | 
				
			||||||
      <trans-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <size_limit_lines/> | 
					 | 
				
			||||||
        <interval/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>TRANSNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>TRANSNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STATUS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STATUS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_READ</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_READ</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_WRITTEN</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_WRITTEN</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_UPDATED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_UPDATED</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_INPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_INPUT</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_OUTPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_OUTPUT</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_REJECTED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_REJECTED</name> | 
					 | 
				
			||||||
          <subject/> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ERRORS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ERRORS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STARTDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STARTDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ENDDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ENDDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOGDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOGDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>DEPDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>DEPDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>REPLAYDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>REPLAYDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_FIELD</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_FIELD</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>EXECUTING_SERVER</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>EXECUTING_SERVER</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>EXECUTING_USER</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>EXECUTING_USER</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CLIENT</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>CLIENT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </trans-log-table> | 
					 | 
				
			||||||
      <perf-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <interval/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>SEQ_NR</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>SEQ_NR</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOGDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOGDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>TRANSNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>TRANSNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STEPNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STEPNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STEP_COPY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STEP_COPY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_READ</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_READ</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_WRITTEN</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_WRITTEN</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_UPDATED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_UPDATED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_INPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_INPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_OUTPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_OUTPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_REJECTED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_REJECTED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ERRORS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ERRORS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>INPUT_BUFFER_ROWS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>INPUT_BUFFER_ROWS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OUTPUT_BUFFER_ROWS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OUTPUT_BUFFER_ROWS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </perf-log-table> | 
					 | 
				
			||||||
      <channel-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOGGING_OBJECT_TYPE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOGGING_OBJECT_TYPE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_NAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_NAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_COPY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_COPY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>REPOSITORY_DIRECTORY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>REPOSITORY_DIRECTORY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>FILENAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>FILENAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_REVISION</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_REVISION</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>PARENT_CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>PARENT_CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ROOT_CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ROOT_CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </channel-log-table> | 
					 | 
				
			||||||
      <step-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>TRANSNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>TRANSNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STEPNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STEPNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STEP_COPY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STEP_COPY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_READ</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_READ</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_WRITTEN</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_WRITTEN</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_UPDATED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_UPDATED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_INPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_INPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_OUTPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_OUTPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_REJECTED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_REJECTED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ERRORS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ERRORS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_FIELD</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>LOG_FIELD</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </step-log-table> | 
					 | 
				
			||||||
      <metrics-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_CODE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_CODE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_DESCRIPTION</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_DESCRIPTION</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_SUBJECT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_SUBJECT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_TYPE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_TYPE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>METRICS_VALUE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>METRICS_VALUE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </metrics-log-table> | 
					 | 
				
			||||||
    </log> | 
					 | 
				
			||||||
    <maxdate> | 
					 | 
				
			||||||
      <connection/> | 
					 | 
				
			||||||
      <table/> | 
					 | 
				
			||||||
      <field/> | 
					 | 
				
			||||||
      <offset>0.0</offset> | 
					 | 
				
			||||||
      <maxdiff>0.0</maxdiff> | 
					 | 
				
			||||||
    </maxdate> | 
					 | 
				
			||||||
    <size_rowset>10000</size_rowset> | 
					 | 
				
			||||||
    <sleep_time_empty>50</sleep_time_empty> | 
					 | 
				
			||||||
    <sleep_time_full>50</sleep_time_full> | 
					 | 
				
			||||||
    <unique_connections>N</unique_connections> | 
					 | 
				
			||||||
    <feedback_shown>Y</feedback_shown> | 
					 | 
				
			||||||
    <feedback_size>50000</feedback_size> | 
					 | 
				
			||||||
    <using_thread_priorities>Y</using_thread_priorities> | 
					 | 
				
			||||||
    <shared_objects_file/> | 
					 | 
				
			||||||
    <capture_step_performance>N</capture_step_performance> | 
					 | 
				
			||||||
    <step_performance_capturing_delay>1000</step_performance_capturing_delay> | 
					 | 
				
			||||||
    <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit> | 
					 | 
				
			||||||
    <dependencies> | 
					 | 
				
			||||||
    </dependencies> | 
					 | 
				
			||||||
    <partitionschemas> | 
					 | 
				
			||||||
    </partitionschemas> | 
					 | 
				
			||||||
    <slaveservers> | 
					 | 
				
			||||||
    </slaveservers> | 
					 | 
				
			||||||
    <clusterschemas> | 
					 | 
				
			||||||
    </clusterschemas> | 
					 | 
				
			||||||
    <created_user>-</created_user> | 
					 | 
				
			||||||
    <created_date>2022/06/27 15:49:54.602</created_date> | 
					 | 
				
			||||||
    <modified_user>-</modified_user> | 
					 | 
				
			||||||
    <modified_date>2022/06/27 15:49:54.602</modified_date> | 
					 | 
				
			||||||
    <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> | 
					 | 
				
			||||||
    <is_key_private>N</is_key_private> | 
					 | 
				
			||||||
  </info> | 
					 | 
				
			||||||
  <notepads> | 
					 | 
				
			||||||
  </notepads> | 
					 | 
				
			||||||
  <order> | 
					 | 
				
			||||||
    <hop> | 
					 | 
				
			||||||
      <from>Microsoft Excel Input</from> | 
					 | 
				
			||||||
      <to>Table output tmp_stip_meldung</to> | 
					 | 
				
			||||||
      <enabled>Y</enabled> | 
					 | 
				
			||||||
    </hop> | 
					 | 
				
			||||||
  </order> | 
					 | 
				
			||||||
  <step> | 
					 | 
				
			||||||
    <name>Microsoft Excel Input</name> | 
					 | 
				
			||||||
    <type>ExcelInput</type> | 
					 | 
				
			||||||
    <description/> | 
					 | 
				
			||||||
    <distribute>Y</distribute> | 
					 | 
				
			||||||
    <custom_distribution/> | 
					 | 
				
			||||||
    <copies>1</copies> | 
					 | 
				
			||||||
    <partitioning> | 
					 | 
				
			||||||
      <method>none</method> | 
					 | 
				
			||||||
      <schema_name/> | 
					 | 
				
			||||||
    </partitioning> | 
					 | 
				
			||||||
    <header>Y</header> | 
					 | 
				
			||||||
    <noempty>Y</noempty> | 
					 | 
				
			||||||
    <stoponempty>N</stoponempty> | 
					 | 
				
			||||||
    <filefield/> | 
					 | 
				
			||||||
    <sheetfield/> | 
					 | 
				
			||||||
    <sheetrownumfield/> | 
					 | 
				
			||||||
    <rownumfield/> | 
					 | 
				
			||||||
    <sheetfield/> | 
					 | 
				
			||||||
    <filefield/> | 
					 | 
				
			||||||
    <limit>0</limit> | 
					 | 
				
			||||||
    <encoding>UTF-8</encoding> | 
					 | 
				
			||||||
    <add_to_result_filenames>Y</add_to_result_filenames> | 
					 | 
				
			||||||
    <accept_filenames>N</accept_filenames> | 
					 | 
				
			||||||
    <accept_field/> | 
					 | 
				
			||||||
    <accept_stepname/> | 
					 | 
				
			||||||
    <file> | 
					 | 
				
			||||||
      <name>${PATH_TO_UPLOADFILE}</name> | 
					 | 
				
			||||||
      <filemask/> | 
					 | 
				
			||||||
      <exclude_filemask/> | 
					 | 
				
			||||||
      <file_required>N</file_required> | 
					 | 
				
			||||||
      <include_subfolders>N</include_subfolders> | 
					 | 
				
			||||||
    </file> | 
					 | 
				
			||||||
    <fields> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Matrikel-Nr.</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format>#</format> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Vorname</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Nachname</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Status</name> | 
					 | 
				
			||||||
        <type>Integer</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal>.</decimal> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Fach</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Abschluss</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Adresszusatz</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Straße</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>PLZ</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Ort</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Fördermonat</name> | 
					 | 
				
			||||||
        <type>Number</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
      <field> | 
					 | 
				
			||||||
        <name>Bafög</name> | 
					 | 
				
			||||||
        <type>String</type> | 
					 | 
				
			||||||
        <length>-1</length> | 
					 | 
				
			||||||
        <precision>-1</precision> | 
					 | 
				
			||||||
        <trim_type>none</trim_type> | 
					 | 
				
			||||||
        <repeat>N</repeat> | 
					 | 
				
			||||||
        <format/> | 
					 | 
				
			||||||
        <currency/> | 
					 | 
				
			||||||
        <decimal/> | 
					 | 
				
			||||||
        <group/> | 
					 | 
				
			||||||
      </field> | 
					 | 
				
			||||||
    </fields> | 
					 | 
				
			||||||
    <sheets> | 
					 | 
				
			||||||
      <sheet> | 
					 | 
				
			||||||
        <name>Tabellenausgabe Studierend..1</name> | 
					 | 
				
			||||||
        <startrow>3</startrow> | 
					 | 
				
			||||||
        <startcol>0</startcol> | 
					 | 
				
			||||||
        </sheet> | 
					 | 
				
			||||||
    </sheets> | 
					 | 
				
			||||||
    <strict_types>N</strict_types> | 
					 | 
				
			||||||
    <error_ignored>N</error_ignored> | 
					 | 
				
			||||||
    <error_line_skipped>N</error_line_skipped> | 
					 | 
				
			||||||
    <bad_line_files_destination_directory/> | 
					 | 
				
			||||||
    <bad_line_files_extension>warning</bad_line_files_extension> | 
					 | 
				
			||||||
    <error_line_files_destination_directory/> | 
					 | 
				
			||||||
    <error_line_files_extension>error</error_line_files_extension> | 
					 | 
				
			||||||
    <line_number_files_destination_directory/> | 
					 | 
				
			||||||
    <line_number_files_extension>line</line_number_files_extension> | 
					 | 
				
			||||||
    <shortFileFieldName/> | 
					 | 
				
			||||||
    <pathFieldName/> | 
					 | 
				
			||||||
    <hiddenFieldName/> | 
					 | 
				
			||||||
    <lastModificationTimeFieldName/> | 
					 | 
				
			||||||
    <uriNameFieldName/> | 
					 | 
				
			||||||
    <rootUriNameFieldName/> | 
					 | 
				
			||||||
    <extensionFieldName/> | 
					 | 
				
			||||||
    <sizeFieldName/> | 
					 | 
				
			||||||
    <spreadsheet_type>POI</spreadsheet_type> | 
					 | 
				
			||||||
    <cluster_schema/> | 
					 | 
				
			||||||
    <remotesteps> | 
					 | 
				
			||||||
      <input> | 
					 | 
				
			||||||
      </input> | 
					 | 
				
			||||||
      <output> | 
					 | 
				
			||||||
      </output> | 
					 | 
				
			||||||
    </remotesteps> | 
					 | 
				
			||||||
    <GUI> | 
					 | 
				
			||||||
      <xloc>112</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
    </GUI> | 
					 | 
				
			||||||
    </step> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  <step> | 
					 | 
				
			||||||
    <name>Table output tmp_stip_meldung</name> | 
					 | 
				
			||||||
    <type>TableOutput</type> | 
					 | 
				
			||||||
    <description/> | 
					 | 
				
			||||||
    <distribute>Y</distribute> | 
					 | 
				
			||||||
    <custom_distribution/> | 
					 | 
				
			||||||
    <copies>1</copies> | 
					 | 
				
			||||||
    <partitioning> | 
					 | 
				
			||||||
      <method>none</method> | 
					 | 
				
			||||||
      <schema_name/> | 
					 | 
				
			||||||
    </partitioning> | 
					 | 
				
			||||||
    <connection>eduetl</connection> | 
					 | 
				
			||||||
    <schema/> | 
					 | 
				
			||||||
    <table>tmp_stip_meldung</table> | 
					 | 
				
			||||||
    <commit>100000</commit> | 
					 | 
				
			||||||
    <truncate>N</truncate> | 
					 | 
				
			||||||
    <ignore_errors>N</ignore_errors> | 
					 | 
				
			||||||
    <use_batch>Y</use_batch> | 
					 | 
				
			||||||
    <specify_fields>Y</specify_fields> | 
					 | 
				
			||||||
    <partitioning_enabled>N</partitioning_enabled> | 
					 | 
				
			||||||
    <partitioning_field/> | 
					 | 
				
			||||||
    <partitioning_daily>N</partitioning_daily> | 
					 | 
				
			||||||
    <partitioning_monthly>Y</partitioning_monthly> | 
					 | 
				
			||||||
    <tablename_in_field>N</tablename_in_field> | 
					 | 
				
			||||||
    <tablename_field/> | 
					 | 
				
			||||||
    <tablename_in_table>Y</tablename_in_table> | 
					 | 
				
			||||||
    <return_keys>N</return_keys> | 
					 | 
				
			||||||
    <return_field/> | 
					 | 
				
			||||||
    <fields> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <column_name>matrikel_nr</column_name> | 
					 | 
				
			||||||
          <stream_name>Matrikel-Nr.</stream_name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <column_name>foerdermonat</column_name> | 
					 | 
				
			||||||
          <stream_name>Fördermonat</stream_name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <column_name>bafoeg</column_name> | 
					 | 
				
			||||||
          <stream_name>Bafög</stream_name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
    </fields> | 
					 | 
				
			||||||
    <cluster_schema/> | 
					 | 
				
			||||||
    <remotesteps> | 
					 | 
				
			||||||
      <input> | 
					 | 
				
			||||||
      </input> | 
					 | 
				
			||||||
      <output> | 
					 | 
				
			||||||
      </output> | 
					 | 
				
			||||||
    </remotesteps> | 
					 | 
				
			||||||
    <GUI> | 
					 | 
				
			||||||
      <xloc>544</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
    </GUI> | 
					 | 
				
			||||||
    </step> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  <step_error_handling> | 
					 | 
				
			||||||
  </step_error_handling> | 
					 | 
				
			||||||
  <slave-step-copy-partition-distribution> | 
					 | 
				
			||||||
  </slave-step-copy-partition-distribution> | 
					 | 
				
			||||||
  <slave_transformation>N</slave_transformation> | 
					 | 
				
			||||||
</transformation> | 
					 | 
				
			||||||
@ -1,33 +0,0 @@ | 
				
			|||||||
update tmp_stip_meldung  | 
					 | 
				
			||||||
set userinfo_id=1, | 
					 | 
				
			||||||
	zeitstempel=now() | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
--delete from tmp_stip_meldung where bafoeg is null; | 
					 | 
				
			||||||
--delete from tmp_stip_meldung where foerdermonat is null and bafoeg = 'j'; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
delete from stip_meldung | 
					 | 
				
			||||||
where matrikel_nr in (select M.matrikel_nr::integer from tmp_stip_meldung M) -- Hinzufügen | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
delete from stip_meldung where ${Modus}=2; -- Löschen und Hinzufügen | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
INSERT INTO stip_meldung | 
					 | 
				
			||||||
( | 
					 | 
				
			||||||
  matrikel_nr, | 
					 | 
				
			||||||
  foerdermonat, | 
					 | 
				
			||||||
  bafoeg, | 
					 | 
				
			||||||
  userinfo_id, | 
					 | 
				
			||||||
  zeitstempel | 
					 | 
				
			||||||
) | 
					 | 
				
			||||||
select distinct | 
					 | 
				
			||||||
  matrikel_nr::integer, | 
					 | 
				
			||||||
  foerdermonat, | 
					 | 
				
			||||||
  bafoeg, | 
					 | 
				
			||||||
  userinfo_id, | 
					 | 
				
			||||||
  zeitstempel | 
					 | 
				
			||||||
from tmp_stip_meldung | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table tmp_stip_meldung; | 
					 | 
				
			||||||
@ -1,443 +0,0 @@ | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?> | 
					 | 
				
			||||||
<job> | 
					 | 
				
			||||||
  <name>stip_meldung_upload</name> | 
					 | 
				
			||||||
  <description/> | 
					 | 
				
			||||||
  <extended_description/> | 
					 | 
				
			||||||
  <job_version/> | 
					 | 
				
			||||||
  <job_status>0</job_status> | 
					 | 
				
			||||||
  <directory>/</directory> | 
					 | 
				
			||||||
  <created_user>-</created_user> | 
					 | 
				
			||||||
  <created_date>2022/06/27 14:59:09.135</created_date> | 
					 | 
				
			||||||
  <modified_user>-</modified_user> | 
					 | 
				
			||||||
  <modified_date>2022/06/27 14:59:09.135</modified_date> | 
					 | 
				
			||||||
    <parameters> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>Hochschule</name> | 
					 | 
				
			||||||
        <default_value>361</default_value> | 
					 | 
				
			||||||
        <description/> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>Modus</name> | 
					 | 
				
			||||||
        <default_value>1</default_value> | 
					 | 
				
			||||||
        <description>2=Löschen und Hinzufügen oder nur 1=Hinzufügen</description> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
      <parameter> | 
					 | 
				
			||||||
        <name>PATH_TO_UPLOADFILE</name> | 
					 | 
				
			||||||
        <default_value>file:///home/superx/Downloads/Tabellenausgabe_Studierende_(amtlich_und_intern)-8.xlsx</default_value> | 
					 | 
				
			||||||
        <description>Pfad zur  Exceldatei mit Quelldaten</description> | 
					 | 
				
			||||||
      </parameter> | 
					 | 
				
			||||||
    </parameters> | 
					 | 
				
			||||||
    <slaveservers> | 
					 | 
				
			||||||
    </slaveservers> | 
					 | 
				
			||||||
      <job-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <size_limit_lines/> | 
					 | 
				
			||||||
        <interval/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_JOB</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_JOB</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>JOBNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>JOBNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STATUS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STATUS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_READ</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_READ</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_WRITTEN</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_WRITTEN</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_UPDATED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_UPDATED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_INPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_INPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_OUTPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_OUTPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_REJECTED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_REJECTED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ERRORS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ERRORS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>STARTDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STARTDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ENDDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ENDDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOGDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOGDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>DEPDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>DEPDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>REPLAYDATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>REPLAYDATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_FIELD</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_FIELD</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>EXECUTING_SERVER</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>EXECUTING_SERVER</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>EXECUTING_USER</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>EXECUTING_USER</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>START_JOB_ENTRY</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>START_JOB_ENTRY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CLIENT</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>CLIENT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </job-log-table> | 
					 | 
				
			||||||
      <jobentry-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>JOBNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>TRANSNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>JOBENTRYNAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>STEPNAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_READ</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_READ</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_WRITTEN</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_WRITTEN</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_UPDATED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_UPDATED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_INPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_INPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_OUTPUT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_OUTPUT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LINES_REJECTED</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LINES_REJECTED</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ERRORS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ERRORS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>RESULT</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>RESULT</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>NR_RESULT_ROWS</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>NR_RESULT_ROWS</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>NR_RESULT_FILES</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>NR_RESULT_FILES</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_FIELD</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>LOG_FIELD</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>COPY_NR</id> | 
					 | 
				
			||||||
          <enabled>N</enabled> | 
					 | 
				
			||||||
          <name>COPY_NR</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </jobentry-log-table> | 
					 | 
				
			||||||
      <channel-log-table> | 
					 | 
				
			||||||
        <connection/> | 
					 | 
				
			||||||
        <schema/> | 
					 | 
				
			||||||
        <table/> | 
					 | 
				
			||||||
        <timeout_days/> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ID_BATCH</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ID_BATCH</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOG_DATE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOG_DATE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>LOGGING_OBJECT_TYPE</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>LOGGING_OBJECT_TYPE</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_NAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_NAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_COPY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_COPY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>REPOSITORY_DIRECTORY</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>REPOSITORY_DIRECTORY</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>FILENAME</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>FILENAME</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>OBJECT_REVISION</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>OBJECT_REVISION</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>PARENT_CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>PARENT_CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
        <field> | 
					 | 
				
			||||||
          <id>ROOT_CHANNEL_ID</id> | 
					 | 
				
			||||||
          <enabled>Y</enabled> | 
					 | 
				
			||||||
          <name>ROOT_CHANNEL_ID</name> | 
					 | 
				
			||||||
        </field> | 
					 | 
				
			||||||
      </channel-log-table> | 
					 | 
				
			||||||
   <pass_batchid>N</pass_batchid> | 
					 | 
				
			||||||
   <shared_objects_file/> | 
					 | 
				
			||||||
  <entries> | 
					 | 
				
			||||||
    <entry> | 
					 | 
				
			||||||
      <name>START</name> | 
					 | 
				
			||||||
      <description/> | 
					 | 
				
			||||||
      <type>SPECIAL</type> | 
					 | 
				
			||||||
      <start>Y</start> | 
					 | 
				
			||||||
      <dummy>N</dummy> | 
					 | 
				
			||||||
      <repeat>N</repeat> | 
					 | 
				
			||||||
      <schedulerType>0</schedulerType> | 
					 | 
				
			||||||
      <intervalSeconds>0</intervalSeconds> | 
					 | 
				
			||||||
      <intervalMinutes>60</intervalMinutes> | 
					 | 
				
			||||||
      <hour>12</hour> | 
					 | 
				
			||||||
      <minutes>0</minutes> | 
					 | 
				
			||||||
      <weekDay>1</weekDay> | 
					 | 
				
			||||||
      <DayOfMonth>1</DayOfMonth> | 
					 | 
				
			||||||
      <parallel>N</parallel> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
      <nr>0</nr> | 
					 | 
				
			||||||
      <xloc>64</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
    </entry> | 
					 | 
				
			||||||
    <entry> | 
					 | 
				
			||||||
      <name>tmp_stip_meldung</name> | 
					 | 
				
			||||||
      <description/> | 
					 | 
				
			||||||
      <type>SQL</type> | 
					 | 
				
			||||||
      <sql>drop table if exists tmp_stip_meldung;

create table tmp_stip_meldung
(
   matrikel_nr       varchar(255),
   foerdermonat  float,
   bafoeg   char(1),
   userinfo_id   integer,
   zeitstempel        timestamp
)
;</sql> | 
					 | 
				
			||||||
      <useVariableSubstitution>F</useVariableSubstitution> | 
					 | 
				
			||||||
      <sqlfromfile>F</sqlfromfile> | 
					 | 
				
			||||||
      <sqlfilename/> | 
					 | 
				
			||||||
      <sendOneStatement>F</sendOneStatement> | 
					 | 
				
			||||||
      <connection>eduetl</connection> | 
					 | 
				
			||||||
      <parallel>N</parallel> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
      <nr>0</nr> | 
					 | 
				
			||||||
      <xloc>208</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
    </entry> | 
					 | 
				
			||||||
    <entry> | 
					 | 
				
			||||||
      <name>excel_into_stip_meldung</name> | 
					 | 
				
			||||||
      <description/> | 
					 | 
				
			||||||
      <type>TRANS</type> | 
					 | 
				
			||||||
      <specification_method>filename</specification_method> | 
					 | 
				
			||||||
      <trans_object_id/> | 
					 | 
				
			||||||
      <filename>${Internal.Job.Filename.Directory}/excel_into_stip_meldung.ktr</filename> | 
					 | 
				
			||||||
      <transname/> | 
					 | 
				
			||||||
      <arg_from_previous>N</arg_from_previous> | 
					 | 
				
			||||||
      <params_from_previous>N</params_from_previous> | 
					 | 
				
			||||||
      <exec_per_row>N</exec_per_row> | 
					 | 
				
			||||||
      <clear_rows>N</clear_rows> | 
					 | 
				
			||||||
      <clear_files>N</clear_files> | 
					 | 
				
			||||||
      <set_logfile>N</set_logfile> | 
					 | 
				
			||||||
      <logfile/> | 
					 | 
				
			||||||
      <logext/> | 
					 | 
				
			||||||
      <add_date>N</add_date> | 
					 | 
				
			||||||
      <add_time>N</add_time> | 
					 | 
				
			||||||
      <loglevel>Basic</loglevel> | 
					 | 
				
			||||||
      <cluster>N</cluster> | 
					 | 
				
			||||||
      <slave_server_name/> | 
					 | 
				
			||||||
      <set_append_logfile>N</set_append_logfile> | 
					 | 
				
			||||||
      <wait_until_finished>Y</wait_until_finished> | 
					 | 
				
			||||||
      <follow_abort_remote>N</follow_abort_remote> | 
					 | 
				
			||||||
      <create_parent_folder>N</create_parent_folder> | 
					 | 
				
			||||||
      <logging_remote_work>N</logging_remote_work> | 
					 | 
				
			||||||
      <parameters> | 
					 | 
				
			||||||
        <pass_all_parameters>Y</pass_all_parameters> | 
					 | 
				
			||||||
      </parameters> | 
					 | 
				
			||||||
      <parallel>N</parallel> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
      <nr>0</nr> | 
					 | 
				
			||||||
      <xloc>448</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
    </entry> | 
					 | 
				
			||||||
    <entry> | 
					 | 
				
			||||||
      <name>Success</name> | 
					 | 
				
			||||||
      <description/> | 
					 | 
				
			||||||
      <type>SUCCESS</type> | 
					 | 
				
			||||||
      <parallel>N</parallel> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
      <nr>0</nr> | 
					 | 
				
			||||||
      <xloc>976</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
    </entry> | 
					 | 
				
			||||||
    <entry> | 
					 | 
				
			||||||
      <name>Update stip_meldung</name> | 
					 | 
				
			||||||
      <description/> | 
					 | 
				
			||||||
      <type>SQL</type> | 
					 | 
				
			||||||
      <sql/> | 
					 | 
				
			||||||
      <useVariableSubstitution>T</useVariableSubstitution> | 
					 | 
				
			||||||
      <sqlfromfile>T</sqlfromfile> | 
					 | 
				
			||||||
      <sqlfilename>${Internal.Job.Filename.Directory}/stip_meldung_fuellen.sql</sqlfilename> | 
					 | 
				
			||||||
      <sendOneStatement>F</sendOneStatement> | 
					 | 
				
			||||||
      <connection>eduetl</connection> | 
					 | 
				
			||||||
      <parallel>N</parallel> | 
					 | 
				
			||||||
      <draw>Y</draw> | 
					 | 
				
			||||||
      <nr>0</nr> | 
					 | 
				
			||||||
      <xloc>688</xloc> | 
					 | 
				
			||||||
      <yloc>112</yloc> | 
					 | 
				
			||||||
    </entry> | 
					 | 
				
			||||||
  </entries> | 
					 | 
				
			||||||
  <hops> | 
					 | 
				
			||||||
    <hop> | 
					 | 
				
			||||||
      <from>START</from> | 
					 | 
				
			||||||
      <to>tmp_stip_meldung</to> | 
					 | 
				
			||||||
      <from_nr>0</from_nr> | 
					 | 
				
			||||||
      <to_nr>0</to_nr> | 
					 | 
				
			||||||
      <enabled>Y</enabled> | 
					 | 
				
			||||||
      <evaluation>Y</evaluation> | 
					 | 
				
			||||||
      <unconditional>Y</unconditional> | 
					 | 
				
			||||||
    </hop> | 
					 | 
				
			||||||
    <hop> | 
					 | 
				
			||||||
      <from>tmp_stip_meldung</from> | 
					 | 
				
			||||||
      <to>excel_into_stip_meldung</to> | 
					 | 
				
			||||||
      <from_nr>0</from_nr> | 
					 | 
				
			||||||
      <to_nr>0</to_nr> | 
					 | 
				
			||||||
      <enabled>Y</enabled> | 
					 | 
				
			||||||
      <evaluation>Y</evaluation> | 
					 | 
				
			||||||
      <unconditional>N</unconditional> | 
					 | 
				
			||||||
    </hop> | 
					 | 
				
			||||||
    <hop> | 
					 | 
				
			||||||
      <from>Update stip_meldung</from> | 
					 | 
				
			||||||
      <to>Success</to> | 
					 | 
				
			||||||
      <from_nr>0</from_nr> | 
					 | 
				
			||||||
      <to_nr>0</to_nr> | 
					 | 
				
			||||||
      <enabled>Y</enabled> | 
					 | 
				
			||||||
      <evaluation>Y</evaluation> | 
					 | 
				
			||||||
      <unconditional>N</unconditional> | 
					 | 
				
			||||||
    </hop> | 
					 | 
				
			||||||
    <hop> | 
					 | 
				
			||||||
      <from>excel_into_stip_meldung</from> | 
					 | 
				
			||||||
      <to>Update stip_meldung</to> | 
					 | 
				
			||||||
      <from_nr>0</from_nr> | 
					 | 
				
			||||||
      <to_nr>0</to_nr> | 
					 | 
				
			||||||
      <enabled>Y</enabled> | 
					 | 
				
			||||||
      <evaluation>Y</evaluation> | 
					 | 
				
			||||||
      <unconditional>N</unconditional> | 
					 | 
				
			||||||
    </hop> | 
					 | 
				
			||||||
  </hops> | 
					 | 
				
			||||||
  <notepads> | 
					 | 
				
			||||||
  </notepads> | 
					 | 
				
			||||||
</job> | 
					 | 
				
			||||||
@ -1,41 +0,0 @@ | 
				
			|||||||
--Freemarker Template | 
					 | 
				
			||||||
--Achtung: Macro fügt Inhalte ein | 
					 | 
				
			||||||
--Bitte nur Freemarker Variablen füllen | 
					 | 
				
			||||||
<sqlvars> | 
					 | 
				
			||||||
<sqlvar name="sx_jobs_exists">select sp_table_exists('sx_jobs') from xdummy;</sqlvar> | 
					 | 
				
			||||||
</sqlvars> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#assign jobs = [ | 
					 | 
				
			||||||
{"uniquename":"stip_meldung_upload", "caption":"Stipendiaten-Daten hochladen", "filepath":"rpta/etl/stip_meldung_upload/stip_meldung_upload.kjb","sachgebiete_id":330, | 
					 | 
				
			||||||
  "kenn_profil":"","hs_nr":"","modus_supported":1,"params":"", | 
					 | 
				
			||||||
"check_sql":"select count(*) from stip_meldung"} | 
					 | 
				
			||||||
] /> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
--- Freemarker Magic | 
					 | 
				
			||||||
<#if sx_jobs_exists=1> | 
					 | 
				
			||||||
<#foreach job in jobs> | 
					 | 
				
			||||||
delete from sx_jobs where uniquename='${job.uniquename}'; | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
  <#if SQLdialect='Postgres'> | 
					 | 
				
			||||||
   select sp_update_sequence('sx_jobs'); | 
					 | 
				
			||||||
  </#if> | 
					 | 
				
			||||||
<#foreach job in jobs> | 
					 | 
				
			||||||
insert into sx_jobs (uniquename,caption,filepath,sachgebiete_id,kenn_profil,hs_nr,modus_supported,params | 
					 | 
				
			||||||
<#if SQLdialect='Postgres'>,check_sql | 
					 | 
				
			||||||
</#if>) | 
					 | 
				
			||||||
values ('${job.uniquename}','${job.caption}','${job.filepath}',${job.sachgebiete_id},<#if job.kenn_profil!="">${job.kenn_profil}<#else>null::integer</#if>, | 
					 | 
				
			||||||
<#if job.hs_nr!="">${job.hs_nr}<#else>null::integer</#if>,${job.modus_supported},'${job.params}' | 
					 | 
				
			||||||
<#if SQLdialect='Postgres'> | 
					 | 
				
			||||||
,'${job.check_sql}' | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
); | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if SQLdialect='Postgres'> | 
					 | 
				
			||||||
   select sp_update_sequence('sx_jobs'); | 
					 | 
				
			||||||
  </#if> | 
					 | 
				
			||||||
   | 
					 | 
				
			||||||
  </#if> | 
					 | 
				
			||||||
@ -1,149 +0,0 @@ | 
				
			|||||||
--Freemarker Template | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/> | 
					 | 
				
			||||||
<#include "SuperX_general"/> | 
					 | 
				
			||||||
-- | 
					 | 
				
			||||||
--Autor D. Quathamer 2024 | 
					 | 
				
			||||||
<sqlvars> | 
					 | 
				
			||||||
<sqlvar name="column_layouts" type="hashsequence"><![CDATA[ | 
					 | 
				
			||||||
select L.tid, | 
					 | 
				
			||||||
L.uniquename, | 
					 | 
				
			||||||
       L.caption, | 
					 | 
				
			||||||
       L.whereclause, | 
					 | 
				
			||||||
       L.uniquename as target_tablename, | 
					 | 
				
			||||||
       R.uniquename as resultset_uniquename, | 
					 | 
				
			||||||
       'tmp_' || R.uniquename as resultset_tablename, | 
					 | 
				
			||||||
R.fieldclause as resultset_fieldclause, | 
					 | 
				
			||||||
R.joinclause as resultset_joinclause, | 
					 | 
				
			||||||
R.whereclause as resultset_whereclause, | 
					 | 
				
			||||||
R.systeminfo_id as resultset_systeminfo_id | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L | 
					 | 
				
			||||||
       where L.resultset_id=R.tid | 
					 | 
				
			||||||
and L.is_virtual=0        | 
					 | 
				
			||||||
       ]]> | 
					 | 
				
			||||||
</sqlvar> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[ | 
					 | 
				
			||||||
SELECT L.tid as layout_id, | 
					 | 
				
			||||||
C.srcfieldname, | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname, | 
					 | 
				
			||||||
T.uniquename as coltype, | 
					 | 
				
			||||||
C.is_aggregate, | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption, | 
					 | 
				
			||||||
CL.is_visible, | 
					 | 
				
			||||||
CL.visible_size as visible_width, | 
					 | 
				
			||||||
(select F.sql_code from rpta_format_code F where F.tid=CL.format_code_id) as format_sql, | 
					 | 
				
			||||||
C.col_function as colfunction, | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description | 
					 | 
				
			||||||
FROM rpta_column_layout L, rpta_column2layout CL, rpta_column C, rpta_column_type T | 
					 | 
				
			||||||
where L.tid=CL.layout_id | 
					 | 
				
			||||||
and C.tid=CL.column_id | 
					 | 
				
			||||||
and T.tid=C.column_type | 
					 | 
				
			||||||
and L.is_virtual=0 | 
					 | 
				
			||||||
order by CL.sortnr | 
					 | 
				
			||||||
 ; | 
					 | 
				
			||||||
]]></sqlvar> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</sqlvars> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if column_layouts?has_content> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#foreach column_layout in column_layouts> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if columns?has_content> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
--zuerst resultset aufbauen: | 
					 | 
				
			||||||
create temp table ${column_layout.resultset_tablename} as | 
					 | 
				
			||||||
select ${column_layout.resultset_fieldclause}  | 
					 | 
				
			||||||
from ${column_layout.resultset_joinclause}  | 
					 | 
				
			||||||
where 1=1 | 
					 | 
				
			||||||
<#if column_layout.resultset_whereclause != "">  | 
					 | 
				
			||||||
${column_layout.resultset_whereclause} </#if> | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
--dann das Spaltenlayout | 
					 | 
				
			||||||
select  | 
					 | 
				
			||||||
--zuerst die Basisdaten: | 
					 | 
				
			||||||
<#foreach column in columns> | 
					 | 
				
			||||||
<#if column.layout_id=column_layout.tid> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if column.coltype="physicalColumn"> | 
					 | 
				
			||||||
${column.srcfieldname}, | 
					 | 
				
			||||||
<#elseif column.coltype="logicalColumn"> | 
					 | 
				
			||||||
${column.colfunction} as ${column.targetfieldname}, | 
					 | 
				
			||||||
<#elseif column.coltype="lookupColumn"> | 
					 | 
				
			||||||
(${column.colfunction}) as ${column.targetfieldname}, | 
					 | 
				
			||||||
<#elseif column.coltype="computedColumn"> | 
					 | 
				
			||||||
null::decimal(19,6) as ${column.targetfieldname}, | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
null::char(1) as dummycol | 
					 | 
				
			||||||
into temp tmp_stud | 
					 | 
				
			||||||
from ${column_layout.resultset_tablename} | 
					 | 
				
			||||||
where 1=1 | 
					 | 
				
			||||||
<#if column_layout.whereclause !=""> | 
					 | 
				
			||||||
and ${column_layout.whereclause} | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table if exists  ${column_layout.target_tablename} ; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#assign index_clause="" /> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
--ergebnistabelle: | 
					 | 
				
			||||||
create table  ${column_layout.target_tablename} as select  | 
					 | 
				
			||||||
--zuerst die nicht-Aggregate: | 
					 | 
				
			||||||
<#assign groupby=0 /> | 
					 | 
				
			||||||
<#foreach column in columns> | 
					 | 
				
			||||||
<#if column.layout_id=column_layout.tid> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if column.is_aggregate==0> | 
					 | 
				
			||||||
<#assign groupby=groupby+1 /> | 
					 | 
				
			||||||
${column.targetfieldname}, | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#assign index_clause=index_clause+ " | 
					 | 
				
			||||||
create index ix_${column_layout.target_tablename}_${groupby} on ${column_layout.target_tablename}(${column.targetfieldname});" /> | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
--dann die Aggregate: | 
					 | 
				
			||||||
<#foreach column in columns> | 
					 | 
				
			||||||
<#if column.layout_id=column_layout.tid> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if column.is_aggregate==1 &&  column.coltype!="computedColumn"> | 
					 | 
				
			||||||
sum(${column.targetfieldname}) as ${column.targetfieldname}, | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
null::char(1) as dummycol | 
					 | 
				
			||||||
from tmp_stud | 
					 | 
				
			||||||
where 1=1 | 
					 | 
				
			||||||
<#if groupby !=0 > | 
					 | 
				
			||||||
group by | 
					 | 
				
			||||||
<#list 1..groupby as i>${i} | 
					 | 
				
			||||||
<#if i != groupby> | 
					 | 
				
			||||||
, | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#list> | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
${index_clause} | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table if exists tmp_stud; | 
					 | 
				
			||||||
drop table if exists tmp_gesamt; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> --wenn columns?has_content | 
					 | 
				
			||||||
drop table ${column_layout.resultset_tablename}; | 
					 | 
				
			||||||
</#foreach> -- Ende Schleife column_layouts | 
					 | 
				
			||||||
</#if> --gibt es column_layouts | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,122 +0,0 @@ | 
				
			|||||||
--Freemarker Template | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/> | 
					 | 
				
			||||||
<#include "SuperX_general"/> | 
					 | 
				
			||||||
-- | 
					 | 
				
			||||||
--Autor D. Quathamer 2024 | 
					 | 
				
			||||||
<sqlvars> | 
					 | 
				
			||||||
<sqlvar name="basetables" type="hashsequence"><![CDATA[ | 
					 | 
				
			||||||
SELECT distinct T.name, | 
					 | 
				
			||||||
R.is_virtual, | 
					 | 
				
			||||||
T.name as runtime_tablename, | 
					 | 
				
			||||||
R.caption, | 
					 | 
				
			||||||
R.uniquename, | 
					 | 
				
			||||||
R.fieldclause, | 
					 | 
				
			||||||
R.joinclause, | 
					 | 
				
			||||||
R.whereclause, | 
					 | 
				
			||||||
R.systeminfo_id | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R  | 
					 | 
				
			||||||
  where T.name=R.uniquename | 
					 | 
				
			||||||
  and R.is_virtual=0 | 
					 | 
				
			||||||
     | 
					 | 
				
			||||||
    ]]> | 
					 | 
				
			||||||
</sqlvar> | 
					 | 
				
			||||||
<sqlvar name="basetable_columns" type="hashsequence"><![CDATA[ | 
					 | 
				
			||||||
SELECT distinct T.name as table_name, | 
					 | 
				
			||||||
F.name, | 
					 | 
				
			||||||
F.is_sum, | 
					 | 
				
			||||||
R.uniquename as rpta_name | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R , sx_fields F | 
					 | 
				
			||||||
  where T.name=R.uniquename | 
					 | 
				
			||||||
  and R.is_virtual=0 | 
					 | 
				
			||||||
  and F.table_name=T.name | 
					 | 
				
			||||||
  order by F.is_sum,2,3 | 
					 | 
				
			||||||
   | 
					 | 
				
			||||||
     | 
					 | 
				
			||||||
    ]]> | 
					 | 
				
			||||||
</sqlvar> | 
					 | 
				
			||||||
<sqlvar name="rpta_clauses" type="hashsequence"><![CDATA[ | 
					 | 
				
			||||||
 select distinct R.uniquename as rpta_uniquename, R.fieldclause, R.joinclause, R.whereclause from sx_tables T, rpta_resultset R  | 
					 | 
				
			||||||
  where T.name=R.uniquename | 
					 | 
				
			||||||
  and R.is_virtual=0 | 
					 | 
				
			||||||
    ]]> | 
					 | 
				
			||||||
  </sqlvar> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</sqlvars> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if basetables?has_content> | 
					 | 
				
			||||||
<#foreach basetable in basetables> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if basetable.is_virtual==0> | 
					 | 
				
			||||||
<#foreach rpta_clause in rpta_clauses> | 
					 | 
				
			||||||
<#if rpta_clause.rpta_uniquename=basetable.uniquename> | 
					 | 
				
			||||||
<#if rpta_clause.joinclause?exists && rpta_clause.joinclause !=''> | 
					 | 
				
			||||||
<#assign sqlString = "select current_timestamp as creation_date, " + rpta_clause.fieldclause + " from " + rpta_clause.joinclause + " where 1=1 " + rpta_clause.whereclause /> | 
					 | 
				
			||||||
<#else> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#assign sqlString = "select current_timestamp as creation_date, " + rpta_clause.fieldclause +  " where 1=1 " + rpta_clause.whereclause /> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table if exists ${basetable.runtime_tablename}; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
create temp table tmp_${basetable.runtime_tablename} as | 
					 | 
				
			||||||
${sqlString} | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
--Summierung: | 
					 | 
				
			||||||
<#if basetable_columns?has_content> | 
					 | 
				
			||||||
<#assign groupby=0 /> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table if exists ${basetable.runtime_tablename}; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
create table ${basetable.runtime_tablename} as  | 
					 | 
				
			||||||
select | 
					 | 
				
			||||||
<#foreach basetable_column in basetable_columns> | 
					 | 
				
			||||||
<#if basetable_column.rpta_name=basetable.uniquename> | 
					 | 
				
			||||||
<#if basetable_column.is_sum=0> | 
					 | 
				
			||||||
<#assign groupby=groupby+1 /> | 
					 | 
				
			||||||
${basetable_column.name}, | 
					 | 
				
			||||||
<#else> | 
					 | 
				
			||||||
sum(${basetable_column.name})::float as ${basetable_column.name}, | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
creation_date | 
					 | 
				
			||||||
from tmp_${basetable.runtime_tablename} | 
					 | 
				
			||||||
group by  | 
					 | 
				
			||||||
<#list 1..groupby as i>${i}, | 
					 | 
				
			||||||
</#list> | 
					 | 
				
			||||||
creation_date | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
drop table tmp_${basetable.runtime_tablename}; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> --Ende Summierung | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
--TODO: indizes | 
					 | 
				
			||||||
<#foreach basetable_column in basetable_columns> | 
					 | 
				
			||||||
<#if basetable_column.rpta_name=basetable.uniquename> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if basetable_column.is_sum=0> | 
					 | 
				
			||||||
create index ix_${basetable.runtime_tablename}_${basetable_column.name} on ${basetable.runtime_tablename}(${basetable_column.name}); | 
					 | 
				
			||||||
--create index ix_tid_stg_dashboard_mw on ${basetable.runtime_tablename}(tid_stg); | 
					 | 
				
			||||||
--create index ix_sem_rueck_beur_ein_dashboard_mw on ${basetable.runtime_tablename}(sem_rueck_beur_ein); | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> --Ende is_virtual=0 | 
					 | 
				
			||||||
</#foreach> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
@ -1,96 +0,0 @@ | 
				
			|||||||
--freemarker Template | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<sqlvars> | 
					 | 
				
			||||||
	<sqlvar name="lm_exam_unit_exists"> | 
					 | 
				
			||||||
		select sp_table_exists('lm_exam_unit') from xdummy; | 
					 | 
				
			||||||
	</sqlvar> | 
					 | 
				
			||||||
	<sqlvar name="sos_lab_pord_exists"> | 
					 | 
				
			||||||
		select sp_table_exists('sos_lab_pord') from xdummy; | 
					 | 
				
			||||||
	</sqlvar> | 
					 | 
				
			||||||
</sqlvars> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<#if lm_exam_unit_exists=1 && sos_lab_pord_exists=1> | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
truncate table rpta_exam_unit; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
insert into rpta_exam_unit (matrikel_nr,  | 
					 | 
				
			||||||
    labnr, | 
					 | 
				
			||||||
    sourcesystem, | 
					 | 
				
			||||||
    tid_stg,  | 
					 | 
				
			||||||
    sem_der_pruefung,  | 
					 | 
				
			||||||
    note, | 
					 | 
				
			||||||
    fach_sem_zahl, | 
					 | 
				
			||||||
    pstatus,  | 
					 | 
				
			||||||
    prueck, | 
					 | 
				
			||||||
    pvermerk, | 
					 | 
				
			||||||
    bonus, | 
					 | 
				
			||||||
    pordnr, | 
					 | 
				
			||||||
    part, | 
					 | 
				
			||||||
    ppflicht, | 
					 | 
				
			||||||
    modulart, | 
					 | 
				
			||||||
    pktxt, | 
					 | 
				
			||||||
    pdtxt, | 
					 | 
				
			||||||
    pversuch, | 
					 | 
				
			||||||
    elementnr, | 
					 | 
				
			||||||
    summe, | 
					 | 
				
			||||||
    shortcomment, | 
					 | 
				
			||||||
    panerk | 
					 | 
				
			||||||
) | 
					 | 
				
			||||||
SELECT  | 
					 | 
				
			||||||
    matrikel_nr,  | 
					 | 
				
			||||||
    labnr, | 
					 | 
				
			||||||
    sourcesystem, | 
					 | 
				
			||||||
    tid_stg,  | 
					 | 
				
			||||||
    sem_der_pruefung,  | 
					 | 
				
			||||||
    note, | 
					 | 
				
			||||||
    fach_sem_zahl, | 
					 | 
				
			||||||
    pstatus,  | 
					 | 
				
			||||||
    prueck, | 
					 | 
				
			||||||
    pvermerk, | 
					 | 
				
			||||||
    bonus, | 
					 | 
				
			||||||
    pordnr, | 
					 | 
				
			||||||
    part, | 
					 | 
				
			||||||
    ppflicht, | 
					 | 
				
			||||||
    modulart, | 
					 | 
				
			||||||
    pktxt, | 
					 | 
				
			||||||
    pdtxt, | 
					 | 
				
			||||||
    pversuch, | 
					 | 
				
			||||||
    elementnr, | 
					 | 
				
			||||||
    summe, | 
					 | 
				
			||||||
<#if TableFieldExists?exists && TableFieldExists('lm_exam_unit','shortcomment')> | 
					 | 
				
			||||||
    substring(shortcomment from 1 for 255) as     shortcomment, | 
					 | 
				
			||||||
<#else> | 
					 | 
				
			||||||
null::varchar(255) as     shortcomment, | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
    panerk | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
FROM lm_exam_unit | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
UNION SELECT  | 
					 | 
				
			||||||
    matrikel_nr,  | 
					 | 
				
			||||||
    labnr, | 
					 | 
				
			||||||
    sourcesystem, | 
					 | 
				
			||||||
    tid_stg,  | 
					 | 
				
			||||||
    sem_der_pruefung,  | 
					 | 
				
			||||||
    note, | 
					 | 
				
			||||||
    fach_sem_zahl, | 
					 | 
				
			||||||
    pstatus,  | 
					 | 
				
			||||||
    prueck, | 
					 | 
				
			||||||
    pvermerk,  | 
					 | 
				
			||||||
    bonus, | 
					 | 
				
			||||||
    pordnr, | 
					 | 
				
			||||||
    part, | 
					 | 
				
			||||||
    ppflicht, | 
					 | 
				
			||||||
    modulart, | 
					 | 
				
			||||||
    pktxt, | 
					 | 
				
			||||||
    pdtxt, | 
					 | 
				
			||||||
    pversuch, | 
					 | 
				
			||||||
    pnr::varchar(255) as elementnr, | 
					 | 
				
			||||||
    summe, | 
					 | 
				
			||||||
    null::varchar(255) as shortcomment, | 
					 | 
				
			||||||
    (select L.panerk from sos_lab L where L.labnr=sos_lab_pord.labnr and L.sourcesystem = 5) | 
					 | 
				
			||||||
FROM sos_lab_pord | 
					 | 
				
			||||||
WHERE sourcesystem = 5 | 
					 | 
				
			||||||
; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</#if> | 
					 | 
				
			||||||
@ -1,7 +0,0 @@ | 
				
			|||||||
 | 
					 | 
				
			||||||
select * from xdummy; | 
					 | 
				
			||||||
--bei Postgres in HIS1 laufen alle Scripte in Transaktionen, daher muss man  | 
					 | 
				
			||||||
--für vacuum erst committen | 
					 | 
				
			||||||
commit; | 
					 | 
				
			||||||
vacuum rpta_exam_unit; | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,13 +0,0 @@ | 
				
			|||||||
44630^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
44631^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ | 
					 | 
				
			||||||
44632^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ | 
					 | 
				
			||||||
44645^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44190 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=44190 order by ord limit 1^ | 
					 | 
				
			||||||
44647^Grafik^1000^300^-1^170^150^1^integer^30^0^1^<<SQL>> select tid, caption from viz_chart order by 2;^hidden^ ^ | 
					 | 
				
			||||||
44649^Spaltenanzahl^5^350^-1^140^80^1^integer^255^0^1^<<SQL>>  SELECT 0,'Dynamisch' from xdummy \ | 
					 | 
				
			||||||
union SELECT 1,'1-spaltig' from xdummy \ | 
					 | 
				
			||||||
union SELECT 2,'2-spaltig' from xdummy \ | 
					 | 
				
			||||||
union SELECT 3,'3-spaltig' from xdummy \ | 
					 | 
				
			||||||
union SELECT 4,'4-spaltig' from xdummy \ | 
					 | 
				
			||||||
order by 1;^ ^<<SQL>> SELECT 2,'2-spaltig' from xdummy;^ | 
					 | 
				
			||||||
44650^Kachelbreite^30^0^0^100^100^1^integer^5000^0^0^^^800^ | 
					 | 
				
			||||||
44653^Kachelhöhe^40^0^0^100^100^1^integer^5000^0^0^^^600^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
44630^320^ | 
					 | 
				
			||||||
@ -1,8 +0,0 @@ | 
				
			|||||||
44630^44630^ | 
					 | 
				
			||||||
44630^44631^ | 
					 | 
				
			||||||
44630^44632^ | 
					 | 
				
			||||||
44630^44645^ | 
					 | 
				
			||||||
44630^44647^ | 
					 | 
				
			||||||
44630^44649^ | 
					 | 
				
			||||||
44630^44650^ | 
					 | 
				
			||||||
44630^44653^ | 
					 | 
				
			||||||
@ -1,106 +0,0 @@ | 
				
			|||||||
44630^Dashboard Kopfzeile^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<#assign jahr_filter="1=1" />\ | 
					 | 
				
			||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ | 
					 | 
				
			||||||
<#if "<<Jahr>>" !="">\ | 
					 | 
				
			||||||
<#assign jahr_filter="(" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='2' and  val(substring('' || sem_rueck_beur_ein from 1 for 4))=<<Jahr>>)" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + " or "/>\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='1' and  (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)=<<Jahr>>)" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="1=1\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein = <<Bis Semester>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + jahr_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign stg_filter =  " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_erg(\ | 
					 | 
				
			||||||
ord integer,\ | 
					 | 
				
			||||||
kennz varchar(255),\ | 
					 | 
				
			||||||
wert integer,\ | 
					 | 
				
			||||||
link_maskeninfo_id integer\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_erg(ord,kennz,wert)\ | 
					 | 
				
			||||||
select 1,'Bewerbungen',sum(summe)\ | 
					 | 
				
			||||||
from zul_antr_aggr A\ | 
					 | 
				
			||||||
where A.bewsem=<<Bis Semester>>\ | 
					 | 
				
			||||||
and A.stg in (select L.stg from lehr_stg_ab L where 's_' || L.tid  in <@printkeys Studiengang.allNeededKeysList/>)\ | 
					 | 
				
			||||||
and A.abschl in (select L.abschluss from lehr_stg_ab L where 's_' || L.tid  in <@printkeys Studiengang.allNeededKeysList/>)\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_erg(ord,kennz,wert)\ | 
					 | 
				
			||||||
select 10,'Studienanfänger*innen im 1. HS',sum(summe)\ | 
					 | 
				
			||||||
from sos_stg_aggr S, sos_stichtag I\ | 
					 | 
				
			||||||
where ${filter}\ | 
					 | 
				
			||||||
and S.studiengang_nr=1\ | 
					 | 
				
			||||||
and S.fach_nr=1\ | 
					 | 
				
			||||||
and S.stichtag=I.tid\ | 
					 | 
				
			||||||
and I.appl_key='0'\ | 
					 | 
				
			||||||
and 's_' || S.tid_stg  in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
and S.hssem=1\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_erg(ord,kennz,wert)\ | 
					 | 
				
			||||||
select 20,'Studierende gesamt',sum(summe)\ | 
					 | 
				
			||||||
from sos_stg_aggr S, sos_stichtag I\ | 
					 | 
				
			||||||
where ${filter}\ | 
					 | 
				
			||||||
and S.studiengang_nr=1\ | 
					 | 
				
			||||||
and S.fach_nr=1\ | 
					 | 
				
			||||||
and S.stichtag=I.tid\ | 
					 | 
				
			||||||
and I.appl_key='0'\ | 
					 | 
				
			||||||
and 's_' || S.tid_stg  in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_erg(ord,kennz,wert)\ | 
					 | 
				
			||||||
select 30,'Studierende im Lehramt',sum(summe)\ | 
					 | 
				
			||||||
from sos_stg_aggr S, sos_stichtag I, dim_studiengang D\ | 
					 | 
				
			||||||
where ${filter}\ | 
					 | 
				
			||||||
and S.studiengang_nr=1\ | 
					 | 
				
			||||||
and S.fach_nr=1\ | 
					 | 
				
			||||||
and S.stichtag=I.tid\ | 
					 | 
				
			||||||
and D.tid=S.tid_stg\ | 
					 | 
				
			||||||
and D.ist_lehramt=1\ | 
					 | 
				
			||||||
and I.appl_key='0'\ | 
					 | 
				
			||||||
and 's_' || S.tid_stg  in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_erg(ord,kennz,wert)\ | 
					 | 
				
			||||||
select 30,'Absolvent*innen',sum(summe)\ | 
					 | 
				
			||||||
from sos_lab_aggr S, sos_stichtag I, dim_studiengang D\ | 
					 | 
				
			||||||
where S.sem_der_pruefung=<<Bis Semester>>\ | 
					 | 
				
			||||||
and S.studiengang_nr=1\ | 
					 | 
				
			||||||
and S.fach_nr=1\ | 
					 | 
				
			||||||
and S.stichtag=I.tid\ | 
					 | 
				
			||||||
and D.tid=S.tid_stg\ | 
					 | 
				
			||||||
and I.appl_key='2'\ | 
					 | 
				
			||||||
and 's_' || S.tid_stg  in <@printkeys Studiengang.allNeededKeysList/>\ | 
					 | 
				
			||||||
group by 1,2;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select kennz,wert,link_maskeninfo_id\ | 
					 | 
				
			||||||
from tmp_erg\ | 
					 | 
				
			||||||
order by ord;^XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   drop_and_delete movable_columns\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Kennzahl" explanation="" center_heading\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=10\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Wert" explanation="" center_heading\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=30\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Maske" explanation="" center_heading\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=30\ | 
					 | 
				
			||||||
@@@^ ^ ^Dashboard Inistialisierung^drop table tmp_erg;^^3^700^360^0^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
320^44630^ | 
					 | 
				
			||||||
@ -0,0 +1,25 @@ | 
				
			|||||||
 | 
					45000^Spaltenlayout^3000^350^-1^140^180^1^integer^30^1^1^<<SQL>>SELECT tid,\ | 
				
			||||||
 | 
					       caption\ | 
				
			||||||
 | 
					FROM rpta_column_layout \ | 
				
			||||||
 | 
					where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ | 
				
			||||||
 | 
					and R.systeminfo_id=7)\ | 
				
			||||||
 | 
					order by sortnr, caption\ | 
				
			||||||
 | 
					 ;^^<<SQL>>SELECT tid,\ | 
				
			||||||
 | 
					       caption\ | 
				
			||||||
 | 
					FROM rpta_column_layout \ | 
				
			||||||
 | 
					where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ | 
				
			||||||
 | 
					and R.systeminfo_id=7)\ | 
				
			||||||
 | 
					order by sortnr, caption\ | 
				
			||||||
 | 
					 ;^ | 
				
			||||||
 | 
					45001^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
				
			||||||
 | 
					45002^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
				
			||||||
 | 
					45003^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ | 
				
			||||||
 | 
					45004^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
				
			||||||
 | 
					45006^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^apnr, eintrag^ ^ | 
				
			||||||
 | 
					45007^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
				
			||||||
 | 
					45008^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
				
			||||||
 | 
					45009^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
				
			||||||
 | 
					45011^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ | 
				
			||||||
 | 
					45012^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
				
			||||||
 | 
					45018^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
				
			||||||
 | 
					45022^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
				
			||||||
@ -0,0 +1 @@ | 
				
			|||||||
 | 
					45000^7^ | 
				
			||||||
@ -0,0 +1,13 @@ | 
				
			|||||||
 | 
					45000^45000^ | 
				
			||||||
 | 
					45000^45001^ | 
				
			||||||
 | 
					45000^45002^ | 
				
			||||||
 | 
					45000^45003^ | 
				
			||||||
 | 
					45000^45004^ | 
				
			||||||
 | 
					45000^45006^ | 
				
			||||||
 | 
					45000^45007^ | 
				
			||||||
 | 
					45000^45008^ | 
				
			||||||
 | 
					45000^45009^ | 
				
			||||||
 | 
					45000^45011^ | 
				
			||||||
 | 
					45000^45012^ | 
				
			||||||
 | 
					45000^45018^ | 
				
			||||||
 | 
					45000^45022^ | 
				
			||||||
@ -0,0 +1 @@ | 
				
			|||||||
 | 
					16^45000^ | 
				
			||||||
@ -0,0 +1,8 @@ | 
				
			|||||||
 | 
					45040^Benutzer/in^50^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,nvl(name,benutzer) from userinfo order by 2;^hidden^^ | 
				
			||||||
 | 
					45041^Spaltenlayout^10^0^0^150^80^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_column_layout where 1=1 /* and resultset_id=<<Virtuelle Tabelle>> */ order by 2;^^^ | 
				
			||||||
 | 
					45042^Spaltenlayouts verwalten^110^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_column_layout_list.jsp' from xdummy;^ | 
				
			||||||
 | 
					45043^Stichwort^20^0^0^150^150^1^sql^50^0^0^^^^ | 
				
			||||||
 | 
					45044^Komponente^1^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,name from systeminfo order by 2;^ ^^ | 
				
			||||||
 | 
					45045^Virtuelle Tabellen bearbeiten^100^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_resultset_list.jsp' from xdummy;^ | 
				
			||||||
 | 
					45046^Virtuelle Tabelle^5^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_resultset where 1=1 /* and systeminfo_id=<<Komponente>> */ order by 2;^^^ | 
				
			||||||
 | 
					45047^Spaltentyp^200^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_column_type order by 2;^^ ^ | 
				
			||||||
@ -0,0 +1 @@ | 
				
			|||||||
 | 
					45040^330^ | 
				
			||||||
@ -0,0 +1,8 @@ | 
				
			|||||||
 | 
					45040^45040^ | 
				
			||||||
 | 
					45040^45041^ | 
				
			||||||
 | 
					45040^45042^ | 
				
			||||||
 | 
					45040^45043^ | 
				
			||||||
 | 
					45040^45044^ | 
				
			||||||
 | 
					45040^45045^ | 
				
			||||||
 | 
					45040^45046^ | 
				
			||||||
 | 
					45040^45047^ | 
				
			||||||
@ -0,0 +1 @@ | 
				
			|||||||
 | 
					331^45040^ | 
				
			||||||
@ -1,33 +0,0 @@ | 
				
			|||||||
48000^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('sos_stud_astat','sos_stud_astat_gew')\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7) and uniquename='sos_stud_astat_rsz';^ | 
					 | 
				
			||||||
48001^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48002^Fächer^30^0^0^130^200^6^integer^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48003^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48004^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
					 | 
				
			||||||
48005^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^ | 
					 | 
				
			||||||
48006^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^ ^ ^ | 
					 | 
				
			||||||
48007^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48008^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48009^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48010^Semester^100^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^hidden^ ^ | 
					 | 
				
			||||||
48011^Stichtag^23^330^-1^130^100^1^sql^30^1^1^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ | 
					 | 
				
			||||||
48012^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
48013^Jahr^110^0^0^140^80^1^integer^30^0^13^^ ^ ^ | 
					 | 
				
			||||||
48014^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^ ^ ^ | 
					 | 
				
			||||||
48015^Nur Endsemester^21^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
48016^Matrikel-Nr.^35^350^-1^140^80^1^char^30^0^13^^ ^ ^ | 
					 | 
				
			||||||
48018^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
48019^Status^340^330^-1^130^180^1^sql^30^0^1^<<SQL>> select apnr,eintrag from sos_status order by 2^ ^ ^ | 
					 | 
				
			||||||
48022^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
					 | 
				
			||||||
48023^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^ ^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48000^7^ | 
					 | 
				
			||||||
@ -1,21 +0,0 @@ | 
				
			|||||||
48000^48000^ | 
					 | 
				
			||||||
48000^48001^ | 
					 | 
				
			||||||
48000^48002^ | 
					 | 
				
			||||||
48000^48003^ | 
					 | 
				
			||||||
48000^48004^ | 
					 | 
				
			||||||
48000^48005^ | 
					 | 
				
			||||||
48000^48006^ | 
					 | 
				
			||||||
48000^48007^ | 
					 | 
				
			||||||
48000^48008^ | 
					 | 
				
			||||||
48000^48009^ | 
					 | 
				
			||||||
48000^48010^ | 
					 | 
				
			||||||
48000^48011^ | 
					 | 
				
			||||||
48000^48012^ | 
					 | 
				
			||||||
48000^48013^ | 
					 | 
				
			||||||
48000^48014^ | 
					 | 
				
			||||||
48000^48015^ | 
					 | 
				
			||||||
48000^48016^ | 
					 | 
				
			||||||
48000^48018^ | 
					 | 
				
			||||||
48000^48019^ | 
					 | 
				
			||||||
48000^48022^ | 
					 | 
				
			||||||
48000^48023^ | 
					 | 
				
			||||||
@ -1,182 +0,0 @@ | 
				
			|||||||
48000^Tabellenausgabe Studierende (amtlich und intern)^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct T.name,\ | 
					 | 
				
			||||||
R.is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R \ | 
					 | 
				
			||||||
  where T.name=R.uniquename\ | 
					 | 
				
			||||||
  and T.name='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=0\ | 
					 | 
				
			||||||
    \ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
 R.is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=1\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       R.is_virtual,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign jahr_param="" />\ | 
					 | 
				
			||||||
<#assign jahr_filter="1=1" />\ | 
					 | 
				
			||||||
/* <#assign jahr_param="<<Jahr>>" /> */\ | 
					 | 
				
			||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ | 
					 | 
				
			||||||
<#if jahr_param !="">\ | 
					 | 
				
			||||||
<#assign jahr_filter="(" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='2' and  val(substring('' || sem_rueck_beur_ein from 1 for 4))="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + " or "/>\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='1' and  (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign semester_filter ="1=1\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>'" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Nur Endsemester>>"="1">\ | 
					 | 
				
			||||||
--nur Endsemester\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and 1=1 and sem_rueck_beur_ein = "+endsemester  /> \ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="<<Köpfe oder Fälle ?>>\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein = <<Semester>> */\ | 
					 | 
				
			||||||
/* and stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
/* and <<Hochschulzugangsberechtigung>> */\ | 
					 | 
				
			||||||
/* and <<Hörerstatus>>*/\ | 
					 | 
				
			||||||
/* and geschlecht = <<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and fach_sem_zahl <= <<bis Fachsemester>> */\ | 
					 | 
				
			||||||
/* and kz_rueck_beur_ein in(<<Status>>) */\ | 
					 | 
				
			||||||
/* and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>' */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + jahr_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + semester_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and stg in "+Fächer.allNeededKeysList /> --<<Fächer>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.abschluss in "+Abschluss.allNeededKeysList +")" /> --<<Abschluss>> */\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
<#assign mtknr_filter="matrikel_nr::varchar(255)" />\ | 
					 | 
				
			||||||
<#if K_SOS_MTKNR_EXT=1>\ | 
					 | 
				
			||||||
<#assign mtknr_filter="pseudonym" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign matrikel_nr_sel="" />\ | 
					 | 
				
			||||||
/*<#assign matrikel_nr_sel=<<Matrikel-Nr.>> />*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if matrikel_nr_sel !="">\ | 
					 | 
				
			||||||
<#assign filter=filter+" and "+mtknr_filter+"='"+matrikel_nr_sel+"'" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout  nonvirtualTableFilter=filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#if 1=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="sortnr" center_heading explanation=""\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=5 text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^48000^ | 
					 | 
				
			||||||
@ -1,12 +0,0 @@ | 
				
			|||||||
48040^Benutzer/in^50^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,nvl(name,benutzer) from userinfo order by 2;^hidden^^ | 
					 | 
				
			||||||
48041^Spaltenlayout^10^0^0^150^80^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_column_layout where 1=1 /* and resultset_id=<<Virtuelle Tabelle>> */ order by 2;^^^ | 
					 | 
				
			||||||
48042^Spaltenlayouts verwalten^110^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_column_layout_list.jsp' from xdummy;^ | 
					 | 
				
			||||||
48043^Stichwort^20^0^0^150^150^1^sql^50^0^0^^^^ | 
					 | 
				
			||||||
48044^Komponente^1^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,name from systeminfo order by 2;^ ^^ | 
					 | 
				
			||||||
48045^Virtuelle Tabellen bearbeiten^100^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_resultset_list.jsp' from xdummy;^ | 
					 | 
				
			||||||
48046^Virtuelle Tabelle^5^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_resultset where 1=1 /* and systeminfo_id=<<Komponente>> */ order by 2;^^^ | 
					 | 
				
			||||||
48047^Spaltentyp^200^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_column_type order by 2;^^ ^ | 
					 | 
				
			||||||
48048^Spalte (Schlüssel)^15^0^0^150^80^1^char^200^0^1^<<SQL>> select C.uniquename,C.caption from rpta_column C where 1=1 /* and resultset_id=<<Virtuelle Tabelle>> */\ | 
					 | 
				
			||||||
/* and tid in (select L.column_id from rpta_column2layout L\ | 
					 | 
				
			||||||
where L.layout_id=<<Spaltenlayout>>) */\ | 
					 | 
				
			||||||
 order by 2;^^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48040^330^ | 
					 | 
				
			||||||
@ -1,9 +0,0 @@ | 
				
			|||||||
48040^48040^ | 
					 | 
				
			||||||
48040^48041^ | 
					 | 
				
			||||||
48040^48042^ | 
					 | 
				
			||||||
48040^48043^ | 
					 | 
				
			||||||
48040^48044^ | 
					 | 
				
			||||||
48040^48045^ | 
					 | 
				
			||||||
48040^48046^ | 
					 | 
				
			||||||
48040^48047^ | 
					 | 
				
			||||||
48040^48048^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
331^48040^ | 
					 | 
				
			||||||
@ -1,35 +0,0 @@ | 
				
			|||||||
48080^Institution (Stelle)^1^0^0^150^150^0^char^30^0^12^<<SQL>>select tid,type,name,sortnr from sichten where art in ('SVA-Kostenstellen-Sicht','SVA-spez-Besch./Kostenstellen-Sicht','SVA-spez-Kostenstellen-Sicht') and aktiv=1 order by sortnr,type,name;^^^ | 
					 | 
				
			||||||
48081^Datum^0^350^-1^150^80^1^date^10^1^0^^^<<SQL>> select today() from xdummy^ | 
					 | 
				
			||||||
48082^Stellenkategorie^2^0^0^150^150^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA Kategorie' and aktiv=1 order by type,name;^ ^^ | 
					 | 
				
			||||||
48083^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where tid=<<Spaltenlayout>>) order by 2;^^^ | 
					 | 
				
			||||||
48084^Lehreinheit (Stelle)^4^0^0^150^150^1^char^4^0^12^<<SQL>> select tid,type,name from sichten where art ='SVA-Lehreinheiten-Sicht' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48085^Stellen-Nr.^50^350^-1^150^80^1^integer^10^0^0^^^^ | 
					 | 
				
			||||||
48086^Amtsbezeichnung^55^0^0^150^160^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA Amtsdienstbez.' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48087^Beschäftigungsstelle (Person)^65^0^0^150^150^1^char^30^0^12^<<SQL>>select tid,type,name,sortnr from sichten where art in ('SVA-Kostenstellen-Sicht','SVA-spez-Besch./Kostenstellen-Sicht') and aktiv=1 order by sortnr,type,name;^hidden^^ | 
					 | 
				
			||||||
48088^Kostenstelle (Person)^70^350^-1^150^150^1^char^30^0^12^<<SQL>> select tid,type,name,sortnr from sichten where art  in ('SVA-Kostenstellen-Sicht','SVA-spez-Kostenstellen-Sicht','SVA-Kst-spezial') and aktiv=1 order by sortnr,type,name;^hidden^^ | 
					 | 
				
			||||||
48089^Haushaltsvermerk^60^350^-1^150^200^3^char^4^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA HHV' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48090^Spaltenlayout^3000^350^-1^140^180^1^integer^50^1^1^<<SQL>>SELECT tid,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sva_pbe_aggr_sgd'\ | 
					 | 
				
			||||||
and R.systeminfo_id=6)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^^<<SQL>>SELECT tid,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sva_pbe_aggr_sgd'\ | 
					 | 
				
			||||||
and R.systeminfo_id=6)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
limit 1 \ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
48091^Filter Stellen^120^350^-1^150^150^1^sql^20^0^1^<<SQL>> select id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SVA_RPTA_STELL_FILTER' order by 2;^ ^^ | 
					 | 
				
			||||||
48092^Dienstart^3^350^-1^150^150^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA Dienstart' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48093^BVL-Gruppe (Stelle)^74^0^0^150^120^10^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48094^BVL-Gruppe (Person)^80^350^-1^150^120^10^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48095^Filter Besetzung^130^0^0^150^150^1^sql^20^0^1^<<SQL>> select id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SVA_BESETZ_FILTER' order by 2;^hidden^^ | 
					 | 
				
			||||||
48096^Besetzung anzeigen^150^0^0^150^120^1^sql^30^1^1^<<SQL>> select 'z','einschl. zukünftige' from xdummy union select 'a','nur aktuelle' from xdummy;^^<<SQL>>select 'z','einschl. zukünftige' from xdummy^ | 
					 | 
				
			||||||
48097^Personalkategorie^310^0^0^100^200^3^char^30^0^1^<<SQL>> select id,caption from sx_repository where art='SVA_PERSONALKATEGORIE' and aktiv=1 and gueltig_seit<=date_val(<<Datum>>) and gueltig_bis>=date_val(<<Datum>>)  order by sort1^hidden^^ | 
					 | 
				
			||||||
48098^Stellenanzeige^1000^0^0^100^200^1^char^20^0^1^<<SQL>> select 'besetzt','nur besetzte' from xdummy union select 'frei','nur freie' from xdummy union select 'z','einschl. zukünftige' from xdummy^ ^<<SQL>> select 'z','einschl. zukünftige' from xdummy^ | 
					 | 
				
			||||||
48099^Stellen-Nr. im HHPlan^52^350^-1^150^80^1^char^25^0^0^^^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48080^6^ | 
					 | 
				
			||||||
@ -1,20 +0,0 @@ | 
				
			|||||||
48080^48080^ | 
					 | 
				
			||||||
48080^48081^ | 
					 | 
				
			||||||
48080^48082^ | 
					 | 
				
			||||||
48080^48083^ | 
					 | 
				
			||||||
48080^48084^ | 
					 | 
				
			||||||
48080^48085^ | 
					 | 
				
			||||||
48080^48086^ | 
					 | 
				
			||||||
48080^48087^ | 
					 | 
				
			||||||
48080^48088^ | 
					 | 
				
			||||||
48080^48089^ | 
					 | 
				
			||||||
48080^48090^ | 
					 | 
				
			||||||
48080^48091^ | 
					 | 
				
			||||||
48080^48092^ | 
					 | 
				
			||||||
48080^48093^ | 
					 | 
				
			||||||
48080^48094^ | 
					 | 
				
			||||||
48080^48095^ | 
					 | 
				
			||||||
48080^48096^ | 
					 | 
				
			||||||
48080^48097^ | 
					 | 
				
			||||||
48080^48098^ | 
					 | 
				
			||||||
48080^48099^ | 
					 | 
				
			||||||
@ -1,229 +0,0 @@ | 
				
			|||||||
48080^Stellenbesetzung und Beschäftigung (Liste)^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
<#assign my_base_rs='sva_pbe_aggr_sgd' />\ | 
					 | 
				
			||||||
SELECT distinct name,\ | 
					 | 
				
			||||||
0::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables\ | 
					 | 
				
			||||||
  where name in ('${my_base_rs}')\ | 
					 | 
				
			||||||
    and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
  1::smallint  as is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.tid=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.tid=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="sva_sgd_aggr.d_gueltig_anfang <= date_val(<<Datum>>) \ | 
					 | 
				
			||||||
      and sva_sgd_aggr.d_gueltig_ende >= date_val(<<Datum>>) "/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if "<<Stellenanzeige>>"="'z'">\ | 
					 | 
				
			||||||
 <#assign filter="sva_sgd_aggr.d_gueltig_ende >= date_val(<<Datum>>) "/>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
      \ | 
					 | 
				
			||||||
<#assign filter = filter + "\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.ca115_haushverm in <@printkeys .vars["Haushaltsvermerk"].allNeededKeys /> -- <<Haushaltsvermerk>> */\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.ca107_dienstart in <@printkeys .vars["Dienstart"].allNeededKeys /> --<<Dienstart>>= */\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.ca259_kategorie in <@printkeys .vars["Stellenkategorie"].allNeededKeys /> -- <<Stellenkategorie>> */\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.ca108_amtsbez in <@printkeys .vars["Amtsbezeichnung"].allNeededKeys /> -- <<Amtsbezeichnung>> */\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.lehreinheit in <@printkeys .vars["Lehreinheit (Stelle)"].allNeededKeys /> --  <<Lehreinheit (Stelle)>> */\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.ca109_key_bvl in <@printkeys .vars["BVL-Gruppe (Stelle)"].allNeededKeys /> --<<BVL-Gruppe (Stelle)>>*/\ | 
					 | 
				
			||||||
/* and sva_sgd_aggr.stellen_nr=<<Stellen-Nr.>> */\ | 
					 | 
				
			||||||
/* and ${<<Filter Stellen>>} */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if "<<Stellen-Nr. im HHPlan>>"!="">\ | 
					 | 
				
			||||||
<#assign hn="<<Stellen-Nr. im HHPlan>>"?replace("'","")/>\ | 
					 | 
				
			||||||
<#assign filter = filter + "and sva_sgd_aggr.haushalt_nr like '"+hn+"%'" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if "<<Stellenanzeige>>"="'besetzt'">\ | 
					 | 
				
			||||||
<#assign filter = filter + " and 0 < (select count(*) from sva_pbe_aggr PB where S.stellen_nr =PB.stellen_nr and date_val(<<Datum>>) between PB.d_besetz_anfang \ | 
					 | 
				
			||||||
    and PB.d_besetz_ende  )" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Stellenanzeige>>"="'frei'">\ | 
					 | 
				
			||||||
<#assign filter = filter + " and 0 = (select count(*) from sva_pbe_aggr PB where S.stellen_nr =PB.stellen_nr and date_val(<<Datum>>) between PB.d_besetz_anfang \ | 
					 | 
				
			||||||
    and PB.d_besetz_ende  )" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter = filter + " and sva_sgd_aggr.ch110_besch_st in "+.vars["Institution (Stelle)"].allNeededKeysList /> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--Daten außerhalb des Berichtszeitraums entfernen:\ | 
					 | 
				
			||||||
delete from ${basetable.runtime_tablename}\ | 
					 | 
				
			||||||
where <#if '<<Besetzung anzeigen>>'='a'>\ | 
					 | 
				
			||||||
--nur aktuelle, ohne zukünftig:\ | 
					 | 
				
			||||||
sva_pbe_aggr_d_besetz_anfang > date_val(<<Datum>>)\ | 
					 | 
				
			||||||
or \ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
sva_pbe_aggr_d_besetz_ende < date_val(<<Datum>>)\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
--zuerst die Basisdaten:\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.coltype="physicalColumn">\ | 
					 | 
				
			||||||
${column.srcfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="logicalColumn">\ | 
					 | 
				
			||||||
${column.colfunction} as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="lookupColumn">\ | 
					 | 
				
			||||||
(${column.colfunction}) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="computedColumn">\ | 
					 | 
				
			||||||
null::decimal(19,6) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
null::char(1) as dummycol\ | 
					 | 
				
			||||||
into temp tmp_stud\ | 
					 | 
				
			||||||
from ${basetable.runtime_tablename}\ | 
					 | 
				
			||||||
<#if rpta_column_layout.whereclause !="">\ | 
					 | 
				
			||||||
where ${rpta_column_layout.whereclause}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--ergebnistabelle:\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
--zuerst die nicht-Aggregate:\ | 
					 | 
				
			||||||
<#assign groupby=0 />\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_aggregate==0>\ | 
					 | 
				
			||||||
<#assign groupby=groupby+1 />\ | 
					 | 
				
			||||||
${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
--dann die Aggregate:\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_aggregate==1 &&  column.coltype!="computedColumn">\ | 
					 | 
				
			||||||
sum(${column.targetfieldname}) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
null::char(1) as dummycol\ | 
					 | 
				
			||||||
into temp tmp_stud2\ | 
					 | 
				
			||||||
from tmp_stud\ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/*  ${<<Zusatzfilter>>} */\ | 
					 | 
				
			||||||
group by\ | 
					 | 
				
			||||||
<#list 1..groupby as i>${i}\ | 
					 | 
				
			||||||
<#if i != groupby>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign number_of_visible_colums=0 />\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
<#assign number_of_visible_colums=number_of_visible_colums+1 />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#assign colnr=0 />\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
<#assign colnr=colnr+1 />\ | 
					 | 
				
			||||||
<#assign format_sql="" />\ | 
					 | 
				
			||||||
<#if column.format_sql?string != "">\ | 
					 | 
				
			||||||
<#assign format_sql=column.format_sql />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if column.coltype=="computedColumn">\ | 
					 | 
				
			||||||
(${column.colfunction})${format_sql} as ${column.targetfieldname}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
${column.targetfieldname}${format_sql} as ${column.targetfieldname}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if colnr < number_of_visible_colums>,</#if>\ | 
					 | 
				
			||||||
</#if> --wenn sichtbar\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
from tmp_stud2\ | 
					 | 
				
			||||||
order by <#list 1..number_of_visible_colums as i>${i}\ | 
					 | 
				
			||||||
<#if i != number_of_visible_colums>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
drop table if exists ${basetable.runtime_tablename};\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
drop table if exists tmp_stud;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^^^Informationen über Stellen und deren Besetzung zu einem bel. Zeitpunkt^drop table tmp_stud2;^^2^700^500^^1^<<SQL>> select 'Achtung: Das Datum des Buttons Institution bzw OrgEinheit (Stelle) unterscheidet sich vom ausgewählten Datum im Maskenfeld.' from xdummy where <<Institution (Stelle)-Stand>> != date_val(<<Datum>>)^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
100^48080^ | 
					 | 
				
			||||||
@ -1,30 +0,0 @@ | 
				
			|||||||
48110^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_exam_unit_dim_studiengang'\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_exam_unit_dim_studiengang'\ | 
					 | 
				
			||||||
) and uniquename='rpta_exam_unit_dim_studiengang_note';^ | 
					 | 
				
			||||||
48111^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48112^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48113^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ | 
					 | 
				
			||||||
48114^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
					 | 
				
			||||||
48115^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^^ | 
					 | 
				
			||||||
48116^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^999^hs_zugangsber^apnr, eintrag^ ^ | 
					 | 
				
			||||||
48117^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48118^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^999^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48119^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,-1000 from sichten where name_intern ='sos_kst_fb_stgabint'\ | 
					 | 
				
			||||||
union select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48121^Stichtag^23^330^-1^130^100^1^sql^30^1^999^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ | 
					 | 
				
			||||||
48122^Hörerstatus^200^330^-1^140^150^1^sql^30^0^999^<<SQL>> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
48128^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^999^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^apnr, eintrag^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
48132^Geschlecht^110^0^0^140^80^1^integer^30^0^999^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
					 | 
				
			||||||
48133^Spalten^3002^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^ ^ ^ | 
					 | 
				
			||||||
48134^tablestylesheet^3001^0^0^100^150^1^char^200^1^1^<<SQL>>\ | 
					 | 
				
			||||||
select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=48110^ ^<<SQL>>select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=48110 and ord=1^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48110^7^ | 
					 | 
				
			||||||
@ -1,16 +0,0 @@ | 
				
			|||||||
48110^48110^ | 
					 | 
				
			||||||
48110^48111^ | 
					 | 
				
			||||||
48110^48112^ | 
					 | 
				
			||||||
48110^48113^ | 
					 | 
				
			||||||
48110^48114^ | 
					 | 
				
			||||||
48110^48115^ | 
					 | 
				
			||||||
48110^48116^ | 
					 | 
				
			||||||
48110^48117^ | 
					 | 
				
			||||||
48110^48118^ | 
					 | 
				
			||||||
48110^48119^ | 
					 | 
				
			||||||
48110^48121^ | 
					 | 
				
			||||||
48110^48122^ | 
					 | 
				
			||||||
48110^48128^ | 
					 | 
				
			||||||
48110^48132^ | 
					 | 
				
			||||||
48110^48133^ | 
					 | 
				
			||||||
48110^48134^ | 
					 | 
				
			||||||
@ -1,112 +0,0 @@ | 
				
			|||||||
48110^Leistungen und Studiengänge^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
<#assign my_base_rs='rpta_exam_unit_dim_studiengang' />\ | 
					 | 
				
			||||||
SELECT distinct name,\ | 
					 | 
				
			||||||
0::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables\ | 
					 | 
				
			||||||
  where name in ('${my_base_rs}')\ | 
					 | 
				
			||||||
    and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
  1::smallint  as is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="1=1\ | 
					 | 
				
			||||||
/* and sem_der_pruefung >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and sem_der_pruefung <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
/* and sem_der_pruefung = <<Semester>> */\ | 
					 | 
				
			||||||
/* and substring('' || sem_der_pruefung from 5 for 1)='<<Semestertyp>>' */\ | 
					 | 
				
			||||||
/* and fach_sem_zahl <= <<bis Fachsemester>>  */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
<#assign filter = filter + " and tid_stg in (select tid from lehr_stg_ab where stg in "+Fächer.allNeededKeysList +")"/> \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout nonvirtualTableFilter=1/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^Studienfach^Anzahl bzw. Anteil^Leistungen und Studiengänge^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^48110^ | 
					 | 
				
			||||||
@ -1,16 +0,0 @@ | 
				
			|||||||
48150^Benutzer/in^50^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,nvl(name,benutzer) from userinfo order by 2;^hidden^^ | 
					 | 
				
			||||||
48151^Spaltenlayout^10^0^0^150^80^1^integer^200^0^1^<<SQL>> select tid,caption from rpta_column_layout where 1=1 /* and resultset_id=<<Virtuelle Tabelle>> */ order by 2;^hidden^^ | 
					 | 
				
			||||||
48152^Spaltenlayouts verwalten^110^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_column_layout_list.jsp' from xdummy;^ | 
					 | 
				
			||||||
48153^Name^20^0^0^150^150^1^char^50^0^0^^^^ | 
					 | 
				
			||||||
48154^Schlüssel^30^0^0^150^200^1^char^200^0^0^ ^ ^^ | 
					 | 
				
			||||||
48155^Virtuelle Tabellen bearbeiten^100^0^0^140^80^1^char^255^0^18^ ^ ^<<SQL>> select '../edit/rpta/rpta_resultset_list.jsp' from xdummy;^ | 
					 | 
				
			||||||
48156^Virtuelle Tabelle^5^0^0^150^200^1^integer^200^1^1^<<SQL>> select tid,caption from rpta_resultset where 1=1 /* and systeminfo_id=<<Komponente>> */ order by 2;^^^ | 
					 | 
				
			||||||
48157^Spaltentyp^200^0^0^150^200^1^integer^200^1^1^<<SQL>> select tid,caption from rpta_column_type order by 2;^^<<SQL>> select tid,caption from rpta_column_type\ | 
					 | 
				
			||||||
where uniquename='physicalColumn'^ | 
					 | 
				
			||||||
48158^Komponente^1^0^0^150^200^1^integer^200^0^1^<<SQL>> select tid,name from systeminfo order by 2;^ ^^ | 
					 | 
				
			||||||
48159^Quellfeld^7^0^0^150^200^1^char^200^0^1^<<SQL>> select F.name,coalesce(trim(F.caption),'Feld') || ' (' || trim(F.name) || ')' \ | 
					 | 
				
			||||||
from sx_fields F, rpta_resultset R\ | 
					 | 
				
			||||||
where F.table_name=R.uniquename\ | 
					 | 
				
			||||||
/* and R.tid=<<Virtuelle Tabelle>> */\ | 
					 | 
				
			||||||
and currentlyused=1\ | 
					 | 
				
			||||||
order by 1^ ^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48150^330^ | 
					 | 
				
			||||||
@ -1,10 +0,0 @@ | 
				
			|||||||
48150^48150^ | 
					 | 
				
			||||||
48150^48151^ | 
					 | 
				
			||||||
48150^48152^ | 
					 | 
				
			||||||
48150^48153^ | 
					 | 
				
			||||||
48150^48154^ | 
					 | 
				
			||||||
48150^48155^ | 
					 | 
				
			||||||
48150^48156^ | 
					 | 
				
			||||||
48150^48157^ | 
					 | 
				
			||||||
48150^48158^ | 
					 | 
				
			||||||
48150^48159^ | 
					 | 
				
			||||||
@ -1,122 +0,0 @@ | 
				
			|||||||
48150^Spalte anlegen^--Autor: D. Quathamer\ | 
					 | 
				
			||||||
--Datum: 15.3.2024\ | 
					 | 
				
			||||||
--freemarker template\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_rpta_column (\ | 
					 | 
				
			||||||
ord smallint,\ | 
					 | 
				
			||||||
tid INTEGER , \ | 
					 | 
				
			||||||
uniquename       varchar(255),\ | 
					 | 
				
			||||||
   caption          varchar(255),\ | 
					 | 
				
			||||||
   srcfieldname     varchar(255),\ | 
					 | 
				
			||||||
   column_type      integer,\ | 
					 | 
				
			||||||
   column_type_str varchar(255),\ | 
					 | 
				
			||||||
   column_type_uniquename varchar(255),\ | 
					 | 
				
			||||||
   col_function     text,\ | 
					 | 
				
			||||||
   is_aggregate     smallint,\ | 
					 | 
				
			||||||
   resultset_id     integer,\ | 
					 | 
				
			||||||
   resultset_str varchar(255),\ | 
					 | 
				
			||||||
   systeminfo_str varchar(255),\ | 
					 | 
				
			||||||
   custom           integer     ,\ | 
					 | 
				
			||||||
   description      text,\ | 
					 | 
				
			||||||
   targetfieldname  varchar(255),\ | 
					 | 
				
			||||||
nextedit varchar(255)\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
begin work;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_rpta_column (--ord,\ | 
					 | 
				
			||||||
-- tid,\ | 
					 | 
				
			||||||
--       uniquename,\ | 
					 | 
				
			||||||
--       caption,\ | 
					 | 
				
			||||||
--       srcfieldname,\ | 
					 | 
				
			||||||
column_type,\ | 
					 | 
				
			||||||
       column_type_str,\ | 
					 | 
				
			||||||
       column_type_uniquename,\ | 
					 | 
				
			||||||
--       col_function,\ | 
					 | 
				
			||||||
--       is_aggregate,\ | 
					 | 
				
			||||||
       resultset_id\ | 
					 | 
				
			||||||
--       custom,\ | 
					 | 
				
			||||||
--       description,\ | 
					 | 
				
			||||||
--       targetfieldname,\ | 
					 | 
				
			||||||
 --      nextedit\ | 
					 | 
				
			||||||
       ) \ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
T.tid,\ | 
					 | 
				
			||||||
T.caption as column_type_str,\ | 
					 | 
				
			||||||
T.uniquename as column_type_uniquename,\ | 
					 | 
				
			||||||
<<Virtuelle Tabelle>> as resultset_id\ | 
					 | 
				
			||||||
FROM  rpta_column_type T \ | 
					 | 
				
			||||||
where T.tid=<<Spaltentyp>> \ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_rpta_column set resultset_str=R.caption\ | 
					 | 
				
			||||||
from rpta_resultset R\ | 
					 | 
				
			||||||
where R.tid=tmp_rpta_column.resultset_id;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/*update tmp_rpta_column set srcfieldname=F.name,\ | 
					 | 
				
			||||||
is_aggregate=F.is_sum,\ | 
					 | 
				
			||||||
uniquename=F.name,\ | 
					 | 
				
			||||||
caption=F.caption\ | 
					 | 
				
			||||||
from sx_fields F, rpta_resultset R\ | 
					 | 
				
			||||||
where F.table_name=R.uniquename\ | 
					 | 
				
			||||||
and R.tid=tmp_rpta_column.resultset_id\ | 
					 | 
				
			||||||
and F.name=<<Quellfeld>>\ | 
					 | 
				
			||||||
and tmp_rpta_column.column_type_uniquename='physicalColumn'; */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* update tmp_rpta_column set uniquename=<<Schlüssel>>; */\ | 
					 | 
				
			||||||
/* update tmp_rpta_column set caption=<<Name>>;*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_rpta_column set uniquename='Created ' || timestamp_str(now())\ | 
					 | 
				
			||||||
where uniquename is null;\ | 
					 | 
				
			||||||
update tmp_rpta_column set caption='Created ' || timestamp_str(now())\ | 
					 | 
				
			||||||
where caption is null;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select sp_update_sequence('rpta_column');\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into rpta_column( uniquename,\ | 
					 | 
				
			||||||
       caption,\ | 
					 | 
				
			||||||
       srcfieldname,\ | 
					 | 
				
			||||||
       column_type,\ | 
					 | 
				
			||||||
       col_function,\ | 
					 | 
				
			||||||
       is_aggregate,\ | 
					 | 
				
			||||||
       resultset_id,\ | 
					 | 
				
			||||||
       custom,\ | 
					 | 
				
			||||||
       description,\ | 
					 | 
				
			||||||
       targetfieldname)\ | 
					 | 
				
			||||||
select uniquename,\ | 
					 | 
				
			||||||
       caption,\ | 
					 | 
				
			||||||
       srcfieldname,\ | 
					 | 
				
			||||||
       column_type,\ | 
					 | 
				
			||||||
       col_function,\ | 
					 | 
				
			||||||
       is_aggregate,\ | 
					 | 
				
			||||||
       resultset_id,\ | 
					 | 
				
			||||||
       custom,\ | 
					 | 
				
			||||||
       description,\ | 
					 | 
				
			||||||
       targetfieldname\ | 
					 | 
				
			||||||
from tmp_rpta_column;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_rpta_column set tid=currval('rpta_column_tid_seq');\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
commit;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select 'Ergebnis' as s1, \ | 
					 | 
				
			||||||
' Eintrag angelegt:' || coalesce(C.caption,'Unbenannt') || ' (' || coalesce(C.uniquename,'TID: ' || C.tid::varchar) || ') [' || C.column_type_str || ']'  as ergebnis2,\ | 
					 | 
				
			||||||
'../edit/rpta/rpta_column_edit.jsp|tid=' || C.tid as nextedit\ | 
					 | 
				
			||||||
from tmp_rpta_column C\ | 
					 | 
				
			||||||
;^XIL List\ | 
					 | 
				
			||||||
   drop_and_delete movable_columns sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=2\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Ergebnis" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Spalte" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
Column CID=1 heading_text="Bearbeiten" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=5 text_size=200\ | 
					 | 
				
			||||||
@@@^^^Spaltendefinitionen anlegen^drop table tmp_rpta_column;^^1^440^360^0^1^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
331^48150^ | 
					 | 
				
			||||||
@ -1,35 +0,0 @@ | 
				
			|||||||
48180^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and is_virtual=0\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sos_stud_astat'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
and is_virtual=0\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
limit 1^ | 
					 | 
				
			||||||
48181^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48182^Fächer^30^0^0^130^200^6^integer^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48183^Abschluss^40^0^0^100^200^3^char^1500^0^1^<<SQL>> select apnr, druck from cifx where key=35 order by 2;^ ^ ^ | 
					 | 
				
			||||||
48184^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
					 | 
				
			||||||
48185^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^<<SQL>>  select 2,'nur Wintersemester' from xdummy^ | 
					 | 
				
			||||||
48186^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^ ^ ^ | 
					 | 
				
			||||||
48187^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48188^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48189^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48190^Semester^100^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^hidden^ ^ | 
					 | 
				
			||||||
48191^Stichtag^23^330^-1^130^100^1^sql^30^0^1^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende';^hidden^ ^ | 
					 | 
				
			||||||
48192^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
48193^Jahr^110^0^0^140^80^1^integer^30^0^13^^ ^ ^ | 
					 | 
				
			||||||
48194^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^ ^ ^ | 
					 | 
				
			||||||
48195^Nur Endsemester^21^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
48198^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
48202^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
					 | 
				
			||||||
48203^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^ ^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48180^7^ | 
					 | 
				
			||||||
@ -1,19 +0,0 @@ | 
				
			|||||||
48180^48180^ | 
					 | 
				
			||||||
48180^48181^ | 
					 | 
				
			||||||
48180^48182^ | 
					 | 
				
			||||||
48180^48183^ | 
					 | 
				
			||||||
48180^48184^ | 
					 | 
				
			||||||
48180^48185^ | 
					 | 
				
			||||||
48180^48186^ | 
					 | 
				
			||||||
48180^48187^ | 
					 | 
				
			||||||
48180^48188^ | 
					 | 
				
			||||||
48180^48189^ | 
					 | 
				
			||||||
48180^48190^ | 
					 | 
				
			||||||
48180^48191^ | 
					 | 
				
			||||||
48180^48192^ | 
					 | 
				
			||||||
48180^48193^ | 
					 | 
				
			||||||
48180^48194^ | 
					 | 
				
			||||||
48180^48195^ | 
					 | 
				
			||||||
48180^48198^ | 
					 | 
				
			||||||
48180^48202^ | 
					 | 
				
			||||||
48180^48203^ | 
					 | 
				
			||||||
@ -1,274 +0,0 @@ | 
				
			|||||||
48180^Tabellenausgabe Studierende (amtlich und intern) (optimiert)^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename as resultset_uniquename,\ | 
					 | 
				
			||||||
L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
L.is_virtual\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
<#if column_layout.is_virtual==1>\ | 
					 | 
				
			||||||
SELECT distinct T.name,\ | 
					 | 
				
			||||||
1::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R \ | 
					 | 
				
			||||||
  where T.name=R.uniquename\ | 
					 | 
				
			||||||
  and T.name='${column_layout.resultset_uniquename}'\ | 
					 | 
				
			||||||
<#else>    \ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
L.is_virtual,\ | 
					 | 
				
			||||||
  L.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_column_layout L where L.uniquename='${column_layout.uniquename}'\ | 
					 | 
				
			||||||
   ;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.runtime_tablename}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign jahr_param="" />\ | 
					 | 
				
			||||||
<#assign jahr_filter="1=1" />\ | 
					 | 
				
			||||||
/* <#assign jahr_param="<<Jahr>>" /> */\ | 
					 | 
				
			||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ | 
					 | 
				
			||||||
<#if jahr_param !="">\ | 
					 | 
				
			||||||
<#assign jahr_filter="(" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='2' and  val(substring('' || sem_rueck_beur_ein from 1 for 4))="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + " or "/>\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem_rueck_beur_ein from 5 for 1)='1' and  (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign semester_filter ="1=1\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>'" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Nur Endsemester>>"="1">\ | 
					 | 
				
			||||||
--nur Endsemester\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and 1=1 and sem_rueck_beur_ein = "+endsemester  /> \ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="<<Köpfe oder Fälle ?>>\ | 
					 | 
				
			||||||
/* and sem_rueck_beur_ein = <<Semester>> */\ | 
					 | 
				
			||||||
/* and stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
/* and <<Hochschulzugangsberechtigung>> */\ | 
					 | 
				
			||||||
/* and <<Hörerstatus>>*/\ | 
					 | 
				
			||||||
/* and abschluss in (<<Abschluss>>) */\ | 
					 | 
				
			||||||
/* and geschlecht = <<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and fach_sem_zahl <= <<bis Fachsemester>> */\ | 
					 | 
				
			||||||
/* and substring('' || sem_rueck_beur_ein from 5 for 1)='<<Semestertyp>>' */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign filter="1=1" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + jahr_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + semester_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter = filter + " and 's_' || tid_stg in "+Studiengang.allNeededKeysList /> \ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and stg in "+Fächer.allNeededKeysList /> --<<Fächer>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
--zuerst die Basisdaten:\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.coltype="physicalColumn">\ | 
					 | 
				
			||||||
${column.srcfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="logicalColumn">\ | 
					 | 
				
			||||||
${column.colfunction} as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="lookupColumn">\ | 
					 | 
				
			||||||
(${column.colfunction}) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="computedColumn">\ | 
					 | 
				
			||||||
null::decimal(19,6) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
null::char(1) as dummycol\ | 
					 | 
				
			||||||
into temp tmp_rs\ | 
					 | 
				
			||||||
from ${basetable.runtime_tablename}\ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_column_layout.whereclause !="">\ | 
					 | 
				
			||||||
and ${rpta_column_layout.whereclause}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if rpta_column_layout.is_virtual ==0>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
--wenn column_layout.is_virtual=0,\ | 
					 | 
				
			||||||
--also die Tabelle ist schon da:\ | 
					 | 
				
			||||||
<#assign groupby=0 />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select <#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_aggregate==1 &&  column.coltype!="computedColumn">\ | 
					 | 
				
			||||||
sum(${column.targetfieldname}) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.coltype="computedColumn">\ | 
					 | 
				
			||||||
null::float as ${column.targetfieldname},\ | 
					 | 
				
			||||||
<#elseif column.is_visible==1>\ | 
					 | 
				
			||||||
<#assign groupby=groupby+1 />\ | 
					 | 
				
			||||||
${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
null::char(1) as dummycol\ | 
					 | 
				
			||||||
into temp tmp_rs\ | 
					 | 
				
			||||||
from ${basetable.runtime_tablename}\ | 
					 | 
				
			||||||
where ${filter}\ | 
					 | 
				
			||||||
<#if groupby !=0 >\ | 
					 | 
				
			||||||
group by\ | 
					 | 
				
			||||||
<#list 1..groupby as i>${i}\ | 
					 | 
				
			||||||
<#if i != groupby>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
--ergebnistabelle:\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
--die Aggregate:\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_aggregate==1 &&  column.coltype!="computedColumn">\ | 
					 | 
				
			||||||
sum(${column.targetfieldname}) as ${column.targetfieldname},\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
null::char(1) as dummycol\ | 
					 | 
				
			||||||
into temp tmp_gesamt\ | 
					 | 
				
			||||||
from tmp_rs\ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign number_of_visible_colums=0 />\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
<#assign number_of_visible_colums=number_of_visible_colums+1 />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#assign colnr=0 />\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
<#assign colnr=colnr+1 />\ | 
					 | 
				
			||||||
<#assign format_sql="" />\ | 
					 | 
				
			||||||
<#if column.format_sql?string != "">\ | 
					 | 
				
			||||||
<#assign format_sql=column.format_sql />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if column.coltype=="computedColumn">\ | 
					 | 
				
			||||||
(${column.colfunction})${format_sql} as ${column.targetfieldname}\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
${column.targetfieldname}${format_sql} as ${column.targetfieldname}\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if colnr < number_of_visible_colums>,</#if>\ | 
					 | 
				
			||||||
</#if> --wenn sichtbar\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
from tmp_rs\ | 
					 | 
				
			||||||
order by <#list 1..number_of_visible_colums as i>${i}\ | 
					 | 
				
			||||||
<#if i != number_of_visible_colums>\ | 
					 | 
				
			||||||
,\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
drop table if exists ${basetable.runtime_tablename};\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
drop table if exists tmp_rs;\ | 
					 | 
				
			||||||
drop table if exists tmp_gesamt;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^48180^ | 
					 | 
				
			||||||
@ -1,39 +0,0 @@ | 
				
			|||||||
48220^Studiengang^39^0^0^150^200^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('MAN-STG-Kostenstellen-Sicht','MAN-Studiengang-Sicht') and aktiv=1 order by 3,2;^^^ | 
					 | 
				
			||||||
48221^Kennzahl^100^0^0^150^200^1^char^255^0^1^<<SQL>> select C.id,trim(C.name) || ' - (' || C.id || ')',P.sortnr,P.sortnr2\ | 
					 | 
				
			||||||
from man_reports R,man_catalogue_rpt P, man_catalogue C\ | 
					 | 
				
			||||||
where C.id=P.catalogue_id\ | 
					 | 
				
			||||||
and R.id=P.report_id\ | 
					 | 
				
			||||||
/* and P.report_id=<<Bericht>>*/\ | 
					 | 
				
			||||||
and P.active>=1\ | 
					 | 
				
			||||||
and R.active=1\ | 
					 | 
				
			||||||
--and C.timeunit='S'\ | 
					 | 
				
			||||||
--and C.calcratio=0\ | 
					 | 
				
			||||||
--and C.cacheing>0\ | 
					 | 
				
			||||||
order by 3,4,2^ ^ ^ | 
					 | 
				
			||||||
48222^Institution^2^0^0^150^200^1^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='MAN-Kostenstellen-Sicht' and aktiv=1 order by type,name;^^^ | 
					 | 
				
			||||||
48223^Start-Jahr^4^0^0^100^50^1^integer^30^0^1^<<SQL>> SELECT distinct tid,druck FROM man_jahr order by 1;^^<<SQL>> SELECT tid,druck FROM man_jahr where tid=(year(today())-5) ;^ | 
					 | 
				
			||||||
48224^Startsemester^7^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from man_semester order by tid DESC;^^^ | 
					 | 
				
			||||||
48225^tablestylesheet^121^0^0^100^200^1^char^200^0^13^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=888881430^hidden^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=888881430 and S.ord=1^ | 
					 | 
				
			||||||
48226^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_man_kennz_aggr'\ | 
					 | 
				
			||||||
and R.systeminfo_id=200)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_man_kennz_aggr'\ | 
					 | 
				
			||||||
and R.systeminfo_id=200) and uniquename='man_kennz_aggr_tuhh_behoerdenbericht';^ | 
					 | 
				
			||||||
48227^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^^^ | 
					 | 
				
			||||||
48228^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^0^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>>  select 1,'Ja' from xdummy^ | 
					 | 
				
			||||||
48229^Ausgabeformat^2001^0^0^100^150^1^char^200^0^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML';^ | 
					 | 
				
			||||||
48230^Endsemester^8^0^0^140^100^1^integer^30^0^1^<<SQL>> select tid, eintrag from man_semester order by tid DESC;^^^ | 
					 | 
				
			||||||
48231^End-Jahr^5^0^0^100^50^1^integer^30^0^1^<<SQL>> SELECT distinct tid,druck FROM man_jahr order by 1;^^<<SQL>> SELECT tid,druck FROM man_jahr where tid=(year(today())-1) ;^ | 
					 | 
				
			||||||
48232^Zeitraumtyp^110^0^0^100^150^1^char^30^1^1^<<SQL>> select 'S', 'Semester' from xdummy union select 'J', 'Jahr' from xdummy^hidden^<<SQL>> select 'S', 'Semester' from xdummy^ | 
					 | 
				
			||||||
48233^Bericht^1^0^0^150^200^1^char^30^1^1^<<SQL>> select R.id,trim(R.name) || ' - (' || R.id || ')' from man_reports R where 0<(select count(*) from man_catalogue_rpt P, man_catalogue C\ | 
					 | 
				
			||||||
where C.id=P.catalogue_id\ | 
					 | 
				
			||||||
and C.fromclause is not null\ | 
					 | 
				
			||||||
and P.report_id=R.id) and R.active=1 order by 2^ ^<<SQL>> select id,name || ' - (' || id || ')' from man_reports where id='TUHH_KENNZ' and active=1;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48220^200^ | 
					 | 
				
			||||||
@ -1,14 +0,0 @@ | 
				
			|||||||
48220^48220^ | 
					 | 
				
			||||||
48220^48221^ | 
					 | 
				
			||||||
48220^48222^ | 
					 | 
				
			||||||
48220^48223^ | 
					 | 
				
			||||||
48220^48224^ | 
					 | 
				
			||||||
48220^48225^ | 
					 | 
				
			||||||
48220^48226^ | 
					 | 
				
			||||||
48220^48227^ | 
					 | 
				
			||||||
48220^48228^ | 
					 | 
				
			||||||
48220^48229^ | 
					 | 
				
			||||||
48220^48230^ | 
					 | 
				
			||||||
48220^48231^ | 
					 | 
				
			||||||
48220^48232^ | 
					 | 
				
			||||||
48220^48233^ | 
					 | 
				
			||||||
@ -1,166 +0,0 @@ | 
				
			|||||||
48220^Management-Bericht Kennzahlen^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct name,\ | 
					 | 
				
			||||||
0::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables\ | 
					 | 
				
			||||||
  where name in ('${my_base_rs}')\ | 
					 | 
				
			||||||
    and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
  1::smallint  as is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Startsemester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Endsemester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign jahr_param="" />\ | 
					 | 
				
			||||||
<#assign jahr_filter="1=1" />\ | 
					 | 
				
			||||||
/* <#assign jahr_param="<<Jahr>>" /> */\ | 
					 | 
				
			||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ | 
					 | 
				
			||||||
<#if jahr_param !="">\ | 
					 | 
				
			||||||
<#assign jahr_filter="(" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem from 5 for 1)='2' and  val(substring('' || sem_rueck_beur_ein from 1 for 4))="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + " or "/>\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem from 5 for 1)='1' and  (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="1=1\ | 
					 | 
				
			||||||
/* and geschlecht=<<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and catalogue_id=<<Kennzahl>> */ \ | 
					 | 
				
			||||||
/* and sem >= <<Startsemester>> */\ | 
					 | 
				
			||||||
/* and sem <= <<Endsemester>> */\ | 
					 | 
				
			||||||
/* and jahr >= <<Start-Jahr>> */\ | 
					 | 
				
			||||||
/* and jahr <= <<End-Jahr>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign institutionparam="" />\ | 
					 | 
				
			||||||
/* <#assign institutionparam=<<Institution>> /> */\ | 
					 | 
				
			||||||
<#assign studiengangparam="" />\ | 
					 | 
				
			||||||
/* <#assign studiengangparam="<<Studiengang>>" /> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--Rechte prüfen:\ | 
					 | 
				
			||||||
--SQL Fehler () abfangen:\ | 
					 | 
				
			||||||
<#assign instRechteList=Institution.allNeededKeysList />\ | 
					 | 
				
			||||||
<#assign studiengangRechteList=Studiengang.allNeededKeysList />\ | 
					 | 
				
			||||||
<#if instRechteList=="()">\ | 
					 | 
				
			||||||
<#assign instRechteList="('-9xy!')" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if studiengangRechteList=="()">\ | 
					 | 
				
			||||||
<#assign studiengangRechteList="('-9xy!')" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
       --zuerst Rechte prüfen:\ | 
					 | 
				
			||||||
<#assign filter = filter + " and  (1!=1 or ch110_institut in "+instRechteList+" or studiengang in "+studiengangRechteList+" )" />\ | 
					 | 
				
			||||||
	--jetzt Selektion Inst/Studiengang mit höherer Priorität: \ | 
					 | 
				
			||||||
	<#if institutionparam !="" && institutionparam !="'root'">\ | 
					 | 
				
			||||||
	<#assign filter = filter + " and ch110_institut in "+.vars["Institution"].allNeededKeys  />  	\ | 
					 | 
				
			||||||
	</#if>\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and studiengang in "+.vars["Studiengang"].allNeededKeys  /> --<<Studiengang>>*/  \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout nonvirtualTableFilter=filter/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^^^Übersicht über vorberechnete Kennzahlen^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^1^600^360^0^^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
200^48220^ | 
					 | 
				
			||||||
@ -1,30 +0,0 @@ | 
				
			|||||||
48250^Beschäftigungsstelle (Person)^1^0^0^200^150^1^char^30^0^12^<<SQL>>select tid,type,name,sortnr from sichten where art in ('SVA-Kostenstellen-Sicht','SVA-spez-Besch./Kostenstellen-Sicht') and aktiv=1 order by sortnr,type,name;^^^ | 
					 | 
				
			||||||
48251^Datum^0^350^-1^150^80^1^date^10^1^0^^^<<SQL>> select today() from xdummy^ | 
					 | 
				
			||||||
48252^Vertragsart^10^380^-1^200^160^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA-Vertragsart-Sicht' and aktiv=1 order by type,name;^^^ | 
					 | 
				
			||||||
48253^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where tid=<<Spaltenlayout>>) order by 2;^^^ | 
					 | 
				
			||||||
48254^Geschlecht^81^310^-1^100^70^1^integer^4^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ | 
					 | 
				
			||||||
48255^Personal-Nr.^50^350^-1^150^80^1^integer^10^0^0^^^^ | 
					 | 
				
			||||||
48256^Amtsbezeichnung^55^0^0^150^160^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA Amtsdienstbez.' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48257^Filter Personal^120^310^-1^100^300^1^sql^20^0^1^<<SQL>> select id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SVA_PERS_FILTER' order by 2;^^^ | 
					 | 
				
			||||||
48258^Kostenstelle (Person)^70^350^-1^150^150^1^char^30^0^12^<<SQL>> select tid,type,name,sortnr from sichten where art  in ('SVA-Kostenstellen-Sicht','SVA-spez-Kostenstellen-Sicht','SVA-Kst-spezial') and aktiv=1 order by sortnr,type,name;^hidden^^ | 
					 | 
				
			||||||
48259^Alter (bis)^21^170^-1^100^70^1^integer^5^0^0^^^^ | 
					 | 
				
			||||||
48260^Spaltenlayout^3000^350^-1^140^180^1^integer^50^1^1^<<SQL>>SELECT tid,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sva_pbv_aggr_pgd'\ | 
					 | 
				
			||||||
and R.systeminfo_id=6)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^^<<SQL>>SELECT tid,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='sva_pbv_aggr_pgd'\ | 
					 | 
				
			||||||
and R.systeminfo_id=6)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
limit 1 \ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
48262^Dienstart^3^350^-1^150^150^3^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA Dienstart' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48264^BVL-Gruppe^80^350^-1^150^120^10^char^30^0^12^<<SQL>>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^hidden^^ | 
					 | 
				
			||||||
48267^Personalkategorie^310^0^0^100^200^3^char^30^0^1^<<SQL>> select id,caption from sx_repository where art='SVA_PERSONALKATEGORIE' and aktiv=1 and gueltig_seit<=date_val(<<Datum>>) and gueltig_bis>=date_val(<<Datum>>)  order by sort1^hidden^^ | 
					 | 
				
			||||||
48269^Alter (von)^20^0^0^80^70^1^integer^4^0^0^^^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48250^6^ | 
					 | 
				
			||||||
@ -1,15 +0,0 @@ | 
				
			|||||||
48250^48250^ | 
					 | 
				
			||||||
48250^48251^ | 
					 | 
				
			||||||
48250^48252^ | 
					 | 
				
			||||||
48250^48253^ | 
					 | 
				
			||||||
48250^48254^ | 
					 | 
				
			||||||
48250^48255^ | 
					 | 
				
			||||||
48250^48256^ | 
					 | 
				
			||||||
48250^48257^ | 
					 | 
				
			||||||
48250^48258^ | 
					 | 
				
			||||||
48250^48259^ | 
					 | 
				
			||||||
48250^48260^ | 
					 | 
				
			||||||
48250^48262^ | 
					 | 
				
			||||||
48250^48264^ | 
					 | 
				
			||||||
48250^48267^ | 
					 | 
				
			||||||
48250^48269^ | 
					 | 
				
			||||||
@ -1,124 +0,0 @@ | 
				
			|||||||
48250^Beschäftigungsverhältnisse^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
<#assign my_base_rs='sva_pbv_aggr_pgd' />\ | 
					 | 
				
			||||||
SELECT distinct name,\ | 
					 | 
				
			||||||
0::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables\ | 
					 | 
				
			||||||
  where name in ('${my_base_rs}')\ | 
					 | 
				
			||||||
    and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
  1::smallint  as is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.tid=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.tid=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="sva_pbv_aggr.d_besch_von <= date_val(<<Datum>>) \ | 
					 | 
				
			||||||
      and sva_pbv_aggr.d_besch_bis >= date_val(<<Datum>>) "/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + "\ | 
					 | 
				
			||||||
 and sva_pbv_aggr.ch110_besch_st in "+.vars["Beschäftigungsstelle (Person)"].allNeededKeysList + "\ | 
					 | 
				
			||||||
/*  and kapitel = <<Kapitel>> */\ | 
					 | 
				
			||||||
/*  and titel = <<Titel>> */\ | 
					 | 
				
			||||||
/* and d_befristung <= date_val(<<Befristet bis>>)*/\ | 
					 | 
				
			||||||
/* and teilzeitart in (<<Teilzeitart>>) */\ | 
					 | 
				
			||||||
/* and ca501_staat <<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
/* and geschlecht= <<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and ${<<Filter Personal>>} */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and sva_pbv_aggr.kostenstelle in "+.vars["Kostenstelle (Person)"].allNeededKeysList /> -- <<Kostenstelle (Person)>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and sva_pbv_aggr.ca107_dienstart in "+.vars["Dienstart"].allNeededKeysList /> -- <<Dienstart>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and sva_pbv_aggr.ca108_amtsbez in "+.vars["Amtsbezeichnung"].allNeededKeysList /> -- <<Amtsbezeichnung>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and sva_pbv_aggr.ch212_geldgeber in "+.vars["Geldgeber"].allNeededKeysList /> -- <<Geldgeber>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and sva_pbv_aggr.vertart in "+.vars["Vertragsart"].allNeededKeysList /> -- <<Vertragsart>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout  nonvirtualTableFilter=filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^^^Informationen über Stellen und deren Besetzung zu einem bel. Zeitpunkt^ ^^2^700^500^^1^<<SQL>> select 'Achtung: Das Datum des Buttons Institution bzw OrgEinheit (Stelle) unterscheidet sich vom ausgewählten Datum im Maskenfeld.' from xdummy where <<Institution (Stelle)-Stand>> != date_val(<<Datum>>)^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
100^48250^ | 
					 | 
				
			||||||
@ -1,33 +0,0 @@ | 
				
			|||||||
48280^Studiengang^39^0^0^150^200^6^char^30^0^999^<<SQL>> select tid,name,sortnr from sichten where art in ('MAN-STG-Kostenstellen-Sicht','MAN-Studiengang-Sicht') and aktiv=1 order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48281^Kennzahl^100^0^0^150^200^2^char^255^0^1^<<SQL>> select C.id,trim(C.name) || ' - (' || C.id || ')'\ | 
					 | 
				
			||||||
from kenn_katalog C\ | 
					 | 
				
			||||||
where \ | 
					 | 
				
			||||||
C.id in (select distinct kenn_zahl from sxc_zahl_wert where sxc_bestand_id=<<Bestand>>)\ | 
					 | 
				
			||||||
order by id^ ^ ^ | 
					 | 
				
			||||||
48282^Institution^2^0^0^150^200^1^char^30^0^999^<<SQL>>select tid,type,name from sichten where art ='MAN-Kostenstellen-Sicht' and aktiv=1 order by type,name;^ ^ ^ | 
					 | 
				
			||||||
48283^Start-Jahr^4^0^0^100^50^1^integer^30^0^1^<<SQL>> SELECT distinct ord,name FROM aggregierung where kategorie='KENN-Jahr' order by 1;^ ^<<SQL>> SELECT ord,name FROM aggregierung where kategorie='KENN-Jahr' and ord=(year(today())-1) ;^ | 
					 | 
				
			||||||
48284^Startsemester^7^0^0^140^80^1^integer^30^0^999^<<SQL>> select tid, eintrag from man_semester order by tid DESC;^ ^ ^ | 
					 | 
				
			||||||
48285^tablestylesheet^121^0^0^100^200^1^char^200^0^13^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=888881430^hidden^<<SQL>> select distinct filename,X.caption from sx_stylesheets X,sx_mask_style S where X.tid=S.stylesheet_id and S.maskeninfo_id=888881430 and S.ord=1^ | 
					 | 
				
			||||||
48286^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sxc_zahl_wert'\ | 
					 | 
				
			||||||
and R.systeminfo_id=200)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sxc_zahl_wert'\ | 
					 | 
				
			||||||
and R.systeminfo_id=200) and uniquename='sxc_zahl_wert_stammdaten_nrw';^ | 
					 | 
				
			||||||
48287^Spalten^3001^0^0^150^190^10^char^30^0^999^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) \ | 
					 | 
				
			||||||
and L.is_visible=1\ | 
					 | 
				
			||||||
order by 2;^ ^ ^ | 
					 | 
				
			||||||
48288^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^0^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>>  select 1,'Ja' from xdummy^ | 
					 | 
				
			||||||
48289^Ausgabeformat^4001^0^0^100^150^1^char^200^0^1^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and nature::smallint<100 order by nature::smallint^ ^<<SQL>> select element_value,description from menu_element where element='Ausgabeformat' and description='HTML';^ | 
					 | 
				
			||||||
48290^Endsemester^8^0^0^140^100^1^integer^30^0^999^<<SQL>> select tid, eintrag from man_semester order by tid DESC;^ ^ ^ | 
					 | 
				
			||||||
48291^End-Jahr^5^0^0^100^50^1^integer^30^0^1^<<SQL>> SELECT distinct ord,name FROM aggregierung where kategorie='KENN-Jahr' order by 1;^ ^<<SQL>> SELECT ord,name FROM aggregierung where kategorie='KENN-Jahr' and ord=(year(today())-1) ;^ | 
					 | 
				
			||||||
48292^Zeitraumtyp^110^0^0^100^150^1^char^30^1^1^<<SQL>> select 'S', 'Semester' from xdummy union select 'J', 'Jahr' from xdummy^hidden^<<SQL>> select 'S', 'Semester' from xdummy^ | 
					 | 
				
			||||||
48293^Bestand^1^0^0^150^200^1^char^30^1^1^<<SQL>> select tid,name from sxc_bestand;^ ^<<SQL>> select tid,name from sxc_bestand order by tid;^ | 
					 | 
				
			||||||
48294^Hochschule^1^0^0^150^200^5^char^30^0^12^<<SQL>>  select tid, type, name,sortnr from sichten where art in('SXC_Hochschulen-Sicht')  and aktiv=1 order by sortnr desc, name;^ ^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48280^200^ | 
					 | 
				
			||||||
@ -1,15 +0,0 @@ | 
				
			|||||||
48280^48280^ | 
					 | 
				
			||||||
48280^48281^ | 
					 | 
				
			||||||
48280^48282^ | 
					 | 
				
			||||||
48280^48283^ | 
					 | 
				
			||||||
48280^48284^ | 
					 | 
				
			||||||
48280^48285^ | 
					 | 
				
			||||||
48280^48286^ | 
					 | 
				
			||||||
48280^48287^ | 
					 | 
				
			||||||
48280^48288^ | 
					 | 
				
			||||||
48280^48289^ | 
					 | 
				
			||||||
48280^48290^ | 
					 | 
				
			||||||
48280^48291^ | 
					 | 
				
			||||||
48280^48292^ | 
					 | 
				
			||||||
48280^48293^ | 
					 | 
				
			||||||
48280^48294^ | 
					 | 
				
			||||||
@ -1,141 +0,0 @@ | 
				
			|||||||
48280^SuperX-Connect Kennzahlen^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct name,\ | 
					 | 
				
			||||||
0::smallint as is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables\ | 
					 | 
				
			||||||
  where name in ('${my_base_rs}')\ | 
					 | 
				
			||||||
    and 0=(select count(*) from rpta_resultset R where R.uniquename='${my_base_rs}')\ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
  1::smallint  as is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Startsemester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Endsemester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign jahr_param="" />\ | 
					 | 
				
			||||||
<#assign jahr_filter="1=1" />\ | 
					 | 
				
			||||||
/* <#assign jahr_param="<<Jahr>>" /> */\ | 
					 | 
				
			||||||
--Akad. Jahr 2022: WS + SS - Beispiel: WS 22/23 + SS 2023\ | 
					 | 
				
			||||||
<#if jahr_param !="">\ | 
					 | 
				
			||||||
<#assign jahr_filter="(" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem from 5 for 1)='2' and  val(substring('' || sem_rueck_beur_ein from 1 for 4))="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + " or "/>\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + "(substring('' || sem from 5 for 1)='1' and  (val(substring('' || sem_rueck_beur_ein from 1 for 4))-1)="+jahr_param+")" />\ | 
					 | 
				
			||||||
<#assign jahr_filter=jahr_filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="1=1\ | 
					 | 
				
			||||||
/* and hs_nr in (<<Hochschule>>) */\ | 
					 | 
				
			||||||
/* and geschlecht=<<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and kenn_katalog.id in (<<Kennzahl>>) */ \ | 
					 | 
				
			||||||
/* and jahr >= <<Start-Jahr>> */\ | 
					 | 
				
			||||||
/* and jahr <= <<End-Jahr>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout nonvirtualTableFilter=filter/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^ ^ ^Übersicht über vorberechnete Kennzahlen^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^1^600^360^^0^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
360^48280^ | 
					 | 
				
			||||||
@ -1,30 +0,0 @@ | 
				
			|||||||
48310^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('rpta_erfolg_ba_ma_uebergang'))\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_erfolg_ba_ma_uebergang') and uniquename='ba_ma_uebergang_nach_abschluss';^ | 
					 | 
				
			||||||
48311^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48312^Fächer^30^0^0^130^200^6^integer^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48313^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48314^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^0^^ ^ ^ | 
					 | 
				
			||||||
48315^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^ | 
					 | 
				
			||||||
48316^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^1^hs_zugangsber^ ^ ^ | 
					 | 
				
			||||||
48317^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48318^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48319^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48320^Semester^100^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^hidden^ ^ | 
					 | 
				
			||||||
48321^Richtung^38^0^0^150^190^1^char^30^0^1^<<SQL>>select 'gw','Grundständig zu weiterf.' from xdummy union select 'wg','Weiterf. zu Grundständig' from xdummy order by 1;^ ^ ^ | 
					 | 
				
			||||||
48322^Hörerstatus^200^330^-1^140^150^1^sql^30^0^1^<<SQL>> select apnr, eintrag from hoererstatus where apnr like 'hrst%' order by 2^ ^ ^ | 
					 | 
				
			||||||
48323^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ | 
					 | 
				
			||||||
48324^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^^^ | 
					 | 
				
			||||||
48325^Nur Endsemester^21^0^0^140^80^1^integer^30^0^1^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
48326^Matrikel-Nr.^35^350^-1^140^80^1^char^30^0^13^^^^ | 
					 | 
				
			||||||
48328^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
48332^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
					 | 
				
			||||||
48333^Spalten^3001^0^0^150^190^10^char^30^0^1^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48310^7^ | 
					 | 
				
			||||||
@ -1,20 +0,0 @@ | 
				
			|||||||
48310^48310^ | 
					 | 
				
			||||||
48310^48311^ | 
					 | 
				
			||||||
48310^48312^ | 
					 | 
				
			||||||
48310^48313^ | 
					 | 
				
			||||||
48310^48314^ | 
					 | 
				
			||||||
48310^48315^ | 
					 | 
				
			||||||
48310^48316^ | 
					 | 
				
			||||||
48310^48317^ | 
					 | 
				
			||||||
48310^48318^ | 
					 | 
				
			||||||
48310^48319^ | 
					 | 
				
			||||||
48310^48320^ | 
					 | 
				
			||||||
48310^48321^ | 
					 | 
				
			||||||
48310^48322^ | 
					 | 
				
			||||||
48310^48323^ | 
					 | 
				
			||||||
48310^48324^ | 
					 | 
				
			||||||
48310^48325^ | 
					 | 
				
			||||||
48310^48326^ | 
					 | 
				
			||||||
48310^48328^ | 
					 | 
				
			||||||
48310^48332^ | 
					 | 
				
			||||||
48310^48333^ | 
					 | 
				
			||||||
@ -1,202 +0,0 @@ | 
				
			|||||||
48310^Übergang Bachelor-Master bzw. vorheriger Abschluss bei Master-Studienbeginn^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct T.name,\ | 
					 | 
				
			||||||
R.is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R \ | 
					 | 
				
			||||||
  where T.name=R.uniquename\ | 
					 | 
				
			||||||
  and T.name='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=0\ | 
					 | 
				
			||||||
    \ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
 R.is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=1\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       R.is_virtual,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="SOS_MTKNR_EXT">\ | 
					 | 
				
			||||||
		select 1 from xdummy where 0 != (select \ | 
					 | 
				
			||||||
		count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
		and apnr=1)\ | 
					 | 
				
			||||||
		union select 0 from xdummy where 0 = (select \ | 
					 | 
				
			||||||
		count(*) from konstanten where beschreibung='SOS_MTKNR_EXT'\ | 
					 | 
				
			||||||
		and apnr=1)\ | 
					 | 
				
			||||||
		;\ | 
					 | 
				
			||||||
	</sqlvar>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign richtung="" />\ | 
					 | 
				
			||||||
/* <#assign richtung=<<Richtung>> />*/\ | 
					 | 
				
			||||||
<#if richtung="" && rpta_column_layout.whereclause?index_of("gw") != -1>\ | 
					 | 
				
			||||||
<#assign richtung="gw" />\ | 
					 | 
				
			||||||
<#elseif richtung="" && rpta_column_layout.whereclause?index_of("wg") != -1>\ | 
					 | 
				
			||||||
<#assign richtung="wg" />\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
<#assign richtung="gw" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign mtknr_filter=basetable.name+".matrikel_nr::varchar(255)" />\ | 
					 | 
				
			||||||
<#if SOS_MTKNR_EXT=1>\ | 
					 | 
				
			||||||
<#assign mtknr_filter=basetable.name+".pseudonym" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if richtung="gw" >\ | 
					 | 
				
			||||||
 <#assign tid_stg_col="abschluss_vorher_tid_stg" />\ | 
					 | 
				
			||||||
 <#assign stg_col="abschluss_vorher_stg" />\ | 
					 | 
				
			||||||
 <#assign abschluss_col="abschluss_vorher_abschluss" />\ | 
					 | 
				
			||||||
 <#assign semester_col="abschluss_vorher_semester" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if richtung="wg" >\ | 
					 | 
				
			||||||
 <#assign tid_stg_col="einschr_nachher_tid_stg" />\ | 
					 | 
				
			||||||
 <#assign stg_col="einschr_nachher_stg" />\ | 
					 | 
				
			||||||
 <#assign abschluss_col="einschr_nachher_abschluss" />\ | 
					 | 
				
			||||||
 <#assign semester_col="einschr_nachher_semester" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#assign filter="1=1" />\ | 
					 | 
				
			||||||
/* <#assign filter=filter+" and richtung='"+richtung+"'" /> --<<Richtung>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign studiengang_filter = "" />\ | 
					 | 
				
			||||||
/* <#assign studiengang_filter = Studiengang.allNeededKeysList /> --<<Studiengang>> */ \ | 
					 | 
				
			||||||
<#if studiengang_filter != "" >\ | 
					 | 
				
			||||||
<#assign filter=filter  + " and ('s_' || erfolg_ba_ma_uebergang."+tid_stg_col+"_1 in "+ studiengang_filter/> \ | 
					 | 
				
			||||||
<#list 2..5 as fachnr>\ | 
					 | 
				
			||||||
<#assign filter=filter + " or 's_' || erfolg_ba_ma_uebergang."+tid_stg_col+"_"+fachnr+" in "+ studiengang_filter /> \ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
<#assign filter=filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign fach_filter = "" />\ | 
					 | 
				
			||||||
/* <#assign fach_filter = Fächer.allNeededKeysList  /> --<<Fächer>> */ \ | 
					 | 
				
			||||||
<#if fach_filter != "" >\ | 
					 | 
				
			||||||
<#assign filter=filter  + " and (erfolg_ba_ma_uebergang."+stg_col+"_1 in "+ fach_filter/> \ | 
					 | 
				
			||||||
<#list 2..5 as fachnr>\ | 
					 | 
				
			||||||
<#assign filter=filter + " or erfolg_ba_ma_uebergang."+stg_col+"_"+fachnr+" in "+ fach_filter /> \ | 
					 | 
				
			||||||
</#list>\ | 
					 | 
				
			||||||
<#assign filter=filter + ")" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* \ | 
					 | 
				
			||||||
<#assign filter = filter + " and " +abschluss_col+" in  "+Studienabschluss.allNeededKeysList />  --<<Studienabschluss>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* <#assign filter=filter+" and "+ semester_col+" >=" + "<<Seit Semester>>" /> */\ | 
					 | 
				
			||||||
/* <#assign filter=filter+" and "+ semester_col+" <=" + "<<Bis Semester>>" /> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter=filter+"  \ | 
					 | 
				
			||||||
/*  and geschlecht = <<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and einschr_nachher_<<Hörerstatus>>*/\ | 
					 | 
				
			||||||
/* and  <<Matrikel-Nr.>>=${mtknr_filter} */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
/* \ | 
					 | 
				
			||||||
<#assign filter = filter + " and '' || "+basetable.name+".ca12_staat in  "+Staatsangehörigkeit.allNeededKeysList />  --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout  nonvirtualTableFilter=filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#if 1=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="sortnr" center_heading explanation=""\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=5 text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
@@@^Studienfach^Anzahl bzw. Anteil^Übergang nach Abschluss zu einem neuen Studiengang oder vorheriger Abschluss bei Studienbeginn^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^48310^ | 
					 | 
				
			||||||
@ -1,3 +0,0 @@ | 
				
			|||||||
48380^Basistabelle^0^0^0^150^450^1^integer^30^0^1^<<SQL>> select tid, uniquename || ' - ' || caption from rpta_resultset order by caption;^ ^ ^ | 
					 | 
				
			||||||
48381^zu löschendes Spaltenlayout^0^0^0^200^380^1^integer^30^1^1^<<SQL>> select tid, uniquename || ' - ' || caption from rpta_column_layout where 1=1  /* and <<Basistabelle>>=resultset_id*/ order by caption;^^^ | 
					 | 
				
			||||||
48382^gew. Layout löschen?^1^0^0^200^100^1^char^30^1^1^<<SQL>> select 'J', 'ja, Layout löschen' from xdummy union select 'N', 'nein, nicht löschen' from xdummy order by 2;^^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48380^9^ | 
					 | 
				
			||||||
@ -1,3 +0,0 @@ | 
				
			|||||||
48380^48380^ | 
					 | 
				
			||||||
48380^48381^ | 
					 | 
				
			||||||
48380^48382^ | 
					 | 
				
			||||||
@ -1,46 +0,0 @@ | 
				
			|||||||
48380^Spaltenlayout löschen^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--Layout löschen\ | 
					 | 
				
			||||||
-- Ist nur für User erlaubt, die Administratoren sind\ | 
					 | 
				
			||||||
--Autor: M. Winterstein nach Maske löschen von D. Quathamer\ | 
					 | 
				
			||||||
--Datum: 18.08.2025\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--create temp table tmp_loesch (layout_tid integer, layout_uniquename varchar(255), best_tid integer);\ | 
					 | 
				
			||||||
--insert into tmp_loesch(layout_tid, layout_uniquename) \ | 
					 | 
				
			||||||
--values (<<zu löschendes Spaltenlayout>>, <<Spaltenlayout (bestätigen)>>);\ | 
					 | 
				
			||||||
--update tmp_loesch set best_tid=0 where best_tid is null;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if <<gew. Layout löschen?>> ='J'>\ | 
					 | 
				
			||||||
delete from  rpta_column2layout where layout_id in (<<zu löschendes Spaltenlayout>>)\ | 
					 | 
				
			||||||
and 1=(select administration from userinfo where tid=<<UserID>>);\ | 
					 | 
				
			||||||
delete from rpta_column_layout where tid=<<zu löschendes Spaltenlayout>> \ | 
					 | 
				
			||||||
and 1=(select administration from userinfo where tid=<<UserID>>);\ | 
					 | 
				
			||||||
select sp_update_sequence('rpta_column_layout');\ | 
					 | 
				
			||||||
select sp_update_sequence('rpta_column2layout');\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--drop table tmp_ergebnis;\ | 
					 | 
				
			||||||
create temp table tmp_ergebnis \ | 
					 | 
				
			||||||
(sp1 varchar(50),\ | 
					 | 
				
			||||||
sp2 varchar(200)\ | 
					 | 
				
			||||||
); \ | 
					 | 
				
			||||||
insert into tmp_ergebnis \ | 
					 | 
				
			||||||
select 'Ergebnis', 'Spaltenlayout erfolgreich gelöscht' from xdummy where 0= (select count(*) from rpta_column_layout where tid=<<zu löschendes Spaltenlayout>> );\ | 
					 | 
				
			||||||
insert into tmp_ergebnis \ | 
					 | 
				
			||||||
select 'Ergebnis', 'Kein Löschen ausgewählt! Spaltenlayout wurde nicht gelöscht' from xdummy where <<gew. Layout löschen?>> != 'J';\ | 
					 | 
				
			||||||
insert into tmp_ergebnis \ | 
					 | 
				
			||||||
select 'Ergebnis', 'Benutzerrechte reichen nicht aus. Spaltenlayout wurde nicht gelöscht' from xdummy where (select administration from userinfo where tid=<<UserID>>)!= 1;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
--drop table tmp_loesch;\ | 
					 | 
				
			||||||
select sp1,sp2 from tmp_ergebnis;^XIL List\ | 
					 | 
				
			||||||
   drop_and_delete movable_columns sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=2\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Ergebnis " center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
Column CID=1 heading_text=" Wert " center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=150 text_size=200\ | 
					 | 
				
			||||||
@@@^ ^ ^Eine vorhandene Maske löschen^drop table tmp_ergebnis;^^2^440^360^0^1^ ^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
8^48380^ | 
					 | 
				
			||||||
@ -1,11 +0,0 @@ | 
				
			|||||||
48410^Basistabelle^0^0^0^150^450^1^integer^30^0^1^<<SQL>> select tid, uniquename || ' - ' || caption from rpta_resultset order by caption;^ ^ ^ | 
					 | 
				
			||||||
48411^Neuer Name^2^0^0^150^250^1^char^100^1^0^^ ^ ^ | 
					 | 
				
			||||||
48412^Neuer Schlüssel^1^0^0^150^200^1^char^30^1^0^^ ^ ^ | 
					 | 
				
			||||||
48413^Erläuterung^12^0^0^150^400^1^char^240^0^0^^ ^ ^ | 
					 | 
				
			||||||
48414^Art der Kopie^1065^0^0^100^150^1^char^30^1^1^<<SQL>> select 'makro','Makrobericht' from xdummy \ | 
					 | 
				
			||||||
union select 'sximport','SX-Importkopie' from xdummy\ | 
					 | 
				
			||||||
union select 'standard','Standardkopie' from xdummy\ | 
					 | 
				
			||||||
;^hidden^<<SQL>> select 'standard','Standardkopie' from xdummy;^ | 
					 | 
				
			||||||
48415^Achtung:^100^0^0^400^450^1^char^100^0^8^<<SQL>> select 'Vorhandene Spaltenlayouts mit gleichem Schlüssel werden überschrieben!' from xdummy;^ ^<<SQL>> select 'Vorhandene Spaltenlayouts mit gleichem Schlüssel werden überschrieben!' from xdummy;^ | 
					 | 
				
			||||||
48416^zu kopierendes Spaltenlayout^1^0^0^150^450^1^integer^30^1^1^<<SQL>> select tid, uniquename || ' - ' || caption from rpta_column_layout where 1=1  /* and <<Basistabelle>>=resultset_id*/ order by caption;^ ^ ^ | 
					 | 
				
			||||||
48417^vorh. Layout überschreiben?^80^0^0^100^150^1^char^30^1^1^<<SQL>> select 'J', 'ja, vorh. Layout überschreiben' from xdummy union select 'N', 'nein, nicht überschreiben' from xdummy order by 2;^ ^<<SQL>> select 'N', 'nein, nicht überschreiben' from xdummy order by 2;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48410^9^ | 
					 | 
				
			||||||
@ -1,8 +0,0 @@ | 
				
			|||||||
48410^48410^ | 
					 | 
				
			||||||
48410^48411^ | 
					 | 
				
			||||||
48410^48412^ | 
					 | 
				
			||||||
48410^48413^ | 
					 | 
				
			||||||
48410^48414^ | 
					 | 
				
			||||||
48410^48415^ | 
					 | 
				
			||||||
48410^48416^ | 
					 | 
				
			||||||
48410^48417^ | 
					 | 
				
			||||||
@ -1,133 +0,0 @@ | 
				
			|||||||
48410^Spaltenlayout kopieren^--freemarker template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="start_serial">\ | 
					 | 
				
			||||||
select max(tid)+1 from rpta_column2layout;\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="layout_exists">\ | 
					 | 
				
			||||||
select count(*) from rpta_column_layout where uniquename=<<Neuer Schlüssel>>;\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
--Autor: D. Quathamer\ | 
					 | 
				
			||||||
--Datum: 2.4.2002\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign zeichen1="<"> \ | 
					 | 
				
			||||||
<#assign zeichen2=">"> \ | 
					 | 
				
			||||||
<#assign zeichen3="/"> \ | 
					 | 
				
			||||||
<#if SQLdialect='Postgres'>\ | 
					 | 
				
			||||||
begin work;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_rpta_column_layout \ | 
					 | 
				
			||||||
  (\ | 
					 | 
				
			||||||
   tid           integer        NOT NULL, --vorher serial\ | 
					 | 
				
			||||||
   uniquename    varchar(255)   NOT NULL,\ | 
					 | 
				
			||||||
   caption       varchar(255),\ | 
					 | 
				
			||||||
   resultset_id  integer,\ | 
					 | 
				
			||||||
   whereclause   text,\ | 
					 | 
				
			||||||
   description   text,\ | 
					 | 
				
			||||||
   userinfo_id   integer,\ | 
					 | 
				
			||||||
   sortnr        integer,\ | 
					 | 
				
			||||||
   sortclause    text,\ | 
					 | 
				
			||||||
   is_virtual    smallint       DEFAULT 1 NOT NULL\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_rpta_column2layout \ | 
					 | 
				
			||||||
  (\ | 
					 | 
				
			||||||
  tid              serial        NOT NULL, \ | 
					 | 
				
			||||||
   column_id        integer,\ | 
					 | 
				
			||||||
   layout_id        integer,\ | 
					 | 
				
			||||||
   sortnr           smallint,\ | 
					 | 
				
			||||||
   is_visible       smallint       DEFAULT 1,\ | 
					 | 
				
			||||||
   visible_size     smallint,\ | 
					 | 
				
			||||||
   format_code_id   integer,\ | 
					 | 
				
			||||||
   targetfieldname  varchar(255),\ | 
					 | 
				
			||||||
   caption          varchar(255),\ | 
					 | 
				
			||||||
   description      text\ | 
					 | 
				
			||||||
);\ | 
					 | 
				
			||||||
 ALTER SEQUENCE tmp_rpta_column2layout_tid_seq RESTART with ${start_serial};\ | 
					 | 
				
			||||||
insert into tmp_rpta_column_layout select * from rpta_column_layout where tid=<<zu kopierendes Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_rpta_column2layout \ | 
					 | 
				
			||||||
(\ | 
					 | 
				
			||||||
  column_id,\ | 
					 | 
				
			||||||
  layout_id,\ | 
					 | 
				
			||||||
  sortnr,\ | 
					 | 
				
			||||||
  is_visible,\ | 
					 | 
				
			||||||
  visible_size,\ | 
					 | 
				
			||||||
  format_code_id,\ | 
					 | 
				
			||||||
  targetfieldname,\ | 
					 | 
				
			||||||
  caption,\ | 
					 | 
				
			||||||
  description\ | 
					 | 
				
			||||||
)\ | 
					 | 
				
			||||||
select \ | 
					 | 
				
			||||||
  column_id,\ | 
					 | 
				
			||||||
  layout_id,\ | 
					 | 
				
			||||||
  sortnr,\ | 
					 | 
				
			||||||
  is_visible,\ | 
					 | 
				
			||||||
  visible_size,\ | 
					 | 
				
			||||||
  format_code_id,\ | 
					 | 
				
			||||||
  targetfieldname,\ | 
					 | 
				
			||||||
  caption,\ | 
					 | 
				
			||||||
  description\ | 
					 | 
				
			||||||
 from rpta_column2layout where layout_id=<<zu kopierendes Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_rpta_column_layout set uniquename=<<Neuer Schlüssel>>;\ | 
					 | 
				
			||||||
update tmp_rpta_column_layout set caption=<<Neuer Name>>; \ | 
					 | 
				
			||||||
update tmp_rpta_column_layout set userinfo_id=<<UserID>>;\ | 
					 | 
				
			||||||
/*update tmp_rpta_column_layout set description=<<Erläuterung>>;*/\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if <<vorh. Layout überschreiben?>> ='J' || layout_exists=0 >\ | 
					 | 
				
			||||||
--Falls das neue Layout bereits existiert, wird es gelöscht:\ | 
					 | 
				
			||||||
delete from rpta_column2layout where layout_id = (select tid from rpta_column_layout where uniquename=<<Neuer Schlüssel>>)\ | 
					 | 
				
			||||||
and (select administration from userinfo where tid=<<UserID>>)= 1;\ | 
					 | 
				
			||||||
delete from rpta_column_layout where uniquename=<<Neuer Schlüssel>>\ | 
					 | 
				
			||||||
and (select administration from userinfo where tid=<<UserID>>)= 1;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
update tmp_rpta_column_layout set tid = (select (max(tid)+1) from rpta_column_layout);\ | 
					 | 
				
			||||||
update tmp_rpta_column2layout set layout_id = (select tid from tmp_rpta_column_layout);\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into rpta_column_layout select * from tmp_rpta_column_layout \ | 
					 | 
				
			||||||
where (select administration from userinfo where tid=<<UserID>>)= 1;\ | 
					 | 
				
			||||||
insert into rpta_column2layout select * from tmp_rpta_column2layout \ | 
					 | 
				
			||||||
where (select administration from userinfo where tid=<<UserID>>)= 1;\ | 
					 | 
				
			||||||
select sp_update_sequence('rpta_column_layout');\ | 
					 | 
				
			||||||
select sp_update_sequence('rpta_column2layout');\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if SQLdialect='Postgres'>\ | 
					 | 
				
			||||||
commit;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table tmp_ergebnis \ | 
					 | 
				
			||||||
(sp1 varchar(150),\ | 
					 | 
				
			||||||
sp2 varchar(150), sp3 varchar(150)); \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
insert into tmp_ergebnis (sp1,sp2)\ | 
					 | 
				
			||||||
select 'Ergebnis', 'Benutzerrechte reichen nicht aus. Spaltenlayout wurde nicht kopiert' from xdummy where (select administration from userinfo where tid=<<UserID>>)!= 1;\ | 
					 | 
				
			||||||
<#if <<vorh. Layout überschreiben?>> ='J' || layout_exists=0 >\ | 
					 | 
				
			||||||
insert into tmp_ergebnis (sp1,sp2,sp3)\ | 
					 | 
				
			||||||
select 'Neues Spaltenlayout:',uniquename || '- ' || caption,'../edit/rpta/rpta_column_layout_edit.jsp|tid='  || tid from rpta_column_layout where tid = (select tid from tmp_rpta_column_layout);\ | 
					 | 
				
			||||||
<#else>\ | 
					 | 
				
			||||||
insert into tmp_ergebnis (sp1,sp2)\ | 
					 | 
				
			||||||
select 'Ergebnis', 'kein Überschreiben gewünscht!' from xdummy ;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
select sp1,sp2,sp3 as nextedit from tmp_ergebnis ;^XIL List\ | 
					 | 
				
			||||||
   drop_and_delete movable_columns sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
   white_space_color=COLOR_WHITE fixed_columns=2\ | 
					 | 
				
			||||||
   min_heading_height=35\ | 
					 | 
				
			||||||
Column CID=0 heading_text="Ergebnis " center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
Column CID=1 heading_text=" Wert " center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
Column CID=2 heading_text=" Bearbeiten" center_heading\ | 
					 | 
				
			||||||
   row_selectable col_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=50 text_size=100\ | 
					 | 
				
			||||||
@@@^ ^ ^Eine neue Maske kopieren^drop table tmp_ergebnis;drop table tmp_rpta_column_layout;drop table tmp_rpta_column2layout;^^2^440^360^^1^^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
8^48410^ | 
					 | 
				
			||||||
@ -1,41 +0,0 @@ | 
				
			|||||||
48430^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename in ('rpta_zul_antr_aggr','rpta_zul_antr_aggr_archiv')\ | 
					 | 
				
			||||||
and R.systeminfo_id=130)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ ^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_zul_antr_aggr_archiv'\ | 
					 | 
				
			||||||
and R.systeminfo_id=130);^ | 
					 | 
				
			||||||
48431^Seit Semester^10^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select case when tid % 10 = 1 then tid+1 else tid+9 end,\ | 
					 | 
				
			||||||
  (select eintrag from semester where tid in \ | 
					 | 
				
			||||||
    (select case when tid % 10 = 1 then tid+1 else tid+9 end from semester where today() between sem_beginn  and sem_ende))  \ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where today() between sem_beginn and sem_ende;^ | 
					 | 
				
			||||||
48432^Fächer^30^0^0^130^200^6^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48433^Abschluss^40^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48434^bis Fachsemester^1000^300^-1^200^100^1^integer^30^0^999^^ ^ ^ | 
					 | 
				
			||||||
48435^Semestertyp^22^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^ ^ ^ | 
					 | 
				
			||||||
48436^Hochschulzugangsberechtigung^120^300^-1^200^200^1^sql^30^0^999^hs_zugangsber^ ^ ^ | 
					 | 
				
			||||||
48437^Bis Semester^20^350^-1^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^ ^<<SQL>> select case when tid % 10 = 1 then tid+1 else tid+9 end,\ | 
					 | 
				
			||||||
  (select eintrag from semester where tid in \ | 
					 | 
				
			||||||
    (select case when tid % 10 = 1 then tid+1 else tid+9 end from semester where today() between sem_beginn  and sem_ende))  \ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where today() between sem_beginn and sem_ende;^ | 
					 | 
				
			||||||
48438^Staatsangehörigkeit^150^0^0^140^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48439^Studiengang^25^0^0^140^150^50^char^1000^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48440^Semester^100^0^0^140^80^1^integer^30^0^1^<<SQL>> select tid, eintrag from semester order by tid DESC;^hidden^ ^ | 
					 | 
				
			||||||
48441^Stichtag^23^330^-1^130^100^1^sql^30^1^999^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende';^ ^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ | 
					 | 
				
			||||||
48442^Hörerstatus^200^330^-1^140^150^1^sql^30^0^999^<<SQL>> select apnr, eintrag from hoererstatus order by 2^ ^<<SQL>> select apnr, eintrag from hoererstatus  where eintrag='alle';^ | 
					 | 
				
			||||||
48443^Jahr^110^0^0^140^80^1^integer^30^0^13^^ ^ ^ | 
					 | 
				
			||||||
48444^Filter Studierende^100^0^0^140^150^1^sql^20^0^1^<<SQL>> SELECT id,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SOS_STUD_FILTER' order by 2;^ ^ ^ | 
					 | 
				
			||||||
48445^Nur Endsemester^21^0^0^140^80^1^integer^30^0^999^<<SQL>> select 1,'ja' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
48446^Matrikel-Nr.^35^350^-1^140^80^1^char^30^0^13^^ ^ ^ | 
					 | 
				
			||||||
48448^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^999^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag = 'Fälle';^ | 
					 | 
				
			||||||
48452^Geschlecht^110^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ | 
					 | 
				
			||||||
48453^Spalten^3001^0^0^150^190^10^char^30^0^999^<<SQL>>\ | 
					 | 
				
			||||||
select C.uniquename, C.caption ,L.layout_id from rpta_column C, rpta_column2layout L where C.tid=L.column_id and layout_id in\ | 
					 | 
				
			||||||
(select tid from rpta_column_layout where uniquename=<<Spaltenlayout>>) order by 2;^ ^ ^ | 
					 | 
				
			||||||
48454^Bewerbungen^1^0^0^150^200^1^sql^30^0^1^<<SQL>> select '=1 and antrnr=1','Antragsfächer (je 1. Fach des 1. Antrages)' from xdummy union select '=1','Anträge (je 1. Fach)' from xdummy union select '= fachnr and antrnr=1','Antragsfächer (des 1. Antrages)' from xdummy union select '=fachnr','Antragsfächer (alle)' from xdummy order by 2;^^<<SQL>> select '=1 and antrnr=1','Antragsfächer (je 1. Fach des 1. Antrages)' from xdummy;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48430^7^ | 
					 | 
				
			||||||
@ -1,21 +0,0 @@ | 
				
			|||||||
48430^48430^ | 
					 | 
				
			||||||
48430^48431^ | 
					 | 
				
			||||||
48430^48432^ | 
					 | 
				
			||||||
48430^48433^ | 
					 | 
				
			||||||
48430^48434^ | 
					 | 
				
			||||||
48430^48435^ | 
					 | 
				
			||||||
48430^48436^ | 
					 | 
				
			||||||
48430^48437^ | 
					 | 
				
			||||||
48430^48438^ | 
					 | 
				
			||||||
48430^48439^ | 
					 | 
				
			||||||
48430^48440^ | 
					 | 
				
			||||||
48430^48441^ | 
					 | 
				
			||||||
48430^48442^ | 
					 | 
				
			||||||
48430^48443^ | 
					 | 
				
			||||||
48430^48444^ | 
					 | 
				
			||||||
48430^48445^ | 
					 | 
				
			||||||
48430^48446^ | 
					 | 
				
			||||||
48430^48448^ | 
					 | 
				
			||||||
48430^48452^ | 
					 | 
				
			||||||
48430^48453^ | 
					 | 
				
			||||||
48430^48454^ | 
					 | 
				
			||||||
@ -1,157 +0,0 @@ | 
				
			|||||||
48430^Bewerbungen und Zulassungen^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct T.name,\ | 
					 | 
				
			||||||
R.is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R \ | 
					 | 
				
			||||||
  where T.name=R.uniquename\ | 
					 | 
				
			||||||
  and T.name='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=0\ | 
					 | 
				
			||||||
    \ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
 R.is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=1\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       R.is_virtual,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="endsemester"><![CDATA[\ | 
					 | 
				
			||||||
SELECT max(tid)\ | 
					 | 
				
			||||||
from semester \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and tid >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and tid <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
and substring('' || tid from 5 for 1)='<<Semestertyp>>'\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign semester_filter ="1=1\ | 
					 | 
				
			||||||
/* and bewsem >= <<Seit Semester>> */\ | 
					 | 
				
			||||||
/* and bewsem <= <<Bis Semester>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
<#if "<<Semestertyp>>"="1" || "<<Semestertyp>>"="2">\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and substring('' || bewsem from 5 for 1)='<<Semestertyp>>'" />\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
<#if "<<Nur Endsemester>>"="1">\ | 
					 | 
				
			||||||
--nur Endsemester\ | 
					 | 
				
			||||||
<#assign semester_filter = semester_filter+ " and 1=1 and bewsem = "+endsemester  /> \ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="1=1\ | 
					 | 
				
			||||||
/* and bewsem = <<Semester>> */\ | 
					 | 
				
			||||||
--/* and stichtag = <<Stichtag>> */\ | 
					 | 
				
			||||||
--/* and <<Hochschulzugangsberechtigung>> */\ | 
					 | 
				
			||||||
--/* and <<Hörerstatus>>*/\ | 
					 | 
				
			||||||
/* and geschlecht = <<Geschlecht>> */\ | 
					 | 
				
			||||||
/* and substring('' || bewsem from 5 for 1)='<<Semestertyp>>' */\ | 
					 | 
				
			||||||
/* and ${<<Filter Studierende>>} */\ | 
					 | 
				
			||||||
/* and fachnr <<Bewerbungen>> */\ | 
					 | 
				
			||||||
" />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter= filter + " and " + semester_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter = filter + " and ('s_' || tid_stg in "+Studiengang.allNeededKeysList +" or tid_stg is null)"/> \ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and '' || ca12_staat in "+Staatsangehörigkeit.allNeededKeysList /> --<<Staatsangehörigkeit>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and stg in "+Fächer.allNeededKeysList /> --<<Fächer>> */\ | 
					 | 
				
			||||||
/* <#assign filter = filter + " and tid_stg in (select L2.tid from lehr_stg_ab L2 where L2.abschluss in "+Abschluss.allNeededKeysList +")" /> --<<Abschluss>> */\ | 
					 | 
				
			||||||
 \ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout nonvirtualTableFilter=1/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
<#if 1=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="sortnr" center_heading explanation=""\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=5 text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
@@@^Studienfach^Anzahl bzw. Anteil^Bewerbungen und Zulassungen^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
130^48430^ | 
					 | 
				
			||||||
@ -1,25 +0,0 @@ | 
				
			|||||||
48460^Grafik^1000^300^-1^170^150^1^char^30^0^1^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=48460 order by 2;^ ^<<SQL>> select uniquename, caption from viz_chart where maskeninfo_id=48460  order by 2 limit 1;^ | 
					 | 
				
			||||||
48461^Org. Einheit^1^0^0^150^200^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='FIN-Kostenstellen-Sicht' and aktiv=1 order by sortnr;^^^ | 
					 | 
				
			||||||
48462^Haushaltsjahr (HHJ)^2^0^0^100^50^1^integer^30^0^1^<<SQL>> SELECT distinct ord,name FROM aggregierung where kategorie='FIN-Jahr' order by 1;^^ ^ | 
					 | 
				
			||||||
48463^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ | 
					 | 
				
			||||||
select tid, eintrag from semester \ | 
					 | 
				
			||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ | 
					 | 
				
			||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
and  sem_beginn <=today()\ | 
					 | 
				
			||||||
order by tid DESC;^hidden^ ^ | 
					 | 
				
			||||||
48464^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=48460 order by ord^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=48460 order by ord limit 1^ | 
					 | 
				
			||||||
48466^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='fin_konto_aggr_gege'\ | 
					 | 
				
			||||||
and R.systeminfo_id=3)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^^<<SQL>> SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='fin_konto_aggr_gege'\ | 
					 | 
				
			||||||
and R.systeminfo_id=3)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^ | 
					 | 
				
			||||||
48468^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^0^1^<<SQL>> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^hidden^<<SQL>>  select 1,'Ja' from xdummy^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48460^200^ | 
					 | 
				
			||||||
@ -1,7 +0,0 @@ | 
				
			|||||||
48460^48460^ | 
					 | 
				
			||||||
48460^48461^ | 
					 | 
				
			||||||
48460^48462^ | 
					 | 
				
			||||||
48460^48463^ | 
					 | 
				
			||||||
48460^48464^ | 
					 | 
				
			||||||
48460^48466^ | 
					 | 
				
			||||||
48460^48468^ | 
					 | 
				
			||||||
@ -1,119 +0,0 @@ | 
				
			|||||||
48460^Kontostände Finanzbuchhaltung^--Freemarker Template\ | 
					 | 
				
			||||||
<#include "SQL_lingua_franca"/>\ | 
					 | 
				
			||||||
<#include "SuperX_general"/>\ | 
					 | 
				
			||||||
--\ | 
					 | 
				
			||||||
--Autor D. Quathamer 2024\ | 
					 | 
				
			||||||
<sqlvars>\ | 
					 | 
				
			||||||
<sqlvar name="my_base_rs"><![CDATA[\ | 
					 | 
				
			||||||
select R.uniquename\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="basetable" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
SELECT distinct T.name,\ | 
					 | 
				
			||||||
R.is_virtual,\ | 
					 | 
				
			||||||
name as runtime_tablename\ | 
					 | 
				
			||||||
      from sx_tables T, rpta_resultset R \ | 
					 | 
				
			||||||
  where T.name=R.uniquename\ | 
					 | 
				
			||||||
  and T.name='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=0\ | 
					 | 
				
			||||||
    \ | 
					 | 
				
			||||||
  union\ | 
					 | 
				
			||||||
  select R.uniquename,\ | 
					 | 
				
			||||||
 R.is_virtual,\ | 
					 | 
				
			||||||
  'tmp_' || R.uniquename as runtime_tablename\ | 
					 | 
				
			||||||
  from rpta_resultset R where R.uniquename='${my_base_rs}'\ | 
					 | 
				
			||||||
  and R.is_virtual=1\ | 
					 | 
				
			||||||
  ;\ | 
					 | 
				
			||||||
    ]]>\ | 
					 | 
				
			||||||
</sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_resultset" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select  caption,\ | 
					 | 
				
			||||||
       uniquename,\ | 
					 | 
				
			||||||
       fieldclause,\ | 
					 | 
				
			||||||
       joinclause,\ | 
					 | 
				
			||||||
       whereclause,\ | 
					 | 
				
			||||||
       systeminfo_id\ | 
					 | 
				
			||||||
       from rpta_resultset\ | 
					 | 
				
			||||||
       where uniquename='${basetable.name}';\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="rpta_column_layout" type="hash"><![CDATA[\ | 
					 | 
				
			||||||
select L.uniquename,\ | 
					 | 
				
			||||||
       L.caption,\ | 
					 | 
				
			||||||
       L.whereclause,\ | 
					 | 
				
			||||||
       R.is_virtual,\ | 
					 | 
				
			||||||
       L.sortclause\ | 
					 | 
				
			||||||
       from rpta_resultset R, rpta_column_layout L\ | 
					 | 
				
			||||||
       where L.resultset_id=R.tid\ | 
					 | 
				
			||||||
       and R.uniquename='${basetable.name}'\ | 
					 | 
				
			||||||
       and L.uniquename=<<Spaltenlayout>>;\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="columns" type="hashsequence"><![CDATA[\ | 
					 | 
				
			||||||
SELECT C.srcfieldname,\ | 
					 | 
				
			||||||
(case when string_not_null(C.targetfieldname)='' then C.srcfieldname else C.targetfieldname end) as targetfieldname,\ | 
					 | 
				
			||||||
T.uniquename as coltype,\ | 
					 | 
				
			||||||
C.is_aggregate,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ | 
					 | 
				
			||||||
CL.is_visible,\ | 
					 | 
				
			||||||
CL.visible_size as visible_width,\ | 
					 | 
				
			||||||
F.sql_code as format_sql,\ | 
					 | 
				
			||||||
F.uniquename as format_uniquename,\ | 
					 | 
				
			||||||
C.col_function as colfunction,\ | 
					 | 
				
			||||||
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ | 
					 | 
				
			||||||
FROM rpta_column_layout L,  rpta_column C, rpta_column_type T,rpta_column2layout CL \ | 
					 | 
				
			||||||
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ | 
					 | 
				
			||||||
where L.tid=CL.layout_id\ | 
					 | 
				
			||||||
and C.tid=CL.column_id\ | 
					 | 
				
			||||||
and T.tid=C.column_type\ | 
					 | 
				
			||||||
and L.uniquename=<<Spaltenlayout>>\ | 
					 | 
				
			||||||
/* and C.uniquename in (<<Spalten>>) */\ | 
					 | 
				
			||||||
order by CL.sortnr\ | 
					 | 
				
			||||||
 ;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
<sqlvar name="jahr_filter" ><![CDATA[\ | 
					 | 
				
			||||||
select max(rechnungsjahr) from fin_konto_aggr\ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
/* and rechnungsjahr <=<<Haushaltsjahr (HHJ)>> */\ | 
					 | 
				
			||||||
/* and rechnungsjahr<=get_akad_jahr(<<Bis Semester>>,'A') */\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
]]></sqlvar>\ | 
					 | 
				
			||||||
</sqlvars>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#assign filter="fin_konto_aggr.rechnungsjahr BETWEEN ("+jahr_filter+"-4) AND "+jahr_filter />\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if columns?has_content>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<#if basetable.is_virtual==1>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
create temp table ${basetable.runtime_tablename} as\ | 
					 | 
				
			||||||
select ${rpta_resultset.fieldclause} \ | 
					 | 
				
			||||||
from ${rpta_resultset.joinclause} \ | 
					 | 
				
			||||||
where 1=1\ | 
					 | 
				
			||||||
<#if rpta_resultset.whereclause != ""> \ | 
					 | 
				
			||||||
${rpta_resultset.whereclause} </#if>\ | 
					 | 
				
			||||||
and ${filter}\ | 
					 | 
				
			||||||
;\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
<@rpta_interpret_column_layout nonvirtualTableFilter=filter/>\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
\ | 
					 | 
				
			||||||
</#if> --wenn columns?has_content^--Freemarker Template\ | 
					 | 
				
			||||||
  XIL List\ | 
					 | 
				
			||||||
   sizable_columns horizontal_scrolling\ | 
					 | 
				
			||||||
 drop_and_delete movable_columns  \ | 
					 | 
				
			||||||
 white_space_color=COLOR_WHITE fixed_columns=1\ | 
					 | 
				
			||||||
   min_heading_height=55\ | 
					 | 
				
			||||||
<#foreach column in columns>\ | 
					 | 
				
			||||||
<#if column.is_visible!=0>\ | 
					 | 
				
			||||||
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\ | 
					 | 
				
			||||||
   row_selectable heading_platform readonly\ | 
					 | 
				
			||||||
   width=${column.visible_width} text_size=60\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
</#foreach>\ | 
					 | 
				
			||||||
@@@^^^Einnahmen / Ausgaben nach Geldgeber^drop table if exists tmp_stud2;                                                                                                                  drop table if exists tmp_stud3;^^1^600^360^0^^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
50^48460^ | 
					 | 
				
			||||||
@ -1,40 +0,0 @@ | 
				
			|||||||
48490^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<<SQL>> select apnr, eintrag from koepfe_oder_faelle order by 2^ ^<<SQL>> select apnr, eintrag from koepfe_oder_faelle where eintrag='Fälle';^ | 
					 | 
				
			||||||
48491^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ | 
					 | 
				
			||||||
select tid, eintrag from semester \ | 
					 | 
				
			||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ | 
					 | 
				
			||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
and  sem_beginn <=today()\ | 
					 | 
				
			||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today()-(4*365) between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48492^Stichtag^1^350^-1^140^100^1^sql^30^0^13^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Prüfungen';^^<<SQL>> select tid, name  from sos_stichtag where stichtagsart='Prüfungen' and appl_key='2';^ | 
					 | 
				
			||||||
48493^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^hidden^^ | 
					 | 
				
			||||||
48494^Prüfungsstatus^13^0^0^140^70^1^char^30^0^1^<<SQL>> select apnr,druck from sos_k_pstatus;^^<<SQL>> select apnr,druck from sos_k_pstatus where apnr='BE';^ | 
					 | 
				
			||||||
48495^Fächer^9^0^0^130^150^6^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^^^ | 
					 | 
				
			||||||
48497^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^13^^^^ | 
					 | 
				
			||||||
48499^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<<SQL>> --freemarker template \ | 
					 | 
				
			||||||
select tid, eintrag from semester \ | 
					 | 
				
			||||||
<#if K_VIZ_ZEITR_SEM_ANZ?exists>\ | 
					 | 
				
			||||||
where sem_beginn >= today()-(182*${K_VIZ_ZEITR_SEM_ANZ} )\ | 
					 | 
				
			||||||
</#if>\ | 
					 | 
				
			||||||
and  sem_beginn <=today()\ | 
					 | 
				
			||||||
order by tid DESC;^Eintrag^<<SQL>> select tid,eintrag from semester where today() between sem_beginn  and sem_ende;^ | 
					 | 
				
			||||||
48501^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<<SQL>> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ | 
					 | 
				
			||||||
48503^Studiengang^6^0^0^140^150^50^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ | 
					 | 
				
			||||||
48504^Jahr^110^0^0^140^80^1^integer^30^0^13^ ^ ^ ^ | 
					 | 
				
			||||||
48505^tablestylesheet^150^0^0^100^100^1^char^255^1^1^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=48490 order by ord,2^ ^<<SQL>> select filename,caption from sx_stylesheets S, sx_mask_style M where S.tid=M.stylesheet_id and M.maskeninfo_id=48490 order by ord,2 limit 1^ | 
					 | 
				
			||||||
48508^Spaltenlayout^3000^350^-1^140^180^1^char^30^1^1^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sos_lab_aggr'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7)\ | 
					 | 
				
			||||||
order by sortnr, caption\ | 
					 | 
				
			||||||
 ;^^<<SQL>>SELECT uniquename,\ | 
					 | 
				
			||||||
       caption\ | 
					 | 
				
			||||||
FROM rpta_column_layout \ | 
					 | 
				
			||||||
where resultset_id in (select R.tid from rpta_resultset R where R.uniquename='rpta_sos_lab_aggr'\ | 
					 | 
				
			||||||
and R.systeminfo_id=7) and uniquename='rpta_sos_lab_aggr_sem';^ | 
					 | 
				
			||||||
48509^Semestertyp^5^350^-1^140^80^1^integer^255^0^1^<<SQL>> select 1,'nur Sommersemester' from xdummy union select 2,'nur Wintersemester' from xdummy^Eintrag^ ^ | 
					 | 
				
			||||||
48510^##line##^30^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
48511^Abschluss^7^0^0^100^200^3^char^1500^0^12^<<SQL>> select tid,name,sortnr from sichten where art='SOS-Abschluss-Sicht' order by 3,2;^ ^ ^ | 
					 | 
				
			||||||
48512^Matrikel-Nr.^20^350^-1^150^180^1^char^200^0^13^^{InputCheck:matrikelnummern}^^ | 
					 | 
				
			||||||
48513^##line##^40^0^0^100^100^1^char^5000^0^8^^^1^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
48490^7^ | 
					 | 
				
			||||||
@ -1,18 +0,0 @@ | 
				
			|||||||
48490^48490^ | 
					 | 
				
			||||||
48490^48491^ | 
					 | 
				
			||||||
48490^48492^ | 
					 | 
				
			||||||
48490^48493^ | 
					 | 
				
			||||||
48490^48494^ | 
					 | 
				
			||||||
48490^48495^ | 
					 | 
				
			||||||
48490^48497^ | 
					 | 
				
			||||||
48490^48499^ | 
					 | 
				
			||||||
48490^48501^ | 
					 | 
				
			||||||
48490^48503^ | 
					 | 
				
			||||||
48490^48504^ | 
					 | 
				
			||||||
48490^48505^ | 
					 | 
				
			||||||
48490^48508^ | 
					 | 
				
			||||||
48490^48509^ | 
					 | 
				
			||||||
48490^48510^ | 
					 | 
				
			||||||
48490^48511^ | 
					 | 
				
			||||||
48490^48512^ | 
					 | 
				
			||||||
48490^48513^ | 
					 | 
				
			||||||
@ -1 +0,0 @@ | 
				
			|||||||
16^48490^ | 
					 | 
				
			||||||
@ -1,65 +0,0 @@ | 
				
			|||||||
#!/bin/bash | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#Arbeitsverzeichnis fuer crontab | 
					 | 
				
			||||||
PFAD=$2 | 
					 | 
				
			||||||
if [ "$PFAD" != "" ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
cd $PFAD | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
#Umgebung einlesen: | 
					 | 
				
			||||||
if [ "$RPTA_PFAD" = "" ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
echo "ACHTUNG: Die Umgebungsvariable RPTA_PFAD ist nicht gesetzt. Bitte prüfen Sie $SUPERX_DIR/db/bin/SQL_ENV" | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
exit 1 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
if [ "$RPTA_ERRORMAIL" != "" ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
ERRORMAIL=$RPTA_ERRORMAIL | 
					 | 
				
			||||||
export ERRORMAIL | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
if [ "$RPTA_LOGMAIL" != "" ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
LOGMAIL=$RPTA_LOGMAIL | 
					 | 
				
			||||||
export LOGMAIL | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
if [ "$RPTA_BACKUP" != "" ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
MODULE_BACKUP=$RPTA_BACKUP | 
					 | 
				
			||||||
export MODULE_BACKUP | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#hier geht es los | 
					 | 
				
			||||||
#runAndCheck.x path command (EXIT_ON_ERROR|CONT_ON_ERROR) (SEND_ERRORMAIL|NO_ERRORMAIL) (SEND_LOGMAIL|NO_LOGMAIL) [description] " | 
					 | 
				
			||||||
echo "rpta-Update startet" >$RPTA_ERRORDAT | 
					 | 
				
			||||||
#Tagesdatum für Systeminfo | 
					 | 
				
			||||||
date +'%d.%m.%Y' > $RPTA_LOAD_PFAD/superx.datum | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
runAndCheck.x $RPTA_PFAD "module_etl.x rpta $RPTA_PFAD $RPTA_LOAD_PFAD" EXIT_ON_ERROR SEND_ERRORMAIL SEND_LOGMAIL "RPTA update$MANDANTID" | 
					 | 
				
			||||||
cat $RPTA_PFAD/L_RPTA_update$MANDANTID.log >>$RPTA_ERRORDAT | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
fgrep -s "not found" $RPTA_ERRORDAT | 
					 | 
				
			||||||
FLAG1=$? | 
					 | 
				
			||||||
fgrep -i -s "error" $RPTA_ERRORDAT | 
					 | 
				
			||||||
FLAG2=$? | 
					 | 
				
			||||||
fgrep -i -s "nicht gefunden" $RPTA_ERRORDAT | 
					 | 
				
			||||||
FLAG3=$? | 
					 | 
				
			||||||
if [ $FLAG1 -eq 0 -o $FLAG2 -eq 0 -o $FLAG3 -eq 0 ] | 
					 | 
				
			||||||
then | 
					 | 
				
			||||||
	echo "Fehler beim RPTA-Update " | 
					 | 
				
			||||||
	echo "---------------------------------------" | 
					 | 
				
			||||||
	echo "Fehlerprotokoll in $RPTA_ERRORDAT" | 
					 | 
				
			||||||
	echo "---------------------------------------" | 
					 | 
				
			||||||
	cp $RPTA_LOAD_PFAD/superx.datum.alt $RPTA_LOAD_PFAD/superx.datum | 
					 | 
				
			||||||
else | 
					 | 
				
			||||||
	echo "RPTA-Update erfolgreich" | 
					 | 
				
			||||||
fi | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
echo "---------------------------Beginn Prüfroutine-----------------------------------" >>$RPTA_ERRORDAT | 
					 | 
				
			||||||
#cat $RPTA_PFAD/L_rpta_Test$MANDANTID.log >>$RPTA_ERRORDAT | 
					 | 
				
			||||||
pruefmail.x $RPTA_PFAD/L_rpta_Test$MANDANTID.log $ERRORMAIL  | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
					Loading…
					
					
				
		Reference in new issue