Пример #1
1
			<h1>Danh bạ khách sạn</h1>
		</div><!--/.page-header-->
		<div class="row-fluid">
			<div class="span12">
				<a href="<?php 
echo PIUrl::createUrl('/admin/hotel/create/');
?>
" class="btn btn-primary">
					<i class="icon-ok bigger-110"></i>
					<?php 
echo translate('Thêm');
?>
				</a>
				<form method="post">
					<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'hotel-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'htmlOptions' => array(), 'itemsCssClass' => 'table table-striped table-bordered table-hover', 'emptyText' => 'Không có kết quả hiển thị', 'selectableRows' => 2, 'summaryText' => 'Hiển thị {start} - {end} của {count} kết quả ', 'columns' => array(array('id' => 'id', 'class' => 'CCheckBoxColumn'), array('header' => 'STT', 'value' => '$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)'), 'image' => array('name' => 'image', 'type' => 'raw', 'filter' => false, 'value' => 'CHtml::image(getImage($data->image,"80", "60" ))', 'htmlOptions' => array("class" => "image")), 'name', 'type' => array('name' => 'type', 'type' => 'raw', 'filter' => CHtml::dropDownList('Hotel[type]', '', Hotel::model()->getTypeHotel()), 'value' => 'Hotel::model()->getType($data->type)'), 'pro.title' => array('name' => 'provinces', 'type' => 'raw', 'value' => 'isset($data->pro->title) ? $data->pro->title :  ""', 'filter' => CHtml::dropDownList('Hotel[provinces]', '', Provinces::model()->getData())), 'ward.title' => array('name' => 'wards', 'type' => 'raw', 'value' => 'isset($data->ward->title) ? $data->ward->title :  ""', 'filter' => CHtml::dropDownList('Hotel[wards]', '', Wards::model()->getData())), 'address' => array('name' => 'address', 'type' => 'raw', 'value' => '$data->address', 'filter' => false), array('header' => '<input type="button" name="deleteAll" class="deleteAll btn btn-mini btn-danger icon-trash bigger-120" value="Xóa" />', 'class' => 'CButtonColumn', 'template' => '{update}{delete}', 'buttons' => array('update' => array('options' => array('class' => 'btn btn-mini btn-info icon-edit bigger-120', 'title' => 'Sửa tin tức'), 'imageUrl' => false, 'label' => false), 'delete' => array('label' => false, 'options' => array('class' => 'btn btn-mini btn-danger icon-trash bigger-120', 'title' => 'Xóa tin tức'), 'imageUrl' => false)), 'deleteConfirmation' => 'Bạn có muốn xóa tin tức này không?'))));
?>
			</form>	
			</div><!--/.span-->
		</div><!--/.row-fluid-->
	</div><!--/.page-content-->
</div><!--/.main-content-->
<style>
.grid-view .filters input, .grid-view .filters select {
    width: 92%;
}
.image img{
	width:80px;
	height:60px;
}
.btn-info{margin-right:3px;}
Пример #2
0
 public function book()
 {
     //if we don't have a hotel OR we moved to another hotel
     if ($this->getCurrent() == null || $this->getCurrent()->hotel->id != $this->hotel->getId()) {
         //if we don't have a hotel AND we moved to another hotel
         if ($this->getCurrent() != null and $this->getCurrent()->hotel->id != $this->hotel->getId()) {
             Yii::trace('Trying to restore hotelBooker from db', 'HotelBookerComponent.book');
             $this->hotelBooker = HotelBooker::model()->findByAttributes(array('hotelResultKey' => $this->hotel->getId()));
             if ($this->hotelBooker) {
                 $this->hotelBooker->setHotelBookerComponent($this);
                 Yii::trace('Done', 'HotelBookerComponent.book');
             } else {
                 Yii::trace('No such record', 'HotelBookerComponent.book');
             }
         }
         if ($this->hotelBooker == null) {
             Yii::trace('New hotelBooker to db', 'HotelBookerComponent.book');
             $this->hotelBooker = new HotelBooker();
             $this->hotelBooker->hotelResultKey = $this->hotel->getId();
             $this->hotelBooker->hotel = $this->hotel;
             $this->hotelBooker->status = 'enterCredentials';
             $this->hotelBooker->setHotelBookerComponent($this);
             $this->hotelBooker->save();
         }
     }
     //        Yii::trace(CVarDumper::dumpAsString($this->hotelBooker->getErrors()), 'HotelBookerComponent.book');
     if (!$this->hotelBooker->id) {
         $this->hotelBooker->id = $this->hotelBooker->primaryKey;
     }
     Yii::app()->user->setState('hotelResultKey', $this->hotelBooker->hotel->id);
 }
Пример #3
0
 public function delete($id)
 {
     if ($id) {
         $data = new Hotel($id);
         $action = 'DELETE';
         save_logs($this->menu_id, $action, @$data->id, $action . ' ' . $data->hotel_name . ' Hotel ');
         $data->delete();
     }
     redirect("admin/settings/hotels");
 }
Пример #4
0
 public function update_rates()
 {
     $data = $_POST;
     $resp = new ajax_response($data['action'], true);
     if ($data['hotel_id'] != null) {
         $hotel = new Hotel((int) $data['hotel_id']);
         if ($hotel instanceof Hotel) {
             $result = $hotel->save_rate_data($data);
             $result ? $resp->set_status(true) : '';
         }
     }
     echo $resp->encode_response();
     die;
 }
Пример #5
0
 public function insert()
 {
     $respuesta = Hotel::agregar(Input::all());
     if ($respuesta['error'] == true) {
         return Redirect::to('hotel/add')->with('mensaje', $respuesta['mensaje'])->withInput();
     } else {
         return Redirect::to('hotels')->with('mensaje', $respuesta['mensaje']);
     }
 }
Пример #6
0
 public function MyAccount()
 {
     $hotels = Hotel::where('publicado', '=', 1)->count();
     $translados = Translado::where('publicado', '=', 1)->count();
     $especiais = EventoEspecial::where('publicado', '=', 1)->count();
     $passeios = Passeio::where('publicado', '=', 1)->count();
     $produtos = Produto::Where('publicado', '=', 1)->orderBy('created_at', 'DESC')->take(6)->get();
     return View::make('cliente.minhaconta', compact('hotels', 'translados', 'especiais', 'passeios', 'produtos'));
 }
Пример #7
0
 public function getGroupId()
 {
     if ($this->hotel) {
         return $this->hotel->getId();
     }
     if (!$this->groupId) {
         $this->groupId = uniqid();
     }
     return $this->groupId;
 }
 public function getDestinationcity($id)
 {
     $input = Xmlhotel::city($id);
     $data = Hotel::destinationcities($input);
     $output = Xmltoarray::arr($data);
     $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETDESTINATIONCITYLISTRESPONSE']['GETDESTINATIONCITYLISTRESULT']['CITYLIST']['WSCITY'];
     //print_r($city); exit;
     foreach ($city as $cities) {
         echo "<option value=" . $cities['CITYCODE'] . ">" . $cities['CITYNAME'] . "</option>";
     }
 }
 public function postUpdateeventhotel()
 {
     $s = Hotel::find(Input::get('id'));
     if ($s) {
         $s->eventname = Input::get('eventname');
         $s->hotelname = Input::get('hotelname');
         $s->details = Input::get('details');
         $s->save();
         return Redirect::to('hotelbooking/eventhotel')->with('message', 'Hotel Updated');
     }
     return Redirect::to('hotelbooking/eventhotel')->with('message', 'Could not Update');
 }
Пример #10
0
 public function postAssociateChild($model, $child_relation, $child)
 {
     if ($child_relation == 'first_hotel_option' or $child_relation == 'second_hotel_option') {
         $child = Hotel::find($child);
     }
     if ($model->{$child_relation}()->find($child)) {
         return Response::json(['error' => 'Already attached', 'reload' => false]);
     }
     $model->{$child_relation}()->associate($child);
     $model->save();
     return Response::json(['success' => 'success', 'reload' => true]);
 }
Пример #11
0
 /**
  * Display the specified resource.
  * GET /usuarios/{id}
  *
  * @param  int  $id
  * @return Response
  */
 public function getEdit($id = NULL)
 {
     if (isset($id)) {
         $usuario = Usuario::find($id);
         $perfiles = Perfil::all()->lists('nombre', 'id');
         $hoteles = Hotel::all()->lists('nombre', 'id');
         $personas = Persona::all()->lists('nombre', 'id');
         return View::make('usuarios.edit', compact('perfiles', 'hoteles', 'personas', 'usuario'));
     } else {
         return Redirect::to('/usuarios');
     }
 }
 public function run()
 {
     // Uncomment the below to wipe the table clean before populating
     DB::table('hotels')->truncate();
     // Uncomment the below to run the seeder
     Hotel::create(array('name' => 'The Lantern Inn', 'brand_id' => 2, 'zip' => 82010));
     Hotel::create(array('name' => 'Countryside Suites', 'brand_id' => 4, 'zip' => 42500));
     Hotel::create(array('name' => 'The Garden Hotel, Phoenix', 'brand_id' => 3, 'zip' => 86000));
     Hotel::create(array('name' => 'Fairway Hotel', 'brand_id' => 2, 'zip' => 93240));
     Hotel::create(array('name' => 'Plainview Inn', 'brand_id' => 2, 'zip' => 65001));
     Hotel::create(array('name' => 'Flyaway Hotel', 'brand_id' => 1, 'zip' => 23450));
 }
Пример #13
0
 public function getSave()
 {
     $id = Input::get('id');
     $hotel = Hotel::find($id);
     $hotel->name = Input::get('name');
     $hotel->email = Input::get('email');
     $hotel->phone = Input::get('phone');
     $hotel->city_id = Input::get('city_id');
     $hotel->address = Input::get('address');
     $hotel->save();
     Session::flash('message', 'The records are updated successfully');
     return Redirect::to('hotel');
 }
Пример #14
0
<?php

require_once "../../includes/initialize.php";
if (isset($_POST['submit'])) {
    $hotel = new Hotel();
    $hotel->hotel_name = $_POST['hotel_name'];
    $hotel->password = $_POST['password'];
    $hotel->city = $_POST['city'];
    $hotel->info = $_POST['info'];
    if ($hotel->create()) {
        redirect_to("test2.php?id={$hotel->id}");
    }
}
?>

<form action="test.php" method="post">
	
	<p>Hotel name:
		<input type="text" name="hotel_name" value="">
	</p>

	<p>Password:
		<input type="password" name="password" value="">
	</p>

	<p>City:
		<input type="text" name="city" value="">
	</p>

	<p>Info:
		<textarea cols="80" rows="20" name="info"></textarea>
Пример #15
0
	if(!isset($_POST['value']) || $_POST['value'] != '437d04d169b9b9a592f944802c6b3c39'){
		die('Try again.');
	}

	$string = isset($_POST['key']) ? $_POST['key'] : '';
	if(strlen($string) < 1){ die(false); }

	$quaries = ['c' => [], 'h' => [], 'd' => []];
	$objC = new SubCity();
	$list1 = $objC->where('name', 'like', '%' . $string . '%')
		->take(7)
		->get(['name']);
	foreach($list1 as $list1Val){
		$quaries['c'][] = $list1Val->name;
	}
	$objH = new Hotel();
	$list2 = $objH->where('name', 'like', '%' . $string . '%')->take(7)->get(['name']);
	foreach($list2 as $list2Val){
		$quaries['h'][] = $list2Val->name;
	}
	$objD = new Destination();
	$list3 = $objD->where('destination', 'like', '%' . $string . '%')
		->take(7)
		->get(['destination']);
	foreach($list3 as $list3Val){
		$quaries['d'][] = $list3Val->destination;
	}

	$quaries = json_encode($quaries);
	echo $quaries;
?>
Пример #16
0
 public function searchDateList($mro)
 {
     try {
         //echo 'LMwebSoapClient searchDateList';
         $result = $this->sc->searchDateList(array('mro' => $mro->getParamsAsArray()))->return;
         //var_dump($result);
     } catch (Exception $ex) {
         echo $ex->getMessage();
         return null;
     }
     /*if ($result->message) {
           Template::errorTemplate("Server-Nachricht: " . $result->message);
           return null;
       }*/
     $dates = new Hotel();
     $dates->setParamsByArray($result->dateList);
     $dateList = array();
     if (is_array($result->dateList->datesList)) {
         foreach ($result->dateList->datesList as $value) {
             $date = new Date();
             $date->setParamsByArray($value);
             array_push($dateList, $date);
         }
     } else {
         $date = new Date();
         $date->setParamsByArray($result->dateList->datesList);
         array_push($dateList, $date);
     }
     $dates->setDatesList($dateList);
     return $dates;
 }
Пример #17
0
<?php

require_once "../../includes/initialize.php";
if (!$session->is_logged_in()) {
    redirect_to("login.php");
}
if (!isset($_GET['id'])) {
    redirect_to("login.php");
}
$hotel = Hotel::find_by_id($_GET['id']);
if (!$hotel) {
    redirect_to("login.php");
}
if ($session->user_id != $hotel->id) {
    redirect_to("login.php");
}
$rule = rules::find_hotel_rules($hotel->id);
if (!$rule) {
    redirect_to("login.php");
}
$rooms = $hotel->rooms();
$photos = Photograph::find_by_hotel_id($hotel->id);
?>
<!DOCTYPE html>
<html>
<head>
	<title>
		Hotel
	</title>
	<link rel="stylesheet" type="text/css" href="../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../css/hotel.css">
Пример #18
0
 /**
  * Show the form for editing the specified pacote.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $pacote = Pacote::with('hoteis', 'apartamentos', 'passeios', 'servicosnoturnos')->find($id);
     $paises = Pais::lists("name", "id");
     $hoteis = Hotel::with('pais')->get();
     $apartamentos = Apartamento::with('pais')->get();
     $passeios = Passeio::with('pais')->get();
     $servicosnoturnos = ServicoNoturno::with('pais')->get();
     $pacote_hoteis = $pacote->hoteis;
     $angular['hoteis'] = $pacote_hoteis->map(function ($hotel) {
         unset($hotel->descricao_br);
         unset($hotel->descricao_en);
         return $hotel;
     });
     return View::make('admin.pacote.edit', compact('pacote', 'paises', 'hoteis', 'apartamentos', 'passeios', 'servicosnoturnos', 'angular'));
 }
Пример #19
0
require_once "../includes/initialize.php";
if (empty($_GET['id'])) {
    redirect_to('index.php');
}
$hotel = Hotel::find_by_id($_GET['id']);
if (!$hotel) {
    redirect_to('index.php');
}
$rule = Rules::find_hotel_rules($hotel->id);
$rooms = $hotel->rooms();
$photos = Photograph::find_by_hotel_id($hotel->id);
$city = City::find_by_id($hotel->city_id);
if ($session->is_logged_in()) {
    $user = User::find_by_id($session->user_id);
}
$five_hotels = Hotel::find_five_hotels($hotel->city_id);
$comments = $hotel->comments();
$last_comment = $hotel->last_comment($hotel->id);
?>
<!DOCTYPE html>
<html>
<head>
	<title>Bookingmc</title>
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
	<link rel="stylesheet" type="text/css" href="css/demo.css">
	<link rel="stylesheet" type="text/css" href="css/flexslider.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap-datepicker3.css">
	<link rel="stylesheet" type="text/css" href="css/select2.css">
Пример #20
0
<?php

// This is the main code entry point.
// There should be very little code in this file, as it should just provide an entry point to the rest of the code.
// define something so we know we've entered the code in the right place.
define("HMS", 1);
// include the configuration file, which should set up the entire environment as we need it.
require_once 'config.php';
// create and run a new instance of the Hotel application in management mode.
$application = new Hotel();
$application->setManagementMode();
$application->run();
Пример #21
0
    echo '<option value="">* Selecione</option>';
    echo $obj->getComboSiteMenuBuscaFilho($_REQUEST['site_menu_busca_pai_id'], '');
} elseif ($_REQUEST['query'] == 7) {
    /**
     * PREENCHE COMBO DESTINO
     */
    require_once '../../models/destino.php';
    $obj = new Destino();
    echo '<option value="">* Selecione</option>';
    echo $obj->getComboDestino($_REQUEST['estado_id'], '');
} elseif ($_REQUEST['query'] == 8) {
    /**
     * PREENCHE COMBO HOTEL
     */
    require_once '../../models/hotel.php';
    $obj = new Hotel();
    echo '<option value="">* Selecione</option>';
    echo $obj->getComboHotel($_REQUEST['municipio_id'], '');
} elseif ($_REQUEST['query'] == 9) {
    /**
     * PREENCHE COMBO HOTEL TARIFARIO
     */
    require_once '../../models/hotelTarifario.php';
    $obj = new HotelTarifario();
    echo '<option value="">* Selecione</option>';
    echo $obj->getComboHotelTarifario($_REQUEST['hotel_id'], '');
} elseif ($_REQUEST['query'] == 10) {
    /**
     * PREENCHE COMBO HOTEL TARIFARIO
     */
    require_once '../../models/eventoItem.php';
Пример #22
0
    {
        if (isset($this->{$property})) {
            return $this->{$property};
        } else {
            return $property . ' unknown' . "\n";
        }
    }
    public function __set($property, $value)
    {
        $this->{$property} = $value;
    }
    public function __toString()
    {
        return 'Hotel to string';
    }
    public function __sleep()
    {
        return ["country", "location"];
    }
    public function __invoke()
    {
        echo 'Calling object as function' . "\n";
    }
}
$hotel = new Hotel();
echo $hotel->size;
$hotel();
$hotel->location = 'Berlin';
echo $hotel->name() . '/' . $hotel->location . ' has ' . Hotel::getHotelSettings()['rooms'] . ' rooms' . "\n";
echo $hotel;
echo serialize($hotel);
Пример #23
0
 public function load_hotels_async()
 {
     $data = $_POST;
     $hotel = new Hotel();
     $resp = new ajax_response($data['action'], true);
     $resp->set_status(true);
     $resp->set_data(array('loadable_content' => $hotel->get_all_hotels($args)));
     echo $resp->encode_response();
     die;
 }
Пример #24
0
 public function actionGetHotelByCity()
 {
     $city = isset($_POST['city']) ? $_POST['city'] : '';
     $city = addcslashes($city, '%_');
     $Criteria = new CDbCriteria(array('condition' => "city LIKE :city", 'params' => array(':city' => "%{$city}")));
     $hotelModel = Hotel::model()->findAll($Criteria);
     $result = array();
     $hotel_data = array();
     if ($hotelModel) {
         foreach ($hotelModel as $record) {
             $new_hotel = new Hotel();
             $new_hotel->id = $record->id;
             $new_hotel->name = $record->name;
             $new_hotel->address = $record->address;
             $new_hotel->city = $record->city;
             $new_hotel->longitude = $record->longitude;
             $new_hotel->latitude = $record->latitude;
             array_push($hotel_data, $new_hotel);
         }
         $result['response'] = true;
         $result['message'] = "Successfull";
     } else {
         //echo '{"message":"Invalid Username/Password"}';
         $result['response'] = true;
         $result['message'] = "Failure";
     }
     $result['hotels'] = $hotel_data;
     header('Content-type: application/json');
     echo CJSON::encode($result);
     foreach (Yii::app()->log->routes as $route) {
         if ($route instanceof CWebLogRoute) {
             $route->enabled = false;
             // disable any weblogroutes
         }
     }
 }
 public function baja($id_hotel)
 {
     $tp = new TemplatePower("templates/BajaHotel.html");
     $tp->prepare();
     $tp->gotoBlock("_ROOT");
     $hotel = new Hotel();
     $hotel->baja_Hotel($id_hotel);
     $tp->newBlock("mensajebaja");
     echo $tp->getOutputContent();
 }
Пример #26
0
function RoomsOfHotel($htl_id)
{
    $ht = new Hotel();
    return json_encode($ht->get_RoomTypes($htl_id));
}
Пример #27
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Hotel the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Hotel::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Пример #28
0
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('registration/company', function () {
    return Response::JSON(['test' => Session::getToken()]);
});
Route::get('/test', function () {
    $event_date = '2015-10-13';
    $task = (object) ['deadline_days_gap' => -2];
    $new_deadline = strtotime(-$task->deadline_days_gap . ' days', strtotime($event_date));
    echo date('Y-m-d', $new_deadline);
    return;
    $hotel = Hotel::find(4);
    Debugbar::info($hotel);
    $venue = Venue::find(77);
    $hospitality = $venue->hospitality;
    Debugbar::info($hospitality);
    $first_hotel = $hospitality->first_hotel_option()->associate($hotel);
    $first_hotel = $hospitality->first_hotel_option()->get();
    Debugbar::info($first_hotel);
    echo 'test';
});
Route::get('/table-view', function () {
    return View::make('test/table-view');
});
/** ------------------------------------------
 *  Route model binding
 *  ------------------------------------------
Пример #29
0
    $agencia = $agrup_usu->Get_dato("au_id");
    //Tomamos el valor de la etapa en cuestion
    $tramite->Modifica_Etapa($t_id, SOLICITUD_ETAPA_EN_COTIZACION, FLUJO_SOLICITUD, $agencia, "");
    header("Location: ./index.php");
}
/////////////////////////////////////////////
//para setear el boton d devolver a empleado
if (isset($_POST['devolver_empleado']) && isset($_POST['rowDelAvion'])) {
    $t_id = $_POST["tramite"];
    $CotizacionAvion = $_POST["rowDelAvion"];
    $CotizacionAuto = $_POST['rowDelAuto'];
    $CotizacionHotel = $_POST['rowDelHotel'];
    $rutaAutorizacion = new RutaAutorizacion();
    $rutaAutorizacion->asignaraEmpleado($t_id);
    $tramite = new Tramite();
    $hoteles = new Hotel();
    $texto = $_POST['observ_to_emple'];
    $t_id = $_POST["tramite"];
    $u_id = $_POST["iu"];
    $cnn = new conexion();
    $CViaje = new C_SV();
    if ($texto != "") {
        $query = sprintf("INSERT INTO observaciones(\n \t\t\t\tob_id,\n \t\t\t\tob_texto,\n \t\t\t\tob_fecha,\n \t\t\t\tob_tramite,\n \t\t\t\tob_usuario\n \t\t)VALUES(\n \t\t\t\tdefault,\n \t\t\t\t'%s',\n \t\t\t\tnow(),\n \t\t\t\t%s,\n \t\t\t\t%s\n \t\t)", $texto, $t_id, $u_id);
        $ob_id = $cnn->insertar($query);
    }
    //Insertamos el valor que agencia cotizo para el boleto de avion : 1° cotizacion.
    $tramite->valorAvionOrignal($t_id);
    //Se envia la notificacion al empleado
    $destinatario = $rutaAutorizacion->getIniciador($t_id);
    if ($texto == "" && $CotizacionAvion >= 1 || $texto != "" && $CotizacionAvion >= 1) {
        //aereo
Пример #30
0
 public static function displayPaso3()
 {
     $vista = 'salida';
     self::_ponerColor();
     $noches = $_POST['noches'];
     self::$_nombre = $_SESSION['nombre'];
     $hotel = new Hotel();
     $hotel->eliminarCookiesOpciones();
     if (isset($_POST['opciones'])) {
         $opciones = $_POST['opciones'];
         $hotel->calcularOpciones($opciones);
         $hotel->setOpciones($_POST["opciones"]);
         $hotel->crearCookiesOpciones();
     }
     $precioOpciones = $hotel->getPrecioOpciones();
     $hotel->calcularPrecio($noches);
     self::$_precioFinal = $hotel->getPrecioFinal();
     self::_retornarVista($vista);
 }