public static function TestConection() { $service = ServiceFabric::make('VSIGestao\\WebService\\Services\\consConexao'); $response = $service->consult(); if ($response && $response->teste->c == "Conexao ok") { return true; } return false; }
public static function get_by_date_change($data, $empresa, $estoque = 0, $tabela = "Vazio") { $service = ServiceFabric::make('VSIGestao\\WebService\\Services\\consProdutosPorFaixa'); $service->setfield('Data', $data); $service->setfield('chEmpresa', $empresa); if (!empty($estoque)) { $service->setfield('chEstoque', $busca); } if (!empty($tabela)) { $service->setfield('tabela', $tabela); } $response = $service->consult(); return isset($response->produtos) ? $response->produtos : null; }