dbmsv2 init...1

This commit is contained in:
choi.jh 2025-09-11 18:45:29 +09:00
parent 2cfd1a00d4
commit f633097a62
5 changed files with 54 additions and 42 deletions

View File

@ -32,6 +32,11 @@ class ServerHelper extends EquipmentHelper
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
{ {
switch ($field) { switch ($field) {
case 'clientinfo_uid':
if (array_key_exists($value, $viewDatas['control']['field_optons'][$field])) {
$value = "<a href=\"/admin/customer/client/detail/{$value}\">" . $viewDatas['control']['field_optons'][$field][$value]->getTitle() . "</a>";
}
break;
case 'manufactur_at': case 'manufactur_at':
case 'format_at': case 'format_at':
$value = $value ? date("Y-m-d", strtotime($value)) : ""; $value = $value ? date("Y-m-d", strtotime($value)) : "";

View File

@ -132,7 +132,7 @@
<i class="fa fa-support fa-5x"></i> <i class="fa fa-support fa-5x"></i>
</div> </div>
<div class="col-8 text-end"> <div class="col-8 text-end">
<div class="huge"><?= $viewDatas['unPaidCount'] ?></div> <div class="huge"><?= $viewDatas['totalUnPaidCount'] ?></div>
<div><?= date("Y-m-d") ?> 금일 기준 미납 서비스</div> <div><?= date("Y-m-d") ?> 금일 기준 미납 서비스</div>
</div> </div>
</div> </div>

View File

@ -14,10 +14,12 @@
<!-- Layout Right Start --> <!-- Layout Right Start -->
<?= $this->include("{$viewDatas['layout']}/welcome/banner"); ?> <?= $this->include("{$viewDatas['layout']}/welcome/banner"); ?>
<div class="row align-items-start" style="padding-top:20px;"> <div class="row align-items-start" style="padding-top:20px;">
<div class="col-7"> <div class="col">
<?= $this->include("{$viewDatas['layout']}/welcome/total"); ?> <?= $this->include("{$viewDatas['layout']}/welcome/total"); ?>
</div> </div>
<div class="col-5"> </div>
<div class="row align-items-start" style="padding-top:20px;">
<div class="col">
<?= $this->include("{$viewDatas['layout']}/welcome/new"); ?> <?= $this->include("{$viewDatas['layout']}/welcome/new"); ?>
</div> </div>
</div> </div>

View File

@ -10,26 +10,31 @@
<div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;"> <div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;">
<table class="table table-bordered table-hover align-middle"> <table class="table table-bordered table-hover align-middle">
<thead class="table-light"> <thead class="table-light">
<tr> <tr class="text-center">
<th class="text-center">서비스코드</th> <th>서비스코드</th>
<th class="text-center">업체명</th> <th>업체명</th>
<th class="text-center">구분</th> <th>구분</th>
<th class="text-center">장비번호</th> <th>장비번호</th>
<th class="text-center">IP정보</th> <th>스위치정보</th>
<th class="text-center">등록자</th> <th>IP정보</th>
<th>CS정보</th>
<th>등록자</th>
<th>비고</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach ($viewDatas['newServiceEntities'] as $entity): ?> <?php foreach ($viewDatas['newServiceEntities'] as $entity): ?>
<?php $viewDatas['entity'] = $entity ?> <?php $viewDatas['entity'] = $entity ?>
<tr> <tr class="text-center">
<td><?= $viewDatas['service']->getHelper()->getListButton('new_service_view', '', $viewDatas, ['label' => $entity->getTitle()]) ?></td> <td><?= $entity->getCode() ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('clientinfo_uid', $entity->getClientInfoUID(), $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('clientinfo_uid', $entity->getClientInfoUID(), $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('type', $entity->getType(), $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('type', $entity->getType(), $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('switchinfo_uid', $entity->getSwitchCode(), $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('serveripinfo_uid', $entity->getServerEntity()->getCode(), $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('SWITCH', null, $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('IP', null, $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('IP', null, $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('DEFENCE', null, $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('CS', null, $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('user_uid', $entity->getUserUID(), $viewDatas) ?></td> <td><?= $viewDatas['service']->getHelper()->getFieldView('user_uid', $entity->getUserUID(), $viewDatas) ?></td>
<td><?= $viewDatas['service']->getHelper()->getFieldView('history', "", $viewDatas) ?></td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>

View File

@ -10,35 +10,35 @@
<div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;"> <div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;">
<table class="table table-bordered table-hover align-middle"> <table class="table table-bordered table-hover align-middle">
<thead> <thead>
<tr> <tr class="text-center">
<th rowspan="2" class="text-center">고객명</th> <th rowspan="2">고객명</th>
<th colspan="2" class="text-center">일반</th> <th colspan="2">일반</th>
<th colspan="2" class="text-center">방어</th> <th colspan="2">방어</th>
<th colspan="2" class="text-center">전용</th> <th colspan="2">전용</th>
<th colspan="2" class="text-center">대체</th> <th colspan="2">대체</th>
<th colspan="3" class="text-center">테스트</th> <th colspan="3">테스트</th>
<th colspan="3" class="text-center">합계</th> <th colspan="3">합계</th>
</tr> </tr>
<tr> <tr class="text-center">
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">합계</th> <th>합계</th>
<th class="text-center">도쿄</th> <th>도쿄</th>
<th class="text-center">치바</th> <th>치바</th>
<th class="text-center">합계</th> <th>합계</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr class="text-center">
<td class="text-center">PRIME</td> <td>PRIME</td>
<td><?= $viewDatas['totalCounts']['normal']['tokyo'] ?></td> <td><?= $viewDatas['totalCounts']['normal']['tokyo'] ?></td>
<td><?= $viewDatas['totalCounts']['normal']['chiba'] ?></td> <td><?= $viewDatas['totalCounts']['normal']['chiba'] ?></td>
<td><?= $viewDatas['totalCounts']['defence']['tokyo'] ?></td> <td><?= $viewDatas['totalCounts']['defence']['tokyo'] ?></td>
@ -55,9 +55,9 @@
<td><?= $viewDatas['totalCounts']['all_total'] ?></td> <td><?= $viewDatas['totalCounts']['all_total'] ?></td>
</tr> </tr>
</tbody> </tbody>
<tfoot class=" table-light fw-bold"> <tfoot class="table-light fw-bold">
<tr> <tr class="text-center">
<td class="text-center">총합계</td> <td>총합계</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>