public function openTask(Request $request) { $data = $request->all(); if ($data['act'] == "opentask") { $taskcode = $data['taskcode']; $ebfunctions = EbFunctions::where(['CODE' => $taskcode])->select('PATH')->first(); $url = $ebfunctions['PATH']; return response()->json(['url' => $url]); } }
public function changeRunTask(Request $request) { $data = $request->all(); $parent_code = $data['PARENT_CODE']; if ($parent_code != 'workflow-fun') { $ebfunctions = EbFunctions::where('USE_FOR', 'like', '%TASK_FUNC%')->where(['PARENT_CODE' => $parent_code])->get(['CODE AS FUNCTION_CODE', 'NAME AS FUNCTION_NAME', 'PATH AS FUNCTION_URL']); } else { $ebfunctions = TmWorkflow::all(['ID AS FUNCTION_CODE', 'NAME AS FUNCTION_NAME']); } return response()->json(array('ebfunctions' => $ebfunctions)); }
public function savehelp(Request $request) { $data = $request->all(); $help = addslashes($data['help']); EbFunctions::where(['CODE' => $data['func_code']])->update(['HELP' => $help]); return response()->json("Ok"); }
public function help($name) { // echo getOneValue("select HELP from eb_functions where CODE='$func_code'"); $help = EbFunctions::where("CODE", $name)->select("HELP")->first(); $help = $help ? $help : ""; return response()->json($help); }