dbmsv2 init...1

This commit is contained in:
choi.jh 2025-09-15 14:35:17 +09:00
parent 24ad28b024
commit 93e82b1104
3 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ class CommonHelper
foreach ($attributes as $attribute_tag => $attribute_value) { foreach ($attributes as $attribute_tag => $attribute_value) {
$attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $attribute_value); $attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $attribute_value);
} }
$title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "사용중." : ""; $title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "서비스중." : "";
$title .= $entity->getCustomTitle(); $title .= $entity->getCustomTitle();
$html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title); $html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title);
} }

View File

@ -29,7 +29,7 @@ class ServiceHelper extends CustomerHelper
foreach ($attributes as $attribute_tag => $attribute_value) { foreach ($attributes as $attribute_tag => $attribute_value) {
$attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $entity instanceof ServerEntity ? $entity->$attribute_value() : $attribute_value); $attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $entity instanceof ServerEntity ? $entity->$attribute_value() : $attribute_value);
} }
$title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "사용중." : ""; $title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "서비스중." : "";
$title .= $entity->getCustomTitle(); $title .= $entity->getCustomTitle();
$html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title); $html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title);
} }

View File

@ -29,7 +29,7 @@ class ServerPartHelper extends EquipmentHelper
foreach ($attributes as $attribute_tag => $attribute_value) { foreach ($attributes as $attribute_tag => $attribute_value) {
$attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $entity instanceof PartEntity ? $entity->$attribute_value() : $attribute_value); $attribute .= sprintf(" %s=\"%s\"", $attribute_tag, $entity instanceof PartEntity ? $entity->$attribute_value() : $attribute_value);
} }
$title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "사용중." : ""; $title = $entity->getStatus() != $entity::DEFAULT_STATUS ? "서비스중." : "";
$title .= $entity->getCustomTitle(); $title .= $entity->getCustomTitle();
$html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title); $html .= sprintf("<option value=\"%s\"%s%s%s>%s</option>", $key, $isSelected, $isDisabled, $attribute, $title);
} }