dbmsv2 init...1
This commit is contained in:
parent
2cfd1a00d4
commit
f633097a62
@ -32,6 +32,11 @@ class ServerHelper extends EquipmentHelper
|
||||
public function getFieldView(string $field, mixed $value, array $viewDatas, array $extras = []): string|null
|
||||
{
|
||||
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 'format_at':
|
||||
$value = $value ? date("Y-m-d", strtotime($value)) : "";
|
||||
|
||||
@ -132,7 +132,7 @@
|
||||
<i class="fa fa-support fa-5x"></i>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
@ -14,10 +14,12 @@
|
||||
<!-- Layout Right Start -->
|
||||
<?= $this->include("{$viewDatas['layout']}/welcome/banner"); ?>
|
||||
<div class="row align-items-start" style="padding-top:20px;">
|
||||
<div class="col-7">
|
||||
<div class="col">
|
||||
<?= $this->include("{$viewDatas['layout']}/welcome/total"); ?>
|
||||
</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"); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -10,26 +10,31 @@
|
||||
<div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;">
|
||||
<table class="table table-bordered table-hover align-middle">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="text-center">서비스코드</th>
|
||||
<th class="text-center">업체명</th>
|
||||
<th class="text-center">구분</th>
|
||||
<th class="text-center">장비번호</th>
|
||||
<th class="text-center">IP정보</th>
|
||||
<th class="text-center">등록자</th>
|
||||
<tr class="text-center">
|
||||
<th>서비스코드</th>
|
||||
<th>업체명</th>
|
||||
<th>구분</th>
|
||||
<th>장비번호</th>
|
||||
<th>스위치정보</th>
|
||||
<th>IP정보</th>
|
||||
<th>CS정보</th>
|
||||
<th>등록자</th>
|
||||
<th>비고</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($viewDatas['newServiceEntities'] as $entity): ?>
|
||||
<?php $viewDatas['entity'] = $entity ?>
|
||||
<tr>
|
||||
<td><?= $viewDatas['service']->getHelper()->getListButton('new_service_view', '', $viewDatas, ['label' => $entity->getTitle()]) ?></td>
|
||||
<tr class="text-center">
|
||||
<td><?= $entity->getCode() ?></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('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('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('history', "", $viewDatas) ?></td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
|
||||
@ -10,35 +10,35 @@
|
||||
<div style="border-left: 1px solid black; border-right: 1px solid black; padding:20px;">
|
||||
<table class="table table-bordered table-hover align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2" class="text-center">고객명</th>
|
||||
<th colspan="2" class="text-center">일반</th>
|
||||
<th colspan="2" class="text-center">방어</th>
|
||||
<th colspan="2" class="text-center">전용</th>
|
||||
<th colspan="2" class="text-center">대체</th>
|
||||
<th colspan="3" class="text-center">테스트</th>
|
||||
<th colspan="3" class="text-center">합계</th>
|
||||
<tr class="text-center">
|
||||
<th rowspan="2">고객명</th>
|
||||
<th colspan="2">일반</th>
|
||||
<th colspan="2">방어</th>
|
||||
<th colspan="2">전용</th>
|
||||
<th colspan="2">대체</th>
|
||||
<th colspan="3">테스트</th>
|
||||
<th colspan="3">합계</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">합계</th>
|
||||
<th class="text-center">도쿄</th>
|
||||
<th class="text-center">치바</th>
|
||||
<th class="text-center">합계</th>
|
||||
<tr class="text-center">
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>합계</th>
|
||||
<th>도쿄</th>
|
||||
<th>치바</th>
|
||||
<th>합계</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-center">PRIME</td>
|
||||
<tr class="text-center">
|
||||
<td>PRIME</td>
|
||||
<td><?= $viewDatas['totalCounts']['normal']['tokyo'] ?></td>
|
||||
<td><?= $viewDatas['totalCounts']['normal']['chiba'] ?></td>
|
||||
<td><?= $viewDatas['totalCounts']['defence']['tokyo'] ?></td>
|
||||
@ -55,9 +55,9 @@
|
||||
<td><?= $viewDatas['totalCounts']['all_total'] ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot class=" table-light fw-bold">
|
||||
<tr>
|
||||
<td class="text-center">총합계</td>
|
||||
<tfoot class="table-light fw-bold">
|
||||
<tr class="text-center">
|
||||
<td>총합계</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user