dbms_init...1
This commit is contained in:
parent
e1e5faeeae
commit
7bd8830b28
@ -48,6 +48,11 @@ class ServiceController extends CustomerController
|
|||||||
protected function getResultSuccess(string $message = MESSAGES["SUCCESS"]): RedirectResponse|string
|
protected function getResultSuccess(string $message = MESSAGES["SUCCESS"]): RedirectResponse|string
|
||||||
{
|
{
|
||||||
switch ($this->getAction()) {
|
switch ($this->getAction()) {
|
||||||
|
case 'create':
|
||||||
|
case 'modify':
|
||||||
|
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->getMyAuth(), $message);
|
||||||
|
$result = $this->view($this->entity->getPK());
|
||||||
|
break;
|
||||||
case 'index':
|
case 'index':
|
||||||
$this->control = $this->getControlDatas();
|
$this->control = $this->getControlDatas();
|
||||||
$this->getHelper()->setViewDatas($this->getViewDatas());
|
$this->getHelper()->setViewDatas($this->getViewDatas());
|
||||||
@ -72,7 +77,7 @@ class ServiceController extends CustomerController
|
|||||||
foreach ($this->item_types as $field => $label) {
|
foreach ($this->item_types as $field => $label) {
|
||||||
$entity->setItemEntities(
|
$entity->setItemEntities(
|
||||||
$field,
|
$field,
|
||||||
$this->getServiceItemService()->getEntities(['item_type' => $field])
|
$this->getServiceItemService()->getEntities(['serviceinfo_uid'=>$entity->getPK(),'item_type' => $field])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$entities[] = $entity;
|
$entities[] = $entity;
|
||||||
|
|||||||
@ -567,6 +567,13 @@ abstract class CommonController extends BaseController
|
|||||||
if (!$entity) {
|
if (!$entity) {
|
||||||
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
|
throw new \Exception("{$uid}에 대한 정보를 찾을수 없습니다.");
|
||||||
}
|
}
|
||||||
|
//filter_fields에 해당하는 값이 있을 경우 정의
|
||||||
|
foreach ($this->getFilterFields() as $field) {
|
||||||
|
$value = $this->request->getVar($field);
|
||||||
|
if ($value) {
|
||||||
|
$this->$field = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->entity = $this->view_process($entity);
|
$this->entity = $this->view_process($entity);
|
||||||
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
$this->forms = ['attributes' => ['method' => "post",], 'hiddens' => []];
|
||||||
return $this->getResultSuccess();
|
return $this->getResultSuccess();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user