Zmiany pomiędzy wersją 19 and wersją 20 dla DeployerGuide/Developer
- Data i czas:
- 09/18/14 09:54:24 (10 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
DeployerGuide/Developer
v19 v20 432 432 }}} 433 433 434 == Dodanie pola status ==434 == Dodanie pola status na pozycji zapotrzebowania == 435 435 {{{ 436 436 #!php 437 require_once('./classes/UsefullDataSets/ProcessesStatesDataSet.inc'); 438 439 $set = new ProcessesStatesDataSet(FALSE, TRUE); 440 $set->getStatesForDocument($dctpid); // $dctpid - Typ dokumentu (types_of_documents.dctpid) 437 $db = PgManager::getInstance(); 438 439 $rows = $db->select('types_of_processes_states', 'tpstid, dscrpt', 'clsnam = \'FKDEMANDELEMENT\' ORDER BY dscrpt', false, PGSQL_NUM); 441 440 442 441 $this->tpstid = new DBSelect('yourTpstidSelectName'); … … 444 443 $this->tpstid->left = '70px'; 445 444 $this->tpstid->width = '200px'; 446 $this->tpstid->query = $set->getSQLQuery(); 447 $this->tpstid->update(); 448 }}} 445 446 if (is_array($rows) && !empty($rows) { 447 $this->tpstid->addAssocArray($rows, 0, 1); 448 } 449 }}}