dbmsv2/app/Services/Equipment/PartService.php
2025-08-19 14:11:18 +09:00

29 lines
737 B
PHP

<?php
namespace App\Services\Equipment;
use App\Models\Equipment\PartModel;
use App\Services\Equipment\EquipmentService;
abstract class PartService extends EquipmentService
{
protected function __construct()
{
parent::__construct(new PartModel());
$this->addClassName('Part');
}
//FieldForm관련용
public function getFormFieldOption(string $field, array $options = []): array
{
switch ($field) {
case 'clientinfo_code':
$options = $this->getClientService()->getEntities();
break;
default:
$options = parent::getFormFieldOption($field, $options);
break;
}
return $options;
}
}