From 70d832a4f08c7eabcd8f0ca3882c280308f5995f Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 27 Jun 2023 11:07:15 +0200 Subject: [PATCH 01/21] =?UTF-8?q?Definition=20Personalw=C3=BCrfel=20und=20?= =?UTF-8?q?erste=20Dimensionen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schluesseltabellen/xcube_install.sql | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index d7998f5..e7838f4 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -13,6 +13,12 @@ "table_name":"sos_lab_aggr", "maskeninfo_id":21100 } , +{"name":"Personalwürfel", + "uniquename":"xcube_sva_pbv_aggr_stich", + "sachgebiet":10, + "table_name":"sva_pbv_aggr_stich", + "maskeninfo_id":21200 +} , {"name":"Primärbuchungswürfel", "uniquename":"xcube_cob_busa_aggr", "sachgebiet":27, @@ -37,6 +43,13 @@ "restriction":"", "datatype":"integer", "is_default":1, + "sortnr":1}, + { "maskeninfo_id":21200, + "apnr":"personal", + "name":"Personal", + "aggrfunction":"sum(vzae)", + "restriction":"", + "is_default":1, "sortnr":1}, { "maskeninfo_id":21500, "apnr":"kosten", @@ -324,6 +337,24 @@ "foreignkey_col":"apnr::varchar(255)", "foreignkey_cap":"druck", "sortfield":"druck"}, + + <#--Entwicklung Personalwürfel--> + {"maskeninfo_id":21200, + "name":"ca109_key_bvl", + "caption":"BVL-Gruppe", + "is_rowdefault":1, + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"geschlecht", + "caption":"Geschlecht", + "is_coldefault":1, + "foreignkey_tab":"konstanten", + "foreignkey_col":"tid::varchar(255)", + "foreignkey_cap":"beschreibung", + "foreignkey_cond":"tid in ('1','2')", + "sortfield":"beschreibung"}, + + <#-- Primärbuchungswürfel --> {"maskeninfo_id":21500, From 434442a6d671c484c3acbf4c162f1718e0b026e3 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 27 Jun 2023 11:07:45 +0200 Subject: [PATCH 02/21] =?UTF-8?q?erste=20Einschr=C3=A4nkungen=20f=C3=BCr?= =?UTF-8?q?=20Abfrage=20Personalw=C3=BCrfel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube_install_restrictions.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 4bf3f84..5300546 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -37,6 +37,21 @@ update xcube set restriction='<> /* AND fach_sem_zahl <= <> */ ' where maskeninfo_id=21100; + --Personalwürfel + + update xcube set restriction=' + <#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/> --<> */ + ' where maskeninfo_id=21200; + + update xcube set restriction=' (bukz!=''PE'' or bukz is null) /* and jahr=<> */ From 79c55d75b698562f7fe2a5fecc1d1cd1f93a0ed1 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 27 Jun 2023 11:08:13 +0200 Subject: [PATCH 03/21] =?UTF-8?q?Definition=20Maske=20Personalw=C3=BCrfel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- li | 729 ++++++++++++++++++ .../module/xcube/masken/21200_felderinfo.unl | 27 + .../xcube/masken/21200_maske_system_bez.unl | 1 + .../xcube/masken/21200_masken_felder_bez.unl | 30 + .../module/xcube/masken/21200_maskeninfo.unl | 430 +++++++++++ .../xcube/masken/21200_sachgeb_maske_bez.unl | 1 + 6 files changed, 1218 insertions(+) create mode 100644 li create mode 100644 src-modules/module/xcube/masken/21200_felderinfo.unl create mode 100644 src-modules/module/xcube/masken/21200_maske_system_bez.unl create mode 100644 src-modules/module/xcube/masken/21200_masken_felder_bez.unl create mode 100644 src-modules/module/xcube/masken/21200_maskeninfo.unl create mode 100644 src-modules/module/xcube/masken/21200_sachgeb_maske_bez.unl diff --git a/li b/li new file mode 100644 index 0000000..069e1a9 --- /dev/null +++ b/li @@ -0,0 +1,729 @@ + 1 cd .ssh + 2 ssh-keygen -t rsa + 3 cd .ssh + 4 vi authorized_keys + 5 exit + 6 cd tools/anydesk/ + 7 ls + 8 vi lizenz.txt + 9 exit + 10 ls + 11 sudo -i + 12 exit + 13 sudo -i + 14 sudo -i + 15 cd .ssh + 16 vi id_rsa.pub + 17 vi config + 18 cd ../git + 19 ls + 20 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 21 ssh v1 + 22 wget https://superxhosting.de/superx/ip.jsp + 23 vi ip.jsp + 24 rm ip.jsp + 25 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 26 cd .. + 27 cd .ssh + 28 vi id_rsa.pub + 29 cd ../git + 30 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 31 cd + 32 cd .ssh + 33 ssh-keygen -t rsa -b 4096 -C "winterstein@superx-projekt.de" + 34 ls + 35 vi id_rsa_v1.pub + 36 vi id_rsa.pub + 37 vi config + 38 cd ../git + 39 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 40 cd ../.ssh + 41 ls + 42 rm id_rsa_v1.pub + 43 rm id_rsa_v1 + 44 vi ../.ssh/config + 45 vi id_rsa.pub + 46 cd ../git + 47 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 48 vi ../.ssh/config + 49 vi ../.ssh/id_rsa.pub + 50 git clone ssh://git@git.campussource.de:22222/SuperX/xcube.git + 51 git clone ssh://superx@wannabe/SuperX/xcube.git + 52 git clone ssh://git@git.campussource.de:22222/SuperX/xcube.git + 53 git config --global user.name "Marlies Winterstein" + 54 git config --global user.email "winterstein@superx-projekt.de" + 55 cd .. + 56 ls -a + 57 vi .gitconfig + 58 cd git + 59 git clone ssh://git@git.campussource.de:22222/SuperX/xcube.git + 60 git clone https://git.campussource.de/git/SuperX/xcube.git + 61 rm -r xcube/ + 62 rm -rf xcube/ + 63 git clone ssh://git@git.campussource.de:22222/SuperX/xcube.git + 64 ll ../.ssh + 65 git clone ssh://git@git.campussource.de:22222/SuperX/xcube.git + 66 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 67 ssh --version + 68 ssh + 69 ssh --help + 70 ls + 71 git clone ssh://superx@gitea/Memtext/Memtext-Interna.git + 72 ls + 73 cd xcube/ + 74 git pull + 75 cd ../Memtext-Interna/ + 76 git pull + 77 exit + 78 cd .ssh + 79 vi config + 80 ssh-keygen -t ed25519 -C "winterstein@superx-projekt.de" + 81 -o PubkeyAcceptedAlgorithms=+ssh-rsa + 82 vi id_ed25519.pub + 83 vi config + 84 ssh-keygen -o PubkeyAcceptedAlgorithms=+ssh-rsa -t rsa + 85 ls + 86 exit + 87 ls + 88 cd git + 89 ls + 90 cd xcube + 91 git pull + 92 vi .git + 93 cd .git + 94 vi config + 95 cd .. + 96 git status + 97 exit + 98 vi .ssh/id_rsa.pub + 99 ssh journey + 100 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 101 exit + 102 cd git/xcube + 103 ls + 104 git pull + 105 vi .git/config + 106 git pull + 107 gitk + 108 git status + 109 git add -A + 110 git commit -m "TODO Dateien zerlegen" + 111 git push + 112 ssh superx@journey + 113 cd bin + 114 ls + 115 tunnel_journey_pg.x + 116 vi tunnel_journey_pg.x + 117 tunnel_journey_pg.x + 118 tunnel_journey_pg.x + 119 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 120 tunnel_journey_pg.x + 121 exit + 122 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 123 exit + 124 tunnel_journey_pg.x + 125 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 126 exit + 127 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 128 exit + 129 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 130 exit + 131 tunnel_journey_pg.x + 132 exit + 133 cd git/xcube + 134 git status + 135 git add -A + 136 git commit -m "Einfügen Semester als Dimension und Auswahl auf Seit Semester, bis Semester" + 137 git push + 138 exit + 139 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 140 cd git + 141 cd xcube + 142 git status + 143 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 144 git commit -m "Einfügen Fach_sem_zahl bis 10 und eine Zeile(Spalte) FS>10 in xcube_dims" + 145 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 146 git commit -m "Einfügen Zeile attrib_nachbearbeitung für fach_sem_zahl FS>10 in xcube_dimconfig" + 147 git push + 148 cd git/xcube + 149 git status + 150 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 151 git commit -m "Zusammenfassung Hochschulsemester - bis 10 einzeln, dann HS>10, Dimension HZB hinzugefügt" + 152 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 153 git commit -m "Zusammenfassung Hochschulsemester - bis 10 einzeln, dann HS>10,Neg. HS auf 0 gesetzt, Dimension HZB hinzugefügt" + 154 git push + 155 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 156 tunnel_journey_pg.x + 157 cd git + 158 ll + 159 cd ../git-Sicherung/ + 160 sx_select_mask 10120 + 161 cd /git/xcube + 162 cd ~/git/xcube + 163 git status + 164 git -A src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 165 git add -A src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 166 git commit "Umstellung für abschluss von lehr_stg_ab auf dim_studiengang" + 167 git commit -m "Umstellung für abschluss von lehr_stg_ab auf dim_studiengang" + 168 git push + 169 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 170 cd git + 171 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 172 ls + 173 cd B + 174 cd BI-Konfiguration/ + 175 gitk + 176 ll + 177 cd webapps_superx/ + 178 ll + 179 cd WEB-INF/ + 180 ll + 181 cd ~/git + 182 git status + 183 cd xcube + 184 git status + 185 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 186 git commit -m "Dimension Alter hinzugefügt, über SQL-Sicht" + 187 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 188 git commit -m "Dimension Alter hinzugefügt, Korrekturen für Dimension Wohnort" + 189 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 190 git commit -m "Einschränkung für Parameter Wohnort hinzugefügt" + 191 git push + 192 ll + 193 tunnel_journey_pg.x + 194 cd git/xcube + 195 git status + 196 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 197 git commit -m "Eintragungen für Einschränkung auf Alter" + 198 cd /home/superx/git/xcube/src-modules/module/xcube/masken + 199 ll 21000* + 200 sx_select_mask 21000 + 201 ll 21000* + 202 git status + 203 git add -A + 204 git add + 205 git add 21000_felderinfo.unl + 206 git commit -m "Parameter Seit Semester, Bis Semester,Wohnort, Alter hinzugefügt" + 207 git add 21000_masken_felder_bez.unl + 208 git commit -m "Parameter Seit Semester, Bis Semester,Wohnort, Alter hinzugefügt" + 209 git status + 210 cd .. + 211 ll + 212 git add xcube_sichten.sql + 213 git commit -m "Definition der Sicht für die Dimension Alter als SQL-Sicht" + 214 git push + 215 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 216 tunnel_journey_pg.x + 217 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 218 tunnel_journey_pg.x + 219 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 220 cd git/xcube + 221 git pull + 222 git status + 223 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 224 git commit -m "Dimensionen Aktiv und Hörerstatus hinzugefügt" + 225 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 226 git commit -m "Dimensionen Aktiv und Hörerstatus hinzugefügt" + 227 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 228 git commit -m "Einschränkung auf Parameter Studiengang hinzugefügt" + 229 git add src-modules/module/xcube/schluesseltabellen/create_views.sql + 230 git commit -m "Definition view xcube_wohnort_staat" + 231 git status + 232 git add src-modules/module/xcube/masken/21000_felderinfo.unl + 233 git commit -m "Felder aktiv und Hörerstatus(cifx) als unsichtbar eingefügt" + 234 git add src-modules/module/xcube/masken/21000_masken_felder_bez.unl + 235 git commit -m "Felder aktiv und Hörerstatus(cifx) eingefügt" + 236 git status + 237 git push + 238 tunnel_journey_pg.x + 239 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 240 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 241 tunnel_journey_pg.x + 242 cd git/xcube + 243 git status + 244 git add src-modules/module/xcube/schluesseltabellen/create_views.sql + 245 git commit -m "View xcube_wohnort_staat um alle und unbekannt ergänzt" + 246 git add src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql + 247 git commit -m "Sicht xcube_dim_wohnort hinzugefügt" + 248 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 249 git commit -m "Dimensionen Beurlaubungsgrund, HZB-Note, HZB(intern) hinzugefügt" + 250 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 251 git commit -m "Dimensionen Beurlaubungsgrund, HZB-Note, HZB(intern) hinzugefügt" + 252 git status + 253 git add src-modules/module/xcube/masken/21000_felderinfo.unl + 254 git commit -m "Parameter HZB-Note (Sicht) hinzugefügt, Parameter Aktiv,Hörerstatus(intern) gelöscht (als Liste nicht notwendig)" + 255 git add src-modules/module/xcube/masken/21000_masken_felder_bez.unl + 256 git commit -m "Parameter HZB-Note (Sicht) hinzugefügt, Parameter Aktiv,Hörerstatus(intern) gelöscht (als Liste nicht notwendig)" + 257 git status + 258 git push + 259 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 260 cd git + 261 cd xcube + 262 git status + 263 tunnel_journey_pg.x + 264 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 265 cd git + 266 git status + 267 cd xcube + 268 git status + 269 gitk + 270 git add src-modules/module/xcube/masken/21000_felderinfo.unl + 271 git commit -m "Parameter Seit Semester auf einzeilig gestellt" + 272 git add src-modules/module/xcube/masken/21000_masken_felder_bez.unl + 273 git commit -m "eig. nichts geändert" + 274 git commit -m "src-modules/module/xcube/masken/21000_maskeninfo.unl + 275 " + 276 git commit -m "src-modules/module/xcube/masken/21000_maskeninfo.unl + 277 " + 278 git add src-modules/module/xcube/masken/21000_maskeninfo.unl + 279 git commit -m "wahrsch. Änderungen von MB" + 280 git add src-modules/module/xcube/schluesseltabellen/create_views.sql + 281 git commit -m "Änderungen bei xcube_hoererstatus + 282 " + 283 git add src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql + 284 git commit -m "Änderungen bei XCUBE-Hörerstatus-Sicht" + 285 git status + 286 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 287 git commit -m "Änderungen bei Alter wegen Sortierung" + 288 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 289 git commit -m "Änderungen für Sicht Hörerstatus" + 290 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 291 git commit -m "Korrektur bei Wohnort" + 292 git status + 293 git push + 294 cd git/xcube + 295 git status + 296 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 297 tunnel_journey_pg.x + 298 cd git + 299 git status + 300 cd xcube + 301 git status + 302 git add rc-modules/module/xcube/schluesseltabellen/xcube_install.sql + 303 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 304 git commit -m "Hinzufügen von weiteren Dimensionen aus dim_studiengang" + 305 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 306 git commit -m "Einfügen von Lehreinheit in xcube_dims" + 307 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 308 git commit -m "Korrektur bei HZB-Note" + 309 git status + 310 git push + 311 git status + 312 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 313 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 314 tunnel_journey_pg.x + 315 tunnel_journey_pg.x + 316 cd Masken-UDE/cop/masken/ + 317 fgrep SOS_ABS * + 318 fgrep SOS_ABSCHLUSSGRUPPEN * + 319 fgrep ABSCHLUSSGRUPPEN * + 320 fgrep sx_repository * + 321 vi 11930_maskeninfo.unl + 322 vi 10490_maskeninfo.unl + 323 vi 11930_maskeninfo.unl + 324 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 325 tunnel_journey_pg.x + 326 cd /home/superx/Masken-UDE/cop/masken + 327 fgrep sos_abschlu * + 328 fgrep bschlussgr * + 329 vi 10490_maskeninfo.unl + 330 cd git + 331 git status + 332 cd xcube + 333 git status + 334 git add -A + 335 git commit -m "Änderung Feld Abschluss auf Sicht" + 336 git push + 337 git status + 338 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 339 tunnel_journey_pg.x + 340 ll + 341 pwd + 342 cd Masken-UDE/masken/ + 343 grep inaktiv * + 344 grep -i aktiv * + 345 grep -i inaktiv * + 346 grep -i aktiv *|more + 347 grep -i aktiv *maskeninfo.unl|more + 348 vi 15650_maskeninfo.unl + 349 fgrep LAB_BEWERTET * + 350 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 351 cd git/xcube + 352 git status + 353 gia add src-modules/module/xcube/masken/21000_maskeninfo.unl + 354 git add src-modules/module/xcube/masken/21000_maskeninfo.unl + 355 git commit -m "Änderung im SQL durch MB" + 356 git push + 357 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 358 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 359 pwd + 360 ll + 361 cd git + 362 cd BI-Konfiguration/masken/MW_Masken/ + 363 pwd + 364 tunnel_journey_pg.x + 365 cd git + 366 ll + 367 cd BI-Konfiguration/ + 368 cd masken + 369 cd M + 370 cd MW_Masken/ + 371 git status + 372 cd .. + 373 git status + 374 cd BI-Konfiguration/ + 375 git status + 376 git add masken/MW_Masken + 377 git status + 378 git add -A + 379 git status + 380 tunnel_journey_pg.x + 381 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 382 ifconfig + 383 ethconfig + 384 cd git + 385 git status + 386 cd BI-Konfiguration/ + 387 git status + 388 git add -A -v + 389 git commit -m "UDE Masken" + 390 git push + 391 git status + 392 git push + 393 git pull + 394 git status + 395 git pull + 396 git status + 397 git push + 398 cd ../ + 399 mkdir tmp + 400 cd tmp + 401 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 402 git status + 403 cd BI-Konfiguration/ + 404 git status + 405 cd masken/ + 406 ls + 407 cd .. + 408 git status + 409 git add -A -v + 410 git commit -m "UDE Masken" + 411 git push + 412 ssh journey + 413 vi li.log + 414 ssh journey + 415 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 416 tunnel_journey_pg.x + 417 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 418 cd git + 419 cd BI + 420 cd BI-Konfiguration + 421 git status + 422 git add -A + 423 git commit 'Spalte weg aus Ergebnis herausgenommen (nur Kontrolle), Erläuterungen ergänzt' + 424 git commit -m "Spalte weg aus Ergebnis herausgenommen (nur Kontrolle), Erläuterungen ergänzt" + 425 git push + 426 git status + 427 git add -A + 428 git commit -m "Dateien von der UDE erhalten, Stand 13.4.2023" + 429 git push + 430 git status + 431 cd + 432 cd git + 433 cd xcube + 434 git status + 435 history|grep ssh + 436 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 437 tunnel_journey_pg.x + 438 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 439 cd git/xcube + 440 git status + 441 git add src-modules/module/xcube/masken/21000_maskeninfo.unl + 442 git commit -m "Umbenennung Maske" + 443 git add src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql + 444 git commit -m "Sicht für Note" + 445 git add src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql + 446 git commit -m "Sicht für Note" + 447 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 448 git commit -m "weitere Dimensionen für Prüfungswürfel" + 449 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 450 git commit -m "weitere Parameter für Prüfungswürfel" + 451 git status + 452 git add -A + 453 git commit -m "Änderungen an Abfrage Prüfungswürfel" + 454 git status + 455 git push + 456 tunnel_journey_pg.x + 457 ll + 458 cd git/BI-Konfiguration + 459 git status + 460 git add masken/MW_Masken/15650_maskeninfo.unl + 461 git commit -m "Änderung Definition aktiv/inaktiv" + 462 git status + 463 git push + 464 git fetch + 465 git push + 466 cd + 467 cd git/xcube + 468 git status + 469 git add src-modules/module/xcube/masken/21100_felderinfo.unl + 470 git commit -m "Parameter Prüfungsstatus eingefügt" + 471 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 472 git commit -m "Einschränkungen für Parameter Prüfungsstatus eingefügt" + 473 git add -A + 474 git commit -m "weitere Dimensionen analog Studierende, Dimension Stud.Dauer-RSZ eingefügt" + 475 git status + 476 git push + 477 ssh journey + 478 git add -A + 479 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 480 cd git + 481 ll + 482 mkdir BI-Konfiguration + 483 ll + 484 cd BI-Konfiguration + 485 https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 486 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 487 ll + 488 git status + 489 cd .. + 490 git status + 491 ll + 492 cd BI-Konfiguration + 493 git status + 494 cd .. + 495 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 496 ll + 497 cd BI-Konfiguration + 498 git status + 499 git add masken/MW_Masken/15650_maskeninfo.unl + 500 git commit -m "Logik für aktiv/inaktiv geändert" + 501 git push + 502 git status + 503 git add masken/MW_Masken/15650_maskeninfo.unl + 504 git commit -m "Logik für aktiv geändert, es wurden zuviele Prüfungen gefunden" + 505 git commit -m "Logik für aktiv geändert, es wurden zuviele Prüfungen gefunden"ti + 506 git push + 507 git status + 508 cd .. + 509 ll + 510 cd xcube + 511 git status + 512 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 513 git commit -m "Einschränkung für Prüfungen auf pnr=1 raus, Überprüfung auf tid_stg in lehr_stg_ab rein" + 514 git push + 515 tunnel_journey_pg.x + 516 history|grep ssh + 517 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 518 ssh journey + 519 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 520 cd git + 521 cd xcube + 522 git status + 523 git pull + 524 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 525 ssh journey + 526 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 527 ssh davy + 528 ping 192.168.0.1 + 529 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 530 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 531 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 532 ping davy + 533 cat /etc/hosts + 534 ssh davy + 535 ping davy + 536 ping www.heise.de + 537 ssh -v davy + 538 ssh -v journey + 539 ssh -v davy + 540 ll *.x + 541 ll tunnel* + 542 pwd + 543 ll + 544 find -name tunnel\* -print + 545 tunnel_davy_pg.x + 546 vi bin/tunnel_davy_pg.x + 547 vi bin/tunnel_journey_pg.x + 548 vi bin/tunnel_davy_pg.x + 549 tunnel_davy_pg.x + 550 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 551 pwd + 552 cd git/xcube + 553 git status + 554 git add src-modules/module/xcube/masken/21100_felderinfo.unl + 555 git commit -m "Feld bis Fachsemester sichtbar gemacht, da Dimension" + 556 git add -A + 557 git commit -m "Dimensionen Prüfungsstatus, Fachsemester eingebaut" + 558 git status + 559 git push + 560 vi bin/tunnel_davy_pg.x + 561 tunnel_davy_pg.x + 562 cd git + 563 cd xcube + 564 git pull + 565 cd src-modules/module/xcube/schluesseltabellen/ + 566 ll -t + 567 DOSQL xcube_install.sql + 568 . /home/superx/SQL_ENV_UDE + 569 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 570 tunnel_davy_pg.x + 571 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 572 ll tunnel* + 573 ll bin/tunnel* + 574 tunnel_journey_pg.x + 575 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 576 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 577 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 578 tunnel_journey_pg.x + 579 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 580 tunnel_davy_pg.x + 581 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 582 cd /home/superx/git/BI-Konfiguration/masken/MW_Masken + 583 fgrep 'pnr=1' *maskeninfo.unl + 584 vi 10490_maskeninfo.unl + 585 vi 11930_maskeninfo.unl + 586 vi 15360_maskeninfo.unl + 587 vi 11930_maskeninfo.unl + 588 fgrep 'pnr = 1' *maskeninfo.unl + 589 fgrep sos_lab_stg *maskeninfo.unl|more + 590 vi 10620_maskeninfo.unl + 591 vi 11560_maskeninfo.unl + 592 vi 11850_maskeninfo.unl + 593 tunnel_journey_pg.x + 594 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 journey + 595 cd /home/superx/git/BI-Konfiguration/masken/MW_Masken + 596 vi 12320_maskeninfo.unl + 597 vi 12650_maskeninfo.unl + 598 vi 13230_maskeninfo.unl + 599 vi 13250_maskeninfo.unl + 600 vi 13500_maskeninfo.unl + 601 vi 13580_maskeninfo.unl + 602 vi 13600_maskeninfo.unl + 603 vi 15100_maskeninfo.unl + 604 vi 15110_maskeninfo.unl + 605 vi 15180_maskeninfo.unl + 606 vi 15360_maskeninfo.unl + 607 vi 15400_maskeninfo.unl + 608 vi 15650_maskeninfo.unl + 609 tunnel_davy_pg.x + 610 tunnel_journey_pg.x + 611 tunnel_davy_pg.x + 612 cd git + 613 cd xcube + 614 git pull + 615 cd git + 616 cd BI-Konfiguration + 617 cd masken/MW_Masken/ + 618 git pull + 619 git status + 620 git add 15650_maskeninfo.unl + 621 git commit -m "Änderung wegen Null bei anz_aktiv_sem, auch leere Semester anzeigen" + 622 git push + 623 /ssh + 624 history|grep ssh + 625 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 626 tunnel_davy_pg.x + 627 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 628 cd git + 629 cd xcube + 630 git status + 631 git pull + 632 cd src-modules/module/xcube/masken/ + 633 ll 21000* + 634 tunnel_davy_pg.x + 635 cd git + 636 cd xcube + 637 git pull + 638 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 639 git status + 640 git add src-modules/module/xcube/masken/21100_felderinfo.unl + 641 git commit -m "Parameter Fächer hinzugefügt" + 642 git add src-modules/module/xcube/masken/21100_maskeninfo.unl + 643 git commit -m "Änderungen von MB?" + 644 git status + 645 git add -A + 646 git commit -m "Änderungen für Parameter Fächer" + 647 git status + 648 git push + 649 git status + 650 cd git + 651 cd BI-Konfiguration + 652 git status + 653 cd .. + 654 ll + 655 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 656 ll + 657 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 658 vi li + 659 rm li + 660 cd BI-Konfiguration + 661 git status + 662 git add -A + 663 git commit -m "Dokumentation der UDE-Sichten" + 664 git status + 665 git push + 666 tunnel_davy_pg.x + 667 cd git/xcube + 668 git status + 669 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 v1 + 670 cd git + 671 cd xcube + 672 git status + 673 ssh v1 + 674 cd + 675 cd bin + 676 ls + 677 cp tunnel_davy_pg.x tunnel_v1_pg.x + 678 vi tunnel_v1_pg.x + 679 tunnel_v1_pg.x + 680 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 v1 + 681 ll + 682 tunnel_v1_pg.x + 683 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 v1 + 684 tunnel_davy_pg.x + 685 tunnel_v1_pg.x + 686 cd git + 687 ll + 688 cd BI-Konfiguration + 689 ll + 690 cd git + 691 cd .. + 692 git pull https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 693 pwd + 694 git clone https://superx-rocks.de/git/UDE/BI-Konfiguration.git + 695 gitk /home/superx/git/BI-Konfiguration/webapps_superx/WEB-INF/conf/edustore/db/module/sos/sos_aggr_CUSTOM.sql_UDE.sql + 696 cd BI-Konfiguration + 697 gitk webapps_superx/WEB-INF/conf/edustore/db/module/sos/sos_aggr_CUSTOM.sql_UDE.sql + 698 cd + 699 ll + 700 cd bin + 701 tunnel_davy_pg.x + 702 history|grep ssh + 703 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 davy + 704 cd git + 705 cd BI-Konfiguration + 706 git status + 707 git add masken/MW_Masken/15650_maskeninfo.unl + 708 git commit -m "Änderung auf left join, weil Semester ohne Studenten herauskommen sollen" + 709 git push + 710 ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=1 v1 + 711 cd git + 712 cd xcube + 713 git status + 714 git add src-modules/module/xcube/schluesseltabellen/xcube_install.sql + 715 git commit -m "Definition Personalwürfel und erste Dimensionen" + 716 git add src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql + 717 git commit -m "erste Einschränkungen für Abfrage Personalwürfel" + 718 git status + 719 git add -A + 720 git commit -m "Definition Maske Personalwürfel" + 721 git status + 722 git push + 723 git pull + 724 tunnel_v1_pg.x + 725 tunnel_davy_pg.x + 726 cd git/xcube + 727 git status + 728 history + 729 history>li diff --git a/src-modules/module/xcube/masken/21200_felderinfo.unl b/src-modules/module/xcube/masken/21200_felderinfo.unl new file mode 100644 index 0000000..99ba90a --- /dev/null +++ b/src-modules/module/xcube/masken/21200_felderinfo.unl @@ -0,0 +1,27 @@ +21200^Beschäftigungsstelle (Person)^0^0^0^150^150^1^char^30^0^12^<>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;^^^ +21201^Datum^1^300^-1^100^80^1^date^10^0^0^^^<> select today() from xdummy^ +21202^Kostenstelle (Person)^3^0^0^100^150^3^char^30^0^12^<> 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;^^^ +21203^Dienstart^4^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Dienstart' and aktiv=1 order by type,name;^^^ +21204^BVL-Gruppe^5^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^^^ +21205^Amtsbezeichnung^6^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Amtsdienstbez.' and aktiv=1 order by type,name;^^^ +21206^Personalzählung^121^0^0^110^150^1^sql^20^1^1^<> SELECT 'v','Vollzeit-Äquiv.' from xdummy union select 'k','Köpfe' from xdummy ;^^<> select 'v','Vollzeit-Äquiv.' from xdummy;^ +21207^Alter (bis)^11^130^-1^100^70^1^integer^5^0^0^^^^ +21208^Befristet bis^12^300^-1^100^80^1^date^10^0^0^^^^ +21209^Beurlaubung^3^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA-Beurlaubung-Sicht' and aktiv=1 order by type,name;^^^ +21210^Vertragsart^7^300^-1^100^160^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA-Vertragsart-Sicht' and aktiv=1 order by type,name;^^^ +21211^Filter Personal^110^0^0^100^150^1^sql^20^0^1^<> SELECT content,caption from sx_repository where aktiv =1 and today() between gueltig_seit and gueltig_bis and art='SVA_PERS_FILTER' order by 2;^^^ +21212^Staatsangehörigkeit^120^0^0^100^120^1^sql^30^0^1^<> select '!=0','Alle ohne Deutschland' from xdummy union select '=' || astat, trim(druck) || ' (' || trim(apnr) || ')' from sva_k_staat order by 2;^^^ +21213^Geschlecht^100^300^-1^100^70^1^integer^4^0^1^<> select tid, beschreibung from konstanten where tid in (1,2);^^^ +21214^Geldgeber^115^300^-1^100^120^3^char^20^0^12^<>select tid,type,name from sichten where art ='Geldgeber-Sicht (SVA)' and aktiv=1 order by sortnr,type,name;^^^ +21220^oder Stichtag^2^0^0^100^150^1^integer^20^0^1^<> SELECT tid,date_str(stichtag),stichtag from sva_stichtag where bereich='p' order by 3 desc;^^^ +21221^Beschv.-Nr.^102^0^0^100^70^1^char^100^0^0^^^^ +21222^Pers.-Nr.^101^0^0^100^70^1^char^100^0^999^^^^ +21223^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ +21224^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ +21225^Leere Zeilen ausblenden^130^350^-1^140^80^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ +21226^Zeilenfilter bis Ebene^140^0^0^140^80^1^integer^30^0^0^ ^^^ +21227^Leere Spalten ausblenden^2020^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^^<> select 'ja','ja' from xdummy^ +21228^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<> select '_graph','Balken (horiz. linksb.)' from xdummy\ +union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ +union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ +21229^Kennzahl^3000^350^-1^150^180^1^integer^200^1^1^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} order by sortnr,name;^hidden^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} and is_default=1^ diff --git a/src-modules/module/xcube/masken/21200_maske_system_bez.unl b/src-modules/module/xcube/masken/21200_maske_system_bez.unl new file mode 100644 index 0000000..adc9959 --- /dev/null +++ b/src-modules/module/xcube/masken/21200_maske_system_bez.unl @@ -0,0 +1 @@ +21200^6^ diff --git a/src-modules/module/xcube/masken/21200_masken_felder_bez.unl b/src-modules/module/xcube/masken/21200_masken_felder_bez.unl new file mode 100644 index 0000000..2f8cbda --- /dev/null +++ b/src-modules/module/xcube/masken/21200_masken_felder_bez.unl @@ -0,0 +1,30 @@ +21200^21200^ +21200^21201^ +21200^21202^ +21200^21203^ +21200^21204^ +21200^21205^ +21200^21206^ +21200^21207^ +21200^21208^ +21200^21209^ +21200^21210^ +21200^21211^ +21200^21212^ +21200^21213^ +21200^21214^ +21200^21215^ +21200^21216^ +21200^21217^ +21200^21218^ +21200^21219^ +21200^21220^ +21200^21221^ +21200^21222^ +21200^21223^ +21200^21224^ +21200^21225^ +21200^21226^ +21200^21227^ +21200^21228^ +21200^21229^ diff --git a/src-modules/module/xcube/masken/21200_maskeninfo.unl b/src-modules/module/xcube/masken/21200_maskeninfo.unl new file mode 100644 index 0000000..22f10ea --- /dev/null +++ b/src-modules/module/xcube/masken/21200_maskeninfo.unl @@ -0,0 +1,430 @@ +21200^Personal XCUBE^--freemarker template\ +-- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ +\ +select table_name from xcube where maskeninfo_id=${Maskennummer}\ +select aggrfunction from xcube_kennzahl where maskeninfo_id=${Maskennummer} and tid=<>\ +select nvl(restriction,''::char(1)) from xcube_kennzahl \ +where maskeninfo_id=${Maskennummer} and tid=<>\ +\ +select nvl(datatype,'decimal(17,2)'::varchar(30)) from xcube_kennzahl \ +where maskeninfo_id=${Maskennummer} and tid=<>\ +--benoetigt falls Kennzahlen in Zeilen oder Spalten\ +select apnr,aggrfunction,\ +nvl(restriction,''::char(1)) as restriction \ +from xcube_kennzahl where maskeninfo_id=${Maskennummer}\ +select restriction from xcube where maskeninfo_id=<>]]>\ +>]]>\ +\ +\ +select distinct ${coldef.foreignkey_col}::varchar(255) as apnr,\ +${coldef.foreignkey_cap} as name,\ +1::smallint as detailgesamtsort,\ +${coldef.sortfield} as tmp_sortfield\ +from ${coldef.foreignkey_tab} where \ +1=1 \ +<#if coldef.foreignkey_cond!=''> and ${coldef.foreignkey_cond} \ + --{coldef.specific_restriction} \ +--ausblenden von Spalten, die gar nicht in konkretem Teilergebnis vorkommen, geht derzeit nicht für virtuelle Spalten und nachbearbeitung, -> Kernmodul\ +<#if coldef.is_virtual?number=0&&coldef.attrib_nachbearbeitung=''&&"<>"="'ja'">\ +and ${coldef.foreignkey_col}::varchar(255) in (select distinct ${coldef.name}::varchar(255) from ${table_name} where \ + ${restriction} \ +)\ +\ +<#if coldef.calc_gesamt?number=1> \ +union\ +select 'gesamt','Gesamt',\ +2::smallint as detailgesamtsort,\ +null as tmp_sortfield from xdummy\ + \ +order by detailgesamtsort,\ +tmp_sortfield,\ +name;\ +<#else>\ +select 'Sichtspalten aktiv' from xdummy;\ +\ +]]>\ +\ +\ +\ +\ +>]]>\ +\ +--nur bei wenn Ergzeilen_def nicht vom Typ Sicht relevant\ +\ +select 1::smallint as level, \ +${rowdef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ +${rowdef.foreignkey_cap} as name,\ +${rowdef.sortfield} as tmp_sortfield \ +from ${rowdef.foreignkey_tab}\ +where 1=1\ +<#if rowdef.foreignkey_cond!=''> and ${rowdef.foreignkey_cond} \ + --{rowdef.specific_restriction} \ +<#if rowdef.calc_gesamt?number=1>\ +union\ +select 2,'gesamt','Gesamt',null as ${rowdef.sortfield} from xdummy\ +\ +order by level,tmp_sortfield; \ +<#else>\ +select 'nicht relevant' from xdummy;\ +]]>\ +\ +\ +>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">\ +select name,caption,\ +is_sicht,\ +calc_gesamt,\ +foreignkey_tab,\ +foreignkey_col,\ +foreignkey_cap,\ +nvl(foreignkey_cond,''::varchar(1)) as foreignkey_cond,\ +--nvl(C.specific_restriction,''::varchar(1)) as specific_restriction,\ +C.sortfield\ +from xcube_dimconfig where maskeninfo_id=${Maskennummer} and name=<<2.Ansicht in Zeilen>>\ +<#else>\ +select 'keine zweite RowDef' from xdummy;\ +\ +]]>\ +\ +--nur bei wenn Ergzeilen_def nicht vom Typ Sicht relevant\ +>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>"&&zweiteRowDef.is_sicht=0>\ +select 1::smallint as level, \ +${zweiteRowDef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ +${zweiteRowDef.foreignkey_cap} as name,\ +${zweiteRowDef.sortfield} as tmp_sortfield \ +from ${zweiteRowDef.foreignkey_tab}\ +where 1=1\ +<#if zweiteRowDef.foreignkey_cond!=''> and ${zweiteRowDef.foreignkey_cond} \ + --{zweiteRowDef.specific_restriction} \ + <#if zweiteRowDef.calc_gesamt?number=1>\ +union\ +select 2,'gesamt','Gesamt',null as ${zweiteRowDef.sortfield} from xdummy\ +\ +order by level,tmp_sortfield; \ +<#else>\ +select 'nicht relevant' from xdummy;\ +]]>\ +\ +\ +\ +\ +\ +<#function kennzahlInRowOrCol>\ +--TODO auch 2. Dimension in Zeilen/Spalten\ +<#if coldef.name="xckennzahl"||rowdef.name="xckennzahl"> <#return 1><#else> return <#return 0> \ +\ +\ +<#function hasVirtualColumns>\ +--TODO auch 2. Dimension in Zeilen/Spalten\ +<#if coldef.is_virtual?number=1||rowdef.is_virtual?number=1> <#return 1><#else> return <#return 0> \ +\ +<#assign graph_col= "col" />\ +/* <#assign graph_col=<> /> */\ +\ +create temp table tmp_cellmax (maxvalue ${datatype} );\ +insert into tmp_cellmax values(0);\ +\ +\ +<#if hasVirtualColumns()=1||kennzahlInRowOrCol()=1>\ +select * into temp tmp_rohdaten from \ +${table_name}\ +where \ + ${restriction};\ + <#if coldef.is_virtual?number=1> alter table tmp_rohdaten add column ${coldef.name} varchar(255); ${coldef.vcsql}; \ + <#if rowdef.is_virtual?number=1> alter table tmp_rohdaten add column ${rowdef.name} varchar(255); ${rowdef.vcsql}; \ + --create index ix_tmp_r1 on tmp_rohdaten(${coldef.name},${rowdef.name}); --Todo nicht xckennzahl ggfs. für 2. Dimension in Spalten\ +\ +\ +\ +<#if kennzahlInRowOrCol()=0>\ +create temp table tmp_cache (\ +colattrib varchar(255), <@addcomment comment=coldef.caption/>\ +rowattrib varchar(255), <@addcomment comment=rowdef.caption/>\ +row2attrib varchar(255),\ +value decimal(17,5));\ +insert into tmp_cache (colattrib,rowattrib,<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">row2attrib, value)\ +select ${coldef.name}::varchar(255), \ +${rowdef.name}::varchar(255),\ +<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">${zweiteRowDef.name}::varchar(255),\ +${aggrfunction}\ + \ +<#if hasVirtualColumns()=0> \ +from ${table_name} where \ + ${restriction}\ + <#if (aggrfunction_restriction?length>0)> and ${aggrfunction_restriction} \ + <#else>\ +from tmp_rohdaten\ +\ +\ + group by 1,2 <#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">,${zweiteRowDef.name} ;\ +create index ix_tmp_roh1 on tmp_cache (colattrib,rowattrib,row2attrib);\ +\ +\ +--moegliche attrib_nachbearbeitung\ +<#if kennzahlInRowOrCol()=0> \ +<#assign tmp_table="tmp_cache"/> <#assign rowfield="rowattrib"/> <#assign colfield="colattrib"/> \ +<#else>\ +<#assign tmp_table="tmp_rohdaten"/> <#assign rowfield=rowdef.name/> <#assign colfield=coldef.name/> \ +\ +\ + <#if (rowdef.attrib_nachbearbeitung?length>1)>\ + ${rowdef.attrib_nachbearbeitung?replace("<>",tmp_table)?replace("<>",rowfield)};\ + -- z.B. update tmp_cache R set rowattrib='s_'||rowattrib;\ + \ + <#if (coldef.attrib_nachbearbeitung?length>1)>\ + ${coldef.attrib_nachbearbeitung?replace("<>",tmp_table)?replace("<>",colfield)};\ + -- z.B. update tmp_cache R set rowattrib='s_'||rowattrib;\ + \ + \ + \ + \ +\ +<#if coldef.is_sicht>0>\ +<#assign ergspalten=.vars[coldef.caption].elements/>\ +<#else>\ +<#assign ergspalten=nichtsicht_ergspalten/>\ +\ +create temp table tmp_erg (\ +ebene integer,\ +col1 varchar(255),\ +name varchar(255),\ +<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">col2 varchar(255),\ +<#assign i=0/>\ +<#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + c${i} decimal(17,5) default 0, <@addcomment comment=spalte.name/>\ + \ +\ +sortnr integer\ +) <@informixnolog/>;\ +\ +create index ix_tmp_erg on tmp_erg (sortnr);\ + \ +<#if rowdef.is_sicht>0> \ + <#assign zeilendef=.vars[rowdef.caption].elements/> --ermittelt des SichtObjekts anhand des Feldnames (aus felderinfo)\ +<#else>\ + <#assign zeilendef=nichtsicht_ergzeilen/>\ +\ +<#assign sortnr=0/>\ +<#foreach zeile in zeilendef>\ +<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">\ +<#foreach zeile2 in zweiteRow_nichtsicht_ergzeilen>\ +<#assign sortnr=sortnr+1/>\ + insert into tmp_erg (ebene,col1,name,col2,sortnr)\ + values (${zeile.level},'${zeile.key}','${zeile.name}','${zeile2.name}',${sortnr});\ + <#assign i=0/>\ +<#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + <@updateval i=i col=spalte row=zeile row2=zeile2 sortnr=sortnr/>\ + \ +\ +<#else>\ + /* <#if zeile.level <= <> > */\ + <#assign sortnr=sortnr+1/>\ + insert into tmp_erg (ebene,col1,name,sortnr)\ + values (${zeile.level},'${zeile.key}','${zeile.name}',${sortnr});\ + <#assign i=0/>\ +<#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + <@updateval i=i col=spalte row=zeile row2='' sortnr=sortnr/>\ + \ +/* --<> */\ + \ +\ +\ +<#macro updateval i col row row2 sortnr>\ +update tmp_erg T set c${i}=\ +<#if kennzahlInRowOrCol()=0>\ + (select nvl(sum(value),0) from tmp_cache R where 1=1 \ + <@colrestriction col=col/>\ + <@rowrestriction row=row row2=row2/>\ + ) \ + <#else> -- Kennzahl ist in Zeile oder Spalte\ + (select <@kennzahlSelect row=row col=col/>\ + from tmp_rohdaten R where 1=1 \ + <#if rowdef.name="xckennzahl"> <@kennzahlrestrict row=row col=col/> <#else> <@rowrestriction row=row row2=row2 rowattribname=rowdef.name/>\ + <#if coldef.name="xckennzahl"> <@kennzahlrestrict row=row col=col/> <#else> <@colrestriction col=col colattribname=coldef.name/>\ + \ + )\ + \ + where T.sortnr='${sortnr}'\ + ;\ + \ + \ + <#macro kennzahlrestrict row col>\ + <#if coldef.name="xckennzahl">\ + <#foreach k in kennzahlen>\ + <#if (col.apnr=k.apnr&&k.restriction?length>0)> and ${k.restriction} \ + \ + \ + <#if rowdef.name="xckennzahl">\ + <#foreach k in kennzahlen>\ + <#if (row.key=k.apnr&&k.restriction?length>0)> and ${k.restriction} \ + \ + \ + \ + \ + <#macro kennzahlSelect row col>\ + <#if coldef.name="xckennzahl">\ + <#foreach k in kennzahlen>\ + <#if col.apnr=k.apnr> ${k.aggrfunction} \ + \ + \ + <#if rowdef.name="xckennzahl">\ + <#foreach k in kennzahlen>\ + <#if row.key=k.apnr> ${k.aggrfunction} \ + \ + \ + \ + \ + \ + \ + \ + \ + <#macro colrestriction col colattribname='R.colattrib'>\ + <#if coldef.is_sicht==1>\ + and ${colattribname}::varchar(255) in ${col.subkeys}\ +<#elseif coldef.is_sicht=2>\ + and (${col.strukturStr?replace('$1',' '+colattribname+"::varchar(255)")}) \ +<#else>\ + <#if col.apnr!='gesamt'>\ + and ${colattribname}::varchar(255)='${col.apnr}' \ + \ + \ + \ + \ + <#macro rowrestriction row row2 rowattribname='R.rowattrib' >\ + <#if rowdef.is_sicht==1>\ + and ${rowattribname}::varchar(255) in ${row.subkeys}\ + <#elseif rowdef.is_sicht==2>\ + and ( ${row.strukturStr?replace('$1',' '+rowattribname+"::varchar(255)")} ) \ + <#else>\ + <#if row.key!='gesamt'> and ${rowattribname}::varchar(255)='${row.key}' \ + \ + <#if row2?is_hash> and R.row2attrib='${row2.key}' \ + \ + \ +drop table if exists tmp_cache;\ +\ +drop table if exists tmp_rohdaten;\ +\ +-- Kennzahl in Spalten/Zeilen ggfs. null\ +<#assign i=0/>\ + <#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + update tmp_erg set c${i}=0 where c${i} is null; \ +\ +<#assign lastcol=i />\ +\ +--Wenn Grafikfunktion eingeschaltet ist, wird Maximalwert ermittelt:\ +<#if i != 0 && graph_col != "col" >\ +\ +<#assign i=0/>\ + <#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + <#if i == lastcol>\ + update tmp_cellmax set maxvalue = (select max(c${i}) from tmp_erg) \ + where tmp_cellmax.maxvalue < (select max(c${i}) from tmp_erg) ;\ + \ +\ +\ +\ +\ +<#if "<>"="'ja'">\ +delete from tmp_erg where 1=1\ +<#assign i=0/>\ +<#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ +and c${i}=0\ +;\ + \ +<#if "<>"="'institution'">\ +update tmp_erg set name=replace(name,col1||' - ','');\ +update tmp_erg set col1=(select max(uniquename) from organigramm where col1=trim(key_apnr))\ +where substring(col1 from 1 for 1)='_';\ +--vorher war ggfs _3 zu O005030, auch O005030 in Namen ersetzen\ +update tmp_erg set name=replace(name,col1||' - ','');\ + \ +\ +\ +\ +\ +select \ + <#if rowdef.is_sicht>0>ebene,\ +name\ +<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">,col2\ +<#assign i=0/>\ +<#assign i=0/>\ +<#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ +<#if i != lastcol && graph_col != "col" >\ +<#if graph_col == "_graphbaralternating">\ +--bei symmetr. Balken jeder 2. Balken rechtsbündig\ + <#if i % 2 == 0>\ + , '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graph${i}\ + <#else>\ + , '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graphbarright${i}\ + \ +<#else>\ +, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as ${graph_col}${i}\ +\ +\ +<#else>\ +, c${i}::${datatype} as col${i}\ +\ +\ +\ +from tmp_erg, tmp_cellmax order by sortnr;^--freemarker Template\ +XIL List\ + sizable_columns horizontal_scrolling\ + drop_and_delete movable_columns\ + white_space_color=COLOR_WHITE fixed_columns=1\ + min_heading_height=35\ +<#if rowdef.is_sicht>0>\ +Column CID=0 heading_text="Ebene" center_heading\ + row_selectable heading_platform readonly explanation="Hierarchieebene"\ + width=5 text_size=8\ +\ +Column CID=20 heading_text="${.vars["Ansicht in ErgebniszeilenObject"].selectedItems[0].name}" center_heading\ + row_selectable heading_platform readonly explanation="Schlüssel: ${.vars["Ansicht in ErgebniszeilenObject"].selectedItems[0].name}Nr"\ + width=30 text_size=30\ +<#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">\ +Column CID=20 heading_text="${.vars["2.Ansicht in ZeilenObject"].selectedItems[0].name}" center_heading\ + row_selectable heading_platform readonly\ + width=20 text_size=10 explanation="${.vars["2.Ansicht in ZeilenObject"].selectedItems[0].name}"\ +\ +<#if coldef.is_sicht>0>\ +<#assign ergspalten=.vars[coldef.caption].elements/>\ +<#else>\ +<#assign ergspalten=nichtsicht_ergspalten/>\ +\ +<#foreach spalte in ergspalten>\ +Column CID=1 heading_text="${spalte.name}" center_heading\ + row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\ + width=12\ +\ +@@@^Altersgruppe^Anzahl^Dynamische Darstellung von Personalzahlen^drop table tmp_erg;\ +drop table tmp_cellmax;^ ^3^700^360^0^1^ ^ diff --git a/src-modules/module/xcube/masken/21200_sachgeb_maske_bez.unl b/src-modules/module/xcube/masken/21200_sachgeb_maske_bez.unl new file mode 100644 index 0000000..b3067b0 --- /dev/null +++ b/src-modules/module/xcube/masken/21200_sachgeb_maske_bez.unl @@ -0,0 +1 @@ +10^21200^ From c92ab5c59b53ff6dae2b21fd9ece242edde69446 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Thu, 29 Jun 2023 17:49:35 +0200 Subject: [PATCH 04/21] =?UTF-8?q?Einf=C3=BCgen=20Variable=20f=C3=BCr=20Sti?= =?UTF-8?q?chtag=20und=20Parameter=20Alter=20(bis)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube_install_restrictions.sql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 5300546..9ad02c5 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -40,6 +40,12 @@ update xcube set restriction='<> --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 = <> @@ -49,7 +55,11 @@ update xcube set restriction='<> /* 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/> --<> */ - ' where maskeninfo_id=21200; + /* AND ca108_amtsbez in <@printkeys Amtsbezeichnung.allNeededKeysList/> --<> */ + /* AND vertart in <@printkeys Vertragsart.allNeededKeysList/> --<> */ +/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ + + ' where maskeninfo_id=21200; update xcube set restriction=' From 505c568ad3e1abe80ee4ed57dc4e959fbc75add4 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Mon, 3 Jul 2023 15:26:42 +0200 Subject: [PATCH 05/21] =?UTF-8?q?Restriktionen=20f=C3=BCr=20restl.=20Param?= =?UTF-8?q?eter=20eingef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schluesseltabellen/xcube_install_restrictions.sql | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 9ad02c5..a329f09 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -57,8 +57,12 @@ update xcube set restriction='<> /* AND ca109_key_bvl in <@printkeys .vars["BVL-Gruppe"].allNeededKeysList/> --<> */ /* AND ca108_amtsbez in <@printkeys Amtsbezeichnung.allNeededKeysList/> --<> */ /* AND vertart in <@printkeys Vertragsart.allNeededKeysList/> --<> */ -/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ - +/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ +/* 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 <> */ ' where maskeninfo_id=21200; From 05d126a8b62d1fff1ec8e0c85e93758cdb712378 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Mon, 3 Jul 2023 17:02:57 +0200 Subject: [PATCH 06/21] Definition weiterer Dimensionen --- .../schluesseltabellen/xcube_install.sql | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index e7838f4..1d31656 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -353,6 +353,31 @@ "foreignkey_cap":"beschreibung", "foreignkey_cond":"tid in ('1','2')", "sortfield":"beschreibung"}, + {"maskeninfo_id":21200, + "name":"ch110_besch_st", + "caption":"Beschäftigungsstelle (Person)", + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"kostenstelle", + "caption":"Kostenstelle (Person)", + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"beurl_art", + "caption":"Beurlaubung", + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"ca107_dienstart", + "caption":"Dienstart", + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"ca108_amtsbez", + "caption":"Amtsbezeichnung", + "is_coldim":0, + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"vertart", + "caption":"Vertragsart", + "is_sicht":1 }, From 73d917081a4e51e48685bda956536c7fd903ce8a Mon Sep 17 00:00:00 2001 From: Daniel Quathamer Date: Tue, 4 Jul 2023 16:35:48 +0200 Subject: [PATCH 07/21] =?UTF-8?q?Prim=C3=A4rkosten=20xcube,=20Megrekonflik?= =?UTF-8?q?t=20Studierende=20behoben=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/xcube/conf/xcube.xml | 14 +- .../module/xcube/masken/21000_felderinfo.unl | 45 +++--- .../module/xcube/masken/21000_maskeninfo.unl | 2 +- .../module/xcube/masken/21500_felderinfo.unl | 27 ++-- .../xcube/masken/21500_masken_felder_bez.unl | 3 + .../module/xcube/masken/21500_maskeninfo.unl | 142 +++++++++++++----- .../schluesseltabellen/xcube_install.sql | 2 +- .../xcube_install_restrictions.sql | 3 +- 8 files changed, 162 insertions(+), 76 deletions(-) diff --git a/src-modules/module/xcube/conf/xcube.xml b/src-modules/module/xcube/conf/xcube.xml index cecda59..260ad8b 100644 --- a/src-modules/module/xcube/conf/xcube.xml +++ b/src-modules/module/xcube/conf/xcube.xml @@ -2,7 +2,7 @@ - +
Primärschlüssel nur nachrichtlicher Schlüssel für den Würfel @@ -13,7 +13,7 @@ (where-Bedingung) des Würfels
- +
Primärschlüssel tid der Würfelmaske @@ -26,7 +26,7 @@ Sortierung für das Auswahlfeld Kennzahl
- +
Primärschlüssel Nummer der Würfelmaske @@ -67,7 +67,7 @@
- +
ID für die Art der Dimension Einzelner Schlüssel @@ -183,6 +183,12 @@ parent="xCubes">Abfragen zur Administration von xCubes POSTGRES + + + $XCUBE_PFAD/masken + POSTGRES + + diff --git a/src-modules/module/xcube/masken/21000_felderinfo.unl b/src-modules/module/xcube/masken/21000_felderinfo.unl index 705685f..06e1894 100644 --- a/src-modules/module/xcube/masken/21000_felderinfo.unl +++ b/src-modules/module/xcube/masken/21000_felderinfo.unl @@ -1,8 +1,8 @@ 21000^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<> select apnr, eintrag from koepfe_oder_faelle where eintrag not like 'gewichtet nach%' order by 2^apnr, eintrag^<> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ 21001^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<> select tid, eintrag from semester order by tid DESC;^Eintrag^<> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ -21002^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ -21003^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^ -21004^Status^14^350^-1^140^180^1^sql^30^0^1^<> select apnr,eintrag from sos_status order by 2^^<> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ +21002^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ +21003^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ +21004^Status^14^350^-1^140^180^1^sql^30^0^1^<> select apnr,eintrag from sos_status order by 2^ ^<> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ 21005^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<> select apnr, eintrag from hoererstatus where eintrag='alle';^ 21006^Weitere Tabellen^123^0^0^140^140^10^char^30^0^999^<> \ --freemarker template\ @@ -10,11 +10,12 @@ select name,string_not_null(caption) || ' - ' || name from sx_tables where name <#if <>!='tabelle_html_datenblatt.xsl'>\ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<>)) \ \ -order by 2^^^ -21007^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^^^ +order by 2^ ^ ^ +21007^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^ ^ ^ +21008^Fächer^8^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ 21009^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<> select tid, eintrag from semester order by tid DESC;^Eintrag^<> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ -21010^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<> 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;^^^ -21011^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ +21010^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<> 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;^ ^ ^ +21011^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ 21012^Felder^125^0^0^150^190^10^char^30^0^999^<>\ --freemarker template\ select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ @@ -30,23 +31,23 @@ and apnr=1)) \ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fieldname) from stylesheet_field where stylesheet_id in \ (select tid from sx_stylesheets where filename=<>))\ \ - order by 2;^^^ -21013^Studiengang^6^0^0^140^150^50^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ -21014^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^999^<> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^^<> select 1,'Ja' from xdummy^ -21015^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ -21016^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ -21017^Zivilstatus^41^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Status');^^^ -21018^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^^^ + order by 2;^ ^ ^ +21013^Studiengang^6^0^0^140^150^50^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ +21014^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^999^<> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^ ^<> select 1,'Ja' from xdummy^ +21015^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ +21016^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ +21017^Zivilstatus^41^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Status');^ ^ ^ +21018^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^ ^ ^ 21019^Leere Zeilen ausblenden^130^350^-1^140^80^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ -21020^Leere Spalten ausblenden^2020^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^^<> select 'ja','ja' from xdummy^ -21021^Abschluss^7^0^0^140^170^5^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Abschluss-Sicht') order by 3,2;^^^ +21020^Leere Spalten ausblenden^2020^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ +21021^Abschluss^7^0^0^140^170^5^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Abschluss-Sicht') order by 3,2;^ ^ ^ 21022^Kennzahl^3000^350^-1^150^180^1^integer^200^1^1^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} order by sortnr,name;^hidden^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} and is_default=1^ 21023^2.Ansicht in Zeilen^125^0^0^100^100^1^char^50^0^999^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_secondrowdim=1 order by 1^hidden^1^ -21024^Wohnort^38^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Wohnort-Sicht') order by 3,2;^^^ -21025^Alter^39^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^^^ -21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^^^ -21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^^^ +21024^Wohnort^38^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Wohnort-Sicht') order by 3,2;^ ^ ^ +21025^Alter^39^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^ ^ ^ +21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^ ^ ^ +21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^ ^ ^ 21028^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<> select '_graph','Balken (horiz. linksb.)' from xdummy\ union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ -union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ -21029^Zeilenfilter bis Ebene^140^0^0^140^10^1^integer^30^0^0^ ^^^ +union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^ ^ ^ +21029^Zeilenfilter bis Ebene^140^0^0^140^10^1^integer^30^0^0^^ ^ ^ diff --git a/src-modules/module/xcube/masken/21000_maskeninfo.unl b/src-modules/module/xcube/masken/21000_maskeninfo.unl index 0caf871..933cab8 100644 --- a/src-modules/module/xcube/masken/21000_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21000_maskeninfo.unl @@ -433,4 +433,4 @@ Column CID=1 heading_text="${spalte.name}" center_heading\ width=12\ \ @@@^Altersgruppe^Anzahl^Dynamische Darstellung von Studierendenzahlen^drop table tmp_erg;\ -drop table tmp_cellmax;^ ^3^700^360^0^1^ ^ +drop table tmp_cellmax;^^3^700^360^^1^^ diff --git a/src-modules/module/xcube/masken/21500_felderinfo.unl b/src-modules/module/xcube/masken/21500_felderinfo.unl index b50426d..c4c3dc8 100644 --- a/src-modules/module/xcube/masken/21500_felderinfo.unl +++ b/src-modules/module/xcube/masken/21500_felderinfo.unl @@ -1,13 +1,18 @@ -21500^Geldgeber^9^300^-1^100^100^1^char^30^0^12^<>select tid,type,name,sortnr from sichten where art ='Geldgeber-Sicht (COB)' and aktiv=1 order by sortnr,type,name;^^ ^ -21501^Kostenstelle^0^0^0^100^250^1^char^4^0^12^<> select tid,type,name from sichten where art='Kostenstellen-Sicht' and aktiv=1 order by type,name^^^ -21502^Haushaltsjahr^10^0^0^100^50^1^integer^30^0^1^<> SELECT distinct ord,name FROM aggregierung where kategorie='COB-Jahr' order by 1;^^<> SELECT ord,name FROM aggregierung where kategorie='COB-Jahr' and ord=year(today()) ;^ -21503^Zeitraum^20^300^-1^100^100^1^sql^30^0^1^<> select wert, name from aggregierung where kategorie = 'ZeitraumCob';^^^ -21504^Kostenarten^1^0^0^100^250^1^char^30^0^12^<> select tid,type,name from sichten where art='Kosten-/Erlösarten-Sicht' and aktiv=1 order by type,name^^^ -21505^Monat von^30^0^0^100^100^1^integer^30^0^1^<> select ord,name from aggregierung where kategorie = 'ZeitraumCob' and ord <=13 order by 1;^^^ -21506^Monat bis^40^300^-1^100^100^1^integer^30^0^1^<> select ord,name from aggregierung where kategorie = 'ZeitraumCob' and ord <=13 order by 1;^^^ -21507^Ansicht in Ergebniszeilen^1000^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ -21508^Ansicht in Ergebnisspalten^1020^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ +21500^Geldgeber^9^300^-1^100^100^1^char^30^0^12^<>select tid,type,name,sortnr from sichten where art ='Geldgeber-Sicht (COB)' and aktiv=1 order by sortnr,type,name;^ ^ ^ +21501^Kostenstelle^0^0^0^100^250^1^char^4^0^12^<> select tid,type,name from sichten where art='Kostenstellen-Sicht' and aktiv=1 order by type,name^ ^ ^ +21502^Jahr von^10^0^0^100^50^1^integer^30^0^1^<> SELECT distinct ord,name FROM aggregierung where kategorie='COB-Jahr' order by 1;^ ^<> SELECT ord,name FROM aggregierung where kategorie='COB-Jahr' and ord=year(today()) ;^ +21503^Zeitraum^20^300^-1^100^100^1^sql^30^0^1^<> select wert, name from aggregierung where kategorie = 'ZeitraumCob' order by 2;^ ^ ^ +21504^Kostenarten^1^0^0^100^250^1^char^30^0^12^<> select tid,type,name from sichten where art='Kosten-/Erlösarten-Sicht' and aktiv=1 order by type,name^ ^ ^ +21505^Monat von^30^0^0^100^100^1^integer^30^0^1^<> select ord,name from aggregierung where kategorie = 'ZeitraumCob' and ord <=13 order by 1;^ ^ ^ +21506^Monat bis^40^300^-1^100^100^1^integer^30^0^1^<> select ord,name from aggregierung where kategorie = 'ZeitraumCob' and ord <=13 order by 1;^ ^ ^ +21507^Ansicht in Ergebniszeilen^1000^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ +21508^Ansicht in Ergebnisspalten^1020^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ 21509^Leere Zeilen ausblenden^1010^350^-1^140^80^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ -21510^Leere Spalten ausblenden^1030^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^^<> select 'ja','ja' from xdummy^ +21510^Leere Spalten ausblenden^1030^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ 21511^Kennzahl^1050^350^-1^150^180^1^integer^200^1^1^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} order by sortnr,name;^hidden^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} and is_default=1^ -21512^Kostenträger^5^0^0^100^250^1^char^30^0^12^<> select tid,type,name from sichten where art='Kostenträger-Sicht' and aktiv=1 order by type,name^^^ +21512^Kostenträger^5^0^0^100^250^1^char^30^0^12^<> select tid,type,name from sichten where art='Kostenträger-Sicht' and aktiv=1 order by type,name^ ^ ^ +21513^Jahr bis^15^0^0^150^50^1^integer^4^0^1^<>SELECT distinct ord,name FROM aggregierung where kategorie='COB-Jahr' order by 1;^^<> SELECT ord,name FROM aggregierung where kategorie='COB-Jahr' and ord=year(today()) ;^ +21514^Spaltenvisualisierung^1500^0^0^140^80^1^char^30^0^1^<> select '_graph','Balken (horiz. linksb.)' from xdummy\ +union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ +union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ +21515^Zeilenfilter bis Ebene^1400^0^0^140^10^1^integer^30^0^0^ ^^^ diff --git a/src-modules/module/xcube/masken/21500_masken_felder_bez.unl b/src-modules/module/xcube/masken/21500_masken_felder_bez.unl index c7a412b..45083f7 100644 --- a/src-modules/module/xcube/masken/21500_masken_felder_bez.unl +++ b/src-modules/module/xcube/masken/21500_masken_felder_bez.unl @@ -11,3 +11,6 @@ 21500^21510^ 21500^21511^ 21500^21512^ +21500^21513^ +21500^21514^ +21500^21515^ diff --git a/src-modules/module/xcube/masken/21500_maskeninfo.unl b/src-modules/module/xcube/masken/21500_maskeninfo.unl index da812fe..a98b09a 100644 --- a/src-modules/module/xcube/masken/21500_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21500_maskeninfo.unl @@ -1,40 +1,61 @@ -21500^Primärbuchungswürfel^--freemarker template\ +21500^Primärkosten/Erlöse XCUBE^--freemarker template\ -- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ \ select table_name from xcube where maskeninfo_id=${Maskennummer}\ select aggrfunction from xcube_kennzahl where maskeninfo_id=${Maskennummer} and tid=<>\ -select nvl(restriction,''::char(1)) from xcube_kennzahl where maskeninfo_id=${Maskennummer} and tid=<>\ -select nvl(datatype,'decimal(17,2)'::varchar(30)) from xcube_kennzahl where maskeninfo_id=${Maskennummer} and tid=<>\ ---benoetigt falls Kennzahlen in Zeilen oder Splaten\ -select apnr,aggrfunction,nvl(restriction,''::char(1)) as restriction from xcube_kennzahl where maskeninfo_id=${Maskennummer}\ +select nvl(restriction,''::char(1)) from xcube_kennzahl \ +where maskeninfo_id=${Maskennummer} and tid=<>\ +\ +select nvl(datatype,'decimal(17,2)'::varchar(30)) from xcube_kennzahl \ +where maskeninfo_id=${Maskennummer} and tid=<>\ +--benoetigt falls Kennzahlen in Zeilen oder Spalten\ +select apnr,aggrfunction,\ +nvl(restriction,''::char(1)) as restriction \ +from xcube_kennzahl where maskeninfo_id=${Maskennummer}\ select restriction from xcube where maskeninfo_id=<>]]>\ ->]]>\ \ \ -select distinct ${coldef.foreignkey_col} as apnr,${coldef.foreignkey_cap} as name,\ -1::smallint as detailgesamtsort,${coldef.sortfield} as tmp_sortfield\ +select distinct ${coldef.foreignkey_col} as apnr,\ +${coldef.foreignkey_cap} as name,\ +1::smallint as detailgesamtsort,\ +${coldef.sortfield} as tmp_sortfield\ from ${coldef.foreignkey_tab} where \ 1=1 \ <#if coldef.foreignkey_cond!=''> and ${coldef.foreignkey_cond} \ --{coldef.specific_restriction} \ ---ausblenden von Spalten, die gar nicht in konkretem Teilergebnis vorkommen, geht derzeit nicht für virtuelle Spalten, -> Kernmodul\ -<#if coldef.is_virtual?number=0&&"<>"="'ja'">\ +--ausblenden von Spalten, die gar nicht in konkretem Teilergebnis vorkommen, geht derzeit nicht für virtuelle Spalten und nachbearbeitung, -> Kernmodul\ +<#if coldef.is_virtual?number=0&&coldef.attrib_nachbearbeitung=''&&"<>"="'ja'">\ and ${coldef.foreignkey_col}::varchar(255) in (select distinct ${coldef.name}::varchar(255) from ${table_name} where \ ${restriction} \ )\ \ <#if coldef.calc_gesamt?number=1> \ union\ -select 'gesamt','Gesamt',2::smallint as detailgesamtsort,null as tmp_sortfield from xdummy\ +select 'gesamt','Gesamt',\ +2::smallint as detailgesamtsort,\ +null as tmp_sortfield from xdummy\ \ -order by detailgesamtsort,tmp_sortfield,name;\ +order by detailgesamtsort,\ +tmp_sortfield,\ +name;\ <#else>\ select 'Sichtspalten aktiv' from xdummy;\ \ @@ -52,8 +73,11 @@ from xcube_dimconfig C where maskeninfo_id=${Maskennummer} and name=<\ -select 1::smallint as level, ${rowdef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ -${rowdef.foreignkey_cap} as name,${rowdef.sortfield} as tmp_sortfield from ${rowdef.foreignkey_tab}\ +select 1::smallint as level, \ +${rowdef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ +${rowdef.foreignkey_cap} as name,\ +${rowdef.sortfield} as tmp_sortfield \ +from ${rowdef.foreignkey_tab}\ where 1=1\ <#if rowdef.foreignkey_cond!=''> and ${rowdef.foreignkey_cond} \ --{rowdef.specific_restriction} \ @@ -69,7 +93,12 @@ select 'nicht relevant' from xdummy;\ \ >"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">\ -select name,caption,is_sicht,calc_gesamt,foreignkey_tab,foreignkey_col,foreignkey_cap,\ +select name,caption,\ +is_sicht,\ +calc_gesamt,\ +foreignkey_tab,\ +foreignkey_col,\ +foreignkey_cap,\ nvl(foreignkey_cond,''::varchar(1)) as foreignkey_cond,\ --nvl(C.specific_restriction,''::varchar(1)) as specific_restriction,\ C.sortfield\ @@ -82,8 +111,11 @@ select 'keine zweite RowDef' from xdummy;\ --nur bei wenn Ergzeilen_def nicht vom Typ Sicht relevant\ >"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>"&&zweiteRowDef.is_sicht=0>\ -select 1::smallint as level, ${zweiteRowDef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ -${zweiteRowDef.foreignkey_cap} as name,${zweiteRowDef.sortfield} as tmp_sortfield from ${zweiteRowDef.foreignkey_tab}\ +select 1::smallint as level, \ +${zweiteRowDef.foreignkey_col}::varchar(255) as key,--hier wird zur Vereinheitlichung mit Sichten Bezeichung "key" für eigentlichen Schluessel benoetigt\ +${zweiteRowDef.foreignkey_cap} as name,\ +${zweiteRowDef.sortfield} as tmp_sortfield \ +from ${zweiteRowDef.foreignkey_tab}\ where 1=1\ <#if zweiteRowDef.foreignkey_cond!=''> and ${zweiteRowDef.foreignkey_cond} \ --{zweiteRowDef.specific_restriction} \ @@ -109,6 +141,13 @@ select 'nicht relevant' from xdummy;\ --TODO auch 2. Dimension in Zeilen/Spalten\ <#if coldef.is_virtual?number=1||rowdef.is_virtual?number=1> <#return 1><#else> return <#return 0> \ \ +<#assign graph_col= "col" />\ +/* <#assign graph_col=<> /> */\ +\ +create temp table tmp_cellmax (maxvalue ${datatype} );\ +insert into tmp_cellmax values(0);\ +\ +\ \ \ <#if hasVirtualColumns()=1||kennzahlInRowOrCol()=1>\ @@ -148,7 +187,7 @@ create index ix_tmp_roh1 on tmp_cache (colattrib,rowattrib,row2attrib);\ \ --moegliche attrib_nachbearbeitung\ <#if kennzahlInRowOrCol()=0> \ -<#assign tmp_table="tmp_cache"/> <#assign rowfield="rowattrib"/> <#assign colfield="rowattrib"/> \ +<#assign tmp_table="tmp_cache"/> <#assign rowfield="rowattrib"/> <#assign colfield="colattrib"/> \ <#else>\ <#assign tmp_table="tmp_rohdaten"/> <#assign rowfield=rowdef.name/> <#assign colfield=coldef.name/> \ \ @@ -205,6 +244,7 @@ create index ix_tmp_erg on tmp_erg (sortnr);\ \ \ <#else>\ + /* <#if zeile.level <= <> > */\ <#assign sortnr=sortnr+1/>\ insert into tmp_erg (ebene,col1,name,sortnr)\ values (${zeile.level},'${zeile.key}','${zeile.name}',${sortnr});\ @@ -213,6 +253,7 @@ create index ix_tmp_erg on tmp_erg (sortnr);\ <#assign i=i+1/>\ <@updateval i=i col=spalte row=zeile row2='' sortnr=sortnr/>\ \ +/* --<> */\ \ \ \ @@ -268,8 +309,9 @@ update tmp_erg T set c${i}=\ <#macro colrestriction col colattribname='R.colattrib'>\ <#if coldef.is_sicht==1>\ and ${colattribname}::varchar(255) in ${col.subkeys}\ +<#elseif coldef.is_sicht=2>\ + and (${col.strukturStr?replace('$1',' '+colattribname+"::varchar(255)")}) \ <#else>\ ---TODO Sicht=2\ <#if col.apnr!='gesamt'>\ and ${colattribname}::varchar(255)='${col.apnr}' \ \ @@ -298,6 +340,21 @@ drop table if exists tmp_rohdaten;\ update tmp_erg set c${i}=0 where c${i} is null; \ \ \ +<#assign lastcol=i />\ +\ +--Wenn Grafikfunktion eingeschaltet ist, wird Maximalwert ermittelt:\ +<#if i != 0 && graph_col != "col" >\ +\ +<#assign i=0/>\ + <#foreach spalte in ergspalten>\ + <#assign i=i+1/>\ + <#if i == lastcol>\ + update tmp_cellmax set maxvalue = (select max(c${i}) from tmp_erg) \ + where tmp_cellmax.maxvalue < (select max(c${i}) from tmp_erg) ;\ + \ +\ +\ +\ <#if "<>"="'ja'">\ delete from tmp_erg where\ <#assign i=0/>\ @@ -306,7 +363,7 @@ delete from tmp_erg where\ c${i}=0 <#if spalte_has_next> and \ ;\ \ -<#if "<>"="'institution'">\ +<#if "<>"="'ch110_institut'">\ update tmp_erg set name=replace(name,col1||' - ','');\ update tmp_erg set col1=(select max(uniquename) from organigramm where col1=trim(key_apnr))\ where substring(col1 from 1 for 1)='_';\ @@ -318,21 +375,36 @@ update tmp_erg set name=replace(name,col1||' - ','');\ \ \ select \ - <#if rowdef.is_sicht>0>ebene,col1,\ -name,\ + <#if rowdef.is_sicht>0>\ + <#if graph_col=="col">\ + ebene,\ + <#else>\ + ebene as level, --bei Grafiken keine Ebenenanzeige\ + \ + \ +name\ <#if "<<2.Ansicht in Zeilen>>"!=""&&"<<2.Ansicht in Zeilen>>"!="<<2.Ansicht in Zeilen>>">col2,\ <#assign i=0/>\ <#foreach spalte in ergspalten>\ <#assign i=i+1/>\ -c${i}::${datatype} <#if spalte_has_next>,\ -\ +<#if i != lastcol && graph_col != "col" >\ +<#if graph_col == "_graphbaralternating">\ +--bei symmetr. Balken jeder 2. Balken rechtsbündig\ + <#if i % 2 == 0>\ + , '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graph${i}\ + <#else>\ + , '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graphbarright${i}\ + \ +<#else>\ +, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as ${graph_col}${i}\ +\ \ -from tmp_erg order by sortnr;^--freemarker Template\ -XIL List\ - sizable_columns horizontal_scrolling\ - drop_and_delete movable_columns\ - white_space_color=COLOR_WHITE fixed_columns=1\ - min_heading_height=35\ +<#else>\ +, c${i}::${datatype} as col${i}\ +\ +\ +\ +from tmp_erg, tmp_cellmax order by sortnr;^--freemarker Template\ XIL List\ sizable_columns horizontal_scrolling\ drop_and_delete movable_columns\ @@ -342,9 +414,6 @@ XIL List\ Column CID=0 heading_text="Ebene" center_heading\ row_selectable heading_platform readonly\ width=10 text_size=8\ -Column CID=20 heading_text="${.vars["Ansicht in ErgebniszeilenObject"].selectedItems[0].name}Nr" center_heading\ - row_selectable heading_platform readonly\ - width=10 text_size=10\ \ Column CID=20 heading_text="${.vars["Ansicht in ErgebniszeilenObject"].selectedItems[0].name}" center_heading\ row_selectable heading_platform readonly\ @@ -366,4 +435,5 @@ Column CID=1 heading_text="${spalte.name}" center_heading\ \ \ \ -@@@^^^Dynamische Auswertungen von Primärbuchungen^drop table tmp_erg;^^2^600^400^0^1^^ +@@@^ ^ ^Dynamische Auswertungen von Primärbuchungen^drop table tmp_erg;\ +drop table tmp_cellmax;^^2^600^400^^1^^ diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index 1d31656..dea1e94 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -53,7 +53,7 @@ "sortnr":1}, { "maskeninfo_id":21500, "apnr":"kosten", - "name":"Kosten", + "name":"Kosten/Erlöse", "aggrfunction":"sum(betrag*kokl_faktor)", "restriction":"", "is_default":1, diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index a329f09..18f0aa6 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -68,7 +68,8 @@ update xcube set restriction='<> update xcube set restriction=' (bukz!=''PE'' or bukz is null) - /* and jahr=<> */ + /* and jahr >= <> */ + /* and jahr <= <> */ and fikrkey in <@printkeys Kostenarten.allNeededKeys /> and ch110_institut in <@printkeys Kostenstelle.allNeededKeys/> /* AND <> */ From e6cb578390dbc7862339160ae2ef68ac000a2868 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Wed, 5 Jul 2023 10:28:04 +0200 Subject: [PATCH 08/21] =?UTF-8?q?=C3=84nderung=20Dimension=20Fach=20auf=20?= =?UTF-8?q?F=C3=A4cher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube/schluesseltabellen/xcube_install.sql | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index dea1e94..0e05475 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -201,14 +201,11 @@ "sortfield":"druck"}, {"maskeninfo_id":21000, "name":"stg", - "caption":"Fach", + "caption":"Fächer", + "is_sicht":1, "is_virtual":1, - "is_coldim":0, "vcsql":"update tmp_rohdaten set stg=(select stg from dim_studiengang where tid=tid_stg)", - "foreignkey_tab":"k_stg", - "foreignkey_col":"stg", - "foreignkey_cap":"ltxt", - "sortfield":"ltxt"}, + "is_coldim":0}, {"maskeninfo_id":21000, "name":"kz_rueck_beur_ein", "caption":"Status", @@ -281,14 +278,11 @@ "is_sicht":2}, {"maskeninfo_id":21100, "name":"stg", - "caption":"Fach", + "caption":"Fächer", + "is_sicht":1, "is_virtual":1, - "is_coldim":0, "vcsql":"update tmp_rohdaten set stg=(select stg from dim_studiengang where tid=tid_stg)", - "foreignkey_tab":"k_stg", - "foreignkey_col":"stg", - "foreignkey_cap":"ltxt", - "sortfield":"ltxt"}, + "is_coldim":0}, {"maskeninfo_id":21100, "name":"fb", "caption":"Fachbereich/Fakultät", From cb8304bd0a6df6c290d66462450ca42150d98901 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Wed, 5 Jul 2023 11:49:44 +0200 Subject: [PATCH 09/21] =?UTF-8?q?weitere=20Dimensionen=20f=C3=BCr=20Person?= =?UTF-8?q?al?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube/schluesseltabellen/xcube_install.sql | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index 0e05475..7197aec 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -216,7 +216,7 @@ "sortfield":"druck"}, - <#--Entwicklung Prüfungswürfel--> + <#--Prüfungswürfel--> {"maskeninfo_id":21100, "name":"geschlecht", "caption":"Geschlecht", @@ -332,7 +332,7 @@ "foreignkey_cap":"druck", "sortfield":"druck"}, - <#--Entwicklung Personalwürfel--> + <#--Personalwürfel--> {"maskeninfo_id":21200, "name":"ca109_key_bvl", "caption":"BVL-Gruppe", @@ -372,6 +372,18 @@ "name":"vertart", "caption":"Vertragsart", "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"ch212_geldgeber", + "caption":"Geldgeber", + "is_sicht":1 }, + {"maskeninfo_id":21200, + "name":"ca501_staat", + "caption":"Staatsangehörigkeit", + "foreignkey_tab":"sva_k_staat", + "foreignkey_col":"apnr::integer", + "foreignkey_cap":"druck", + "foreignkey_cond":"astat is not null", + "sortfield":"druck"}, From 2b8d6ff8937458e05b224c8c6c04b5d5938b4173 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 09:46:41 +0200 Subject: [PATCH 10/21] =?UTF-8?q?Parameter=20Alter=20hinzugef=C3=BCgt,=20n?= =?UTF-8?q?ur=20VZ=C3=84=20als=20fester=20Wert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/xcube/masken/21200_felderinfo.unl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src-modules/module/xcube/masken/21200_felderinfo.unl b/src-modules/module/xcube/masken/21200_felderinfo.unl index 99ba90a..5abaf16 100644 --- a/src-modules/module/xcube/masken/21200_felderinfo.unl +++ b/src-modules/module/xcube/masken/21200_felderinfo.unl @@ -4,7 +4,7 @@ 21203^Dienstart^4^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Dienstart' and aktiv=1 order by type,name;^^^ 21204^BVL-Gruppe^5^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^^^ 21205^Amtsbezeichnung^6^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Amtsdienstbez.' and aktiv=1 order by type,name;^^^ -21206^Personalzählung^121^0^0^110^150^1^sql^20^1^1^<> SELECT 'v','Vollzeit-Äquiv.' from xdummy union select 'k','Köpfe' from xdummy ;^^<> select 'v','Vollzeit-Äquiv.' from xdummy;^ +21206^Personalzählung^121^0^0^110^150^1^sql^20^1^5^<> SELECT 'v','Vollzeit-Äquiv.' from xdummy ;^^<> select 'v','Vollzeit-Äquiv.' from xdummy;^ 21207^Alter (bis)^11^130^-1^100^70^1^integer^5^0^0^^^^ 21208^Befristet bis^12^300^-1^100^80^1^date^10^0^0^^^^ 21209^Beurlaubung^3^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA-Beurlaubung-Sicht' and aktiv=1 order by type,name;^^^ @@ -14,7 +14,7 @@ 21213^Geschlecht^100^300^-1^100^70^1^integer^4^0^1^<> select tid, beschreibung from konstanten where tid in (1,2);^^^ 21214^Geldgeber^115^300^-1^100^120^3^char^20^0^12^<>select tid,type,name from sichten where art ='Geldgeber-Sicht (SVA)' and aktiv=1 order by sortnr,type,name;^^^ 21220^oder Stichtag^2^0^0^100^150^1^integer^20^0^1^<> SELECT tid,date_str(stichtag),stichtag from sva_stichtag where bereich='p' order by 3 desc;^^^ -21221^Beschv.-Nr.^102^0^0^100^70^1^char^100^0^0^^^^ +21221^Beschv.-Nr.^102^0^0^100^70^1^char^100^0^999^^^^ 21222^Pers.-Nr.^101^0^0^100^70^1^char^100^0^999^^^^ 21223^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ 21224^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ @@ -25,3 +25,4 @@ union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ 21229^Kennzahl^3000^350^-1^150^180^1^integer^200^1^1^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} order by sortnr,name;^hidden^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} and is_default=1^ +21230^Alter^39^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^^^ From 844d244d3501c31ce427e3b4452338244c814955 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 09:47:09 +0200 Subject: [PATCH 11/21] =?UTF-8?q?Parameter=20Alter=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/xcube/masken/21200_masken_felder_bez.unl | 1 + 1 file changed, 1 insertion(+) diff --git a/src-modules/module/xcube/masken/21200_masken_felder_bez.unl b/src-modules/module/xcube/masken/21200_masken_felder_bez.unl index 2f8cbda..e0a3da7 100644 --- a/src-modules/module/xcube/masken/21200_masken_felder_bez.unl +++ b/src-modules/module/xcube/masken/21200_masken_felder_bez.unl @@ -28,3 +28,4 @@ 21200^21227^ 21200^21228^ 21200^21229^ +21200^21230^ From 462fb3d7d15880cf64320615ef91db614e513ec5 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 09:47:54 +0200 Subject: [PATCH 12/21] =?UTF-8?q?Parameter=20Alter=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube/schluesseltabellen/xcube_install_restrictions.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 18f0aa6..68794c4 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -57,12 +57,13 @@ update xcube set restriction='<> /* AND ca109_key_bvl in <@printkeys .vars["BVL-Gruppe"].allNeededKeysList/> --<> */ /* AND ca108_amtsbez in <@printkeys Amtsbezeichnung.allNeededKeysList/> --<> */ /* AND vertart in <@printkeys Vertragsart.allNeededKeysList/> --<> */ -/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ +<#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; From 76a43fff3bcf9dec00b44886b508e8ffb44d5203 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 09:48:20 +0200 Subject: [PATCH 13/21] =?UTF-8?q?Dimension=20Alter=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/xcube/schluesseltabellen/xcube_install.sql | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql index 7197aec..767410e 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install.sql @@ -384,9 +384,13 @@ "foreignkey_cap":"druck", "foreignkey_cond":"astat is not null", "sortfield":"druck"}, - - - + {"maskeninfo_id":21200, + "name":"alter", + "caption":"Alter", + "is_sicht":2, + "is_virtual":1, + "vcsql":"update tmp_rohdaten set alter = trunc(((select stichtag from sva_stichtag where tid=tmp_rohdaten.stichtag) - geburtsdatum) / 365.25 , 0)"}, + <#-- Primärbuchungswürfel --> {"maskeninfo_id":21500, "name":"jahr", From 19b65b072826e525df92ddc091c546765877f77e Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 11:25:43 +0200 Subject: [PATCH 14/21] =?UTF-8?q?weitere=20Sicht=20f=C3=BCr=20Alter=20mit?= =?UTF-8?q?=20starker=20Aufteilung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schluesseltabellen/sichten_fuellen.sql | 6 ++++- .../schluesseltabellen/xcube_dims_install.sql | 22 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql index b9c4976..a9b2171 100644 --- a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql +++ b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql @@ -23,7 +23,11 @@ select setval('sichten_tid_seq',(select max(tid) from sichten)); {"name_intern":"xcube_dim_note", "name":"Note (gruppiert)", "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''note'' order by 2", - "art":"XCUBE-Note-Sicht"} + "art":"XCUBE-Note-Sicht"}, + {"name_intern":"xcube_dim_alter1", + "name":"Alter (starke Aufteilung)", + "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter1'' order by 2", + "art":"XCUBE-Alter-Sicht"} ] /> diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index b3cacd7..1ea2346 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -86,6 +86,28 @@ values ('alter', 'a99', 'gesamt','>=60 Jahre','$1::numeric(14,2)>=60.00',100); +delete from xcube_dims where id='alter1'; +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +values +('alter1','gesamt',null,'alle','1=1',1), +('alter1', 'b2', 'gesamt','16-17 Jahre','$1::numeric(14,2)>=16.00 and $1::numeric(14,2)<18.00',20), +('alter1', 'b3', 'gesamt','18-20 Jahre','$1::numeric(14,2)>=18.00 and $1::numeric(14,2)<21.00',30), +('alter1', 'b4', 'gesamt','21-24 Jahre','$1::numeric(14,2)>=21.00 and $1::numeric(14,2)<25.00',40), +('alter1', 'b5', 'gesamt','25-29 Jahre','$1::numeric(14,2)>=25.00 and $1::numeric(14,2)<30.00',50), +('alter1', 'b6', 'gesamt','30-39 Jahre','$1::numeric(14,2)>=30.00 and $1::numeric(14,2)<40.00',60), +('alter1', 'b7', 'gesamt','40-49 Jahre','$1::numeric(14,2)>=40.00 and $1::numeric(14,2)<50.00',70), +('alter1', 'b8', 'gesamt','50-54 Jahre','$1::numeric(14,2)>=50.00 and $1::numeric(14,2)<55.00',80), +('alter1', 'b9', 'gesamt','55-60 Jahre','$1::numeric(14,2)>=55.00 and $1::numeric(14,2)<61.00',90), +('alter1', 'b90', 'gesamt','61 Jahre','$1::numeric(14,2)>=61.00 and $1::numeric(14,2)<62.00',91), +('alter1', 'b91', 'gesamt','62 Jahre','$1::numeric(14,2)>=62.00 and $1::numeric(14,2)<63.00',92), +('alter1', 'b92', 'gesamt','63 Jahre','$1::numeric(14,2)>=63.00 and $1::numeric(14,2)<64.00',93), +('alter1', 'b93', 'gesamt','64 Jahre','$1::numeric(14,2)>=64.00 and $1::numeric(14,2)<65.00',94), +('alter1', 'b94', 'gesamt','65 Jahre','$1::numeric(14,2)>=65.00 and $1::numeric(14,2)<66.00',95), +('alter1', 'b95', 'gesamt','66 Jahre','$1::numeric(14,2)>=66.00 and $1::numeric(14,2)<67.00',96), +('alter1', 'b96', 'gesamt','67 Jahre','$1::numeric(14,2)>=67.00 and $1::numeric(14,2)<68.00',97), +('alter1', 'b99', 'gesamt','>=68 Jahre','$1::numeric(14,2)>=68.00',100); + + <#if TableFieldExists('sos_stg_aggr','ch27_grund_beurl')> delete from xcube_dims where id='ch27_grund_beurl'; INSERT INTO xcube_dims (id,apnr,name,sort1) From 1fd8698045ce2ca133221acc063825a96b217edd Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 18 Jul 2023 18:16:42 +0200 Subject: [PATCH 15/21] Definition weitere Alterssicht --- .../module/xcube/schluesseltabellen/sichten_fuellen.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql index a9b2171..ebd7e83 100644 --- a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql +++ b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql @@ -27,6 +27,10 @@ select setval('sichten_tid_seq',(select max(tid) from sichten)); {"name_intern":"xcube_dim_alter1", "name":"Alter (starke Aufteilung)", "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter1'' order by 2", + "art":"XCUBE-Alter-Sicht"}, + {"name_intern":"xcube_dim_alter3", + "name":"Alter (einzeln)", + "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter3'' order by 2", "art":"XCUBE-Alter-Sicht"} ] /> From e7816b6ec23fb413dd5043129953558527368d06 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 18 Jul 2023 18:17:20 +0200 Subject: [PATCH 16/21] Definition Alterssichten --- .../schluesseltabellen/xcube_dims_install.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index 1ea2346..8de78e9 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -106,7 +106,49 @@ values ('alter1', 'b95', 'gesamt','66 Jahre','$1::numeric(14,2)>=66.00 and $1::numeric(14,2)<67.00',96), ('alter1', 'b96', 'gesamt','67 Jahre','$1::numeric(14,2)>=67.00 and $1::numeric(14,2)<68.00',97), ('alter1', 'b99', 'gesamt','>=68 Jahre','$1::numeric(14,2)>=68.00',100); +<#list 16..17 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b2', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 18..20 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b3', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 21..24 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b4', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 25..29 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b5', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 30..39 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b6', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 40..49 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b7', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 50..54 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b8', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + +<#list 55..60 as i> +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +select 'alter1', ${i}::char(10), 'b9', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; + + +delete from xcube_dims where id='alter3'; +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +values +('alter3','gesamt',null,'alle','1=1',1); +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) values +<#list 16..67 as i> +('alter3', ${i}::char(10), 'gesamt', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i}), + +('alter3', '68', 'gesamt','68 Jahre','$1::numeric(14,2)>=68.00',100); <#if TableFieldExists('sos_stg_aggr','ch27_grund_beurl')> delete from xcube_dims where id='ch27_grund_beurl'; From 0fa1329b0127658f5b686a49536a72eb62198cc9 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 1 Aug 2023 12:33:05 +0200 Subject: [PATCH 17/21] Definition weitere Alterssicht --- .../module/xcube/schluesseltabellen/sichten_fuellen.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql index ebd7e83..f6595da 100644 --- a/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql +++ b/src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql @@ -28,6 +28,10 @@ select setval('sichten_tid_seq',(select max(tid) from sichten)); "name":"Alter (starke Aufteilung)", "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter1'' order by 2", "art":"XCUBE-Alter-Sicht"}, + {"name_intern":"xcube_dim_alter2", + "name":"Alter (spez. für Studierende/Prüf.)", + "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter2'' order by 2", + "art":"XCUBE-Alter-Sicht"}, {"name_intern":"xcube_dim_alter3", "name":"Alter (einzeln)", "quelle":"<> select name,apnr,parent,strukturstr from xcube_dims where id=''alter3'' order by 2", From 642da2c87bb3745b7b2e125535ec7aee7075c7e8 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 1 Aug 2023 12:33:54 +0200 Subject: [PATCH 18/21] Definition Alterssichten --- .../xcube/schluesseltabellen/xcube_dims_install.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql index 8de78e9..d48ed1e 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_dims_install.sql @@ -139,6 +139,18 @@ INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) select 'alter1', ${i}::char(10), 'b9', ${i}::char(2) || ' Jahre' , '$1::numeric(14,2)>=${i}::numeric(14,2) and $1::numeric(14,2)<${i+1}::numeric(14,2)', ${i} from xdummy; +delete from xcube_dims where id='alter2'; +INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) +values +('alter2','gesamt',null,'alle','1=1',1), +('alter2', 'b2', 'gesamt','16-18 Jahre','$1::numeric(14,2)>=16.00 and $1::numeric(14,2)<19.00',20), +('alter2', 'b3', 'gesamt','19-20 Jahre','$1::numeric(14,2)>=19.00 and $1::numeric(14,2)<21.00',30), +('alter2', 'b4', 'gesamt','21-25 Jahre','$1::numeric(14,2)>=21.00 and $1::numeric(14,2)<26.00',40), +('alter2', 'b5', 'gesamt','26-30 Jahre','$1::numeric(14,2)>=26.00 and $1::numeric(14,2)<31.00',50), +('alter2', 'b6', 'gesamt','31-40 Jahre','$1::numeric(14,2)>=31.00 and $1::numeric(14,2)<41.00',60), +('alter2', 'b7', 'gesamt','41-50 Jahre','$1::numeric(14,2)>=41.00 and $1::numeric(14,2)<51.00',70), +('alter2', 'b99', 'gesamt','> 50 Jahre','$1::numeric(14,2)>=51.00',100); + delete from xcube_dims where id='alter3'; INSERT INTO xcube_dims (id,apnr,parent, name,strukturstr,sort1) values From 22a676ccde4418e3d1a8e8b122cb661cd0e739a2 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 1 Aug 2023 12:35:00 +0200 Subject: [PATCH 19/21] einheitliche Benennung Xcubes --- .../module/xcube/masken/21000_felderinfo.unl | 45 +++++++++---------- .../module/xcube/masken/21000_maskeninfo.unl | 6 +-- .../module/xcube/masken/21030_maskeninfo.unl | 4 +- .../module/xcube/masken/21100_felderinfo.unl | 2 +- .../module/xcube/masken/21100_maskeninfo.unl | 4 +- .../module/xcube/masken/21200_felderinfo.unl | 2 +- .../module/xcube/masken/21200_maskeninfo.unl | 4 +- 7 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src-modules/module/xcube/masken/21000_felderinfo.unl b/src-modules/module/xcube/masken/21000_felderinfo.unl index 06e1894..9e00734 100644 --- a/src-modules/module/xcube/masken/21000_felderinfo.unl +++ b/src-modules/module/xcube/masken/21000_felderinfo.unl @@ -1,8 +1,8 @@ 21000^Köpfe oder Fälle ?^0^0^0^140^150^1^sql^70^0^1^<> select apnr, eintrag from koepfe_oder_faelle where eintrag not like 'gewichtet nach%' order by 2^apnr, eintrag^<> select apnr, eintrag from koepfe_oder_faelle where eintrag='Köpfe';^ 21001^Seit Semester^3^0^0^140^80^1^integer^30^0^1^<> select tid, eintrag from semester order by tid DESC;^Eintrag^<> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ -21002^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<> select tid, name from sos_stichtag where stichtagsart='Studierende';^ ^<> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ -21003^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^ ^ ^ -21004^Status^14^350^-1^140^180^1^sql^30^0^1^<> select apnr,eintrag from sos_status order by 2^ ^<> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ +21002^Stichtag^1^350^-1^140^100^1^sql^30^0^1^<> select tid, name from sos_stichtag where stichtagsart='Studierende';^^<> select tid, name from sos_stichtag where stichtagsart='Studierende' and appl_key='0';^ +21003^Staatsangehörigkeit^36^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='SOS-Staaten-Sicht' order by 3,2;^^^ +21004^Status^14^350^-1^140^180^1^sql^30^0^1^<> select apnr,eintrag from sos_status order by 2^^<> select apnr,eintrag from sos_status where eintrag='Alle ohne Beurl.';^ 21005^Hörerstatus^33^0^0^140^170^1^sql^30^0^1^<> select apnr, eintrag from hoererstatus order by 2^apnr, eintrag^<> select apnr, eintrag from hoererstatus where eintrag='alle';^ 21006^Weitere Tabellen^123^0^0^140^140^10^char^30^0^999^<> \ --freemarker template\ @@ -10,12 +10,11 @@ select name,string_not_null(caption) || ' - ' || name from sx_tables where name <#if <>!='tabelle_html_datenblatt.xsl'>\ and name in (select distinct tablename from stylesheet_field where stylesheet_id in (select tid from sx_stylesheets where filename=<>)) \ \ -order by 2^ ^ ^ -21007^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^ ^ ^ -21008^Fächer^8^0^0^130^150^10^char^30^0^12^<> select tid,name,sortnr from sichten where art='Fächer-Sicht' order by 3,2;^ ^ ^ +order by 2^^^ +21007^bis Fachsemester^35^350^-1^140^100^1^integer^30^0^0^^^^ 21009^Bis Semester^4^350^-1^140^80^1^integer^30^0^1^<> select tid, eintrag from semester order by tid DESC;^Eintrag^<> select tid,eintrag from semester where today() between sem_beginn and sem_ende;^ -21010^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<> 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;^ ^ ^ -21011^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^ ^ ^ +21010^Filter Studierende^119^0^0^140^150^1^sql^20^0^1^<> 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;^^^ +21011^Geschlecht^37^0^0^140^80^1^integer^30^0^1^<> SELECT apnr,druck FROM cif where key = 9003 and apnr between 1 and 4 order by 1;^^^ 21012^Felder^125^0^0^150^190^10^char^30^0^999^<>\ --freemarker template\ select trim(F.table_name) || '.' || F.name,trim(T.caption) || ':' || trim(F.caption) || ' - ' || trim(F.name) from sx_fields F,\ @@ -31,23 +30,23 @@ and apnr=1)) \ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fieldname) from stylesheet_field where stylesheet_id in \ (select tid from sx_stylesheets where filename=<>))\ \ - order by 2;^ ^ ^ -21013^Studiengang^6^0^0^140^150^50^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^ ^ ^ -21014^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^999^<> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^ ^<> select 1,'Ja' from xdummy^ -21015^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ -21016^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^ ^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ -21017^Zivilstatus^41^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Status');^ ^ ^ -21018^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^ ^ ^ + order by 2;^^^ +21013^Studiengang^6^0^0^140^150^50^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Kostenstellen-Sicht', 'SOS-Studiengang-Sicht') order by 3,2;^^^ +21014^Schlüssel anzeigen^150^0^0^100^100^1^integer^30^1^999^<> select 1,'Ja' from xdummy union select 0,'Nein' from xdummy^^<> select 1,'Ja' from xdummy^ +21015^Ansicht in Ergebniszeilen^121^0^0^100^200^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_rowdefault=1^ +21016^Ansicht in Ergebnisspalten^2001^0^0^100^150^1^char^200^1^1^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldim=1 order by 2^^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_coldefault=1^ +21017^Zivilstatus^41^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Status');^^^ +21018^Jahrgang^42^350^-1^140^180^1^sql^30^0^13^<> select attributevalue from personattribute_value_list where personattributetype_id = (select personattributetype_id from personattributetype where attributevalue = 'Jahrgang');^^^ 21019^Leere Zeilen ausblenden^130^350^-1^140^80^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ -21020^Leere Spalten ausblenden^2020^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^ ^<> select 'ja','ja' from xdummy^ -21021^Abschluss^7^0^0^140^170^5^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Abschluss-Sicht') order by 3,2;^ ^ ^ +21020^Leere Spalten ausblenden^2020^0^0^100^100^1^char^30^0^1^<> select 'ja','ja' from xdummy union select 'nein','nein' from xdummy^^<> select 'ja','ja' from xdummy^ +21021^Abschluss^7^0^0^140^170^5^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('SOS-Abschluss-Sicht') order by 3,2;^^^ 21022^Kennzahl^3000^350^-1^150^180^1^integer^200^1^1^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} order by sortnr,name;^hidden^<> select tid,name from xcube_kennzahl where maskeninfo_id=${Maskennummer} and is_default=1^ 21023^2.Ansicht in Zeilen^125^0^0^100^100^1^char^50^0^999^<> select name,caption from xcube_dimconfig where maskeninfo_id=${Maskennummer} and is_secondrowdim=1 order by 1^hidden^1^ -21024^Wohnort^38^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Wohnort-Sicht') order by 3,2;^ ^ ^ -21025^Alter^39^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^ ^ ^ -21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^ ^ ^ -21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^ ^ ^ +21024^Wohnort^38^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Wohnort-Sicht') order by 3,2;^^^ +21025^Alter^39^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Alter-Sicht') order by 3,2;^^^ +21026^HZB-Note^40^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-HZB-Note-Sicht') order by 3,2;^^^ +21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^^^ 21028^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<> select '_graph','Balken (horiz. linksb.)' from xdummy\ union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ -union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^ ^ ^ -21029^Zeilenfilter bis Ebene^140^0^0^140^10^1^integer^30^0^0^^ ^ ^ +union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ +21029^Zeilenfilter bis Ebene^140^0^0^140^80^1^integer^30^0^0^ ^^^ diff --git a/src-modules/module/xcube/masken/21000_maskeninfo.unl b/src-modules/module/xcube/masken/21000_maskeninfo.unl index 933cab8..a4ee4d3 100644 --- a/src-modules/module/xcube/masken/21000_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21000_maskeninfo.unl @@ -1,4 +1,4 @@ -21000^Studierende XCUBE^--freemarker template\ +21000^Studierende Xcube^--freemarker template\ -- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ \ select table_name from xcube where maskeninfo_id=${Maskennummer}\ @@ -432,5 +432,5 @@ Column CID=1 heading_text="${spalte.name}" center_heading\ row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\ width=12\ \ -@@@^Altersgruppe^Anzahl^Dynamische Darstellung von Studierendenzahlen^drop table tmp_erg;\ -drop table tmp_cellmax;^^3^700^360^^1^^ +@@@^Altersgruppe^Anzahl^Kreuztabellen zu Studierendenzahlen^drop table tmp_erg;\ +drop table tmp_cellmax;^ ^3^700^360^0^1^ ^ diff --git a/src-modules/module/xcube/masken/21030_maskeninfo.unl b/src-modules/module/xcube/masken/21030_maskeninfo.unl index f2370f1..2c83811 100644 --- a/src-modules/module/xcube/masken/21030_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21030_maskeninfo.unl @@ -1,4 +1,4 @@ -21030^Datenwürfel verwalten^--freemarker template\ +21030^Kreuztabellen (Xcubes) verwalten^--freemarker template\ \ SELECT --X.tid,\ X.name,\ @@ -41,4 +41,4 @@ Column CID=0 heading_text="Maske Nummer" center_heading\ Column CID=0 heading_text="Bearbeiten" center_heading\ row_selectable col_selectable heading_platform readonly\ width=5 text_size=100\ -@@@^^^Dimensionen und Datenwürfel (xCubes) verwalten^ ^^1^440^360^0^1^^ +@@@^^^Dimensionen und Kreuztabellen (Xcubes) verwalten^ ^^1^440^360^0^1^^ diff --git a/src-modules/module/xcube/masken/21100_felderinfo.unl b/src-modules/module/xcube/masken/21100_felderinfo.unl index fb6329f..4f811db 100644 --- a/src-modules/module/xcube/masken/21100_felderinfo.unl +++ b/src-modules/module/xcube/masken/21100_felderinfo.unl @@ -50,4 +50,4 @@ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fi 21128^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<> select '_graph','Balken (horiz. linksb.)' from xdummy\ union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\ union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^ -21129^Zeilenfilter bis Ebene^140^0^0^140^10^1^integer^30^0^0^ ^^^ +21129^Zeilenfilter bis Ebene^140^0^0^140^80^1^integer^30^0^0^ ^^^ diff --git a/src-modules/module/xcube/masken/21100_maskeninfo.unl b/src-modules/module/xcube/masken/21100_maskeninfo.unl index e36cadf..d12482e 100644 --- a/src-modules/module/xcube/masken/21100_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21100_maskeninfo.unl @@ -1,4 +1,4 @@ -21100^Abschlussprüfungen XCUBE^--freemarker template\ +21100^Abschlussprüfungen Xcube^--freemarker template\ -- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ \ select table_name from xcube where maskeninfo_id=${Maskennummer}\ @@ -426,5 +426,5 @@ Column CID=1 heading_text="${spalte.name}" center_heading\ row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\ width=12\ \ -@@@^Altersgruppe^Anzahl^Dynamische Darstellung von Studierendenzahlen^drop table tmp_erg;\ +@@@^Altersgruppe^Anzahl^Kreuztabellen zu Zahlen für Abschlussprüfungen^drop table tmp_erg;\ drop table tmp_cellmax;^ ^3^700^360^0^1^ ^ diff --git a/src-modules/module/xcube/masken/21200_felderinfo.unl b/src-modules/module/xcube/masken/21200_felderinfo.unl index 5abaf16..b0f74b6 100644 --- a/src-modules/module/xcube/masken/21200_felderinfo.unl +++ b/src-modules/module/xcube/masken/21200_felderinfo.unl @@ -4,7 +4,7 @@ 21203^Dienstart^4^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Dienstart' and aktiv=1 order by type,name;^^^ 21204^BVL-Gruppe^5^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA BVL-Gruppen' and aktiv=1 order by type,name;^^^ 21205^Amtsbezeichnung^6^0^0^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA Amtsdienstbez.' and aktiv=1 order by type,name;^^^ -21206^Personalzählung^121^0^0^110^150^1^sql^20^1^5^<> SELECT 'v','Vollzeit-Äquiv.' from xdummy ;^^<> select 'v','Vollzeit-Äquiv.' from xdummy;^ +21206^Personalzählung^121^0^0^110^150^1^sql^20^1^1^<> SELECT 'v','Vollzeit-Äquiv.' from xdummy ;^^<> select 'v','Vollzeit-Äquiv.' from xdummy;^ 21207^Alter (bis)^11^130^-1^100^70^1^integer^5^0^0^^^^ 21208^Befristet bis^12^300^-1^100^80^1^date^10^0^0^^^^ 21209^Beurlaubung^3^300^-1^100^150^3^char^30^0^12^<>select tid,type,name from sichten where art ='SVA-Beurlaubung-Sicht' and aktiv=1 order by type,name;^^^ diff --git a/src-modules/module/xcube/masken/21200_maskeninfo.unl b/src-modules/module/xcube/masken/21200_maskeninfo.unl index 22f10ea..fe5fdcb 100644 --- a/src-modules/module/xcube/masken/21200_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21200_maskeninfo.unl @@ -1,4 +1,4 @@ -21200^Personal XCUBE^--freemarker template\ +21200^Personal Xcube^--freemarker template\ -- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ \ select table_name from xcube where maskeninfo_id=${Maskennummer}\ @@ -426,5 +426,5 @@ Column CID=1 heading_text="${spalte.name}" center_heading\ row_selectable heading_platform readonly explanation="Ausprägung ${spalte.name}"\ width=12\ \ -@@@^Altersgruppe^Anzahl^Dynamische Darstellung von Personalzahlen^drop table tmp_erg;\ +@@@^Altersgruppe^Anzahl^Kreuztabellen zu Personalzahlen^drop table tmp_erg;\ drop table tmp_cellmax;^ ^3^700^360^0^1^ ^ From f8d63e1b48458ec9e2dad3f61af6176605af3378 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Mon, 7 Aug 2023 11:02:00 +0200 Subject: [PATCH 20/21] Umbenennungen Xcube, Maske Personal eingebaut, Aufruf von create_views.sql --- src-modules/module/xcube/conf/xcube.xml | 34 +++++++++++++++---------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src-modules/module/xcube/conf/xcube.xml b/src-modules/module/xcube/conf/xcube.xml index 260ad8b..df27f89 100644 --- a/src-modules/module/xcube/conf/xcube.xml +++ b/src-modules/module/xcube/conf/xcube.xml @@ -1,8 +1,8 @@ - + -
+
Primärschlüssel nur nachrichtlicher Schlüssel für den Würfel @@ -160,30 +160,36 @@ union select druck::varchar(255), apnr, 'A99'::char(10) as parent from cifx wher -Abfragen zur Administration von xCubes +Abfragen zur Administration von Xcubes - + $XCUBE_PFAD/masken - + $XCUBE_PFAD/masken POSTGRES - + $XCUBE_PFAD/masken POSTGRES - + + + $XCUBE_PFAD/masken + POSTGRES + + + $XCUBE_PFAD/masken POSTGRES @@ -224,6 +230,7 @@ parent="xCubes">Abfragen zur Administration von xCubes + @@ -235,6 +242,7 @@ parent="xCubes">Abfragen zur Administration von xCubes + @@ -243,7 +251,7 @@ parent="xCubes">Abfragen zur Administration von xCubes - + @@ -254,13 +262,13 @@ parent="xCubes">Abfragen zur Administration von xCubes table="xcube" path="/edit/xcube/xcube_list.jsp" followUp="" - caption="Würfel verwalten" + caption="Kreuztabellen verwalten" orderBy="name" gotoHt="" helpfile="" maxRows="*" mode="full"> -In diesem Formular können Sie Würfel verwalten. Im Details-Formular können Sie Eigenschaften zuordnen. +In diesem Formular können Sie Kreuztabellen verwalten. Im Details-Formular können Sie Eigenschaften zuordnen. @@ -273,14 +281,14 @@ parent="xCubes">Abfragen zur Administration von xCubes table="xcube" path="/edit/xcube/xcube_edit.jsp" followUp="" - caption="Würfel bearbeiten" + caption="Kreuztabellen bearbeiten" orderBy="name" gotoHt="" helpfile="" maxRows="1" mode="full"> -In diesem Formular können Sie Würfel verwalten. +In diesem Formular können Sie Kreuztabellen verwalten. tid From 0e73439566dac6d6ba883b60cc54cb0e50da6fad Mon Sep 17 00:00:00 2001 From: winterstein Date: Thu, 17 Aug 2023 11:24:23 +0200 Subject: [PATCH 21/21] =?UTF-8?q?=E2=80=9Esrc-modules/module/xcube/masken/?= =?UTF-8?q?21500=5Fmaskeninfo.unl=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-modules/module/xcube/masken/21500_maskeninfo.unl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-modules/module/xcube/masken/21500_maskeninfo.unl b/src-modules/module/xcube/masken/21500_maskeninfo.unl index a98b09a..05770b1 100644 --- a/src-modules/module/xcube/masken/21500_maskeninfo.unl +++ b/src-modules/module/xcube/masken/21500_maskeninfo.unl @@ -1,4 +1,4 @@ -21500^Primärkosten/Erlöse XCUBE^--freemarker template\ +21500^Primärkosten/Erlöse Xcube^--freemarker template\ -- Maskenfelder -Leere Zeilen ausblenden, leere SPalten ausblenden?\ \ select table_name from xcube where maskeninfo_id=${Maskennummer}\