dbmsv3 init...1

This commit is contained in:
choi.jh 2025-10-31 08:55:08 +09:00
parent e81d4a78b2
commit 573e62423a
4 changed files with 8 additions and 4 deletions

View File

@ -742,4 +742,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-10-30 18:57:16 -- Dump completed on 2025-10-30 19:06:08

View File

@ -24,6 +24,6 @@ class DISKEntity extends PartEntity
} }
final public function getAvailable(): int final public function getAvailable(): int
{ {
return $this->getStock() - $this->getUsed(); return $this->getStock() - $this->getUsed() - $this->getFormat();
} }
} }

View File

@ -1,7 +1,8 @@
<table class="table table-bordered table-hover table-striped"> <table class="table table-bordered table-hover table-striped">
<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>
</tr> </tr>
<?php foreach ($partCellDatas['entities'] as $entity): ?> <?php foreach ($partCellDatas['entities'] as $entity): ?>
@ -21,6 +22,7 @@
); );
?> ?>
</td> </td>
<td class="text-center" nowrap width="20%"><?= $entity->getUsed() ?></td>
<td class="text-center" nowrap width="20%"><?= $entity->getAvailable() ?></td> <td class="text-center" nowrap width="20%"><?= $entity->getAvailable() ?></td>
<td nowrap width="20%"><?= $partCellDatas['service']->getHelper()->getFieldView('format', $entity->format, $partCellDatas) ?></td> <td nowrap width="20%"><?= $partCellDatas['service']->getHelper()->getFieldView('format', $entity->format, $partCellDatas) ?></td>
</tr> </tr>

View File

@ -1,7 +1,8 @@
<table class="table table-bordered table-hover table-striped"> <table class="table table-bordered table-hover table-striped">
<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>
</tr> </tr>
<?php foreach ($partCellDatas['entities'] as $entity): ?> <?php foreach ($partCellDatas['entities'] as $entity): ?>
<?php $partCellDatas['entity'] = $entity; ?> <?php $partCellDatas['entity'] = $entity; ?>
@ -20,6 +21,7 @@
); );
?> ?>
</td> </td>
<td class="text-center" nowrap width="30%"><?= $entity->getUsed() ?></td>
<td class="text-center" nowrap width="30%"><?= $entity->getAvailable() ?></td> <td class="text-center" nowrap width="30%"><?= $entity->getAvailable() ?></td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>