dbms_primeidc init...1

This commit is contained in:
최준흠 2025-04-01 17:24:46 +09:00
parent bfe0dd87c7
commit 940de52eb6
3 changed files with 18 additions and 8 deletions

View File

@ -243,7 +243,13 @@ class SiteController extends CommonController
if (!count($service_codes)) {
throw new \Exception("[{$adddb_code}] 값에 해당하는 부가서비스정보가 존재하지 않습니다.");
}
$this->services = $this->getService()->getExtras($service_codes);
$clients = [];
$services = $this->getService()->getExtras($service_codes);
foreach ($services as $service) {
$clients[$service->getPK()] = $this->getClientService()->getEntitByCode($service->getClientCode());
}
$this->services = $services;
$this->clients = $clients;
return $this->render(__FUNCTION__);
}
} //Class

View File

@ -18,6 +18,10 @@ class ServiceEntity extends Entity
{
return $this->service_code;
}
public function getServerCode(): string
{
return $this->server_code;
}
public function getMemberCode(): string
{
return $this->service_manager;

View File

@ -21,14 +21,14 @@
</tr>
</thead>
<tbody>
<?php foreach ($this->results as $result) {?>
<?php foreach ($this->services as $service) { ?>
<tr>
<td><?php echo $result->Client_Name ?></td>
<td><?php echo $result->server_code ?></td>
<td><?php echo $result->service_ip ?></td>
<td><?php echo $result->service_os ?></td>
<td><?php echo $result->service_sw ?></td>
<td><?= $this->clients[$service->getPK()]->getTitle() ?></td>
<td><?= $result->getServerCode() ?></td>
<td><?= $result->service_ip ?></td>
<td><?= $result->service_os ?></td>
<td><?= $result->service_sw ?></td>
</tr>
<?php }?>
<?php } ?>
</tbody>
</table>