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

28 lines
690 B
PHP

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