예제 #1
0
 public function postCompletarofsc()
 {
     $activityId = Input::get('aid');
     $codactu = Input::get('codactu');
     $save["aid"] = $activityId;
     $activity = new Activity();
     $response = $activity->completeActivity($activityId);
     $resultCode = $response->data->result_code;
     if ($resultCode == 0) {
         $actu = \Gestion::getCargar($codactu);
         $actuObj = $actu["datos"][0];
         $actuArray = (array) $actuObj;
         //$actuArray['estado_agendamiento']="3-0";
         $actuArray['gestion_id'] = $actuObj->id;
         $actuArray['estado'] = 6;
         $actuArray['motivo'] = 3;
         $actuArray['submotivo'] = 12;
         Input::replace($actuArray);
         $save = $this->_gestionMovimientoController->postRegistrar();
         $datos = array();
         $datos['aid'] = $activityId;
         $datos['envio_ofsc'] = 0;
         $datos['gestion_id'] = $save['gestion_id'];
         $datos['gestion_movimiento_id'] = $save['gestion_movimiento_id'];
         $datos['estado_ofsc_id'] = 6;
         GestionMovimiento::OfscUpdate($datos);
         $save["msj"] = "Registro y envío a OFSC correcto.";
     } else {
         $save["rst"] = 2;
         $save['error_msg'] = $response->data->error_msg;
     }
     return json_encode($save);
 }
예제 #2
0
 public function getTeststartactivity()
 {
     $activityId = 391;
     $activity = new Activity();
     $response = $activity->startActivity($activityId);
     print_r($response);
 }