public function getcombosofertasAction()
 {
     try {
         $EntityManagerPlugin = $this->EntityManagerPlugin();
         $config = $this->getServiceLocator()->get('Config');
         $GrupoPrecioCabBO = new GrupoPrecioCabBO();
         $ProductoBO = new ProductoBO();
         $GradoBO = new GradoBO();
         $SesionUsuarioPlugin = $this->SesionUsuarioPlugin();
         $SesionUsuarioPlugin->isLoginAdmin();
         $GrupoPrecioCabBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $ProductoBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $GradoBO->setEntityManager($EntityManagerPlugin->getEntityManager());
         $body = $this->getRequest()->getContent();
         $json = json_decode($body, true);
         $grupo_precio_cab_id = $json['grupo_precio_cab_id'];
         $producto_combo_id = $json['producto_combo_id'];
         $variedad_id = null;
         $grado_id = null;
         $producto_combo_1er_elemento = $json['producto_combo_1er_elemento'];
         $producto_opciones = $ProductoBO->getComboProductoId($producto_combo_id, $producto_combo_1er_elemento);
         $variedad_opciones = $GrupoPrecioCabBO->getComboVariedad($producto_combo_id, $variedad_id, $grupo_precio_cab_id);
         $grado_opciones = $GradoBO->getCombo($grado_id);
         $response = new \stdClass();
         $response->producto_opciones = $producto_opciones;
         $response->variedad_opciones = $variedad_opciones;
         $response->grado_opciones = $grado_opciones;
         $response->respuesta_code = 'OK';
         $response->validacion_code = 'OK';
         $json = new JsonModel(get_object_vars($response));
         return $json;
     } catch (\Exception $e) {
         $excepcion_msg = utf8_encode($this->ExcepcionPlugin()->getMessageFormat($e));
         $response = $this->getResponse();
         $response->setStatusCode(500);
         $response->setContent($excepcion_msg);
         return $response;
     }
 }