$_SESSION["current_file"] = addslashes($theFile);
//=====================================================================================================
$xHP = new cHPage("TR.Catalogo de Monedas", HP_GRID);
$xF = new cFecha();
$xTabla = new cTesoreria_monedas();
$filtro1 = "";
$filtro2 = "";
$xHP->setNoDefaultCSS();
echo $xHP->getHeader(true);
//HTML Object END
echo '<body onmouseup="SetMouseDown(false);" ><div id="onGrid">';
//Define your grid
$_SESSION["grid"]->SetDatabaseConnection(MY_DB_IN, USR_DB, PWD_DB);
//Propiedades del GRID
$mGridTitulo = $xHP->getTitle();
$mGridKeyField = $xTabla->getKey();
//Nombre del Campo Unico
$mGridKeyEdit = true;
//Es editable el Campo
$mGridTable = $xTabla->get();
//Nombre de la tabla
$mGridSQL = $xTabla->query()->getListaDeCampos();
//  "*"; //$xTabla->query()->getCampos();
$mGridWhere = "";
$mGridProp = array("clave_de_moneda" => "Clave de Moneda,true,10", "nombre_de_la_moneda" => "Nombre de la Moneda,false,100", "quivalencia_en_moneda_local" => "Equivalencia en Moneda local,true,33", "pais_de_origen" => "Pais de origen,true,10");
//===========================================================================================================
$_SESSION["grid"]->SetSqlSelect($mGridSQL, $mGridTable, $mGridWhere);
$_SESSION["grid"]->SetUniqueDatabaseColumn($mGridKeyField, $mGridKeyEdit);
$_SESSION["grid"]->SetTitleName($mGridTitulo);
$_SESSION["grid"]->SetEditModeAdd(true);
//$_SESSION["grid"]->SetEditModeDelete(false);