diff --git a/Layout/default/AddressDB/Statusupdateimport.php b/Layout/default/AddressDB/Statusupdateimport.php new file mode 100644 index 000000000..50a74e686 --- /dev/null +++ b/Layout/default/AddressDB/Statusupdateimport.php @@ -0,0 +1,81 @@ + + + +
+
+
+
+ +
+

Statusupdates importieren

+
+
+
+ + +
+
+ +
+
+
+

+ Werden Statusflags importiert, muss die Überschrift im CSV-File vorhanden sein!
+ Statusflags können in beliebiger Reihenfolge angegeben werden, die Positionen müssen aber in Kopfzeile und Datenzeilen übereinstimmen.
+ Nur zu ändernde Statusflags müssen angeführt werden.
+ Statusflags können 1 (=gesetzt), 0 (=nicht gesetzt) oder leer sein. Ist das Feld leer, wird der Wert des Flags nicht verändert. +

+
+

Statusupdates importieren

+ +
" enctype="multipart/form-data"> +
+
+ +
+ +
+ + + Format: addressdb_id;Neuer Status Code;[flag;...]
+ Beispiel:
+ + addressdb_id;new_code;141;145;150;200;242
+ 1788231;200;1;0;;; +
+
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+
+
+
+
+ + + diff --git a/Layout/default/ConstructionConsent/Form.php b/Layout/default/ConstructionConsent/Form.php new file mode 100644 index 000000000..270f2a8f9 --- /dev/null +++ b/Layout/default/ConstructionConsent/Form.php @@ -0,0 +1,107 @@ + + +
+
+
+ +

Zustimmungserklärung

+
+
+
+ + +
+
+ +
+
+

+ Zustimmungserklärung +

+ +
"> + "/> + +
+
+ +
+ +
+ +
+
+ + + + + + + +
+ +
+ +
+
+ +
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/Layout/default/ConstructionConsent/Index.php b/Layout/default/ConstructionConsent/Index.php new file mode 100644 index 000000000..841c8d0e0 --- /dev/null +++ b/Layout/default/ConstructionConsent/Index.php @@ -0,0 +1,153 @@ +getUrl($Mod,"Index"); +$pagination_baseurl_params = ["filter" => $filter]; +$pagination_entity_name = "Zustimmungserklärungen"; +?> + + + + +
+
+
+
+ +
+

Zustimmmungserklärungen

+
+
+
+ + +
+
+ +
+
+

Filter

+ +
"> +
+
+ + +
+ +
+ + " /> +
+ +
+ + +
+
+ + 1])?>"> Filter zurücksetzen +
+
+
+ +
+
+ + +
+
+
+
+
+

Liste aller Zustimmmungserklärungen

+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ObjekttypObjektadresseGST-Nr.EZBesitzerBesitzer AdresseBesitzer KontaktAnfragestatusAnfrageresultat
object_type)?> + object_type == "street"): ?> + adb_strasse->name?> + adb_strasse->gemeinde->name?> + + adb_hausnummer->strasse->name?> + adb_hausnummer->hausnummer?>adb_hausnummer->stiege) ? "/".$item->adb_hausnummer->stiege : ""?>
+ adb_hausnummer->plz->plz?> + adb_hausnummer->ortschaft->name?>
+ adb_hausnummer->strasse->gemeinde->name?> + +
adb_hausnummer->grund_nr?>ez?>owner_name?> + owner_street?>
+ owner_zip?> owner_city?>
+
+ phone): ?> + Tel: phone?>
+ + fax): ?> + Fax: fax?>
+ + email): ?> + Email: email?> + +
status?>result?> + $item->id])?>"> + result): ?> + $item->id])?>"> + + status == "new"): ?> + $item->id])?>" onclick="if(!confirm('Zustimmungserklärung wirklich löschen?')) return false;" class="text-danger" title="Löschen"> + + + + +
+ + + + + +
+
+ +
+
+ + diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index dd23119ea..e8fe14fdc 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -725,14 +725,16 @@ if(trenches) { trenches.forEach((trench) => { var trench_line = L.polyline(trench, { - color: "limegreen" + color: "maroon", + weight: 7 }).addTo(map); }); } if(home_trench) { var home_line = L.polyline(home_trench, { - color: "aqua" + color: "blue", + weight: 7 }).addTo(map); } @@ -936,5 +938,39 @@ return false; } + + function downloadWorkorderAh(workorder_id) { + if(!workorder_id) return false; + + var filename; + + fetch('') + .then(resp => { + const header = resp.headers.get("Content-disposition"); + let matches = header.match(/filename=['"]?([^'"]+)/i); + filename = matches[1]; + if(!filename) { + window.notify("error", "Fehler beim Download des AH-Blatts"); + return false; + } + resp.blob() + }) + .then(blob => { + const url = window.URL.createObjectURL(blob); + const a = document.createElement('a'); + a.style.display = 'none'; + a.href = url; + // the filename you want + a.download = filename; + document.body.appendChild(a); + a.click(); + window.URL.revokeObjectURL(url); + window.notify("success", "Download gestartet..."); + //alert('your file has downloaded!'); // or you know, something with better UX... + }) + .catch(() => window.notify("Fehler beim Download des AH-Blatts")); + + + } diff --git a/Layout/default/Preorder/include/preorder-detail.php b/Layout/default/Preorder/include/preorder-detail.php index 99a9bb384..efc1f5418 100644 --- a/Layout/default/Preorder/include/preorder-detail.php +++ b/Layout/default/Preorder/include/preorder-detail.php @@ -397,9 +397,12 @@

Workorder

- adb_wohneinheit->rimo_workorders) && count($preorder->adb_wohneinheit->rimo_workorders)): ?> + adb_wohneinheit_id && is_array($preorder->adb_wohneinheit->rimo_workorders) && count($preorder->adb_wohneinheit->rimo_workorders)): ?> adb_wohneinheit->rimo_workorders as $wo): ?> -

rimo_name?>

+

+ rimo_name?> + $wo->id])?>" onclick="event.preventDefault(); downloadWorkorderAh(id?>);"> AH Blatt +

Workorder löschen diff --git a/Layout/default/Preordercampaign/Index.php b/Layout/default/Preordercampaign/Index.php index 49db23276..f218bfffb 100644 --- a/Layout/default/Preordercampaign/Index.php +++ b/Layout/default/Preordercampaign/Index.php @@ -109,8 +109,8 @@ - + @@ -130,16 +130,63 @@ - + diff --git a/Layout/default/header.php b/Layout/default/header.php index 6f1b03592..9be621afb 100644 --- a/Layout/default/header.php +++ b/Layout/default/header.php @@ -10,6 +10,7 @@ + diff --git a/Layout/default/menu.php b/Layout/default/menu.php index f4d22bff1..ecbbc57d2 100644 --- a/Layout/default/menu.php +++ b/Layout/default/menu.php @@ -107,10 +107,11 @@
Netzgebiete NameGebiet VorbestellungenWorkorders Start Ende network->name?> name?>area?> - ["preordercampaign_id" => $camp->id]])?>"> - active_preorder_count?> - homes_total): // manual value ?> - / homes_total?> (active_preorder_count / $camp->homes_total) * 100, 2))?> %) - total_homes): // automatic value from AdressDB ?> - / total_homes?> (active_preorder_count / $camp->total_homes) * 100, 2))?> %) + +
+ +
+ + + total_homes_sd): // automatic value from AdressDB ?> + + + + + + + + total_homes_md): // automatic value from AdressdB ?> + + + + + + + + + + + + +
EFH:active_preorder_count_sd?> /total_homes_sd?>(active_preorder_count_sd / $camp->total_homes_sd) * 100, 2))?> %)
MPH:active_preorder_count_md?> /total_homes_md?>(active_preorder_count_md / $camp->total_homes_md) * 100, 2))?> %)
Gesamt:active_preorder_count?> / + homes_total): // manual value ?> + homes_total?> + total_homes): // automatic value from AdressDB ?> + total_homes?> + + + homes_total): // manual value ?> + (active_preorder_count / $camp->homes_total) * 100, 2))?> %) + total_homes): // automatic value from AdressDB ?> + (active_preorder_count / $camp->total_homes) * 100, 2))?> %) + +
+
+ +
+ + + +
+ workorder_count): ?> + workorder_count?> + + 0 - + / active_preorder_count?> from)?> to)?>