diff --git a/app/Cells/Equipment/ServerCell.php b/app/Cells/Equipment/ServerCell.php index 9bd81df..6809b66 100644 --- a/app/Cells/Equipment/ServerCell.php +++ b/app/Cells/Equipment/ServerCell.php @@ -57,16 +57,6 @@ class ServerCell extends EquipmentCell ] ]); } - public function stock(array $params): string - { - $template = array_key_exists('template', $params) ? $params['template'] : 'stock'; - return view('cells/server/' . $template, [ - 'partCellDatas' => [ - 'rows' => $this->getService()->getStockCount(), - ], - ]); - } - public function detail(array $params): string { $this->getService()->action_init_process(__FUNCTION__); diff --git a/app/Cells/Part/CHASSISCell.php b/app/Cells/Part/CHASSISCell.php new file mode 100644 index 0000000..75bcbb3 --- /dev/null +++ b/app/Cells/Part/CHASSISCell.php @@ -0,0 +1,23 @@ + [ + 'entities' => $this->getService()->getEntities(), + ], + ]); + } +} diff --git a/app/Views/admin/welcome/stock.php b/app/Views/admin/welcome/stock.php index d504212..c43d9da 100644 --- a/app/Views/admin/welcome/stock.php +++ b/app/Views/admin/welcome/stock.php @@ -15,7 +15,7 @@ 저장장치 재고 - + diff --git a/app/Views/cells/part/chassis_stock.php b/app/Views/cells/part/chassis_stock.php new file mode 100644 index 0000000..b067153 --- /dev/null +++ b/app/Views/cells/part/chassis_stock.php @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + +
항목사용가능총재고
+ getTitle(), + 'disk_modify', + [ + "data-src" => "admin/part/chassis/modify/{$entity->getPK()}", + "data-bs-toggle" => "modal", + "data-bs-target" => "#modal_action_form", + "class" => "text-primary form-label-sm", + ] + ); + ?> + getUsed() ?>getAvailable() ?>getStock() ?>
\ No newline at end of file diff --git a/app/Views/cells/server/stock.php b/app/Views/cells/server/stock.php deleted file mode 100644 index 025beb5..0000000 --- a/app/Views/cells/server/stock.php +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - $label): ?> - - - - - - - -
항목사용가능총재고
\ No newline at end of file