dbms init...1
This commit is contained in:
parent
aa407973e3
commit
9ec6ad659f
@ -78,7 +78,7 @@ abstract class CommonController extends BaseController
|
|||||||
$result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]);
|
$result = view($this->view_path . $action, ['viewDatas' => $this->getViewDatas()]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$result = redirect()->to($this->myauth->popPreviousUrl())->with('error', $message);
|
$result = redirect()->to($this->_myAuth->popPreviousUrl())->with('error', $message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
@ -199,11 +199,11 @@ abstract class CommonController extends BaseController
|
|||||||
helper(['form']);
|
helper(['form']);
|
||||||
$this->entity = $this->create_process();
|
$this->entity = $this->create_process();
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -242,11 +242,11 @@ abstract class CommonController extends BaseController
|
|||||||
helper(['form']);
|
helper(['form']);
|
||||||
$this->entity = $this->modify_process($uid);
|
$this->entity = $this->modify_process($uid);
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,11 +268,11 @@ abstract class CommonController extends BaseController
|
|||||||
$this->fields = [$field];
|
$this->fields = [$field];
|
||||||
$this->entity = $this->toggle_process($uid);
|
$this->entity = $this->toggle_process($uid);
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -320,11 +320,11 @@ abstract class CommonController extends BaseController
|
|||||||
}
|
}
|
||||||
$this->entities = $this->batchjob_process($entities);
|
$this->entities = $this->batchjob_process($entities);
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -347,11 +347,11 @@ abstract class CommonController extends BaseController
|
|||||||
$entity = $this->getService()->getEntity($uid);
|
$entity = $this->getService()->getEntity($uid);
|
||||||
$this->entity = $this->delete_process($entity);
|
$this->entity = $this->delete_process($entity);
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -390,11 +390,11 @@ abstract class CommonController extends BaseController
|
|||||||
}
|
}
|
||||||
$this->batchjob_delete_process($entities);
|
$this->batchjob_delete_process($entities);
|
||||||
$this->getService()->getModel()->transCommit();
|
$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);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->getService()->getModel()->transRollback();
|
$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());
|
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -496,7 +496,7 @@ abstract class CommonController extends BaseController
|
|||||||
$this->init(__FUNCTION__);
|
$this->init(__FUNCTION__);
|
||||||
$this->entities = $this->index_process();
|
$this->entities = $this->index_process();
|
||||||
// 현재 URL을 스택에 저장
|
// 현재 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']);
|
helper(['form']);
|
||||||
return $this->getResultPageByActon($this->action);
|
return $this->getResultPageByActon($this->action);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user