dbmsv4 init...1
This commit is contained in:
parent
92caea4ba8
commit
a0021cc5f8
@ -104,7 +104,7 @@ abstract class AbstractCRUDController extends AbstractWebController
|
|||||||
}
|
}
|
||||||
$this->addViewDatas('entity', $entity);
|
$this->addViewDatas('entity', $entity);
|
||||||
$action = __FUNCTION__;
|
$action = __FUNCTION__;
|
||||||
$this->action_init_process($action, [], $entity);
|
$this->action_init_process($action);
|
||||||
return $this->modify_form_result_process($action);
|
return $this->modify_form_result_process($action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return $this->action_redirect_process('error', "{$this->getTitle()}에서 {$uid} 수정폼 오류:" . $e->getMessage());
|
return $this->action_redirect_process('error', "{$this->getTitle()}에서 {$uid} 수정폼 오류:" . $e->getMessage());
|
||||||
|
|||||||
@ -76,7 +76,7 @@ abstract class AbstractWebController extends Controller
|
|||||||
/**
|
/**
|
||||||
* 모든 액션 실행 전 공통 초기화 작업
|
* 모든 액션 실행 전 공통 초기화 작업
|
||||||
*/
|
*/
|
||||||
protected function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
protected function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$this->addViewDatas('action', $action);
|
$this->addViewDatas('action', $action);
|
||||||
$this->addViewDatas('authContext', $this->getAuthContext());
|
$this->addViewDatas('authContext', $this->getAuthContext());
|
||||||
|
|||||||
@ -17,10 +17,10 @@ abstract class AdminController extends CommonController
|
|||||||
$this->addActionPaths($this->_layout);
|
$this->addActionPaths($this->_layout);
|
||||||
$this->layouts = LAYOUTS[$this->_layout];
|
$this->layouts = LAYOUTS[$this->_layout];
|
||||||
}
|
}
|
||||||
protected function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
protected function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$this->service->action_init_process($action, $formDatas, $entity);
|
$this->service->action_init_process($action, $formDatas);
|
||||||
parent::action_init_process($action, $formDatas, $entity);
|
parent::action_init_process($action, $formDatas);
|
||||||
$this->addViewDatas('layout', $this->layouts);
|
$this->addViewDatas('layout', $this->layouts);
|
||||||
$this->addViewDatas('title', $this->getTitle());
|
$this->addViewDatas('title', $this->getTitle());
|
||||||
$this->addViewDatas('helper', $this->service->getHelper());
|
$this->addViewDatas('helper', $this->service->getHelper());
|
||||||
|
|||||||
@ -17,10 +17,10 @@ class Home extends AbstractWebController
|
|||||||
}
|
}
|
||||||
$this->addActionPaths('home');
|
$this->addActionPaths('home');
|
||||||
}
|
}
|
||||||
protected function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
protected function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
// $this->service->action_init_process($action, $entity);
|
// $this->service->action_init_process($action, $entity);
|
||||||
parent::action_init_process($action, $formDatas, $entity);
|
parent::action_init_process($action, $formDatas);
|
||||||
$this->addViewDatas('layout', LAYOUTS['admin']);
|
$this->addViewDatas('layout', LAYOUTS['admin']);
|
||||||
}
|
}
|
||||||
//Index,FieldForm관련
|
//Index,FieldForm관련
|
||||||
|
|||||||
@ -8,7 +8,6 @@ use RuntimeException;
|
|||||||
abstract class CommonForm
|
abstract class CommonForm
|
||||||
{
|
{
|
||||||
private array $_attributes = [];
|
private array $_attributes = [];
|
||||||
private array $_formDatas = [];
|
|
||||||
private array $_formFields = [];
|
private array $_formFields = [];
|
||||||
private array $_formRules = [];
|
private array $_formRules = [];
|
||||||
private array $_formFilters = [];
|
private array $_formFilters = [];
|
||||||
@ -29,19 +28,6 @@ abstract class CommonForm
|
|||||||
}
|
}
|
||||||
return $this->_attributes[$key];
|
return $this->_attributes[$key];
|
||||||
}
|
}
|
||||||
final public function setFormDatas(array $formDatas): void
|
|
||||||
{
|
|
||||||
$this->_formDatas = $formDatas;
|
|
||||||
}
|
|
||||||
//$fields 매치된것만 반환, []->전체
|
|
||||||
final public function getFormDatas(array $fields = []): array
|
|
||||||
{
|
|
||||||
if (empty($fields)) {
|
|
||||||
return $this->_formDatas;
|
|
||||||
}
|
|
||||||
// _formDatas 키를 비교하여 교집합을 반환합니다. $fields에 지정된 필드 정의만 추출됩니다.
|
|
||||||
return array_intersect_key($this->_formDatas, array_flip($fields));
|
|
||||||
}
|
|
||||||
final public function setFormFields(array $fields): void
|
final public function setFormFields(array $fields): void
|
||||||
{
|
{
|
||||||
foreach ($fields as $field) {
|
foreach ($fields as $field) {
|
||||||
|
|||||||
@ -53,7 +53,7 @@ class BoardService extends CommonService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
'category',
|
'category',
|
||||||
@ -108,11 +108,10 @@ class BoardService extends CommonService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,7 @@ abstract class CommonService
|
|||||||
{
|
{
|
||||||
return $isArray ? $this->_classPaths : implode($delimeter, $this->_classPaths);
|
return $isArray ? $this->_classPaths : implode($delimeter, $this->_classPaths);
|
||||||
}
|
}
|
||||||
abstract public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void;
|
abstract public function action_init_process(string $action, array $formDatas = []): void;
|
||||||
/**
|
/**
|
||||||
* 단일 엔티티를 조회합니다.
|
* 단일 엔티티를 조회합니다.
|
||||||
* @return CommonEntity|null CommonEntity 인스턴스 또는 찾지 못했을 경우 null
|
* @return CommonEntity|null CommonEntity 인스턴스 또는 찾지 못했을 경우 null
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class AccountService extends CustomerService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"clientinfo_uid",
|
"clientinfo_uid",
|
||||||
@ -89,11 +89,10 @@ class AccountService extends CustomerService
|
|||||||
$fields = [...$fields, 'created_at'];
|
$fields = [...$fields, 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class ClientService extends CustomerService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
'site',
|
'site',
|
||||||
@ -98,11 +98,10 @@ class ClientService extends CustomerService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class CouponService extends CustomerService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"clientinfo_uid",
|
"clientinfo_uid",
|
||||||
@ -83,11 +83,10 @@ class CouponService extends CustomerService
|
|||||||
$fields = [...$fields, 'created_at'];
|
$fields = [...$fields, 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class PointService extends CustomerService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"clientinfo_uid",
|
"clientinfo_uid",
|
||||||
@ -83,11 +83,10 @@ class PointService extends CustomerService
|
|||||||
$fields = [...$fields, 'created_at'];
|
$fields = [...$fields, 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,7 +56,7 @@ class ServiceService extends CustomerService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"site",
|
"site",
|
||||||
@ -115,11 +115,10 @@ class ServiceService extends CustomerService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class LineService extends EquipmentService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"type",
|
"type",
|
||||||
@ -84,11 +84,10 @@ class LineService extends EquipmentService
|
|||||||
$fields = [...$fields, 'status', 'created_at'];
|
$fields = [...$fields, 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,7 +56,7 @@ class ServerPartService extends EquipmentService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"serverinfo_uid",
|
"serverinfo_uid",
|
||||||
@ -93,11 +93,10 @@ class ServerPartService extends EquipmentService
|
|||||||
$fields = [...$fields, 'created_at'];
|
$fields = [...$fields, 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class ServerService extends EquipmentService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"code",
|
"code",
|
||||||
@ -106,11 +106,10 @@ class ServerService extends EquipmentService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class MylogService extends CommonService implements PipelineStepInterface
|
|||||||
}
|
}
|
||||||
return $this->_form;
|
return $this->_form;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = ['title', 'content'];
|
$fields = ['title', 'content'];
|
||||||
$filters = [];
|
$filters = [];
|
||||||
@ -62,11 +62,10 @@ class MylogService extends CommonService implements PipelineStepInterface
|
|||||||
$fields = [...$fields, 'status', 'created_at'];
|
$fields = [...$fields, 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class CPUService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"title",
|
"title",
|
||||||
@ -81,11 +81,10 @@ class CPUService extends PartService
|
|||||||
$fields = [...$fields, 'status', 'created_at'];
|
$fields = [...$fields, 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class CSService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"type",
|
"type",
|
||||||
@ -108,11 +108,10 @@ class CSService extends PartService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class DISKService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"title",
|
"title",
|
||||||
@ -82,11 +82,10 @@ class DISKService extends PartService
|
|||||||
$fields = [...$fields, "format", 'status', 'created_at'];
|
$fields = [...$fields, "format", 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class IPService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"lineinfo_uid",
|
"lineinfo_uid",
|
||||||
@ -99,11 +99,10 @@ class IPService extends PartService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class RAMService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"title",
|
"title",
|
||||||
@ -81,11 +81,10 @@ class RAMService extends PartService
|
|||||||
$fields = [...$fields, 'status', 'created_at'];
|
$fields = [...$fields, 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ class SOFTWAREService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_form;
|
return $this->_form;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"title",
|
"title",
|
||||||
@ -67,11 +67,10 @@ class SOFTWAREService extends PartService
|
|||||||
$fields = [...$fields, 'status', 'created_at'];
|
$fields = [...$fields, 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class SWITCHService extends PartService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"code",
|
"code",
|
||||||
@ -100,11 +100,10 @@ class SWITCHService extends PartService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class PaymentService extends CommonService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
"serviceinfo_uid",
|
"serviceinfo_uid",
|
||||||
@ -119,11 +119,10 @@ class PaymentService extends CommonService
|
|||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class UserService extends CommonService
|
|||||||
}
|
}
|
||||||
return $this->_helper;
|
return $this->_helper;
|
||||||
}
|
}
|
||||||
public function action_init_process(string $action, array $formDatas = [], ?object $entity = null): void
|
public function action_init_process(string $action, array $formDatas = []): void
|
||||||
{
|
{
|
||||||
$fields = [
|
$fields = [
|
||||||
'id',
|
'id',
|
||||||
@ -84,11 +84,10 @@ class UserService extends CommonService
|
|||||||
$fields = ['id', 'name', 'email', 'mobile', 'role', 'status', 'created_at'];
|
$fields = ['id', 'name', 'email', 'mobile', 'role', 'status', 'created_at'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->getFormService()->setFormDatas($formDatas);
|
|
||||||
$this->getFormService()->setFormFields($fields);
|
$this->getFormService()->setFormFields($fields);
|
||||||
$this->getFormService()->setFormRules($action, $fields);
|
$this->getFormService()->setFormRules($action, $fields);
|
||||||
$this->getFormService()->setFormFilters($filters);
|
$this->getFormService()->setFormFilters($filters);
|
||||||
$this->getFormService()->setFormOptions($action, $filters, $entity);
|
$this->getFormService()->setFormOptions($action, $filters, $formDatas);
|
||||||
$this->getFormService()->setIndexFilters($indexFilter);
|
$this->getFormService()->setIndexFilters($indexFilter);
|
||||||
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
$this->getFormService()->setBatchjobFilters($batchjobFilters);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user