From 16cdf12708532ea5fc52225cd093419454c22215 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 16 Sep 2021 20:08:24 +0200 Subject: [PATCH] Added Building info to Linework --- Layout/default/Linework/Index.php | 25 +++++++++++++++++++++ application/Workflowvalue/Workflowvalue.php | 13 +++++++++++ public/assets/css/thetool.css | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/Layout/default/Linework/Index.php b/Layout/default/Linework/Index.php index df66e3a0e..2211ee75b 100644 --- a/Layout/default/Linework/Index.php +++ b/Layout/default/Linework/Index.php @@ -170,6 +170,31 @@ + "> + + + + + + + + + + + + + + + + +
AP-TypAP-NameGPSRohrverbandRohrtypRohrfarbe
building->workflowitems['anschlusspunkt_typ']->value->value_string?>building->workflowitems['anschlusspunkt_name']->value->value_string?>building->workflowitems['anschlusspunkt_gps']->value->value_string) ? "value->gps)."' target='_blank'> ".join(", ", $term->building->workflowitems['anschlusspunkt_gps']->value->gps)."" : ""?>building->workflowitems['rohrverband_name']->value->value_string?>building->workflowitems['rohrtype']->value->value_string?> + ; + color: #building->workflowitems['rohrfarbe']->value->value_string]["hexfg"]?> + border-radius: 3px; + ">------- building->workflowitems['rohrfarbe']->value->value_string?> +
$filter, "s" => $pagination['start']])?>" enctype="multipart/form-data" > diff --git a/application/Workflowvalue/Workflowvalue.php b/application/Workflowvalue/Workflowvalue.php index 52223a050..98f433d74 100644 --- a/application/Workflowvalue/Workflowvalue.php +++ b/application/Workflowvalue/Workflowvalue.php @@ -3,8 +3,21 @@ class Workflowvalue extends mfBaseModel { private $item; private $changer; + public $gps = []; + public $is_changed = false; + protected function afterLoad() { + if(!$this->id) { + return true; + } + if($this->getProperty("item")->type == "gps" && $this->value_string) { + $gps = explode(";", $this->value_string); + $this->gps = $gps; + } + } + + public function setValue($value) { $this->item = $this->getProperty("item"); diff --git a/public/assets/css/thetool.css b/public/assets/css/thetool.css index 5c338fdd9..607daa3d4 100644 --- a/public/assets/css/thetool.css +++ b/public/assets/css/thetool.css @@ -42,7 +42,7 @@ } .table-bg-odd { - + background-color: #eceff5; } .workflow-table {