28 lines
687 B
PHP
28 lines
687 B
PHP
<?php
|
|
|
|
namespace App\Services\Equipment\Part;
|
|
|
|
use App\Services\Equipment\EquipmentService;
|
|
|
|
abstract class PartService extends EquipmentService
|
|
{
|
|
public 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;
|
|
}
|
|
}
|