+int WorkPlace::get_logic_id(const std::string &_s)
+{
+ std::list<CItem *>::iterator i = lista_logic_Items->begin();
+ while ( i != lista_logic_Items->end() ){
+ if ( (*i)->get_name() == _s )
+ return (*i)->get_id();
+ i++;
+ }
+ return -1;
+}
+
+int WorkPlace::get_item_id(const std::string &_s)
+{
+ std::list<CItem *>::iterator i = listaItems->begin();
+ while ( i != listaItems->end() ){
+ if ( (*i)->get_name() == _s )
+ return (*i)->get_id();
+ i++;
+ }
+ return -1;
+}