update xcube set restriction='<> and sem_rueck_beur_ein >= <> /*and sem_rueck_beur_ein <= <>*/ /* and <> */ /* AND fach_sem_zahl <= <> */ /* and stichtag = <> */ /* and kz_rueck_beur_ein in(<>) */ /* and geschlecht in (<>) */ /* and ${<>} */ /* and tid_stg in (select tid from dim_studiengang where abschluss in <@printkeys Abschluss.allNeededKeysList />) --<> */ and ''s_'' || tid_stg::char(10) in <@printkeys Studiengang.allNeededKeysList /> --<> /* and tid_stg in (select tid from dim_studiengang where stg in <@printkeys Fächer.allNeededKeysList/>) --<> */ /* and '''' || ca12_staat in <@printkeys Staatsangehörigkeit.allNeededKeysList/> --<> */ /* and (('''' || semkfz in <@printkeys Wohnort.allNeededKeysList/> and semkfzkz=0) --<> */ /* or ('''' || semkfz in <@printkeys Wohnort.allNeededKeysList/> and semkfzkz=1)) --<> */ <#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","alter")} <#if "<>"!=""> and ${.vars["HZB-Note"].selectedItems[0].strukturStr?replace("$1","hzbnote")} ' where maskeninfo_id=21000; update xcube set restriction= --nur Abschlussprüfungen, interessanterweise gibt es auch pnr=11!? 'abschnitt = 2 --alle normalen Abfragen joinen mit lehr_stg_ab, deshalb sicherheitshalber /* and pstatus = <> */ and <> and sem_der_pruefung >= <> /* and sem_der_pruefung <= <>*/ /* and stichtag = <> */ /* and tid_stg in (select tid from dim_studiengang where abschluss in <@printkeys Abschluss.allNeededKeysList />) --<> */ and ''s_'' || tid_stg::char(10) in <@printkeys Studiengang.allNeededKeysList /> --<> /* and tid_stg in (select tid from dim_studiengang where stg in <@printkeys Fächer.allNeededKeysList/>) --<> */ /* and '''' || ca12_staat in <@printkeys Staatsangehörigkeit.allNeededKeysList/> --<> */ /* and geschlecht=<> */ <#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","alter")} <#if "<>"!=""> and ${.vars["Note"].selectedItems[0].strukturStr?replace("$1","note")} /* AND fach_sem_zahl <= <> */ ' where maskeninfo_id=21100; --Personalwürfel update xcube set restriction=' <#assign datum_stichtag=''''> <#if "<>" =""> <#assign datum_stichtag="(select stichtag from sva_stichtag where bereich=''p'' and beschreibung=''Tagesdatum'')"/> <#else> <#assign datum_stichtag="(select stichtag from sva_stichtag where tid = <>)"/> <#if "<>" =""> stichtag = (select tid from sva_stichtag where bereich=''p'' and beschreibung=''Tagesdatum'') <#else> stichtag = <> AND ch110_besch_st in <@printkeys .vars["Beschäftigungsstelle (Person)"].allNeededKeysList/> --<> /* and beurl_art in <@printkeys Beurlaubung.allNeededKeysList/> --<> */ /* AND kostenstelle in <@printkeys .vars["Kostenstelle (Person)"].allNeededKeysList/> --<> */ /* AND ca107_dienstart in <@printkeys Dienstart.allNeededKeysList/> --<> */ /* AND ca109_key_bvl in <@printkeys .vars["BVL-Gruppe"].allNeededKeysList/> --<> */ /* AND ca108_amtsbez in <@printkeys Amtsbezeichnung.allNeededKeysList/> --<> */ /* AND vertart in <@printkeys Vertragsart.allNeededKeysList/> --<> */ <#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","alter")} /* and ${datum_stichtag} between d_besch_von and d_besch_bis and d_befristung <= date_val(<>) */ /* and geschlecht = <> */ /* AND ch212_geldgeber in <@printkeys Geldgeber.allNeededKeysList/> --<> */ /* and ca501_staat <> */ /* and <> */ <#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0)")} ' where maskeninfo_id=21200; --Bewerbungen/Zulassungen update xcube set restriction=' <> /* and bewsem >= <> */ /*and bewsem <= <>*/ /* and stg in <@printkeys Fächer.allNeededKeysList/> --<> */ /* and abschl in (<>) */ /* and zulart in (<>) */ /* and kzfa in (<>) */ /* and ${<>} */ /* and ca12_staat in <@printkeys Staatsangehörigkeit.allNeededKeysList/> --<> */ /* and <> */ ' where maskeninfo_id=21250; update xcube set restriction=' (bukz!=''PE'' or bukz is null) /* and jahr >= <> */ /* and jahr <= <> */ and fikrkey in <@printkeys Kostenarten.allNeededKeys /> and ch110_institut in <@printkeys Kostenstelle.allNeededKeys/> /* AND <> */ /* and monat >= <> */ /* and monat <= <> */ /* and (ggnr in <@printkeys .vars["Geldgeber"].allNeededKeys /> or <> =''null'')*/ /* and (projnr in <@printkeys Kostenträger.allNeededKeys/> or <> =''null'') */ ' where maskeninfo_id=21500;