public function __construct($resultadosParciales)
 {
     $respuestas = array();
     foreach ($resultadosParciales as $resultado) {
         //            $resultado = new Resultadosparciales();
         $preguntas_id = $resultado->getPreguntasId();
         $opciones_id = $resultado->getOpcionesId();
         $criteria = new Criteria();
         $criteria->add(RespuestasPeer::PREGUNTAS_ID, $preguntas_id);
         $criteria->add(RespuestasPeer::OPCIONES_ID, $opciones_id);
         $respuesta = RespuestasPeer::doSelectOne($criteria);
         $celda = $respuesta->getCelda();
         $respuestas[$celda] = 1;
     }
     $this->hoja = $respuestas;
     parent::__construct();
 }
Esempio n. 2
0
 public function __construct(Aspirantes $aspirante)
 {
     // como no tiene nada calculado, entonces lo inicializamos aca y dejamos el getValor por defecto
     $this->hoja = array();
     //Inicializando F12
     //tengo que obtener de la base datos el sexo del aspirante
     $this->hoja["F12"] = $aspirante->getSexo();
     //Inicializando F14
     //Obtener la edad
     $this->hoja["F14"] = $aspirante->getEdad();
     //Inicializando F17 y F18
     $this->hoja["F17"] = null;
     $this->hoja["F18"] = null;
     //Inicializando F19
     $this->hoja["F19"] = "X";
     parent::__construct();
 }
<?php

require_once dirname(__FILE__) . '/../bootstrap/unit.php';
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'test', true);
new sfDatabaseManager($configuration);
$t = new lime_test(2);
$n = new BaseHojaMillon();
$columna = array(0, 1, 1, 0);
$valor = array(1, 0, 1, 0);
$si = array(1, 2, 3, 4);
$no = 0;
$esperado = array(0, 0, 3, 4);
$t->is($n->SiesIgualValorColumnas($columna, $valor, $si, $no), $esperado, "Cuando \$no es estatico");
$columna = array(7, 1, 1, 8);
$valor = 1;
$si = array(1, 2, 3, 4);
$no = 0;
$esperado = array(0, 2, 3, 0);
$t->is($n->SiesIgualValorColumnas($columna, $valor, $si, $no), $esperado, "Cuando \$no y \$valor  estaticos");
Esempio n. 4
0
 public function getValor($celda)
 {
     if (!isset($this->hoja[$celda])) {
         switch ($celda) {
             //            Me equivoque esto es del hombre
             //                case "C2":
             //                    $this->hoja[$celda] = ($this->getHoja("Resultados")->getValor("D3")) <= ($this->getHoja('BR hombre')->getValor("A2")) ? $this->getValor("B2") : 0;
             //                    break;
             case "C2":
             case "C3":
             case "C4":
             case "C5":
             case "C6":
             case "C7":
             case "C8":
             case "C9":
             case "C10":
             case "C11":
             case "C12":
             case "C13":
             case "C14":
             case "C15":
             case "C16":
             case "C17":
             case "C18":
             case "C19":
             case "C20":
             case "C21":
             case "C22":
             case "C23":
             case "C24":
             case "C25":
             case "C26":
             case "C27":
             case "C28":
             case "C29":
             case "C30":
             case "C31":
             case "C32":
             case "C33":
             case "C34":
             case "C35":
             case "C36":
             case "C37":
             case "C38":
             case "C39":
             case "C40":
             case "C41":
             case "C42":
             case "C43":
             case "C44":
             case "C45":
             case "C46":
             case "C47":
             case "C48":
             case "C49":
             case "C50":
             case "C51":
             case "C52":
             case "C53":
             case "C54":
             case "C55":
             case "C56":
             case "C57":
             case "C58":
             case "C59":
             case "C60":
             case "C61":
             case "C62":
             case "C63":
             case "C64":
             case "C65":
             case "C66":
             case "C67":
             case "C68":
             case "C69":
             case "C70":
             case "C71":
             case "C72":
             case "C73":
             case "C74":
             case "C75":
             case "C76":
             case "C77":
             case "C78":
             case "C79":
             case "C80":
             case "C81":
             case "C82":
             case "C83":
             case "C84":
             case "C85":
             case "C86":
             case "C87":
             case "C88":
             case "C89":
             case "C90":
             case "C91":
             case "C92":
             case "C93":
             case "C94":
             case "C95":
             case "C96":
             case "C97":
             case "C98":
             case "C99":
             case "C100":
             case "C101":
             case "C102":
             case "C103":
             case "C104":
             case "C105":
             case "C106":
             case "C107":
             case "C108":
             case "C109":
             case "C110":
             case "C111":
             case "C112":
             case "C113":
             case "C114":
             case "C115":
             case "C116":
             case "C117":
             case "C118":
             case "C119":
             case "C120":
             case "C121":
             case "C122":
             case "C123":
             case "C124":
             case "C125":
             case "C126":
             case "C127":
             case "C128":
             case "C129":
             case "C130":
             case "C131":
             case "C132":
             case "C133":
             case "C134":
             case "C135":
                 $fila = ltrim($str, "C");
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D3") == $this->getValor("A" . $fila) ? $this->getValor("B" . $fila) : 0;
                 break;
             case "C136":
             case "C137":
             case "C138":
             case "C139":
             case "C140":
             case "C141":
             case "C142":
             case "C143":
             case "C144":
             case "C145":
             case "C146":
             case "C147":
             case "C148":
             case "C149":
             case "C150":
             case "C151":
             case "C152":
             case "C153":
             case "C154":
                 $fila = ltrim($str, "C");
                 $this->hoja[$celda] = $this->getValor("D" . $fila) == "Verdadero" ? $this->getValor("B" . $fila) : 0;
                 break;
             case "C155":
                 $this->hoja[$celda] = array_sum($this->getRangoValores("C", 2, 154));
                 break;
             case "D136":
             case "D137":
             case "D138":
             case "D139":
             case "D140":
             case "D141":
             case "D142":
             case "D143":
             case "D144":
             case "D145":
             case "D146":
             case "D147":
             case "D148":
             case "D149":
             case "D150":
             case "D151":
             case "D152":
             case "D153":
             case "D154":
                 // =and(resultados!D3>'br mujer'!A135,resultados!D3<='br mujer'!A136)
                 $col = "A";
                 //columna que se usa para calcular contra resultados!D3>
                 $fila = $this->cell2row($celda);
                 // obtengo la fila 136 a 154
                 $ResultadosD3 = $this->getHoja("Resultados")->getValor("D3");
                 //                                  "A"  + $fila - 1 = De 135 a 153,                         "A"    De 136 a 154
                 if ($ResultadosD3 > $this->getValor($col . ($fila - 1)) and $ResultadosD3 <= $this->getValor($col . $fila)) {
                     $this->hoja[$celda] = "Verdadero";
                 } else {
                     $this->hoja[$celda] = "Falso";
                 }
                 break;
             case "F2":
             case "F3":
             case "F4":
             case "F5":
             case "F6":
             case "F7":
             case "F8":
             case "F9":
             case "F10":
             case "F11":
             case "F12":
             case "F13":
             case "F14":
             case "F15":
             case "F16":
             case "F17":
             case "F18":
             case "F19":
             case "F20":
             case "F21":
             case "F22":
             case "F23":
                 // F2  =IF(Resultados!D4='BR mujer'!D2,E2,0)
                 // F23 =IF(Resultados!D4>='BR mujer'!D23,E23,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D4") == $this->getValor("D" . $fila) ? $this->getValor("E" . $fila) : 0;
                 break;
             case "F23":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D4") >= $this->getValor("D" . $fila) ? $this->getValor("E" . $fila) : 0;
                 break;
             case "F24":
                 // F24 =SUM(F2:F23)
                 $this->hoja[$celda] = $this->sumBetween("F2", "F23");
                 break;
             case "I2":
             case "I3":
             case "I4":
             case "I5":
             case "I6":
             case "I7":
             case "I8":
             case "I9":
             case "I10":
             case "I11":
             case "I12":
             case "I13":
             case "I14":
             case "I15":
             case "I16":
             case "I17":
             case "I18":
             case "I19":
             case "I20":
             case "I21":
             case "I22":
             case "I23":
             case "I24":
             case "I25":
             case "I26":
             case "I27":
             case "I28":
             case "I29":
             case "I30":
             case "I31":
             case "I32":
             case "I33":
             case "I34":
             case "I35":
                 // I2   =IF(Resultados!D5='BR mujer'!G2,H2,0)
                 // I35  =IF(Resultados!D5='BR mujer'!G35,H35,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D5") == $this->getValor("G" . $fila) ? $this->getValor("H" . $fila) : 0;
                 break;
             case "I36":
                 // I36  =IF(Resultados!D5>='BR mujer'!G36,H36,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D5") >= $this->getValor("G" . $fila) ? $this->getValor("H" . $fila) : 0;
                 break;
             case "I37":
                 // I37 =SUM(I2:I36)
                 $this->hoja[$celda] = $this->sumBetween("I2", "I36");
                 break;
             case "L2":
             case "L3":
             case "L4":
             case "L5":
             case "L6":
             case "L7":
             case "L8":
             case "L9":
             case "L10":
             case "L11":
             case "L12":
             case "L13":
             case "L14":
             case "L15":
             case "L16":
             case "L17":
             case "L18":
             case "L19":
             case "L20":
             case "L21":
             case "L22":
             case "L23":
             case "L24":
             case "L25":
             case "L26":
             case "L27":
             case "L28":
             case "L29":
             case "L30":
             case "L31":
             case "L32":
             case "L33":
             case "L34":
             case "L35":
             case "L36":
             case "L37":
             case "L38":
             case "L39":
             case "L40":
             case "L41":
             case "L42":
             case "L43":
             case "L44":
             case "L45":
             case "L46":
                 // L2   =IF(Resultados!D9='BR mujer'!J2,K2,0)
                 // L46  =IF(Resultados!D9='BR mujer'!J46,K46,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D9") == $this->getValor("J" . $fila) ? $this->getValor("K" . $fila) : 0;
                 break;
             case "L47":
                 // L47  =IF(Resultados!D9>='BR mujer'!J47,K47,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D9") >= $this->getValor("J" . $fila) ? $this->getValor("K" . $fila) : 0;
                 break;
             case "L48":
                 // L48 =SUM(L2:L47)
                 $this->hoja[$celda] = $this->sumBetween("L2", "L47");
                 break;
             case "O2":
             case "O3":
             case "O4":
             case "O5":
             case "O6":
             case "O7":
             case "O8":
             case "O9":
             case "O10":
             case "O11":
             case "O12":
             case "O13":
             case "O14":
             case "O15":
             case "O16":
             case "O17":
             case "O18":
             case "O19":
             case "O20":
             case "O21":
             case "O22":
             case "O23":
             case "O24":
             case "O25":
             case "O26":
             case "O27":
             case "O28":
             case "O29":
             case "O30":
             case "O31":
             case "O32":
             case "O33":
             case "O34":
             case "O35":
             case "O36":
             case "O37":
             case "O38":
             case "O39":
             case "O40":
             case "O41":
             case "O42":
             case "O43":
             case "O44":
             case "O45":
             case "O46":
             case "O47":
             case "O48":
             case "O49":
             case "O50":
             case "O51":
             case "O52":
                 // O2   =IF(Resultados!D10='BR mujer'!M2,N2,0)
                 //  O52  =IF(Resultados!D10='BR mujer'!M52,N52,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D10") == $this->getValor("M" . $fila) ? $this->getValor("N" . $fila) : 0;
                 break;
             case "O53":
                 // O53  =IF(Resultados!D10>='BR mujer'!M53,N53,0)
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D10") >= $this->getValor("N" . $fila) ? $this->getValor("N" . $fila) : 0;
                 break;
             case "O54":
                 // O54 =SUM(O2:O53)
                 $this->hoja[$celda] = $this->sumBetween("O2", "O53");
                 break;
             case "R2":
             case "R3":
             case "R4":
             case "R5":
             case "R6":
             case "R7":
             case "R8":
             case "R9":
             case "R10":
             case "R11":
             case "R12":
             case "R13":
             case "R14":
             case "R15":
             case "R16":
             case "R17":
             case "R18":
             case "R19":
             case "R20":
             case "R21":
             case "R22":
             case "R23":
             case "R24":
             case "R25":
             case "R26":
             case "R27":
             case "R28":
             case "R29":
             case "R30":
             case "R31":
             case "R32":
             case "R33":
             case "R34":
             case "R35":
             case "R36":
             case "R37":
             case "R38":
             case "R39":
             case "R40":
             case "R41":
             case "R42":
             case "R43":
             case "R44":
             case "R45":
             case "R46":
             case "R47":
             case "R48":
             case "R49":
             case "R50":
             case "R51":
             case "R52":
             case "R53":
             case "R54":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D11") == $this->getValor("P" . $fila) ? $this->getValor("Q" . $fila) : 0;
                 break;
             case "R55":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D11") >= $this->getValor("P" . $fila) ? $this->getValor("Q" . $fila) : 0;
                 break;
             case "R56":
                 $this->hoja[$celda] = $this->sumBetween("R2", "R55");
                 break;
             case "U2":
             case "U3":
             case "U4":
             case "U5":
             case "U6":
             case "U7":
             case "U8":
             case "U9":
             case "U10":
             case "U11":
             case "U12":
             case "U13":
             case "U14":
             case "U15":
             case "U16":
             case "U17":
             case "U18":
             case "U19":
             case "U20":
             case "U21":
             case "U22":
             case "U23":
             case "U24":
             case "U25":
             case "U26":
             case "U27":
             case "U28":
             case "U29":
             case "U30":
             case "U31":
             case "U32":
             case "U33":
             case "U34":
             case "U35":
             case "U36":
             case "U37":
             case "U38":
             case "U39":
             case "U40":
             case "U41":
             case "U42":
             case "U43":
             case "U44":
             case "U45":
             case "U46":
             case "U47":
             case "U48":
             case "U49":
             case "U50":
             case "U51":
             case "U52":
             case "U53":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D12") == $this->getValor("S" . $fila) ? $this->getValor("T" . $fila) : 0;
                 break;
             case "U54":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D12") >= $this->getValor("S" . $fila) ? $this->getValor("T" . $fila) : 0;
                 break;
             case "U55":
                 $this->hoja[$celda] = $this->sumBetween("U2", "U54");
                 break;
             case "X2":
             case "X3":
             case "X4":
             case "X5":
             case "X6":
             case "X7":
             case "X8":
             case "X9":
             case "X10":
             case "X11":
             case "X12":
             case "X13":
             case "X14":
             case "X15":
             case "X16":
             case "X17":
             case "X18":
             case "X19":
             case "X20":
             case "X21":
             case "X22":
             case "X23":
             case "X24":
             case "X25":
             case "X26":
             case "X27":
             case "X28":
             case "X29":
             case "X30":
             case "X31":
             case "X32":
             case "X33":
             case "X34":
             case "X35":
             case "X36":
             case "X37":
             case "X38":
             case "X39":
             case "X40":
             case "X41":
             case "X42":
             case "X43":
             case "X44":
             case "X45":
             case "X46":
             case "X47":
             case "X48":
             case "X49":
             case "X50":
             case "X51":
             case "X52":
             case "X53":
             case "X54":
             case "X55":
             case "X56":
             case "X57":
             case "X58":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D13") == $this->getValor("V" . $fila) ? $this->getValor("W" . $fila) : 0;
                 break;
             case "X59":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D13") >= $this->getValor("V" . $fila) ? $this->getValor("W" . $fila) : 0;
                 break;
             case "X60":
                 $this->hoja[$celda] = $this->sumBetween("X2", "X59");
                 break;
             case "AA2":
             case "AA3":
             case "AA4":
             case "AA5":
             case "AA6":
             case "AA7":
             case "AA8":
             case "AA9":
             case "AA10":
             case "AA11":
             case "AA12":
             case "AA13":
             case "AA14":
             case "AA15":
             case "AA16":
             case "AA17":
             case "AA18":
             case "AA19":
             case "AA20":
             case "AA21":
             case "AA22":
             case "AA23":
             case "AA24":
             case "AA25":
             case "AA26":
             case "AA27":
             case "AA28":
             case "AA29":
             case "AA30":
             case "AA31":
             case "AA32":
             case "AA33":
             case "AA34":
             case "AA35":
             case "AA36":
             case "AA37":
             case "AA38":
             case "AA39":
             case "AA40":
             case "AA41":
             case "AA42":
             case "AA43":
             case "AA44":
             case "AA45":
             case "AA46":
             case "AA47":
             case "AA48":
             case "AA49":
             case "AA50":
             case "AA51":
             case "AA52":
             case "AA53":
             case "AA54":
             case "AA55":
             case "AA56":
             case "AA57":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D14") == $this->getValor("Y" . $fila) ? $this->getValor("Z" . $fila) : 0;
                 break;
             case "AA58":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D14") >= $this->getValor("Y" . $fila) ? $this->getValor("Z" . $fila) : 0;
                 break;
             case "AA59":
                 $this->hoja[$celda] = $this->sumBetween("AA2", "AA58");
                 break;
             case "AD2":
             case "AD3":
             case "AD4":
             case "AD5":
             case "AD6":
             case "AD7":
             case "AD8":
             case "AD9":
             case "AD10":
             case "AD11":
             case "AD12":
             case "AD13":
             case "AD14":
             case "AD15":
             case "AD16":
             case "AD17":
             case "AD18":
             case "AD19":
             case "AD20":
             case "AD21":
             case "AD22":
             case "AD23":
             case "AD24":
             case "AD25":
             case "AD26":
             case "AD27":
             case "AD28":
             case "AD29":
             case "AD30":
             case "AD31":
             case "AD32":
             case "AD33":
             case "AD34":
             case "AD35":
             case "AD36":
             case "AD37":
             case "AD38":
             case "AD39":
             case "AD40":
             case "AD41":
             case "AD42":
             case "AD43":
             case "AD44":
             case "AD45":
             case "AD46":
             case "AD47":
             case "AD48":
             case "AD49":
             case "AD50":
             case "AD51":
             case "AD52":
             case "AD53":
             case "AD54":
             case "AD55":
             case "AD56":
             case "AD57":
             case "AD58":
             case "AD59":
             case "AD60":
             case "AD61":
             case "AD62":
             case "AD63":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D15") == $this->getValor("AB" . $fila) ? $this->getValor("AC" . $fila) : 0;
                 break;
             case "AD64":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D15") >= $this->getValor("AB" . $fila) ? $this->getValor("AC" . $fila) : 0;
                 break;
             case "AD65":
                 $this->hoja[$celda] = $this->sumBetween("AD2", "AD64");
                 break;
             case "AG2":
             case "AG3":
             case "AG4":
             case "AG5":
             case "AG6":
             case "AG7":
             case "AG8":
             case "AG9":
             case "AG10":
             case "AG11":
             case "AG12":
             case "AG13":
             case "AG14":
             case "AG15":
             case "AG16":
             case "AG17":
             case "AG18":
             case "AG19":
             case "AG20":
             case "AG21":
             case "AG22":
             case "AG23":
             case "AG24":
             case "AG25":
             case "AG26":
             case "AG27":
             case "AG28":
             case "AG29":
             case "AG30":
             case "AG31":
             case "AG32":
             case "AG33":
             case "AG34":
             case "AG35":
             case "AG36":
             case "AG37":
             case "AG38":
             case "AG39":
             case "AG40":
             case "AG41":
             case "AG42":
             case "AG43":
             case "AG44":
             case "AG45":
             case "AG46":
             case "AG47":
             case "AG48":
             case "AG49":
             case "AG50":
             case "AG51":
             case "AG52":
             case "AG53":
             case "AG54":
             case "AG55":
             case "AG56":
             case "AG57":
             case "AG58":
             case "AG59":
             case "AG60":
             case "AG61":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D16") == $this->getValor("AE" . $fila) ? $this->getValor("AF" . $fila) : 0;
                 break;
             case "AG62":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D16") >= $this->getValor("AE" . $fila) ? $this->getValor("AF" . $fila) : 0;
                 break;
             case "AG63":
                 $this->hoja[$celda] = $this->sumBetween("AG2", "AG62");
                 break;
             case "AJ2":
             case "AJ3":
             case "AJ4":
             case "AJ5":
             case "AJ6":
             case "AJ7":
             case "AJ8":
             case "AJ9":
             case "AJ10":
             case "AJ11":
             case "AJ12":
             case "AJ13":
             case "AJ14":
             case "AJ15":
             case "AJ16":
             case "AJ17":
             case "AJ18":
             case "AJ19":
             case "AJ20":
             case "AJ21":
             case "AJ22":
             case "AJ23":
             case "AJ24":
             case "AJ25":
             case "AJ26":
             case "AJ27":
             case "AJ28":
             case "AJ29":
             case "AJ30":
             case "AJ31":
             case "AJ32":
             case "AJ33":
             case "AJ34":
             case "AJ35":
             case "AJ36":
             case "AJ37":
             case "AJ38":
             case "AJ39":
             case "AJ40":
             case "AJ41":
             case "AJ42":
             case "AJ43":
             case "AJ44":
             case "AJ45":
             case "AJ46":
             case "AJ47":
             case "AJ48":
             case "AJ49":
             case "AJ50":
             case "AJ51":
             case "AJ52":
             case "AJ53":
             case "AJ54":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D17") == $this->getValor("AH" . $fila) ? $this->getValor("AI" . $fila) : 0;
                 break;
             case "AJ55":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D17") >= $this->getValor("AH" . $fila) ? $this->getValor("AI" . $fila) : 0;
                 break;
             case "AJ56":
                 $this->hoja[$celda] = $this->sumBetween("AJ2", "AJ55");
                 break;
             case "AM2":
             case "AM3":
             case "AM4":
             case "AM5":
             case "AM6":
             case "AM7":
             case "AM8":
             case "AM9":
             case "AM10":
             case "AM11":
             case "AM12":
             case "AM13":
             case "AM14":
             case "AM15":
             case "AM16":
             case "AM17":
             case "AM18":
             case "AM19":
             case "AM20":
             case "AM21":
             case "AM22":
             case "AM23":
             case "AM24":
             case "AM25":
             case "AM26":
             case "AM27":
             case "AM28":
             case "AM29":
             case "AM30":
             case "AM31":
             case "AM32":
             case "AM33":
             case "AM34":
             case "AM35":
             case "AM36":
             case "AM37":
             case "AM38":
             case "AM39":
             case "AM40":
             case "AM41":
             case "AM42":
             case "AM43":
             case "AM44":
             case "AM45":
             case "AM46":
             case "AM47":
             case "AM48":
             case "AM49":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D18") == $this->getValor("AK" . $fila) ? $this->getValor("AL" . $fila) : 0;
                 break;
             case "AM50":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D18") >= $this->getValor("AK" . $fila) ? $this->getValor("AL" . $fila) : 0;
                 break;
             case "AM51":
                 $this->hoja[$celda] = $this->sumBetween("AM2", "AM50");
                 break;
             case "AP2":
             case "AP3":
             case "AP4":
             case "AP5":
             case "AP6":
             case "AP7":
             case "AP8":
             case "AP9":
             case "AP10":
             case "AP11":
             case "AP12":
             case "AP13":
             case "AP14":
             case "AP15":
             case "AP16":
             case "AP17":
             case "AP18":
             case "AP19":
             case "AP20":
             case "AP21":
             case "AP22":
             case "AP23":
             case "AP24":
             case "AP25":
             case "AP26":
             case "AP27":
             case "AP28":
             case "AP29":
             case "AP30":
             case "AP31":
             case "AP32":
             case "AP33":
             case "AP34":
             case "AP35":
             case "AP36":
             case "AP37":
             case "AP38":
             case "AP39":
             case "AP40":
             case "AP41":
             case "AP42":
             case "AP43":
             case "AP44":
             case "AP45":
             case "AP46":
             case "AP47":
             case "AP48":
             case "AP49":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D21") == $this->getValor("AN" . $fila) ? $this->getValor("AO" . $fila) : 0;
                 break;
             case "AP50":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D21") >= $this->getValor("AN" . $fila) ? $this->getValor("AO" . $fila) : 0;
                 break;
             case "AP51":
                 $this->hoja[$celda] = $this->sumBetween("AP2", "AP50");
                 break;
             case "AS2":
             case "AS3":
             case "AS4":
             case "AS5":
             case "AS6":
             case "AS7":
             case "AS8":
             case "AS9":
             case "AS10":
             case "AS11":
             case "AS12":
             case "AS13":
             case "AS14":
             case "AS15":
             case "AS16":
             case "AS17":
             case "AS18":
             case "AS19":
             case "AS20":
             case "AS21":
             case "AS22":
             case "AS23":
             case "AS24":
             case "AS25":
             case "AS26":
             case "AS27":
             case "AS28":
             case "AS29":
             case "AS30":
             case "AS31":
             case "AS32":
             case "AS33":
             case "AS34":
             case "AS35":
             case "AS36":
             case "AS37":
             case "AS38":
             case "AS39":
             case "AS40":
             case "AS41":
             case "AS42":
             case "AS43":
             case "AS44":
             case "AS45":
             case "AS46":
             case "AS47":
             case "AS48":
             case "AS49":
             case "AS50":
             case "AS51":
             case "AS52":
             case "AS53":
             case "AS54":
             case "AS55":
             case "AS56":
             case "AS57":
             case "AS58":
             case "AS59":
             case "AS60":
             case "AS61":
             case "AS62":
             case "AS63":
             case "AS64":
             case "AS65":
             case "AS66":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D22") == $this->getValor("AQ" . $fila) ? $this->getValor("AR" . $fila) : 0;
                 break;
             case "AS67":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D22") >= $this->getValor("AQ" . $fila) ? $this->getValor("AR" . $fila) : 0;
                 break;
             case "AS68":
                 $this->hoja[$celda] = $this->sumBetween("AS2", "AS67");
                 break;
             case "AV2":
             case "AV3":
             case "AV4":
             case "AV5":
             case "AV6":
             case "AV7":
             case "AV8":
             case "AV9":
             case "AV10":
             case "AV11":
             case "AV12":
             case "AV13":
             case "AV14":
             case "AV15":
             case "AV16":
             case "AV17":
             case "AV18":
             case "AV19":
             case "AV20":
             case "AV21":
             case "AV22":
             case "AV23":
             case "AV24":
             case "AV25":
             case "AV26":
             case "AV27":
             case "AV28":
             case "AV29":
             case "AV30":
             case "AV31":
             case "AV32":
             case "AV33":
             case "AV34":
             case "AV35":
             case "AV36":
             case "AV37":
             case "AV38":
             case "AV39":
             case "AV40":
             case "AV41":
             case "AV42":
             case "AV43":
             case "AV44":
             case "AV45":
             case "AV46":
             case "AV47":
             case "AV48":
             case "AV49":
             case "AV50":
             case "AV51":
             case "AV52":
             case "AV53":
             case "AV54":
             case "AV55":
             case "AV56":
             case "AV57":
             case "AV58":
             case "AV59":
             case "AV60":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D23") == $this->getValor("AT" . $fila) ? $this->getValor("AU" . $fila) : 0;
                 break;
             case "AV61":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D23") >= $this->getValor("AT" . $fila) ? $this->getValor("AU" . $fila) : 0;
                 break;
             case "AV62":
                 $this->hoja[$celda] = $this->sumBetween("AV2", "AV61");
                 break;
             case "AY2":
             case "AY3":
             case "AY4":
             case "AY5":
             case "AY6":
             case "AY7":
             case "AY8":
             case "AY9":
             case "AY10":
             case "AY11":
             case "AY12":
             case "AY13":
             case "AY14":
             case "AY15":
             case "AY16":
             case "AY17":
             case "AY18":
             case "AY19":
             case "AY20":
             case "AY21":
             case "AY22":
             case "AY23":
             case "AY24":
             case "AY25":
             case "AY26":
             case "AY27":
             case "AY28":
             case "AY29":
             case "AY30":
             case "AY31":
             case "AY32":
             case "AY33":
             case "AY34":
             case "AY35":
             case "AY36":
             case "AY37":
             case "AY38":
             case "AY39":
             case "AY40":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D26") == $this->getValor("AW" . $fila) ? $this->getValor("AX" . $fila) : 0;
                 break;
             case "AY41":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D26") >= $this->getValor("AW" . $fila) ? $this->getValor("AX" . $fila) : 0;
                 break;
             case "AY42":
                 $this->hoja[$celda] = $this->sumBetween("AY2", "AY41");
                 break;
             case "BB2":
             case "BB3":
             case "BB4":
             case "BB5":
             case "BB6":
             case "BB7":
             case "BB8":
             case "BB9":
             case "BB10":
             case "BB11":
             case "BB12":
             case "BB13":
             case "BB14":
             case "BB15":
             case "BB16":
             case "BB17":
             case "BB18":
             case "BB19":
             case "BB20":
             case "BB21":
             case "BB22":
             case "BB23":
             case "BB24":
             case "BB25":
             case "BB26":
             case "BB27":
             case "BB28":
             case "BB29":
             case "BB30":
             case "BB31":
             case "BB32":
             case "BB33":
             case "BB34":
             case "BB35":
             case "BB36":
             case "BB37":
             case "BB38":
             case "BB39":
             case "BB40":
             case "BB41":
             case "BB42":
             case "BB43":
             case "BB44":
             case "BB45":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D27") == $this->getValor("AZ" . $fila) ? $this->getValor("BA" . $fila) : 0;
                 break;
             case "BB46":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D27") >= $this->getValor("AZ" . $fila) ? $this->getValor("BA" . $fila) : 0;
                 break;
             case "BB47":
                 $this->hoja[$celda] = $this->sumBetween("BB2", "BB46");
                 break;
             case "BE2":
             case "BE3":
             case "BE4":
             case "BE5":
             case "BE6":
             case "BE7":
             case "BE8":
             case "BE9":
             case "BE10":
             case "BE11":
             case "BE12":
             case "BE13":
             case "BE14":
             case "BE15":
             case "BE16":
             case "BE17":
             case "BE18":
             case "BE19":
             case "BE20":
             case "BE21":
             case "BE22":
             case "BE23":
             case "BE24":
             case "BE25":
             case "BE26":
             case "BE27":
             case "BE28":
             case "BE29":
             case "BE30":
             case "BE31":
             case "BE32":
             case "BE33":
             case "BE34":
             case "BE35":
             case "BE36":
             case "BE37":
             case "BE38":
             case "BE39":
             case "BE40":
             case "BE41":
             case "BE42":
             case "BE43":
             case "BE44":
             case "BE45":
             case "BE46":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D28") == $this->getValor("BC" . $fila) ? $this->getValor("BD" . $fila) : 0;
                 break;
             case "BE47":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D28") >= $this->getValor("BC" . $fila) ? $this->getValor("BD" . $fila) : 0;
                 break;
             case "BE48":
                 $this->hoja[$celda] = $this->sumBetween("BE2", "BB47");
                 break;
             case "BH2":
             case "BH3":
             case "BH4":
             case "BH5":
             case "BH6":
             case "BH7":
             case "BH8":
             case "BH9":
             case "BH10":
             case "BH11":
             case "BH12":
             case "BH13":
             case "BH14":
             case "BH15":
             case "BH16":
             case "BH17":
             case "BH18":
             case "BH19":
             case "BH20":
             case "BH21":
             case "BH22":
             case "BH23":
             case "BH24":
             case "BH25":
             case "BH26":
             case "BH27":
             case "BH28":
             case "BH29":
             case "BH30":
             case "BH31":
             case "BH32":
             case "BH33":
             case "BH34":
             case "BH35":
             case "BH36":
             case "BH37":
             case "BH38":
             case "BH39":
             case "BH40":
             case "BH41":
             case "BH42":
             case "BH43":
             case "BH44":
             case "BH45":
             case "BH46":
             case "BH47":
             case "BH48":
             case "BH49":
             case "BH50":
             case "BH51":
             case "BH52":
             case "BH53":
             case "BH54":
             case "BH55":
             case "BH56":
             case "BH57":
             case "BH58":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D29") == $this->getValor("BF" . $fila) ? $this->getValor("BG" . $fila) : 0;
                 break;
             case "BH59":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D29") >= $this->getValor("BF" . $fila) ? $this->getValor("BG" . $fila) : 0;
                 break;
             case "BH60":
                 $this->hoja[$celda] = $this->sumBetween("BH2", "BH59");
                 break;
             case "BK2":
             case "BK3":
             case "BK4":
             case "BK5":
             case "BK6":
             case "BK7":
             case "BK8":
             case "BK9":
             case "BK10":
             case "BK11":
             case "BK12":
             case "BK13":
             case "BK14":
             case "BK15":
             case "BK16":
             case "BK17":
             case "BK18":
             case "BK19":
             case "BK20":
             case "BK21":
             case "BK22":
             case "BK23":
             case "BK24":
             case "BK25":
             case "BK26":
             case "BK27":
             case "BK28":
             case "BK29":
             case "BK30":
             case "BK31":
             case "BK32":
             case "BK33":
             case "BK34":
             case "BK35":
             case "BK36":
             case "BK37":
             case "BK38":
             case "BK39":
             case "BK40":
             case "BK41":
             case "BK42":
             case "BK43":
             case "BK44":
             case "BK45":
             case "BK46":
             case "BK47":
             case "BK48":
             case "BK49":
             case "BK50":
             case "BK51":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D30") == $this->getValor("BI" . $fila) ? $this->getValor("BJ" . $fila) : 0;
                 break;
             case "BK52":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D29") >= $this->getValor("BI" . $fila) ? $this->getValor("BJ" . $fila) : 0;
                 break;
             case "BK53":
                 $this->hoja[$celda] = $this->sumBetween("BK2", "BK52");
                 break;
             case "BR2":
             case "BR3":
             case "BR4":
             case "BR5":
             case "BR6":
             case "BR7":
             case "BR8":
             case "BR9":
             case "BR10":
             case "BR11":
             case "BR12":
             case "BR13":
             case "BR14":
             case "BR15":
             case "BR16":
             case "BR17":
             case "BR18":
             case "BR19":
             case "BR20":
             case "BR21":
             case "BR22":
             case "BR23":
             case "BR24":
             case "BR25":
             case "BR26":
             case "BR27":
             case "BR28":
             case "BR29":
             case "BR30":
             case "BR31":
             case "BR32":
             case "BR33":
             case "BR34":
             case "BR35":
             case "BR36":
             case "BR37":
             case "BR38":
             case "BR39":
             case "BR40":
             case "BR41":
             case "BR42":
             case "BR43":
             case "BR44":
             case "BR45":
             case "BR46":
             case "BR47":
             case "BR48":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D34") == $this->getValor("BP" . $fila) ? $this->getValor("BQ" . $fila) : 0;
                 break;
             case "BR49":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D34") >= $this->getValor("BP" . $fila) ? $this->getValor("BQ" . $fila) : 0;
                 break;
             case "BR50":
                 $this->hoja[$celda] = $this->sumBetween("BR2", "BR49");
                 break;
             case "BU2":
             case "BU3":
             case "BU4":
             case "BU5":
             case "BU6":
             case "BU7":
             case "BU8":
             case "BU9":
             case "BU10":
             case "BU11":
             case "BU12":
             case "BU13":
             case "BU14":
             case "BU15":
             case "BU16":
             case "BU17":
             case "BU18":
             case "BU19":
             case "BU20":
             case "BU21":
             case "BU22":
             case "BU23":
             case "BU24":
             case "BU25":
             case "BU26":
             case "BU27":
             case "BU28":
             case "BU29":
             case "BU30":
             case "BU31":
             case "BU32":
             case "BU33":
             case "BU34":
             case "BU35":
             case "BU36":
             case "BU37":
             case "BU38":
             case "BU39":
             case "BU40":
             case "BU41":
             case "BU42":
             case "BU43":
             case "BU44":
             case "BU45":
             case "BU46":
             case "BU47":
             case "BU48":
             case "BU49":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D35") == $this->getValor("BS" . $fila) ? $this->getValor("BT" . $fila) : 0;
                 break;
             case "BU50":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D35") >= $this->getValor("BS" . $fila) ? $this->getValor("BT" . $fila) : 0;
                 break;
             case "BU51":
                 $this->hoja[$celda] = $this->sumBetween("BU2", "BU50");
                 break;
             case "BX2":
             case "BX3":
             case "BX4":
             case "BX5":
             case "BX6":
             case "BX7":
             case "BX8":
             case "BX9":
             case "BX10":
             case "BX11":
             case "BX12":
             case "BX13":
             case "BX14":
             case "BX15":
             case "BX16":
             case "BX17":
             case "BX18":
             case "BX19":
             case "BX20":
             case "BX21":
             case "BX22":
             case "BX23":
             case "BX24":
             case "BX25":
             case "BX26":
             case "BX27":
             case "BX28":
             case "BX29":
             case "BX30":
             case "BX31":
             case "BX32":
             case "BX33":
             case "BX34":
             case "BX35":
             case "BX36":
             case "BX37":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D36") == $this->getValor("BV" . $fila) ? $this->getValor("BW" . $fila) : 0;
                 break;
             case "BX38":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D36") >= $this->getValor("BV" . $fila) ? $this->getValor("BW" . $fila) : 0;
                 break;
             case "BX39":
                 $this->hoja[$celda] = $this->sumBetween("BX2", "BX38");
                 break;
             case "BN3":
             case "BN4":
             case "BN5":
             case "BN6":
             case "BN7":
             case "BN8":
             case "BN9":
             case "BN10":
             case "BN11":
             case "BN12":
             case "BN13":
             case "BN14":
             case "BN15":
             case "BN16":
             case "BN17":
             case "BN18":
             case "BN19":
             case "BN20":
             case "BN21":
             case "BN22":
             case "BN23":
             case "BN24":
             case "BN25":
             case "BN26":
             case "BN27":
             case "BN28":
             case "BN29":
             case "BN30":
             case "BN31":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getValor("BO" . $fila) == "Verdadero" ? $this->getValor("BM" . $fila) : 0;
                 break;
             case "BN2":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("BO3") <= $this->getValor("BL" . $fila) ? $this->getValor("BM" . $fila) : 0;
                 break;
             case "BN32":
                 $this->hoja[$celda] = $this->sumBetween("BN2", "BN31");
                 break;
             case "BO3":
             case "BO4":
             case "BO5":
             case "BO6":
             case "BO7":
             case "BO8":
             case "BO9":
             case "BO10":
             case "BO11":
             case "BO12":
             case "BO13":
             case "BO14":
             case "BO15":
             case "BO16":
             case "BO17":
             case "BO18":
             case "BO19":
             case "BO20":
             case "BO21":
             case "BO22":
             case "BO23":
             case "BO24":
             case "BO25":
             case "BO26":
             case "BO27":
             case "BO28":
             case "BO29":
             case "BO30":
             case "BO31":
                 // BO3  =and(resultados!BO3>'br mujer'!BL2,resultados!BO3<='br mujer'!BL3)
                 // BO31 =and(resultados!BO3>'br mujer'!BL30,resultados!BO3<='br mujer'!BL31)
                 $fila = $this->cell2row($celda);
                 $ResultadosBO3 = $this->getHoja("Resultados")->getValor("BO3");
                 if ($ResultadosBO3 > $this->getValor("BL" . ($fila - 1)) and $ResultadosBO3 <= $this->getValor("BL" . $fila)) {
                     $this->hoja[$celda] = "Verdadero";
                 } else {
                     $this->hoja[$celda] = "Falso";
                 }
                 break;
             default:
                 break;
         }
     }
     return parent::getValor($celda);
 }
Esempio n. 5
0
<?php

require_once dirname(__FILE__) . '/../bootstrap/unit.php';
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'test', true);
new sfDatabaseManager($configuration);
$t = new lime_test(20);
$obj = new BaseHojaMillon();
for ($index = 1; $index <= 10; $index++) {
    $t->is($obj->cell2col("A" . $index), "A", "cell2coll(\"A" . $index . "\") retorna A");
}
for ($index = 1; $index <= 10; $index++) {
    $t->is($obj->cell2row("A" . $index), $index, "cell2row(\"A" . $index . "\") retorna {$index}");
}
 public function getValor($celda)
 {
     if (!isset($this->hoja[$celda])) {
         //QUEDA EL PUNTAJE FINAL PERO ESE LO LLAMO DE AFUERA PARA TRAER TODOS LOS CAMPOS
         switch ($celda) {
             case "D2":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C63"), $this->getHoja("Respuestas")->getValor("C91"), $this->getHoja("Respuestas")->getValor("C153"), $this->getHoja("Respuestas")->getValor("C170"));
                 $this->hoja["D2"] = $this->sum($celdas);
                 break;
             case "D9":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2") * 3, $this->getHoja("Respuestas")->getValor("C11") * 2, $this->getHoja("Respuestas")->getValor("C14") * 3, $this->getHoja("Respuestas")->getValor("D15"), $this->getHoja("Respuestas")->getValor("C17"), $this->getHoja("Respuestas")->getValor("C20") * 3, $this->getHoja("Respuestas")->getValor("D21") * 2, $this->getHoja("Respuestas")->getValor("C23"), $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("D29"), $this->getHoja("Respuestas")->getValor("C34") * 2, $this->getHoja("Respuestas")->getValor("C35") * 3, $this->getHoja("Respuestas")->getValor("C47"), $this->getHoja("Respuestas")->getValor("C48") * 2, $this->getHoja("Respuestas")->getValor("D49") * 2, $this->getHoja("Respuestas")->getValor("C54"), $this->getHoja("Respuestas")->getValor("D61"), $this->getHoja("Respuestas")->getValor("D79"), $this->getHoja("Respuestas")->getValor("C82") * 3, $this->getHoja("Respuestas")->getValor("C84") * 2, $this->getHoja("Respuestas")->getValor("C86"), $this->getHoja("Respuestas")->getValor("D96"), $this->getHoja("Respuestas")->getValor("D104"), $this->getHoja("Respuestas")->getValor("C107") * 2, $this->getHoja("Respuestas")->getValor("C109"), $this->getHoja("Respuestas")->getValor("D112"), $this->getHoja("Respuestas")->getValor("C125") * 2, $this->getHoja("Respuestas")->getValor("D126"), $this->getHoja("Respuestas")->getValor("C142"), $this->getHoja("Respuestas")->getValor("C143"), $this->getHoja("Respuestas")->getValor("C144") * 3, $this->getHoja("Respuestas")->getValor("C151") * 2, $this->getHoja("Respuestas")->getValor("C160"), $this->getHoja("Respuestas")->getValor("C161"), $this->getHoja("Respuestas")->getValor("C162") * 3);
                 $this->hoja["D9"] = $this->sum($celdas);
                 break;
             case "D10":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C3"), $this->getHoja("Respuestas")->getValor("C4") * 3, $this->getHoja("Respuestas")->getValor("C9") * 3, $this->getHoja("Respuestas")->getValor("D15"), $this->getHoja("Respuestas")->getValor("C20") * 2, $this->getHoja("Respuestas")->getValor("D22"), $this->getHoja("Respuestas")->getValor("C24") * 2, $this->getHoja("Respuestas")->getValor("C26") * 2, $this->getHoja("Respuestas")->getValor("C28") * 2, $this->getHoja("Respuestas")->getValor("D29"), $this->getHoja("Respuestas")->getValor("C33") * 2, $this->getHoja("Respuestas")->getValor("C35"), $this->getHoja("Respuestas")->getValor("C46"), $this->getHoja("Respuestas")->getValor("C48") * 2, $this->getHoja("Respuestas")->getValor("C50") * 3, $this->getHoja("Respuestas")->getValor("C57") * 2, $this->getHoja("Respuestas")->getValor("C58") * 2, $this->getHoja("Respuestas")->getValor("C64") * 3, $this->getHoja("Respuestas")->getValor("C78") * 3, $this->getHoja("Respuestas")->getValor("C82"), $this->getHoja("Respuestas")->getValor("C84") * 2, $this->getHoja("Respuestas")->getValor("C86"), $this->getHoja("Respuestas")->getValor("C103") * 2, $this->getHoja("Respuestas")->getValor("C107"), $this->getHoja("Respuestas")->getValor("C110"), $this->getHoja("Respuestas")->getValor("C111") * 2, $this->getHoja("Respuestas")->getValor("C114"), $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C119") * 2, $this->getHoja("Respuestas")->getValor("C121") * 3, $this->getHoja("Respuestas")->getValor("D126"), $this->getHoja("Respuestas")->getValor("C134"), $this->getHoja("Respuestas")->getValor("C140"), $this->getHoja("Respuestas")->getValor("C142") * 3, $this->getHoja("Respuestas")->getValor("C148"), $this->getHoja("Respuestas")->getValor("C151") * 2, $this->getHoja("Respuestas")->getValor("C156") * 2, $this->getHoja("Respuestas")->getValor("C159") * 3, $this->getHoja("Respuestas")->getValor("C161"), $this->getHoja("Respuestas")->getValor("D164"), $this->getHoja("Respuestas")->getValor("C172") * 2);
                 $this->hoja["D10"] = $this->sum($celdas);
                 break;
             case "D11":
                 $celdas = array($this->getHoja("Respuestas")->getValor("D5") * 2, $this->getHoja("Respuestas")->getValor("D8"), $this->getHoja("Respuestas")->getValor("C11") * 3, $this->getHoja("Respuestas")->getValor("D13"), $this->getHoja("Respuestas")->getValor("D22"), $this->getHoja("Respuestas")->getValor("D29"), $this->getHoja("Respuestas")->getValor("C32") * 3, $this->getHoja("Respuestas")->getValor("C35") * 2, $this->getHoja("Respuestas")->getValor("D41"), $this->getHoja("Respuestas")->getValor("D42"), $this->getHoja("Respuestas")->getValor("C43") * 3, $this->getHoja("Respuestas")->getValor("D44"), $this->getHoja("Respuestas")->getValor("C50"), $this->getHoja("Respuestas")->getValor("C55"), $this->getHoja("Respuestas")->getValor("C58") * 2, $this->getHoja("Respuestas")->getValor("C61") * 2, $this->getHoja("Respuestas")->getValor("D75"), $this->getHoja("Respuestas")->getValor("C76"), $this->getHoja("Respuestas")->getValor("C78") * 2, $this->getHoja("Respuestas")->getValor("C79") * 3, $this->getHoja("Respuestas")->getValor("C82") * 2, $this->getHoja("Respuestas")->getValor("D92"), $this->getHoja("Respuestas")->getValor("D93"), $this->getHoja("Respuestas")->getValor("C98") * 2, $this->getHoja("Respuestas")->getValor("D102"), $this->getHoja("Respuestas")->getValor("C107") * 3, $this->getHoja("Respuestas")->getValor("C111"), $this->getHoja("Respuestas")->getValor("C126"), $this->getHoja("Respuestas")->getValor("C134") * 3, $this->getHoja("Respuestas")->getValor("C146") * 3, $this->getHoja("Respuestas")->getValor("D148"), $this->getHoja("Respuestas")->getValor("C150"), $this->getHoja("Respuestas")->getValor("C160") * 3, $this->getHoja("Respuestas")->getValor("D163"), $this->getHoja("Respuestas")->getValor("D164"), $this->getHoja("Respuestas")->getValor("C169"), $this->getHoja("Respuestas")->getValor("C174") * 3);
                 $this->hoja["D11"] = $this->sum($celdas);
                 break;
             case "D12":
                 $celdas = array($this->getHoja("Respuestas")->getValor("D4"), $this->getHoja("Respuestas")->getValor("C8"), $this->getHoja("Respuestas")->getValor("C10") * 2, $this->getHoja("Respuestas")->getValor("C15") * 3, $this->getHoja("Respuestas")->getValor("D20"), $this->getHoja("Respuestas")->getValor("C21") * 3, $this->getHoja("Respuestas")->getValor("C29") * 3, $this->getHoja("Respuestas")->getValor("C38"), $this->getHoja("Respuestas")->getValor("D40"), $this->getHoja("Respuestas")->getValor("C41"), $this->getHoja("Respuestas")->getValor("C42"), $this->getHoja("Respuestas")->getValor("C43") * 2, $this->getHoja("Respuestas")->getValor("C44") * 2, $this->getHoja("Respuestas")->getValor("C49") * 3, $this->getHoja("Respuestas")->getValor("D52"), $this->getHoja("Respuestas")->getValor("C57"), $this->getHoja("Respuestas")->getValor("C61") * 3, $this->getHoja("Respuestas")->getValor("D62") * 2, $this->getHoja("Respuestas")->getValor("C67") * 2, $this->getHoja("Respuestas")->getValor("D78"), $this->getHoja("Respuestas")->getValor("C87") * 3, $this->getHoja("Respuestas")->getValor("C90"), $this->getHoja("Respuestas")->getValor("C92"), $this->getHoja("Respuestas")->getValor("C96"), $this->getHoja("Respuestas")->getValor("C104") * 2, $this->getHoja("Respuestas")->getValor("C112") * 3, $this->getHoja("Respuestas")->getValor("C126") * 3, $this->getHoja("Respuestas")->getValor("D127"), $this->getHoja("Respuestas")->getValor("C129"), $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C134") * 2, $this->getHoja("Respuestas")->getValor("C138") * 3, $this->getHoja("Respuestas")->getValor("C143"), $this->getHoja("Respuestas")->getValor("D159") * 2, $this->getHoja("Respuestas")->getValor("C163"), $this->getHoja("Respuestas")->getValor("C167") * 2, $this->getHoja("Respuestas")->getValor("C171") * 3, $this->getHoja("Respuestas")->getValor("C172"), $this->getHoja("Respuestas")->getValor("C173"), $this->getHoja("Respuestas")->getValor("C174"));
                 $this->hoja["D12"] = $this->sum($celdas);
                 break;
             case "D13":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2") * 3, $this->getHoja("Respuestas")->getValor("C3"), $this->getHoja("Respuestas")->getValor("C5") * 2, $this->getHoja("Respuestas")->getValor("C7") * 3, $this->getHoja("Respuestas")->getValor("D9"), $this->getHoja("Respuestas")->getValor("C13"), $this->getHoja("Respuestas")->getValor("C15") * 2, $this->getHoja("Respuestas")->getValor("C16") * 3, $this->getHoja("Respuestas")->getValor("C17") * 2, $this->getHoja("Respuestas")->getValor("C23"), $this->getHoja("Respuestas")->getValor("C29"), $this->getHoja("Respuestas")->getValor("D32"), $this->getHoja("Respuestas")->getValor("C33"), $this->getHoja("Respuestas")->getValor("C38") * 3, $this->getHoja("Respuestas")->getValor("C42") * 2, $this->getHoja("Respuestas")->getValor("D43") * 2, $this->getHoja("Respuestas")->getValor("C44"), $this->getHoja("Respuestas")->getValor("D46"), $this->getHoja("Respuestas")->getValor("C52"), $this->getHoja("Respuestas")->getValor("D56"), $this->getHoja("Respuestas")->getValor("C61"), $this->getHoja("Respuestas")->getValor("D79"), $this->getHoja("Respuestas")->getValor("C81"), $this->getHoja("Respuestas")->getValor("C86"), $this->getHoja("Respuestas")->getValor("C87") * 2, $this->getHoja("Respuestas")->getValor("C90") * 3, $this->getHoja("Respuestas")->getValor("C92") * 3, $this->getHoja("Respuestas")->getValor("C104") * 2, $this->getHoja("Respuestas")->getValor("D107"), $this->getHoja("Respuestas")->getValor("C112") * 2, $this->getHoja("Respuestas")->getValor("C126") * 2, $this->getHoja("Respuestas")->getValor("C127"), $this->getHoja("Respuestas")->getValor("C130") * 3, $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C132") * 3, $this->getHoja("Respuestas")->getValor("C135"), $this->getHoja("Respuestas")->getValor("C136"), $this->getHoja("Respuestas")->getValor("C138") * 2, $this->getHoja("Respuestas")->getValor("C143") * 3, $this->getHoja("Respuestas")->getValor("C144"), $this->getHoja("Respuestas")->getValor("C147"), $this->getHoja("Respuestas")->getValor("D150") * 2, $this->getHoja("Respuestas")->getValor("D159") * 2, $this->getHoja("Respuestas")->getValor("C164"), $this->getHoja("Respuestas")->getValor("C166") * 2, $this->getHoja("Respuestas")->getValor("C167") * 3, $this->getHoja("Respuestas")->getValor("C171") * 2, $this->getHoja("Respuestas")->getValor("C172") * 2, $this->getHoja("Respuestas")->getValor("C173") * 2);
                 $this->hoja["D13"] = $this->sum($celdas);
                 break;
             case "D14":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2") * 2, $this->getHoja("Respuestas")->getValor("C8") * 3, $this->getHoja("Respuestas")->getValor("C13") * 2, $this->getHoja("Respuestas")->getValor("C16"), $this->getHoja("Respuestas")->getValor("C21") * 2, $this->getHoja("Respuestas")->getValor("C23") * 2, $this->getHoja("Respuestas")->getValor("C33") * 2, $this->getHoja("Respuestas")->getValor("D35"), $this->getHoja("Respuestas")->getValor("C39") * 2, $this->getHoja("Respuestas")->getValor("C41") * 3, $this->getHoja("Respuestas")->getValor("D43") * 2, $this->getHoja("Respuestas")->getValor("C44") * 2, $this->getHoja("Respuestas")->getValor("C45"), $this->getHoja("Respuestas")->getValor("C49"), $this->getHoja("Respuestas")->getValor("C56") * 2, $this->getHoja("Respuestas")->getValor("C65"), $this->getHoja("Respuestas")->getValor("C74") * 2, $this->getHoja("Respuestas")->getValor("C75") * 2, $this->getHoja("Respuestas")->getValor("D78"), $this->getHoja("Respuestas")->getValor("D79") * 2, $this->getHoja("Respuestas")->getValor("C81") * 2, $this->getHoja("Respuestas")->getValor("D82") * 2, $this->getHoja("Respuestas")->getValor("C86"), $this->getHoja("Respuestas")->getValor("C87") * 2, $this->getHoja("Respuestas")->getValor("C88") * 2, $this->getHoja("Respuestas")->getValor("C92") * 2, $this->getHoja("Respuestas")->getValor("C93") * 3, $this->getHoja("Respuestas")->getValor("C95") * 3, $this->getHoja("Respuestas")->getValor("C102"), $this->getHoja("Respuestas")->getValor("C104") * 3, $this->getHoja("Respuestas")->getValor("C105"), $this->getHoja("Respuestas")->getValor("C112"), $this->getHoja("Respuestas")->getValor("C114"), $this->getHoja("Respuestas")->getValor("C117") * 3, $this->getHoja("Respuestas")->getValor("C130") * 2, $this->getHoja("Respuestas")->getValor("C131") * 3, $this->getHoja("Respuestas")->getValor("C141"), $this->getHoja("Respuestas")->getValor("C143") * 2, $this->getHoja("Respuestas")->getValor("C145") * 2, $this->getHoja("Respuestas")->getValor("C148") * 3, $this->getHoja("Respuestas")->getValor("C158"), $this->getHoja("Respuestas")->getValor("C163") * 3, $this->getHoja("Respuestas")->getValor("C166") * 2, $this->getHoja("Respuestas")->getValor("C172"), $this->getHoja("Respuestas")->getValor("C173") * 3);
                 $this->hoja["D14"] = $this->sum($celdas);
                 break;
             case "D15":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2") * 2, $this->getHoja("Respuestas")->getValor("C5") * 3, $this->getHoja("Respuestas")->getValor("C8"), $this->getHoja("Respuestas")->getValor("C10") * 3, $this->getHoja("Respuestas")->getValor("C13") * 3, $this->getHoja("Respuestas")->getValor("C22") * 2, $this->getHoja("Respuestas")->getValor("C31") * 3, $this->getHoja("Respuestas")->getValor("D32"), $this->getHoja("Respuestas")->getValor("C33"), $this->getHoja("Respuestas")->getValor("C39"), $this->getHoja("Respuestas")->getValor("C41"), $this->getHoja("Respuestas")->getValor("C42") * 3, $this->getHoja("Respuestas")->getValor("D43") * 2, $this->getHoja("Respuestas")->getValor("C44"), $this->getHoja("Respuestas")->getValor("C45") * 3, $this->getHoja("Respuestas")->getValor("C59"), $this->getHoja("Respuestas")->getValor("C65") * 2, $this->getHoja("Respuestas")->getValor("C67"), $this->getHoja("Respuestas")->getValor("D72"), $this->getHoja("Respuestas")->getValor("C75") * 2, $this->getHoja("Respuestas")->getValor("D78") * 2, $this->getHoja("Respuestas")->getValor("D79") * 2, $this->getHoja("Respuestas")->getValor("C81"), $this->getHoja("Respuestas")->getValor("C83") * 2, $this->getHoja("Respuestas")->getValor("C85") * 2, $this->getHoja("Respuestas")->getValor("C87"), $this->getHoja("Respuestas")->getValor("C92") * 2, $this->getHoja("Respuestas")->getValor("C96"), $this->getHoja("Respuestas")->getValor("C102") * 3, $this->getHoja("Respuestas")->getValor("D107"), $this->getHoja("Respuestas")->getValor("C108") * 2, $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C122") * 2, $this->getHoja("Respuestas")->getValor("C130") * 2, $this->getHoja("Respuestas")->getValor("C135") * 3, $this->getHoja("Respuestas")->getValor("C136"), $this->getHoja("Respuestas")->getValor("C143"), $this->getHoja("Respuestas")->getValor("D146"), $this->getHoja("Respuestas")->getValor("C147"), $this->getHoja("Respuestas")->getValor("C148"), $this->getHoja("Respuestas")->getValor("C149") * 3, $this->getHoja("Respuestas")->getValor("C156") * 2, $this->getHoja("Respuestas")->getValor("C164") * 3, $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("C167") * 2);
                 $this->hoja["D15"] = $this->sum($celdas);
                 break;
             case "D16":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C5"), $this->getHoja("Respuestas")->getValor("D8"), $this->getHoja("Respuestas")->getValor("D21") * 2, $this->getHoja("Respuestas")->getValor("C22") * 3, $this->getHoja("Respuestas")->getValor("C33"), $this->getHoja("Respuestas")->getValor("C40") * 3, $this->getHoja("Respuestas")->getValor("D41"), $this->getHoja("Respuestas")->getValor("D44"), $this->getHoja("Respuestas")->getValor("C47") * 3, $this->getHoja("Respuestas")->getValor("D49") * 2, $this->getHoja("Respuestas")->getValor("D51"), $this->getHoja("Respuestas")->getValor("D61"), $this->getHoja("Respuestas")->getValor("C62") * 3, $this->getHoja("Respuestas")->getValor("C65") * 2, $this->getHoja("Respuestas")->getValor("D67"), $this->getHoja("Respuestas")->getValor("C75"), $this->getHoja("Respuestas")->getValor("C76") * 3, $this->getHoja("Respuestas")->getValor("D78"), $this->getHoja("Respuestas")->getValor("C79"), $this->getHoja("Respuestas")->getValor("C82"), $this->getHoja("Respuestas")->getValor("D87") * 2, $this->getHoja("Respuestas")->getValor("C89") * 3, $this->getHoja("Respuestas")->getValor("D93"), $this->getHoja("Respuestas")->getValor("D96"), $this->getHoja("Respuestas")->getValor("D104"), $this->getHoja("Respuestas")->getValor("D112"), $this->getHoja("Respuestas")->getValor("C127") * 3, $this->getHoja("Respuestas")->getValor("D129"), $this->getHoja("Respuestas")->getValor("C135") * 2, $this->getHoja("Respuestas")->getValor("C139") * 3, $this->getHoja("Respuestas")->getValor("D146") * 2, $this->getHoja("Respuestas")->getValor("C149") * 2, $this->getHoja("Respuestas")->getValor("C150") * 3, $this->getHoja("Respuestas")->getValor("C154") * 3, $this->getHoja("Respuestas")->getValor("D156"), $this->getHoja("Respuestas")->getValor("C160") * 2, $this->getHoja("Respuestas")->getValor("C162") * 2, $this->getHoja("Respuestas")->getValor("C164") * 2);
                 $this->hoja["D16"] = $this->sum($celdas);
                 break;
             case "D17":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2"), $this->getHoja("Respuestas")->getValor("C5"), $this->getHoja("Respuestas")->getValor("C10") * 2, $this->getHoja("Respuestas")->getValor("C13"), $this->getHoja("Respuestas")->getValor("C17") * 2, $this->getHoja("Respuestas")->getValor("C22"), $this->getHoja("Respuestas")->getValor("C23") * 3, $this->getHoja("Respuestas")->getValor("C24"), $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("C29") * 2, $this->getHoja("Respuestas")->getValor("C44") * 2, $this->getHoja("Respuestas")->getValor("C51") * 3, $this->getHoja("Respuestas")->getValor("C52"), $this->getHoja("Respuestas")->getValor("C56") * 3, $this->getHoja("Respuestas")->getValor("C59"), $this->getHoja("Respuestas")->getValor("D62"), $this->getHoja("Respuestas")->getValor("C65") * 2, $this->getHoja("Respuestas")->getValor("C67") * 3, $this->getHoja("Respuestas")->getValor("C74") * 2, $this->getHoja("Respuestas")->getValor("C75") * 2, $this->getHoja("Respuestas")->getValor("C78") * 2, $this->getHoja("Respuestas")->getValor("C83") * 2, $this->getHoja("Respuestas")->getValor("C87") * 2, $this->getHoja("Respuestas")->getValor("C96") * 3, $this->getHoja("Respuestas")->getValor("C102") * 2, $this->getHoja("Respuestas")->getValor("C105") * 3, $this->getHoja("Respuestas")->getValor("C108") * 3, $this->getHoja("Respuestas")->getValor("C111"), $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C121"), $this->getHoja("Respuestas")->getValor("C124") * 2, $this->getHoja("Respuestas")->getValor("C129") * 2, $this->getHoja("Respuestas")->getValor("C130"), $this->getHoja("Respuestas")->getValor("C136") * 3, $this->getHoja("Respuestas")->getValor("C140"), $this->getHoja("Respuestas")->getValor("D150") * 2, $this->getHoja("Respuestas")->getValor("C156") * 2, $this->getHoja("Respuestas")->getValor("C157") * 3, $this->getHoja("Respuestas")->getValor("D160") * 2, $this->getHoja("Respuestas")->getValor("C166") * 3, $this->getHoja("Respuestas")->getValor("C172") * 3);
                 $this->hoja["D17"] = $this->sum($celdas);
                 break;
             case "D18":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C9"), $this->getHoja("Respuestas")->getValor("C11") * 2, $this->getHoja("Respuestas")->getValor("C17") * 2, $this->getHoja("Respuestas")->getValor("C19"), $this->getHoja("Respuestas")->getValor("C24") * 3, $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("C29") * 2, $this->getHoja("Respuestas")->getValor("C32"), $this->getHoja("Respuestas")->getValor("C43") * 2, $this->getHoja("Respuestas")->getValor("C46") * 2, $this->getHoja("Respuestas")->getValor("C52") * 2, $this->getHoja("Respuestas")->getValor("C55") * 2, $this->getHoja("Respuestas")->getValor("C57") * 2, $this->getHoja("Respuestas")->getValor("C58") * 3, $this->getHoja("Respuestas")->getValor("C64"), $this->getHoja("Respuestas")->getValor("C66") * 3, $this->getHoja("Respuestas")->getValor("C72"), $this->getHoja("Respuestas")->getValor("C74"), $this->getHoja("Respuestas")->getValor("D75"), $this->getHoja("Respuestas")->getValor("C78") * 2, $this->getHoja("Respuestas")->getValor("C82"), $this->getHoja("Respuestas")->getValor("C83"), $this->getHoja("Respuestas")->getValor("C100"), $this->getHoja("Respuestas")->getValor("C107") * 2, $this->getHoja("Respuestas")->getValor("C111") * 3, $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C121") * 2, $this->getHoja("Respuestas")->getValor("C122") * 3, $this->getHoja("Respuestas")->getValor("C129"), $this->getHoja("Respuestas")->getValor("C133") * 2, $this->getHoja("Respuestas")->getValor("C134"), $this->getHoja("Respuestas")->getValor("C140") * 3, $this->getHoja("Respuestas")->getValor("C142"), $this->getHoja("Respuestas")->getValor("C146") * 2, $this->getHoja("Respuestas")->getValor("C155") * 3, $this->getHoja("Respuestas")->getValor("C156") * 2, $this->getHoja("Respuestas")->getValor("C168"), $this->getHoja("Respuestas")->getValor("C169") * 3, $this->getHoja("Respuestas")->getValor("C172") * 2, $this->getHoja("Respuestas")->getValor("C174") * 3);
                 $this->hoja["D18"] = $this->sum($celdas);
                 break;
             case "D21":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C3") * 2, $this->getHoja("Respuestas")->getValor("C4") * 2, $this->getHoja("Respuestas")->getValor("C9") * 2, $this->getHoja("Respuestas")->getValor("C11"), $this->getHoja("Respuestas")->getValor("C14"), $this->getHoja("Respuestas")->getValor("D15"), $this->getHoja("Respuestas")->getValor("C20"), $this->getHoja("Respuestas")->getValor("C24"), $this->getHoja("Respuestas")->getValor("C25") * 3, $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("C32") * 2, $this->getHoja("Respuestas")->getValor("C39") * 2, $this->getHoja("Respuestas")->getValor("C48") * 3, $this->getHoja("Respuestas")->getValor("C58") * 3, $this->getHoja("Respuestas")->getValor("D49"), $this->getHoja("Respuestas")->getValor("C50") * 2, $this->getHoja("Respuestas")->getValor("C54"), $this->getHoja("Respuestas")->getValor("D61"), $this->getHoja("Respuestas")->getValor("C64") * 2, $this->getHoja("Respuestas")->getValor("C70") * 3, $this->getHoja("Respuestas")->getValor("C78") * 2, $this->getHoja("Respuestas")->getValor("C84") * 3, $this->getHoja("Respuestas")->getValor("C86") * 2, $this->getHoja("Respuestas")->getValor("C101") * 2, $this->getHoja("Respuestas")->getValor("C103") * 3, $this->getHoja("Respuestas")->getValor("C109"), $this->getHoja("Respuestas")->getValor("C113") * 3, $this->getHoja("Respuestas")->getValor("C114") * 2, $this->getHoja("Respuestas")->getValor("C119") * 3, $this->getHoja("Respuestas")->getValor("C121") * 2, $this->getHoja("Respuestas")->getValor("C124") * 2, $this->getHoja("Respuestas")->getValor("C125") * 2, $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C134") * 2, $this->getHoja("Respuestas")->getValor("C137"), $this->getHoja("Respuestas")->getValor("C142") * 2, $this->getHoja("Respuestas")->getValor("C148"), $this->getHoja("Respuestas")->getValor("C151") * 3, $this->getHoja("Respuestas")->getValor("C159") * 2, $this->getHoja("Respuestas")->getValor("C161"), $this->getHoja("Respuestas")->getValor("C162"), $this->getHoja("Respuestas")->getValor("C163"), $this->getHoja("Respuestas")->getValor("C165") * 2, $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("D167") * 2);
                 $this->hoja["D21"] = $this->sum($celdas);
                 break;
             case "D22":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C6") * 2, $this->getHoja("Respuestas")->getValor("C8"), $this->getHoja("Respuestas")->getValor("C23") * 2, $this->getHoja("Respuestas")->getValor("C24") * 2, $this->getHoja("Respuestas")->getValor("C26") * 3, $this->getHoja("Respuestas")->getValor("C27") * 2, $this->getHoja("Respuestas")->getValor("C28") * 2, $this->getHoja("Respuestas")->getValor("C36") * 2, $this->getHoja("Respuestas")->getValor("C37"), $this->getHoja("Respuestas")->getValor("C41"), $this->getHoja("Respuestas")->getValor("C44") * 3, $this->getHoja("Respuestas")->getValor("C45"), $this->getHoja("Respuestas")->getValor("C51") * 2, $this->getHoja("Respuestas")->getValor("C52"), $this->getHoja("Respuestas")->getValor("C54"), $this->getHoja("Respuestas")->getValor("C55"), $this->getHoja("Respuestas")->getValor("C57") * 3, $this->getHoja("Respuestas")->getValor("C58"), $this->getHoja("Respuestas")->getValor("C59") * 3, $this->getHoja("Respuestas")->getValor("C60") * 2, $this->getHoja("Respuestas")->getValor("C66"), $this->getHoja("Respuestas")->getValor("C67") * 2, $this->getHoja("Respuestas")->getValor("C68"), $this->getHoja("Respuestas")->getValor("C73"), $this->getHoja("Respuestas")->getValor("C74") * 3, $this->getHoja("Respuestas")->getValor("C75"), $this->getHoja("Respuestas")->getValor("C78"), $this->getHoja("Respuestas")->getValor("C79"), $this->getHoja("Respuestas")->getValor("C80") * 2, $this->getHoja("Respuestas")->getValor("C83") * 3, $this->getHoja("Respuestas")->getValor("C92") * 2, $this->getHoja("Respuestas")->getValor("C95"), $this->getHoja("Respuestas")->getValor("C96") * 2, $this->getHoja("Respuestas")->getValor("C98") * 2, $this->getHoja("Respuestas")->getValor("C100"), $this->getHoja("Respuestas")->getValor("C102") * 2, $this->getHoja("Respuestas")->getValor("C104"), $this->getHoja("Respuestas")->getValor("C105"), $this->getHoja("Respuestas")->getValor("C109"), $this->getHoja("Respuestas")->getValor("C111"), $this->getHoja("Respuestas")->getValor("C114") * 3, $this->getHoja("Respuestas")->getValor("C116") * 3, $this->getHoja("Respuestas")->getValor("C129") * 3, $this->getHoja("Respuestas")->getValor("C130") * 2, $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C133"), $this->getHoja("Respuestas")->getValor("C136"), $this->getHoja("Respuestas")->getValor("C137") * 2, $this->getHoja("Respuestas")->getValor("C140"), $this->getHoja("Respuestas")->getValor("C141") * 2, $this->getHoja("Respuestas")->getValor("C143") * 2, $this->getHoja("Respuestas")->getValor("C145"), $this->getHoja("Respuestas")->getValor("C148"), $this->getHoja("Respuestas")->getValor("155"), $this->getHoja("Respuestas")->getValor("C156") * 3, $this->getHoja("Respuestas")->getValor("C157") * 2, $this->getHoja("Respuestas")->getValor("C163"), $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("C168"), $this->getHoja("Respuestas")->getValor("C169"), $this->getHoja("Respuestas")->getValor("C172") * 3, $this->getHoja("Respuestas")->getValor("C174"));
                 $this->hoja["D22"] = $this->sum($celdas);
                 break;
             case "D23":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C7"), $this->getHoja("Respuestas")->getValor("C13"), $this->getHoja("Respuestas")->getValor("C16") * 2, $this->getHoja("Respuestas")->getValor("C17") * 3, $this->getHoja("Respuestas")->getValor("C22"), $this->getHoja("Respuestas")->getValor("C23"), $this->getHoja("Respuestas")->getValor("C25") * 2, $this->getHoja("Respuestas")->getValor("C31"), $this->getHoja("Respuestas")->getValor("C33") * 3, $this->getHoja("Respuestas")->getValor("C38") * 2, $this->getHoja("Respuestas")->getValor("C39") * 3, $this->getHoja("Respuestas")->getValor("C40"), $this->getHoja("Respuestas")->getValor("C42"), $this->getHoja("Respuestas")->getValor("C44"), $this->getHoja("Respuestas")->getValor("C45"), $this->getHoja("Respuestas")->getValor("C47") * 2, $this->getHoja("Respuestas")->getValor("C56"), $this->getHoja("Respuestas")->getValor("C62"), $this->getHoja("Respuestas")->getValor("C64"), $this->getHoja("Respuestas")->getValor("C65") * 3, $this->getHoja("Respuestas")->getValor("C69"), $this->getHoja("Respuestas")->getValor("C75") * 3, $this->getHoja("Respuestas")->getValor("C76"), $this->getHoja("Respuestas")->getValor("C81") * 2, $this->getHoja("Respuestas")->getValor("C85") * 3, $this->getHoja("Respuestas")->getValor("C86") * 3, $this->getHoja("Respuestas")->getValor("C90") * 2, $this->getHoja("Respuestas")->getValor("C99"), $this->getHoja("Respuestas")->getValor("C101") * 2, $this->getHoja("Respuestas")->getValor("C104") * 2, $this->getHoja("Respuestas")->getValor("C124") * 2, $this->getHoja("Respuestas")->getValor("C127") * 2, $this->getHoja("Respuestas")->getValor("C128") * 1, $this->getHoja("Respuestas")->getValor("C130") * 2, $this->getHoja("Respuestas")->getValor("C132") * 2, $this->getHoja("Respuestas")->getValor("C136"), $this->getHoja("Respuestas")->getValor("C139"), $this->getHoja("Respuestas")->getValor("C144"), $this->getHoja("Respuestas")->getValor("C147") * 3, $this->getHoja("Respuestas")->getValor("C164"), $this->getHoja("Respuestas")->getValor("C165") * 3, $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("C172"), $this->getHoja("Respuestas")->getValor("C173"));
                 $this->hoja["D23"] = $this->sum($celdas);
                 break;
             case "D27":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C6"), $this->getHoja("Respuestas")->getValor("C19") * 2, $this->getHoja("Respuestas")->getValor("C27"), $this->getHoja("Respuestas")->getValor("C30") * 3, $this->getHoja("Respuestas")->getValor("C32"), $this->getHoja("Respuestas")->getValor("C34") * 3, $this->getHoja("Respuestas")->getValor("C37"), $this->getHoja("Respuestas")->getValor("D42"), $this->getHoja("Respuestas")->getValor("C43"), $this->getHoja("Respuestas")->getValor("C51"), $this->getHoja("Respuestas")->getValor("C52") * 2, $this->getHoja("Respuestas")->getValor("C54") * 2, $this->getHoja("Respuestas")->getValor("C57"), $this->getHoja("Respuestas")->getValor("C61"), $this->getHoja("Respuestas")->getValor("C67"), $this->getHoja("Respuestas")->getValor("C68") * 2, $this->getHoja("Respuestas")->getValor("C69") * 3, $this->getHoja("Respuestas")->getValor("C72") * 3, $this->getHoja("Respuestas")->getValor("C73") * 3, $this->getHoja("Respuestas")->getValor("C79"), $this->getHoja("Respuestas")->getValor("C97") * 3, $this->getHoja("Respuestas")->getValor("C99") * 2, $this->getHoja("Respuestas")->getValor("C103"), $this->getHoja("Respuestas")->getValor("C110"), $this->getHoja("Respuestas")->getValor("C115") * 2, $this->getHoja("Respuestas")->getValor("C118"), $this->getHoja("Respuestas")->getValor("C119"), $this->getHoja("Respuestas")->getValor("C138"), $this->getHoja("Respuestas")->getValor("C146"), $this->getHoja("Respuestas")->getValor("C171"), $this->getHoja("Respuestas")->getValor("C174"));
                 $this->hoja["D27"] = $this->sum($celdas);
                 break;
             case "D28":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C12") * 3, $this->getHoja("Respuestas")->getValor("C15") * 2, $this->getHoja("Respuestas")->getValor("C18"), $this->getHoja("Respuestas")->getValor("D20"), $this->getHoja("Respuestas")->getValor("C21") * 2, $this->getHoja("Respuestas")->getValor("C29") * 2, $this->getHoja("Respuestas")->getValor("C38"), $this->getHoja("Respuestas")->getValor("C41"), $this->getHoja("Respuestas")->getValor("D43"), $this->getHoja("Respuestas")->getValor("C51") * 2, $this->getHoja("Respuestas")->getValor("C59"), $this->getHoja("Respuestas")->getValor("C61") * 2, $this->getHoja("Respuestas")->getValor("C67"), $this->getHoja("Respuestas")->getValor("C68"), $this->getHoja("Respuestas")->getValor("C74"), $this->getHoja("Respuestas")->getValor("C87") * 2, $this->getHoja("Respuestas")->getValor("C90"), $this->getHoja("Respuestas")->getValor("C94") * 3, $this->getHoja("Respuestas")->getValor("C96"), $this->getHoja("Respuestas")->getValor("C99"), $this->getHoja("Respuestas")->getValor("C102"), $this->getHoja("Respuestas")->getValor("C104") * 2, $this->getHoja("Respuestas")->getValor("C112"), $this->getHoja("Respuestas")->getValor("C122"), $this->getHoja("Respuestas")->getValor("C126") * 2, $this->getHoja("Respuestas")->getValor("C128"), $this->getHoja("Respuestas")->getValor("C129") * 2, $this->getHoja("Respuestas")->getValor("C132"), $this->getHoja("Respuestas")->getValor("C135") * 2, $this->getHoja("Respuestas")->getValor("C138") * 2, $this->getHoja("Respuestas")->getValor("C152") * 3, $this->getHoja("Respuestas")->getValor("D159"), $this->getHoja("Respuestas")->getValor("D162"), $this->getHoja("Respuestas")->getValor("C167"), $this->getHoja("Respuestas")->getValor("C171") * 2, $this->getHoja("Respuestas")->getValor("C173"), $this->getHoja("Respuestas")->getValor("C175") * 3);
                 $this->hoja["D28"] = $this->sum($celdas);
                 break;
             case "D29":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C6") * 2, $this->getHoja("Respuestas")->getValor("C9") * 2, $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("C27") * 2, $this->getHoja("Respuestas")->getValor("C28") * 3, $this->getHoja("Respuestas")->getValor("C37") * 2, $this->getHoja("Respuestas")->getValor("D42"), $this->getHoja("Respuestas")->getValor("C46") * 3, $this->getHoja("Respuestas")->getValor("C47"), $this->getHoja("Respuestas")->getValor("C52") * 2, $this->getHoja("Respuestas")->getValor("C54") * 2, $this->getHoja("Respuestas")->getValor("C55") * 3, $this->getHoja("Respuestas")->getValor("C57"), $this->getHoja("Respuestas")->getValor("C60") * 2, $this->getHoja("Respuestas")->getValor("C66") * 2, $this->getHoja("Respuestas")->getValor("C72") * 2, $this->getHoja("Respuestas")->getValor("C73") * 2, $this->getHoja("Respuestas")->getValor("C77") * 2, $this->getHoja("Respuestas")->getValor("C80") * 3, $this->getHoja("Respuestas")->getValor("C84") * 2, $this->getHoja("Respuestas")->getValor("D87"), $this->getHoja("Respuestas")->getValor("C97") * 2, $this->getHoja("Respuestas")->getValor("C98") * 3, $this->getHoja("Respuestas")->getValor("C100") * 3, $this->getHoja("Respuestas")->getValor("C108"), $this->getHoja("Respuestas")->getValor("C109") * 3, $this->getHoja("Respuestas")->getValor("C110") * 2, $this->getHoja("Respuestas")->getValor("C111"), $this->getHoja("Respuestas")->getValor("C133") * 3, $this->getHoja("Respuestas")->getValor("C137") * 2, $this->getHoja("Respuestas")->getValor("C140"), $this->getHoja("Respuestas")->getValor("C155") * 2, $this->getHoja("Respuestas")->getValor("C156"), $this->getHoja("Respuestas")->getValor("D167") * 2, $this->getHoja("Respuestas")->getValor("C168"), $this->getHoja("Respuestas")->getValor("C169"));
                 $this->hoja["D29"] = $this->sum($celdas);
                 break;
             case "D30":
                 $celdas = array($this->getHoja("Respuestas")->getValor("D9"), $this->getHoja("Respuestas")->getValor("C18") * 3, $this->getHoja("Respuestas")->getValor("C19") * 2, $this->getHoja("Respuestas")->getValor("C23"), $this->getHoja("Respuestas")->getValor("C24"), $this->getHoja("Respuestas")->getValor("C26"), $this->getHoja("Respuestas")->getValor("C28"), $this->getHoja("Respuestas")->getValor("C36"), $this->getHoja("Respuestas")->getValor("C41"), $this->getHoja("Respuestas")->getValor("C47"), $this->getHoja("Respuestas")->getValor("D53") * 2, $this->getHoja("Respuestas")->getValor("C55") * 2, $this->getHoja("Respuestas")->getValor("C66"), $this->getHoja("Respuestas")->getValor("C71"), $this->getHoja("Respuestas")->getValor("C74") * 2, $this->getHoja("Respuestas")->getValor("C81"), $this->getHoja("Respuestas")->getValor("C88") * 3, $this->getHoja("Respuestas")->getValor("C94"), $this->getHoja("Respuestas")->getValor("C96") * 2, $this->getHoja("Respuestas")->getValor("C97"), $this->getHoja("Respuestas")->getValor("C98") * 2, $this->getHoja("Respuestas")->getValor("C104"), $this->getHoja("Respuestas")->getValor("C105"), $this->getHoja("Respuestas")->getValor("C106") * 2, $this->getHoja("Respuestas")->getValor("C109"), $this->getHoja("Respuestas")->getValor("C110") * 2, $this->getHoja("Respuestas")->getValor("C112"), $this->getHoja("Respuestas")->getValor("C115"), $this->getHoja("Respuestas")->getValor("C118"), $this->getHoja("Respuestas")->getValor("C120") * 3, $this->getHoja("Respuestas")->getValor("D123") * 2, $this->getHoja("Respuestas")->getValor("C126"), $this->getHoja("Respuestas")->getValor("C129"), $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C136"), $this->getHoja("Respuestas")->getValor("C138"), $this->getHoja("Respuestas")->getValor("C141"), $this->getHoja("Respuestas")->getValor("C145") * 2, $this->getHoja("Respuestas")->getValor("C150"), $this->getHoja("Respuestas")->getValor("C156"), $this->getHoja("Respuestas")->getValor("C158") * 3, $this->getHoja("Respuestas")->getValor("C160"), $this->getHoja("Respuestas")->getValor("C163"), $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("C172"), $this->getHoja("Respuestas")->getValor("C176") * 2);
                 $this->hoja["D30"] = $this->sum($celdas);
                 break;
             case "D31":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C2") * 2, $this->getHoja("Respuestas")->getValor("C7"), $this->getHoja("Respuestas")->getValor("C8") * 2, $this->getHoja("Respuestas")->getValor("C10") * 2, $this->getHoja("Respuestas")->getValor("C13"), $this->getHoja("Respuestas")->getValor("C15"), $this->getHoja("Respuestas")->getValor("C21") * 2, $this->getHoja("Respuestas")->getValor("C23") * 2, $this->getHoja("Respuestas")->getValor("C31"), $this->getHoja("Respuestas")->getValor("C34"), $this->getHoja("Respuestas")->getValor("C36") * 3, $this->getHoja("Respuestas")->getValor("C41") * 2, $this->getHoja("Respuestas")->getValor("C44") * 2, $this->getHoja("Respuestas")->getValor("C45"), $this->getHoja("Respuestas")->getValor("C51"), $this->getHoja("Respuestas")->getValor("C56"), $this->getHoja("Respuestas")->getValor("C59") * 2, $this->getHoja("Respuestas")->getValor("C61"), $this->getHoja("Respuestas")->getValor("D62"), $this->getHoja("Respuestas")->getValor("C67"), $this->getHoja("Respuestas")->getValor("C71") * 3, $this->getHoja("Respuestas")->getValor("C74") * 2, $this->getHoja("Respuestas")->getValor("C81") * 2, $this->getHoja("Respuestas")->getValor("C83") * 2, $this->getHoja("Respuestas")->getValor("C87") * 2, $this->getHoja("Respuestas")->getValor("C90"), $this->getHoja("Respuestas")->getValor("C92") * 2, $this->getHoja("Respuestas")->getValor("C93") * 2, $this->getHoja("Respuestas")->getValor("C94"), $this->getHoja("Respuestas")->getValor("C95"), $this->getHoja("Respuestas")->getValor("C96") * 2, $this->getHoja("Respuestas")->getValor("C102"), $this->getHoja("Respuestas")->getValor("C104") * 2, $this->getHoja("Respuestas")->getValor("C105"), $this->getHoja("Respuestas")->getValor("C106") * 3, $this->getHoja("Respuestas")->getValor("C112"), $this->getHoja("Respuestas")->getValor("C114"), $this->getHoja("Respuestas")->getValor("C115"), $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C118") * 2, $this->getHoja("Respuestas")->getValor("C117"), $this->getHoja("Respuestas")->getValor("C121"), $this->getHoja("Respuestas")->getValor("C124"), $this->getHoja("Respuestas")->getValor("C126"), $this->getHoja("Respuestas")->getValor("C129"), $this->getHoja("Respuestas")->getValor("C130") * 2, $this->getHoja("Respuestas")->getValor("C131"), $this->getHoja("Respuestas")->getValor("C138"), $this->getHoja("Respuestas")->getValor("C141") * 3, $this->getHoja("Respuestas")->getValor("C145") * 3, $this->getHoja("Respuestas")->getValor("C147"), $this->getHoja("Respuestas")->getValor("C156"), $this->getHoja("Respuestas")->getValor("C163") * 2, $this->getHoja("Respuestas")->getValor("C166"), $this->getHoja("Respuestas")->getValor("C167"), $this->getHoja("Respuestas")->getValor("C172"), $this->getHoja("Respuestas")->getValor("C173"), $this->getHoja("Respuestas")->getValor("C176") * 3);
                 $this->hoja["D31"] = $this->sum($celdas);
                 break;
             case "D34":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C4"), $this->getHoja("Respuestas")->getValor("C9"), $this->getHoja("Respuestas")->getValor("C14"), $this->getHoja("Respuestas")->getValor("C20"), $this->getHoja("Respuestas")->getValor("C24"), $this->getHoja("Respuestas")->getValor("C25"), $this->getHoja("Respuestas")->getValor("C30"), $this->getHoja("Respuestas")->getValor("C32"), $this->getHoja("Respuestas")->getValor("C39") * 2, $this->getHoja("Respuestas")->getValor("C69") * 2, $this->getHoja("Respuestas")->getValor("C70") * 2, $this->getHoja("Respuestas")->getValor("C75"), $this->getHoja("Respuestas")->getValor("C78") * 2, $this->getHoja("Respuestas")->getValor("C81") * 2, $this->getHoja("Respuestas")->getValor("C83"), $this->getHoja("Respuestas")->getValor("C84") * 2, $this->getHoja("Respuestas")->getValor("C86") * 2, $this->getHoja("Respuestas")->getValor("C99") * 3, $this->getHoja("Respuestas")->getValor("C103") * 2, $this->getHoja("Respuestas")->getValor("C110") * 3, $this->getHoja("Respuestas")->getValor("C113") * 2, $this->getHoja("Respuestas")->getValor("C116") * 2, $this->getHoja("Respuestas")->getValor("C121") * 2, $this->getHoja("Respuestas")->getValor("C125") * 3, $this->getHoja("Respuestas")->getValor("C128") * 3, $this->getHoja("Respuestas")->getValor("C142"), $this->getHoja("Respuestas")->getValor("C147") * 2, $this->getHoja("Respuestas")->getValor("C148"), $this->getHoja("Respuestas")->getValor("C157"), $this->getHoja("Respuestas")->getValor("C161") * 3, $this->getHoja("Respuestas")->getValor("C162"), $this->getHoja("Respuestas")->getValor("C165") * 2, $this->getHoja("Respuestas")->getValor("C168") * 3);
                 $this->hoja["D34"] = $this->sum($celdas);
                 break;
             case "D35":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C6") * 3, $this->getHoja("Respuestas")->getValor("C20"), $this->getHoja("Respuestas")->getValor("C27") * 3, $this->getHoja("Respuestas")->getValor("C34") * 2, $this->getHoja("Respuestas")->getValor("C37") * 3, $this->getHoja("Respuestas")->getValor("C46") * 2, $this->getHoja("Respuestas")->getValor("C48") * 2, $this->getHoja("Respuestas")->getValor("C51") * 2, $this->getHoja("Respuestas")->getValor("C52"), $this->getHoja("Respuestas")->getValor("C54") * 3, $this->getHoja("Respuestas")->getValor("C55"), $this->getHoja("Respuestas")->getValor("C57") * 2, $this->getHoja("Respuestas")->getValor("C58"), $this->getHoja("Respuestas")->getValor("C59"), $this->getHoja("Respuestas")->getValor("C60") * 3, $this->getHoja("Respuestas")->getValor("C66"), $this->getHoja("Respuestas")->getValor("C68"), $this->getHoja("Respuestas")->getValor("C73") * 2, $this->getHoja("Respuestas")->getValor("C77") * 3, $this->getHoja("Respuestas")->getValor("C80") * 2, $this->getHoja("Respuestas")->getValor("C82"), $this->getHoja("Respuestas")->getValor("C83"), $this->getHoja("Respuestas")->getValor("C96"), $this->getHoja("Respuestas")->getValor("C97") * 2, $this->getHoja("Respuestas")->getValor("C100"), $this->getHoja("Respuestas")->getValor("C109") * 2, $this->getHoja("Respuestas")->getValor("C110") * 2, $this->getHoja("Respuestas")->getValor("C111"), $this->getHoja("Respuestas")->getValor("C118"), $this->getHoja("Respuestas")->getValor("C137") * 3, $this->getHoja("Respuestas")->getValor("C155"));
                 $this->hoja["D35"] = $this->sum($celdas);
                 break;
             case "D36":
                 $celdas = array($this->getHoja("Respuestas")->getValor("C16"), $this->getHoja("Respuestas")->getValor("C17") * 2, $this->getHoja("Respuestas")->getValor("C25") * 2, $this->getHoja("Respuestas")->getValor("C33"), $this->getHoja("Respuestas")->getValor("C39") * 2, $this->getHoja("Respuestas")->getValor("C40"), $this->getHoja("Respuestas")->getValor("C70") * 2, $this->getHoja("Respuestas")->getValor("C75"), $this->getHoja("Respuestas")->getValor("C81") * 3, $this->getHoja("Respuestas")->getValor("C85") * 2, $this->getHoja("Respuestas")->getValor("C86") * 2, $this->getHoja("Respuestas")->getValor("C90"), $this->getHoja("Respuestas")->getValor("C99") * 2, $this->getHoja("Respuestas")->getValor("C101") * 3, $this->getHoja("Respuestas")->getValor("C113"), $this->getHoja("Respuestas")->getValor("C124") * 3, $this->getHoja("Respuestas")->getValor("C127"), $this->getHoja("Respuestas")->getValor("C132") * 2, $this->getHoja("Respuestas")->getValor("C139"), $this->getHoja("Respuestas")->getValor("C144"), $this->getHoja("Respuestas")->getValor("C147") * 2, $this->getHoja("Respuestas")->getValor("C165") * 2);
                 $this->hoja["D36"] = $this->sum($celdas);
                 break;
             case "F2":
                 $this->hoja["F2"] = $this->getHoja("Auxiliar")->getValor("E4") == "Verdadero" ? "Valido" : "Invalido";
             case "F3":
                 $this->hoja["F3"] = $this->getHoja("Auxiliar")->getValor("C5") == "Verdadero" ? "Valido" : "Invalido";
             case "H10":
                 $this->hoja["H10"] = $this->getHoja("Auxiliar")->getValor("E78") > 0 ? $this->getHoja("Auxiliar")->getValor("E78") : $this->getHoja("Resultados")->getValor("F10");
             case "H18":
                 $this->hoja["H18"] = $this->getHoja("Auxiliar")->getValor("F78") > 0 ? $this->getHoja("Auxiliar")->getValor("F78") : $this->getHoja("Resultados")->getValor("F18");
             case "H22":
                 $this->hoja["H22"] = $this->getHoja("Auxiliar")->getValor("G78") > 0 ? $this->getHoja("Auxiliar")->getValor("G78") : $this->getHoja("Resultados")->getValor("G22");
             case "I21":
                 $this->hoja["I21"] = round($this->getHoja("Auxiliar")->getValor("C81") + $this->getHoja("Resultados")->getValor("G21"));
             case "I22":
                 $this->hoja["I22"] = round($this->getHoja("Auxiliar")->getValor("C81") + $this->getHoja("Resultados")->getValor("H22"));
             case "I26":
                 $this->hoja["I26"] = round($this->getHoja("Auxiliar")->getValor("C81") + $this->getHoja("Resultados")->getValor("F26"));
             case "I27":
                 $this->hoja["I27"] = round($this->getHoja("Auxiliar")->getValor("C81") + $this->getHoja("Resultados")->getValor("F27"));
             case "I29":
                 $this->hoja["I29"] = round($this->getHoja("Auxiliar")->getValor("C81") + $this->getHoja("Resultados")->getValor("F29"));
             case "J21":
                 $this->hoja["J21"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("I21") + 4 : $this->getHoja("Resultados")->getValor("I21");
             case "J22":
                 $this->hoja["J22"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("I22") + 4 : $this->getHoja("Resultados")->getValor("I22");
             case "J23":
                 $this->hoja["J23"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("G23") + 2 : $this->getHoja("Resultados")->getValor("G23");
             case "J26":
                 $this->hoja["J26"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("I26") + 15 : $this->getHoja("Resultados")->getValor("I26");
             case "J27":
                 $this->hoja["J27"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("I27") + 13 : $this->getHoja("Resultados")->getValor("I27");
             case "J29":
                 $this->hoja["J29"] = $this->getHoja("Auxiliar")->getValor("C86") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("I29") + 15 : $this->getHoja("Resultados")->getValor("I29");
             case "K21":
                 $this->hoja["K21"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J21") - 2 : $this->getHoja("Resultados")->getValor("J21");
             case "K22":
                 $this->hoja["K22"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J22") - 6 : $this->getHoja("Resultados")->getValor("J22");
             case "K23":
                 $this->hoja["K23"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J23") - 7 : $this->getHoja("Resultados")->getValor("J23");
             case "K26":
                 $this->hoja["K26"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J26") - 7 : $this->getHoja("Resultados")->getValor("J26");
             case "K27":
                 $this->hoja["K27"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J27") - 5 : $this->getHoja("Resultados")->getValor("J27");
             case "K29":
                 $this->hoja["K29"] = $this->getHoja("Auxiliar")->getValor("C90") == 'Verdadero' ? $this->getHoja("Resultados")->getValor("J29") - 5 : $this->getHoja("Resultados")->getValor("J29");
             case "L34":
                 $this->hoja["L34"] = $this->getHoja("Auxiliar")->getValor("D95") + $this->getHoja("Resultados")->getValor("G34");
             case "L35":
                 $this->hoja["L35"] = $this->getHoja("Auxiliar")->getValor("E95") + $this->getHoja("Resultados")->getValor("G35");
             case "L36":
                 $this->hoja["L36"] = $this->getHoja("Auxiliar")->getValor("F95") + $this->getHoja("Resultados")->getValor("G36");
             default:
                 if (strpos($celda, 'E') != FALSE) {
                     $this->calcularE();
                 }
                 if (strpos($celda, 'F') != FALSE) {
                     $this->calcularF();
                 }
                 if (strpos($celda, 'G') != FALSE) {
                     $this->calcularG();
                 }
                 break;
         }
     }
     return parent::getValor($celda);
     // finalmente retorno el valor cualquiera sea el caso
 }
Esempio n. 7
0
 public function getValor($celda)
 {
     if (!isset($this->hoja[$celda])) {
         switch ($celda) {
             case "C3":
             case "C4":
             case "C5":
             case "C6":
             case "C7":
             case "C8":
             case "C9":
             case "C10":
             case "C11":
             case "C12":
             case "C13":
             case "C14":
             case "C15":
             case "C16":
             case "C17":
             case "C18":
             case "C19":
             case "C20":
             case "C21":
             case "C22":
             case "C23":
             case "C24":
             case "C25":
             case "C26":
             case "C27":
             case "C28":
             case "C29":
             case "C30":
             case "C31":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getValor("D" . $fila) == "Verdadero" ? $this->getValor("B" . $fila) : 0;
                 break;
             case "C2":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D3") <= $this->getValor("A" . $fila) ? $this->getValor("B" . $fila) : 0;
                 break;
             case "C32":
                 $this->hoja[$celda] = $this->sumBetween("C2", "C31");
                 break;
             case "D3":
             case "D4":
             case "D5":
             case "D6":
             case "D7":
             case "D8":
             case "D9":
             case "D10":
             case "D11":
             case "D12":
             case "D13":
             case "D14":
             case "D15":
             case "D16":
             case "D17":
             case "D18":
             case "D19":
             case "D20":
             case "D21":
             case "D22":
             case "D23":
             case "D24":
             case "D25":
             case "D26":
             case "D27":
             case "D28":
             case "D29":
             case "D30":
             case "D31":
                 $fila = $this->cell2row($celda);
                 $ResultadosD3 = $this->getHoja("Resultados")->getValor("D3");
                 if ($ResultadosD3 > $this->getValor("A" . ($fila - 1)) and $ResultadosD3 <= $this->getValor("A" . $fila)) {
                     $this->hoja[$celda] = "Verdadero";
                 } else {
                     $this->hoja[$celda] = "Falso";
                 }
                 break;
             case "G2":
             case "G3":
             case "G4":
             case "G5":
             case "G6":
             case "G7":
             case "G8":
             case "G9":
             case "G10":
             case "G11":
             case "G12":
             case "G13":
             case "G14":
             case "G15":
             case "G16":
             case "G17":
             case "G18":
             case "G19":
             case "G20":
             case "G21":
             case "G22":
             case "G23":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D4") == $this->getValor("E" . $fila) ? $this->getValor("F" . $fila) : 0;
                 break;
             case "G24":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D4") >= $this->getValor("E" . $fila) ? $this->getValor("F" . $fila) : 0;
                 break;
             case "G25":
                 $this->hoja[$celda] = $this->sumBetween("G2", "G24");
                 break;
             case "J2":
             case "J3":
             case "J4":
             case "J5":
             case "J6":
             case "J7":
             case "J8":
             case "J9":
             case "J10":
             case "J11":
             case "J12":
             case "J13":
             case "J14":
             case "J15":
             case "J16":
             case "J17":
             case "J18":
             case "J19":
             case "J20":
             case "J21":
             case "J22":
             case "J23":
             case "J24":
             case "J25":
             case "J26":
             case "J27":
             case "J28":
             case "J29":
             case "J30":
             case "J31":
             case "J32":
             case "J33":
             case "J34":
             case "J35":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D5") == $this->getValor("H" . $fila) ? $this->getValor("I" . $fila) : 0;
                 break;
             case "J36":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D5") >= $this->getValor("H" . $fila) ? $this->getValor("I" . $fila) : 0;
                 break;
             case "J37":
                 $this->hoja[$celda] = $this->sumBetween("J2", "J36");
             case "M2":
             case "M3":
             case "M4":
             case "M5":
             case "M6":
             case "M7":
             case "M8":
             case "M9":
             case "M10":
             case "M11":
             case "M12":
             case "M13":
             case "M14":
             case "M15":
             case "M16":
             case "M17":
             case "M18":
             case "M19":
             case "M20":
             case "M21":
             case "M22":
             case "M23":
             case "M24":
             case "M25":
             case "M26":
             case "M27":
             case "M28":
             case "M29":
             case "M30":
             case "M31":
             case "M32":
             case "M33":
             case "M34":
             case "M35":
             case "M36":
             case "M37":
             case "M38":
             case "M39":
             case "M40":
             case "M41":
             case "M42":
                 break;
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D9") == $this->getValor("K" . $fila) ? $this->getValor("L" . $fila) : 0;
                 break;
             case "M43":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D9") >= $this->getValor("K" . $fila) ? $this->getValor("L" . $fila) : 0;
                 break;
             case "M44":
                 $this->hoja[$celda] = $this->sumBetween("M2", "M43");
                 break;
             case "P2":
             case "P3":
             case "P4":
             case "P5":
             case "P6":
             case "P7":
             case "P8":
             case "P9":
             case "P10":
             case "P11":
             case "P12":
             case "P13":
             case "P14":
             case "P15":
             case "P16":
             case "P17":
             case "P18":
             case "P19":
             case "P20":
             case "P21":
             case "P22":
             case "P23":
             case "P24":
             case "P25":
             case "P26":
             case "P27":
             case "P28":
             case "P29":
             case "P30":
             case "P31":
             case "P32":
             case "P33":
             case "P34":
             case "P35":
             case "P36":
             case "P37":
             case "P38":
             case "P39":
             case "P40":
             case "P41":
             case "P42":
             case "P43":
             case "P44":
             case "P45":
             case "P46":
             case "P47":
                 break;
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D10") == $this->getValor("N" . $fila) ? $this->getValor("O" . $fila) : 0;
                 break;
             case "P48":
                 $fila = $this->cell2row($celda);
                 $this->hoja[$celda] = $this->getHoja("Resultados")->getValor("D10") >= $this->getValor("N" . $fila) ? $this->getValor("O" . $fila) : 0;
                 break;
             case "P49":
                 $this->hoja[$celda] = $this->sumBetween("P2", "P48");
                 break;
             default:
                 break;
         }
     }
     return parent::getValor($celda);
 }
Esempio n. 8
0
<?php

require_once dirname(__FILE__) . '/../bootstrap/unit.php';
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'test', true);
new sfDatabaseManager($configuration);
$t = new lime_test(4);
$obj = new BaseHojaMillon();
$hoja = array("A1" => 1, "A2" => 2, "A3" => 3, "A4" => 4, "A5" => 5, "A6" => 6, "A7" => 7, "A8" => 8, "A9" => 9, "A10" => 10);
//$desde = "A1";
//$hasta = "A10";
//$t->is($obj->sumBeetwen($hoja, $desde, $hasta), 55, "sumBeetwen de A1 a A10 deberia ser 55");
//
//$desde = "A4";
//$hasta = "A8";
//$t->is($obj->sumBeetwen($hoja, $desde, $hasta), 30, "sumBeetwen de A4 a A8 deberia ser 30");
$desde = "A1";
$hasta = "A10";
$t->is($obj->sumBetween($hoja, $desde, $hasta), 55, "sumBetween de A1 a A10 deberia ser 55");
$desde = "A4";
$hasta = "A8";
$t->is($obj->sumBetween($hoja, $desde, $hasta), 30, "sumBetween de A4 a A8 deberia ser 30");
$hoja = array("A1" => 1, "A10" => 10, "A8" => 8, "A4" => 4, "A7" => 7, "A6" => 6, "A3" => 3, "A2" => 2, "A9" => 9, "A5" => 5);
$desde = "A1";
$hasta = "A10";
$t->is($obj->sumBetween($hoja, $desde, $hasta), 55, "sumBetween de A1 a A10 deberia ser 55 con arreglo desordenado");
$desde = "A4";
$hasta = "A8";
$t->is($obj->sumBetween($hoja, $desde, $hasta), 30, "sumBetween de A4 a A8 deberia ser 30 con arreglo desordenado");