dbmsv4 init...1

This commit is contained in:
최준흠 2025-11-20 17:39:06 +09:00
parent 1f7cee6585
commit 5748324945
7 changed files with 40 additions and 47 deletions

View File

@ -17,48 +17,6 @@ class AccountController extends CustomerController
} }
$this->addActionPaths('account'); $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 protected function getEntityClass(): string
{ {
return AccountEntity::class; return AccountEntity::class;

View File

@ -35,7 +35,6 @@ class GoogleService extends AuthService
} }
public function action_init_process(string $action): void public function action_init_process(string $action): void
{ {
parent::action_init_process($action);
$fields = ['access_code']; $fields = ['access_code'];
$filters = []; $filters = [];
switch ($action) { switch ($action) {

View File

@ -35,7 +35,6 @@ class LocalService extends AuthService
} }
public function action_init_process(string $action): void public function action_init_process(string $action): void
{ {
parent::action_init_process($action);
$fields = ['id', 'passwd']; $fields = ['id', 'passwd'];
$filters = []; $filters = [];
switch ($action) { switch ($action) {

View File

@ -50,6 +50,46 @@ class AccountService extends CustomerService
} }
return $this->_helper; 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 protected function getEntity_process(mixed $entity): AccountEntity
{ {

View File

@ -69,7 +69,6 @@ class SOFTWAREService extends PartService
$this->getFormService()->setFormOptions($filters); $this->getFormService()->setFormOptions($filters);
$this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setIndexFilters($indexFilter);
$this->getFormService()->setBatchjobFilters($batchjobFilters); $this->getFormService()->setBatchjobFilters($batchjobFilters);
parent::action_init_process($action);
} }
public function getHelper(): SOFTWAREHelper public function getHelper(): SOFTWAREHelper
{ {

View File

@ -102,7 +102,6 @@ class SWITCHService extends PartService
$this->getFormService()->setFormOptions($filters); $this->getFormService()->setFormOptions($filters);
$this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setIndexFilters($indexFilter);
$this->getFormService()->setBatchjobFilters($batchjobFilters); $this->getFormService()->setBatchjobFilters($batchjobFilters);
parent::action_init_process($action);
} }
//기본 기능부분 //기본 기능부분
protected function getEntity_process(mixed $entity): SWITCHEntity protected function getEntity_process(mixed $entity): SWITCHEntity

View File

@ -112,7 +112,6 @@ class PaymentService extends CommonService
$this->getFormService()->setFormOptions($filters); $this->getFormService()->setFormOptions($filters);
$this->getFormService()->setIndexFilters($indexFilter); $this->getFormService()->setIndexFilters($indexFilter);
$this->getFormService()->setBatchjobFilters($batchjobFilters); $this->getFormService()->setBatchjobFilters($batchjobFilters);
parent::action_init_process($action);
} }
//기본 기능부분 //기본 기능부분
protected function getEntity_process(mixed $entity): PaymentEntity protected function getEntity_process(mixed $entity): PaymentEntity