public function executeSaveLabMatrix(\Library\HttpRequest $rq) { // Init result $result = $this->InitResponseWS(); //Our current Session $sessionTask = \Applications\PMTool\Helpers\TaskHelper::GetCurrentSessionTask($this->user()); $sess_task_id = $sessionTask[\Library\Enums\SessionKeys::TaskObj]->task_id(); $result_save = \Applications\PMTool\Helpers\TaskAnalyteMatrixHelper::SaveAnalyteMatrixForTask($this, $sess_task_id, $this->dataPost['lab_matrix'], 'Lab'); $this->SendResponseWS($result, array("resx_file" => \Applications\PMTool\Resources\Enums\ResxFileNameKeys::Task, "resx_key" => $this->action(), "step" => $result_save ? "success" : "error")); }