Ignore:
Timestamp:
12/16/10 14:59:34 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1412 - adição do novo layout na tela de contatos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.bo_mobilecc.inc.php

    r3574 r3595  
    9191                                                                'field' => $search, 
    9292                                                                'type'  => 'iLIKE', 
    93                                                                 'value' => '%'.$name.'%' 
     93                                                                'value' => $name 
    9494                                                        ));              
    9595                        } 
    96                                                                                                          
    97                         $ids = $this->bo->find($what,$rules); 
     96                         
     97                         
     98                        $ids = $this->bo->find($what,$rules,false,false,true); 
    9899 
    99100                        if(is_array($ids)) { 
     
    130131                                         * ordenação atual se tiverem valores antigos desnecessários  
    131132                                         * causando erro de tamanhos inconsistentes */ 
     133                                        $valor['catalog'] = $this->page_info['actual_catalog']; 
    132134                                        $default = array();  
    133135                                        $type = array(); 
     
    140142                                }//Fim da ordenação 
    141143                        } 
     144                        else { 
     145                                        $entries = $this->bo->get_multiple_entries($ids,array("id_group"=>true,"title"=>true,"short_name"=>true)); 
     146                                        foreach ($entries as &$group) { 
     147                                                $group['catalog']=$this->page_info['actual_catalog']; 
     148                                        } 
     149                                } 
    142150                        if($total_count_search>count($ids)) 
    143151                                $entries["has_more"] = true; 
     
    197205                        return $retorno; 
    198206                } 
    199  
     207                 
     208                function remove_multiple_entries($ids) { 
     209                        $errors = array(); 
     210                        $return = array(); 
     211                        if($this->page_info['actual_catalog']==='bo_group_manager') 
     212                                $soGroup = CreateObject('contactcenter.so_group'); 
     213                        foreach($ids as $id) { 
     214                                if($this->page_info['actual_catalog']==='bo_group_manager') { 
     215                                        $data = array ('id_group' => $id); 
     216                                        $check = $soGroup->delete($data); 
     217                                } 
     218                                else 
     219                                        $check = $this->bo->remove_single_entry($id); 
     220                                 
     221                                if(!$check) 
     222                                        $errors[] = $id; 
     223                        } 
     224                        $return['success'] = empty($errors)?true:false; 
     225                        $return['errors_ids'] = $errors; 
     226                        return $return; 
     227                } 
     228                 
    200229          } 
    201230?> 
Note: See TracChangeset for help on using the changeset viewer.