dbms init...1

This commit is contained in:
최준흠 2025-05-03 21:20:47 +09:00
parent aa407973e3
commit 9ec6ad659f

View File

@ -78,7 +78,7 @@ abstract class CommonController extends BaseController
$result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]);
break;
default:
$result = redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
$result = redirect()->to($this->_myAuth->popPreviousUrl())->with('error', $message);
break;
}
return $result;
@ -199,11 +199,11 @@ abstract class CommonController extends BaseController
helper(['form']);
$this->entity = $this->create_process();
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -242,11 +242,11 @@ abstract class CommonController extends BaseController
helper(['form']);
$this->entity = $this->modify_process($uid);
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -268,11 +268,11 @@ abstract class CommonController extends BaseController
$this->fields = [$field];
$this->entity = $this->toggle_process($uid);
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -320,11 +320,11 @@ abstract class CommonController extends BaseController
}
$this->entities = $this->batchjob_process($entities);
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -347,11 +347,11 @@ abstract class CommonController extends BaseController
$entity = $this->getService()->getEntity($uid);
$this->entity = $this->delete_process($entity);
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -390,11 +390,11 @@ abstract class CommonController extends BaseController
}
$this->batchjob_delete_process($entities);
$this->getService()->getModel()->transCommit();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["SUCCESS"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["SUCCESS"]);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {
$this->getService()->getModel()->transRollback();
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->myauth, MESSAGES["FAILED"]);
$this->getMyLogService()->save($this->getService(), __FUNCTION__, $this->_myAuth, MESSAGES["FAILED"]);
return redirect()->back()->withInput()->with('error', $e->getMessage());
}
}
@ -496,7 +496,7 @@ abstract class CommonController extends BaseController
$this->init(__FUNCTION__);
$this->entities = $this->index_process();
// 현재 URL을 스택에 저장
$this->myauth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
$this->_myAuth->pushCurrentUrl($this->request->getUri()->getPath() . ($this->request->getUri()->getQuery() ? "?" . $this->request->getUri()->getQuery() : ""));
helper(['form']);
return $this->getResultPageByActon($this->action);
} catch (\Exception $e) {