public function getInformacnyList(Trace $trace, $kodPredmetu)
 {
     $this->openIfNotAlready($trace);
     $data = $this->executor->doRequest($trace->addChild("Requesting data:"), array('compName' => 'zobrazitPredmetyAction', 'embObj' => array('objName' => 'skratkaPredmetuTextField', 'text' => $kodPredmetu)));
     $table = $this->parser->createTableFromHtml($trace->addChild("Parsing table"), $data, 'VSST060_RegisterPredmetovDlg0_zoznamPredmetovTable_dataView');
     if (count($table->getData()) == 0) {
         throw new ParseException("Daný kód predmetu sa v zozname nenachádza.");
         return;
     }
     // TODO: nikde nevyberame, ktoreho vrateneho riadku informacny list chceme...
     // asi sa defaultne pouzije prvy - je to OK?
     $data = $this->executor->doRequest($trace->addChild("Requesting data:"), array('compName' => 'informacnyListAction'));
     if (!preg_match("@dm\\(\\)\\.openDialog\\(" . "\"CM024_InformListVyberMoznostiDlg1\"@", $data)) {
         throw new Exception("Problém pri sťahovaní: " . "Neočakávaná odozva od AISu");
     }
     $data = $this->executor->doRequest($trace->addChild("Requesting data:"), array('compName' => 'enterAction', 'dlgName' => 'CM024_InformListVyberMoznostiDlg1', 'embObj' => array('objName' => 'typZostavyComboBox', 'dataView' => array('selectedIndexes' => 1))));
     if (!preg_match("@dm\\(\\)\\.closeDialog\\(" . "\"CM024_InformListVyberMoznostiDlg1\"\\);@", $data)) {
         throw new Exception("Problém pri sťahovaní: " . "Neočakávaná odozva od AISu");
     }
     $data = $this->executor->doRequest($trace->addChild("Requesting data:"), array('events' => false, 'app' => false, 'dlgName' => false, 'changedProperties' => array('confirmResult' => '-1')));
     if (!preg_match('@shellExec@', $data)) {
         throw new Exception("Problém pri sťahovaní: " . "Neočakávaná odozva od AISu");
     }
     return $this->executor->doFilesRequest($trace, array('file' => '', 'contentType' => ''));
 }
 public function getPriemery(Trace $trace)
 {
     $this->openIfNotAlready($trace);
     $data = $this->executor->requestContent($trace);
     return $this->parser->createTableFromHtml($trace->addChild("Parsing table"), $data, 'priemeryTable_dataView');
 }
 public function getZapisneListy(Trace $trace, $studiumIndex)
 {
     $this->openIfNotAlready($trace);
     $data = $this->executor->doRequest($trace->addChild("Requesting data:"), array('compName' => 'nacitatDataAction', 'objProperties' => array('x' => -4, 'y' => -4, 'focusedComponent' => 'nacitatButton'), 'embObj' => array('objName' => 'studiaTable', 'dataView' => array('activeIndex' => $studiumIndex, 'selectedIndexes' => $studiumIndex))));
     return $this->parser->createTableFromHtml($trace->addChild("Parsing table"), $data, 'VSES017_StudentZapisneListyDlg0_zapisneListyTable_dataView');
 }
Ejemplo n.º 4
0
 public function getZoznamTerminov(Trace $trace)
 {
     $this->openIfNotAlready($trace);
     $response = $this->executor->requestContent($trace);
     return $this->parser->createTableFromHtml($trace->addChild("Parsing table"), $response, 'zoznamTerminovTable_dataView');
 }
 public function getTerminyHodnotenia(Trace $trace)
 {
     $this->openIfNotAlready($trace);
     $data = $this->executor->doRequest($trace, array('eventClass' => 'avc.ui.event.AVCActionEvent', 'compName' => 'zobrazitTerminyAction', 'embObj' => array('objName' => 'zobrazitTerminyComboBox', 'dataView' => array('selectedIndexes' => 0))));
     return $this->parser->createTableFromHtml($trace->addChild("Parsing table"), $data, 'VSES007_StudentZoznamPrihlaseniNaSkuskuDlg0_terminyTable_dataView');
 }