|
|
@@ -9,12 +9,13 @@ class CrmProcesMap {
|
|
|
public $stepToGroup = array();// recurse deep => [ID_PROCES => ?]
|
|
|
public $usedGroups = array();// ID_GROUPS => group name
|
|
|
public $gotoIds = array();
|
|
|
- public $gotoData = array();
|
|
|
+ public $procesData = array();
|
|
|
|
|
|
public function __construct($idProcesInit) {
|
|
|
$this->initData = $this->fetchProcesIdxForInit($idProcesInit);
|
|
|
$gotoIdsTodo = array();
|
|
|
foreach ($this->initData as $r) {
|
|
|
+ $this->procesData[$r->ID_PROCES] = $r;
|
|
|
$this->stepToRecDeepLvl[$r->ID_PROCES] = 0;
|
|
|
$this->initProcesIds[$r->ID_PROCES] = true;
|
|
|
$this->initProcesWithGroups[$r->idx_PROCES_WITH_GROUPS_ID] = true;
|
|
|
@@ -34,6 +35,7 @@ class CrmProcesMap {
|
|
|
$gotoIdsTodo = array();
|
|
|
if(V::get('DBG', '', $_REQUEST)){echo '<pre style="width:600px;border:1px solid red;max-height:300px;overflow:auto">TODO:loop('.$i.'): $gotoData = ';print_r($gotoData);echo'</pre>';}
|
|
|
foreach ($gotoData as $r) {
|
|
|
+ $this->procesData[$r->ID_PROCES] = $r;
|
|
|
if (!array_key_exists($r->ID_PROCES, $this->stepToRecDeepLvl)) {
|
|
|
$this->stepToRecDeepLvl[$r->ID_PROCES] = $i;
|
|
|
} else {
|
|
|
@@ -57,7 +59,10 @@ class CrmProcesMap {
|
|
|
<th>Lp.</th>
|
|
|
<th>idGroup</th>
|
|
|
<?php foreach ($this->stepToRecDeepLvl as $idProces => $deepLvl) : ?>
|
|
|
- <th><?php echo $idProces; ?></th>
|
|
|
+ <th>
|
|
|
+ <?php echo $idProces; ?>
|
|
|
+ <br><i title="Proces init">{<?php echo $this->procesData[$idProces]->idx_PROCES_INIT_ID; ?>}</i>
|
|
|
+ </th>
|
|
|
<?php endforeach; ?>
|
|
|
</tr>
|
|
|
</thead>
|