fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [15317]


From: nelson . guerra
Subject: [Fmsystem-commits] [15317]
Date: Thu, 23 Jun 2016 01:08:14 +0000 (UTC)

Revision: 15317
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15317
Author:   nelson224
Date:     2016-06-23 01:08:14 +0000 (Thu, 23 Jun 2016)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind-2/property/inc/class.uiimport.inc.php

Modified: branches/dev-syncromind-2/property/inc/class.uiimport.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uiimport.inc.php       
2016-06-23 01:07:52 UTC (rev 15316)
+++ branches/dev-syncromind-2/property/inc/class.uiimport.inc.php       
2016-06-23 01:08:14 UTC (rev 15317)
@@ -1034,8 +1034,8 @@
                                                $buildingpart = 
$post['Postnrdeler']['Postnrdel'][1]['Kode'];
                                                
$entity_categories_in_xml[$buildingpart]['name'] = 
$entities_name[$buildingpart]['name'];
                                                
$entity_categories_in_xml[$buildingpart]['components'][] = array(
-                                                       'benevnelse' => 
trim($post['Egenskaper']['Egenskap']['Verdi']),
-                                                       'beskrivelse' => 
trim($post['Tekst']['Uformatert'])
+                                                       array('name' => 
'benevnelse', 'value' => trim($post['Egenskaper']['Egenskap']['Verdi'])),
+                                                       array('name' => 
'beskrivelse', 'value' => trim($post['Tekst']['Uformatert']))
                                                );
                                                
                                                
//$buildingpart_in_xml[$post['Postnrdeler']['Postnrdel'][1]['Kode']] = 
$post['Postnrdeler']['Postnrdel'][1]['Kode'];
@@ -1062,31 +1062,43 @@
                                        }
                                }
                                
-                               /*if (count($buildingpart_out_table))
+                               if (count($buildingpart_out_table))
                                {
                                        $buildingpart_processed = 
$import_components->add_entity_categories($buildingpart_out_table);
                                        
                                        if 
(count($buildingpart_processed['added']))
                                        {
+                                               echo 'Entities added: <br>';
                                                
foreach($buildingpart_processed['added'] as $k => $v)
                                                {
                                                        
$entity_categories_in_xml[$k]['cat_id'] = $v['id'];
-                                                       
$entity_categories_in_xml[$k]['entity_id'] = $v['entity_id'];                   
                                
+                                                       
$entity_categories_in_xml[$k]['entity_id'] = $v['entity_id'];                   
+                                                       echo $v['name'].'<br>';
                                                }
                                        } 
                                        
                                        if 
(count($buildingpart_processed['not_added']))
                                        {
+                                               echo '<br>Entities not added: 
<br>';
                                                
foreach($buildingpart_processed['not_added'] as $k => $v)
                                                {
-                                                       
unset($entity_categories_in_xml[$k]);                                   
+                                                       
unset($entity_categories_in_xml[$k]);   
+                                                       echo $v['name'].'<br>';
                                                }                               
                
                                        }
-                               }*/
+                               }
                                
-                               //$processed = 
$import_components->add_bim_item($entity_categories_in_xml);
+                               $components_not_added = 
$import_components->add_bim_item($entity_categories_in_xml);
+                               if (count($components_not_added))
+                               {
+                                       echo '<br>Components not added: <br>';
+                                       foreach ($components_not_added as $k => 
$v)
+                                       {
+                                               echo $k.' => not added: 
'.$v.'<br>';
+                                       }
+                               }
                                
-                               print_r($entity_categories_in_xml);
+                               //print_r($entity_categories_in_xml);
                                
                                echo "</ul>";
                                $end_time = time();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]