Esempio n. 1
0
 /**
  * 编辑工作流入库处理
  *
  * @access private
  */
 private function updateWorkflow()
 {
     $params = new WorkflowSave();
     $manager = new Process();
     $params->setAttributes((array) Request::input('data'));
     if (!$manager->editWorkflow($params)) {
         return Js::error($manager->getErrorMessage());
     }
     $this->setActionLog();
     return Js::locate(route('workflow.index.index'), 'parent');
 }
Esempio n. 2
0
 /**
  * 编辑工作流入库处理
  *
  * @access private
  */
 private function updateDatasToDatabase()
 {
     $data = Request::input('data');
     if (!$data or !is_array($data)) {
         return Js::error(Lang::get('common.illegal_operation'));
     }
     $params = new \App\Services\Admin\Workflow\Param\WorkflowSave();
     $params->setAttributes($data);
     $manager = new Process();
     if ($manager->editWorkflow($params)) {
         $this->setActionLog();
         return Js::locate(R('common', 'workflow.index.index'), 'parent');
     }
     return Js::error($manager->getErrorMessage());
 }