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 d35b29a4b..a894491ac 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -830,14 +830,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); } @@ -1041,5 +1043,38 @@ return false; } + + async function downloadWorkorderAha(workorder_id) { + if(!workorder_id) return false; + + var filename; + + await fetch('?id=' + workorder_id) + .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; + } + return resp.blob(); + }) + .then(blob => { + const url = window.URL.createObjectURL(blob); + const a = document.createElement('a'); + a.style.display = 'none'; + a.href = url; + a.download = filename; + document.body.appendChild(a); + a.click(); + window.URL.revokeObjectURL(url); + window.notify("success", "Download gestartet..."); + }) + .catch(() => { + window.notify("error", "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..5b51b019b 100644 --- a/Layout/default/Preorder/include/preorder-detail.php +++ b/Layout/default/Preorder/include/preorder-detail.php @@ -397,9 +397,13 @@

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(); downloadWorkorderAha(id?>);"> AHA Blatt + (beta) +

Workorder löschen diff --git a/Layout/default/Preordercampaign/Index-new.php b/Layout/default/Preordercampaign/Index-new.php new file mode 100644 index 000000000..f218bfffb --- /dev/null +++ b/Layout/default/Preordercampaign/Index-new.php @@ -0,0 +1,215 @@ +getUrl($Mod,"Index"); + $pagination_baseurl_params = ["filter" => $filter]; + $pagination_entity_name = "Vorbestellkampagnen"; +?> + + + +
+
+
+
+ +
+

Vorbestellkampagnen

+
+
+
+ + +
+
+ +
+
+

Filter

+ +
"> +
+ +
+ + +
+ + is("Admin")): ?> +
+ + +
+ + +
+ + " /> +
+ +
+ + " /> +
+ +
+
+
+ + ">Filter zurücksetzen +
+
+ + +
+
+ + + address_id == 1 || $me->address_id == 4807): // xinon, rml ?> + + + +
+
+
+

Liste aller Vorbestellkampagnen

+
+
+ is("Admin")): ?> + "> Neue Vorbestellkampagne anlegen + +
+ +
+
+ + +
+
+ +
+ + + + + + + + + + + + + = $camp->from && date('U') <= $camp->to) ? "class='active'" : ""?>> + + + + + + + + + + + +
NetzgebieteNameVorbestellungenWorkordersStartEnde
+ = $camp->from && date('U') <= $camp->to): ?> + + + + + + + $camp->id])?>"> + network->name?>name?> + +
+ +
+ + + 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)?> + $camp->id])?>" title="Bestellte Zusatzdienste exportieren"> + ["preordercampaign_id" => $camp->id]])?>" title="Email Aussendungen"> + is("Admin")): ?> + $camp->id])?>"> + $camp->id])?>"> + $camp->id])?>" class="text-danger" onclick="if(!confirm('Vorbestellkampagne wirklich löschen?')) return false;" title="Vorbestellkampagne Löschen"> + +
+ + + + +
+ + + + + + diff --git a/Layout/default/Preordercampaign/Index.php b/Layout/default/Preordercampaign/Index.php index d9b9b5a9f..01c5256e4 100644 --- a/Layout/default/Preordercampaign/Index.php +++ b/Layout/default/Preordercampaign/Index.php @@ -272,3 +272,4 @@ + diff --git a/Layout/default/menu.php b/Layout/default/menu.php index a14b56c1c..a9dba7681 100644 --- a/Layout/default/menu.php +++ b/Layout/default/menu.php @@ -110,10 +110,11 @@