diff --git a/app/Controllers/Admin/Customer/AccountController.php b/app/Controllers/Admin/Customer/AccountController.php index 082107d..378b2c1 100644 --- a/app/Controllers/Admin/Customer/AccountController.php +++ b/app/Controllers/Admin/Customer/AccountController.php @@ -17,48 +17,6 @@ class AccountController extends CustomerController } $this->addActionPaths('account'); } - protected function action_init_process(string $action): void - { - $fields = [ - "clientinfo_uid", - "bank", - "title", - "alias", - "issue_at", - "amount", - "status", - "content" - ]; - $filters = [ - "clientinfo_uid", - "bank", - "status", - ]; - $indexFilter = $filters; - $batchjobFilters = ['status']; - parent::action_init_process($action); - switch ($action) { - case 'create': - case 'create_form': - case 'modify': - case 'modify_form': - break; - case 'view': - $fields = [...$fields, 'created_at']; - break; - case 'index': - case 'download': - $fields = [...$fields, 'created_at']; - break; - } - $this->service->getFormService()->setFormFields($fields); - $this->service->getFormService()->setFormRules($action, $fields); - $this->service->getFormService()->setFormFilters($filters); - $this->service->getFormService()->setFormOptions($filters); - $this->service->getFormService()->setIndexFilters($indexFilter); - $this->service->getFormService()->setBatchjobFilters($batchjobFilters); - parent::action_init_process($action); - } protected function getEntityClass(): string { return AccountEntity::class; diff --git a/app/Services/Auth/GoogleService.php b/app/Services/Auth/GoogleService.php index 5b02f5a..788fb8c 100644 --- a/app/Services/Auth/GoogleService.php +++ b/app/Services/Auth/GoogleService.php @@ -35,7 +35,6 @@ class GoogleService extends AuthService } public function action_init_process(string $action): void { - parent::action_init_process($action); $fields = ['access_code']; $filters = []; switch ($action) { diff --git a/app/Services/Auth/LocalService.php b/app/Services/Auth/LocalService.php index c82db81..e99a84e 100644 --- a/app/Services/Auth/LocalService.php +++ b/app/Services/Auth/LocalService.php @@ -35,7 +35,6 @@ class LocalService extends AuthService } public function action_init_process(string $action): void { - parent::action_init_process($action); $fields = ['id', 'passwd']; $filters = []; switch ($action) { diff --git a/app/Services/Customer/AccountService.php b/app/Services/Customer/AccountService.php index 1382359..e5ddb00 100644 --- a/app/Services/Customer/AccountService.php +++ b/app/Services/Customer/AccountService.php @@ -50,6 +50,46 @@ class AccountService extends CustomerService } return $this->_helper; } + public function action_init_process(string $action): void + { + $fields = [ + "clientinfo_uid", + "bank", + "title", + "alias", + "issue_at", + "amount", + "status", + "content" + ]; + $filters = [ + "clientinfo_uid", + "bank", + "status", + ]; + $indexFilter = $filters; + $batchjobFilters = ['status']; + switch ($action) { + case 'create': + case 'create_form': + case 'modify': + case 'modify_form': + break; + case 'view': + $fields = [...$fields, 'created_at']; + break; + case 'index': + case 'download': + $fields = [...$fields, 'created_at']; + break; + } + $this->getFormService()->setFormFields($fields); + $this->getFormService()->setFormRules($action, $fields); + $this->getFormService()->setFormFilters($filters); + $this->getFormService()->setFormOptions($filters); + $this->getFormService()->setIndexFilters($indexFilter); + $this->getFormService()->setBatchjobFilters($batchjobFilters); + } //기본 기능부분 protected function getEntity_process(mixed $entity): AccountEntity { diff --git a/app/Services/Part/SOFTWAREService.php b/app/Services/Part/SOFTWAREService.php index ef8b82e..0dad4c0 100644 --- a/app/Services/Part/SOFTWAREService.php +++ b/app/Services/Part/SOFTWAREService.php @@ -69,7 +69,6 @@ class SOFTWAREService extends PartService $this->getFormService()->setFormOptions($filters); $this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setBatchjobFilters($batchjobFilters); - parent::action_init_process($action); } public function getHelper(): SOFTWAREHelper { diff --git a/app/Services/Part/SWITCHService.php b/app/Services/Part/SWITCHService.php index adaa503..84824ee 100644 --- a/app/Services/Part/SWITCHService.php +++ b/app/Services/Part/SWITCHService.php @@ -102,7 +102,6 @@ class SWITCHService extends PartService $this->getFormService()->setFormOptions($filters); $this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setBatchjobFilters($batchjobFilters); - parent::action_init_process($action); } //기본 기능부분 protected function getEntity_process(mixed $entity): SWITCHEntity diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index 517aba6..5d46e45 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -112,7 +112,6 @@ class PaymentService extends CommonService $this->getFormService()->setFormOptions($filters); $this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setBatchjobFilters($batchjobFilters); - parent::action_init_process($action); } //기본 기능부분 protected function getEntity_process(mixed $entity): PaymentEntity