|
@@ -1441,7 +1441,6 @@ function toggleCheckSecond(check) {
|
|
|
|
|
|
|
|
if (!($refTable = BiAuditRefTables::getRefTable($mainTable, $this->SOURCE['TABLE'], false))) throw new Exception("Nie znaleziono relacji do obiektu \"{$this->SOURCE['TABLE']}\" w konfiguracji obiektu \"{$mainTable}\" - nie można wygenerować raportu.");
|
|
if (!($refTable = BiAuditRefTables::getRefTable($mainTable, $this->SOURCE['TABLE'], false))) throw new Exception("Nie znaleziono relacji do obiektu \"{$this->SOURCE['TABLE']}\" w konfiguracji obiektu \"{$mainTable}\" - nie można wygenerować raportu.");
|
|
|
|
|
|
|
|
-
|
|
|
|
|
$sqlArr = [
|
|
$sqlArr = [
|
|
|
'step' => V::get('step', '', $_POST),
|
|
'step' => V::get('step', '', $_POST),
|
|
|
'table' => $this->SOURCE['TABLE'],
|
|
'table' => $this->SOURCE['TABLE'],
|
|
@@ -1463,6 +1462,7 @@ function toggleCheckSecond(check) {
|
|
|
$array['@attributes'] = [
|
|
$array['@attributes'] = [
|
|
|
'xmlns' => 'http://www.opengis.net/wfs',
|
|
'xmlns' => 'http://www.opengis.net/wfs',
|
|
|
'xmlns:system_cache__dita' => 'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd',
|
|
'xmlns:system_cache__dita' => 'http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd',
|
|
|
|
|
+ 'xmlns:p5' => 'https://biuro.biall-net.pl/wfs',
|
|
|
'xmlns:'.$namespace($mainTable) => 'https://biuro.biall-net.pl/wfs',
|
|
'xmlns:'.$namespace($mainTable) => 'https://biuro.biall-net.pl/wfs',
|
|
|
'xmlns:'.$namespace($this->SOURCE['TABLE']) => 'https://biuro.biall-net.pl/wfs'
|
|
'xmlns:'.$namespace($this->SOURCE['TABLE']) => 'https://biuro.biall-net.pl/wfs'
|
|
|
];
|
|
];
|
|
@@ -1487,7 +1487,7 @@ echo "</pre>";
|
|
|
'deviation' => (double) round($va['value'] / $va['norm'] - 1, 5),
|
|
'deviation' => (double) round($va['value'] / $va['norm'] - 1, 5),
|
|
|
'correct' => $va['correct'] ? 'true' : 'false',
|
|
'correct' => $va['correct'] ? 'true' : 'false',
|
|
|
];
|
|
];
|
|
|
- if ($array[$namespace($mainTable, $mainTable)]['step'] == 'second' && (!$va['correct'])) {
|
|
|
|
|
|
|
+ if ($array[$namespace($mainTable, $mainTable)][$namespace($mainTable, 'step')] == 'second' && (!$va['correct'])) {
|
|
|
$secondStep = [];
|
|
$secondStep = [];
|
|
|
for ($kb = 0; $kb <= 9; $kb++) {
|
|
for ($kb = 0; $kb <= 9; $kb++) {
|
|
|
if (!isset($benford['secondStep'][$ka][$kb])) $vb = ['count' => 0, 'value' => 0, 'correct' => true];
|
|
if (!isset($benford['secondStep'][$ka][$kb])) $vb = ['count' => 0, 'value' => 0, 'correct' => true];
|
|
@@ -1508,7 +1508,7 @@ echo "</pre>";
|
|
|
if (!$object) continue;
|
|
if (!$object) continue;
|
|
|
$objects[] = array_merge(['@attributes' => ['fid' => "{$this->SOURCE['TABLE']}.{$id}", 'p5:primaryKey' => $id]], $arrayWithNamespace($this->SOURCE['TABLE'], $object));
|
|
$objects[] = array_merge(['@attributes' => ['fid' => "{$this->SOURCE['TABLE']}.{$id}", 'p5:primaryKey' => $id]], $arrayWithNamespace($this->SOURCE['TABLE'], $object));
|
|
|
}
|
|
}
|
|
|
- $_secondStep[$this->SOURCE['TABLE']][] = $objects;
|
|
|
|
|
|
|
+ $_secondStep[$namespace($this->SOURCE['TABLE'], $this->SOURCE['TABLE'])][] = $objects;
|
|
|
}
|
|
}
|
|
|
$secondStep[] = $_secondStep;
|
|
$secondStep[] = $_secondStep;
|
|
|
}
|
|
}
|