Exemplo n.º 1
0
 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]);
     }
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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");
 }
Exemplo n.º 4
0
 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);
 }