Commit 7209fa6650f467663c92addcd92a36c42048af0f
1 parent
c1eb42be
Exists in
master
Removido código desnecessário da classe {{{clsPessoaFj}}}
Showing
1 changed file
with
4 additions
and
77 deletions
Show diff stats
ieducar/intranet/include/pessoa/clsPessoaFj.inc.php
... | ... | @@ -127,83 +127,6 @@ class clsPessoaFj |
127 | 127 | return FALSE; |
128 | 128 | } |
129 | 129 | |
130 | - /*function lista_rapida($idpes = null, $nome = null, $id_federal = null, $inicio_limite = null, $limite = null, $str_tipo_pessoa = null, $str_order_by = null, $int_ref_cod_sistema = null) | |
131 | - { | |
132 | - $db = new clsBanco(); | |
133 | - | |
134 | - $filtros = ""; | |
135 | - $filtroTipo = ""; | |
136 | - $whereAnd = " WHERE "; | |
137 | - $outros_filtros = false; | |
138 | - $filtro_cnpj = false; | |
139 | - | |
140 | - if( is_string( $nome ) && $nome != "") | |
141 | - { | |
142 | - $filtros .= "{$whereAnd} (nome ILIKE '%{$nome}%')"; | |
143 | - $whereAnd = " AND "; | |
144 | - $outros_filtros =true; | |
145 | - } | |
146 | - | |
147 | - if( is_numeric( $id_federal ) ) | |
148 | - { | |
149 | - $filtros .= "{$whereAnd} id_federal LIKE '%{$id_federal}'"; | |
150 | - $whereAnd = " AND "; | |
151 | - $filtro_cnpj =true; | |
152 | - } | |
153 | - | |
154 | - | |
155 | - if( is_numeric( $idpes ) ) | |
156 | - { | |
157 | - $filtros .= "{$whereAnd} idpes = '{$idpes}'"; | |
158 | - $whereAnd = " AND "; | |
159 | - $outros_filtros =true; | |
160 | - } | |
161 | - | |
162 | - if( is_numeric( $int_ref_cod_sistema ) ) | |
163 | - { | |
164 | - $filtro_sistema = true; | |
165 | - $filtros .= "{$whereAnd} (ref_cod_sistema = '{$int_ref_cod_sistema}' OR id_federal is not null)"; | |
166 | - $whereAnd = " AND "; | |
167 | - } | |
168 | - | |
169 | - if ( is_string( $str_tipo_pessoa ) ) { | |
170 | - $filtroTipo .= " AND tipo = '{$str_tipo_pessoa}' "; | |
171 | - $outros_filtros =true; | |
172 | - } | |
173 | - | |
174 | - if ( is_string( $str_order_by ) ) { | |
175 | - $order = "ORDER BY $str_order_by"; | |
176 | - } | |
177 | - | |
178 | - $limit = ""; | |
179 | - if(is_numeric($inicio_limite) && is_numeric($limite)) | |
180 | - { | |
181 | - $limit = "LIMIT $limite OFFSET $inicio_limite"; | |
182 | - } | |
183 | - | |
184 | - if($filtro_sistema && $outros_filtros == false || $filtro_cnpj ) | |
185 | - { | |
186 | - $this->_total = $db->CampoUnico("SELECT COUNT(0) FROM cadastro.v_pessoafj_count $filtros"); | |
187 | - }else | |
188 | - { | |
189 | - $this->_total = $db->CampoUnico("SELECT COUNT(0) FROM cadastro.v_pessoa_fj $filtros"); | |
190 | - } | |
191 | - | |
192 | - $db->Consulta("SELECT idpes, nome, ref_cod_sistema, fantasia, tipo , id_federal as cpf, id_federal as cnpj, id_federal FROM cadastro.v_pessoa_fj $filtros $order $limit "); | |
193 | - while ( $db->ProximoRegistro() ) | |
194 | - { | |
195 | - $tupla = $db->Tupla(); | |
196 | - $tupla["_total"] = $this->_total; | |
197 | - $resultado[] = $tupla; | |
198 | - } | |
199 | - | |
200 | - if( count( $resultado ) ) | |
201 | - { | |
202 | - return $resultado; | |
203 | - } | |
204 | - return false; | |
205 | - }*/ | |
206 | - | |
207 | 130 | function lista_rapida($idpes = NULL, $nome = NULL, $id_federal = NULL, |
208 | 131 | $inicio_limite = NULL, $limite = NULL, $str_tipo_pessoa = NULL, |
209 | 132 | $str_order_by = NULL, $int_ref_cod_sistema = NULL) |
... | ... | @@ -338,6 +261,10 @@ class clsPessoaFj |
338 | 261 | return FALSE; |
339 | 262 | } |
340 | 263 | |
264 | + /** | |
265 | + * Retorna um array com os dados de um registro | |
266 | + * @return array | |
267 | + */ | |
341 | 268 | function detalhe() |
342 | 269 | { |
343 | 270 | if ($this->idpes) { | ... | ... |