3 changed files with 137 additions and 0 deletions
@ -0,0 +1,66 @@ |
|||||||
|
--freemarker template |
||||||
|
<#include "RPTA-Makros"/> |
||||||
|
<sqlvars> |
||||||
|
<sqlvar name="rpta_exam_unit_dim_studiengang_exists"> |
||||||
|
select count(*) from rpta_resultset where uniquename='rpta_exam_unit_dim_studiengang'; |
||||||
|
</sqlvar> |
||||||
|
</sqlvars> |
||||||
|
<#assign rpta_column_layout = {"uniquename":"rpta_exam_unit_dim_studiengang_studienstiftung_rangliste", |
||||||
|
"caption":"Studienstiftung Rangliste", |
||||||
|
"rpta_resultset":"rpta_exam_unit_dim_studiengang", |
||||||
|
"whereclause":"((modulart=''P'' and sourcesystem=6) or (part=''MP'' and sourcesystem=5)) |
||||||
|
and pstatus in (''BE'',''NB'',''EN'') |
||||||
|
and (((panerk != ''J'' and sourcesystem=6) or (panerk is null and sourcesystem=6)) |
||||||
|
or ((panerk != ''I'' and panerk != ''J'' and panerk != ''H'' and sourcesystem=5) or (panerk is null and sourcesystem=5)))", |
||||||
|
"description":"", |
||||||
|
"sortclause":"note_schnitt,ects_ist desc,ects_soll asc" |
||||||
|
} |
||||||
|
/> |
||||||
|
|
||||||
|
<#assign rpta_columns = [ |
||||||
|
|
||||||
|
{"uniquename":"matrikel_nr", |
||||||
|
"caption_in_ergebnistabelle":"Matrikelnummer", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"INT_NO_SEP", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
}, |
||||||
|
{"uniquename":"surname", |
||||||
|
"caption_in_ergebnistabelle":"Nachname", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
}, |
||||||
|
{"uniquename":"ects_soll", |
||||||
|
"caption_in_ergebnistabelle":"Soll-ECTS", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
}, |
||||||
|
{"uniquename":"ects_ist", |
||||||
|
"caption_in_ergebnistabelle":"Ist-ECTS", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
}, |
||||||
|
{"uniquename":"note_case", |
||||||
|
"caption_in_ergebnistabelle":"", |
||||||
|
"is_visible":"0", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
}, |
||||||
|
{"uniquename":"note_schnitt", |
||||||
|
"caption_in_ergebnistabelle":"Durchschnittsnote berechnet", |
||||||
|
"is_visible":"1", |
||||||
|
"format_code":"", |
||||||
|
"visible_size":"5", |
||||||
|
"description_in_ergebnistabelle":"" |
||||||
|
} |
||||||
|
] |
||||||
|
/> |
||||||
|
<@rpta_column2layout_fuellen /> |
||||||
@ -0,0 +1,70 @@ |
|||||||
|
--freemarker template |
||||||
|
<#include "RPTA-Makros"/> |
||||||
|
<sqlvars> |
||||||
|
<sqlvar name="rpta_exam_unit_dim_studiengang_exists"> |
||||||
|
select count(*) from rpta_resultset where uniquename='rpta_exam_unit_dim_studiengang'; |
||||||
|
</sqlvar> |
||||||
|
</sqlvars> |
||||||
|
<#assign rpta_column_resultset = { |
||||||
|
"rpta_resultset":"rpta_exam_unit_dim_studiengang" |
||||||
|
} |
||||||
|
/> |
||||||
|
|
||||||
|
<#assign rpta_columns = [ |
||||||
|
{"uniquename":"note_case", |
||||||
|
"caption_der_spalte":"Durchschnittsnote * Vorbereitend", |
||||||
|
"srcfieldname":"note", |
||||||
|
"targetfieldname":"note_case", |
||||||
|
"column_type":"preparingColumn", |
||||||
|
"col_function":"(case when note > 6 then null else note end)", |
||||||
|
"is_aggregate":0, |
||||||
|
"description_der_spalte":""}, |
||||||
|
|
||||||
|
{"uniquename":"note_schnitt", |
||||||
|
"caption_der_spalte":"Durchschnittsnote * Weiterverarbeitend", |
||||||
|
"srcfieldname":"note_case", |
||||||
|
"targetfieldname":"note_schnitt", |
||||||
|
"column_type":"processingColumn", |
||||||
|
"col_function":"avg(note_case)", |
||||||
|
"is_aggregate":1, |
||||||
|
"description_der_spalte":""}, |
||||||
|
|
||||||
|
{"uniquename":"ects_soll", |
||||||
|
"caption_der_spalte":"Soll-ECTS", |
||||||
|
"srcfieldname":"", |
||||||
|
"targetfieldname":"ects_soll", |
||||||
|
"column_type":"lookupColumn", |
||||||
|
"col_function":"select max(ects_soll) from lm_ects_soll_ist E |
||||||
|
where |
||||||
|
tmp_rpta_exam_unit_dim_studiengang.matrikel_nr=E.matrikel_nr |
||||||
|
and E.tid_stg in (select tid from dim_studiengang where stg=tmp_rpta_exam_unit_dim_studiengang.dim_studiengang_stg |
||||||
|
and abschluss=tmp_rpta_exam_unit_dim_studiengang.dim_studiengang_abschluss)", |
||||||
|
"is_aggregate":0, |
||||||
|
"description_der_spalte":""}, |
||||||
|
|
||||||
|
{"uniquename":"ects_ist", |
||||||
|
"caption_der_spalte":"Ist-ECTS", |
||||||
|
"srcfieldname":"", |
||||||
|
"targetfieldname":"ects_ist", |
||||||
|
"column_type":"lookupColumn", |
||||||
|
"col_function":"select max(ects_ist) from lm_ects_soll_ist E |
||||||
|
where |
||||||
|
tmp_rpta_exam_unit_dim_studiengang.matrikel_nr=E.matrikel_nr |
||||||
|
and E.tid_stg in (select tid from dim_studiengang where stg=tmp_rpta_exam_unit_dim_studiengang.dim_studiengang_stg |
||||||
|
and abschluss=tmp_rpta_exam_unit_dim_studiengang.dim_studiengang_abschluss)", |
||||||
|
"is_aggregate":0, |
||||||
|
"description_der_spalte":""}, |
||||||
|
|
||||||
|
{"uniquename":"surname", |
||||||
|
"caption_der_spalte":"Nachname", |
||||||
|
"srcfieldname":"", |
||||||
|
"targetfieldname":"surname", |
||||||
|
"column_type":"lookupColumn", |
||||||
|
"col_function":"select surname from sos_stud_address A |
||||||
|
where tmp_rpta_exam_unit_dim_studiengang.matrikel_nr=A.matrikel_nr", |
||||||
|
"is_aggregate":0, |
||||||
|
"description_der_spalte":""} |
||||||
|
|
||||||
|
] |
||||||
|
/> |
||||||
|
<@rpta_column_fuellen /> |
||||||
Loading…
Reference in new issue