dbmsv4 init...1
This commit is contained in:
parent
1f7cee6585
commit
5748324945
@ -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;
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user