app/Controller/AviseMeController.php 1 location
|
@@ 33-48 (lines=16) @@
|
| 30 |
|
$this->layout = 'wadmin'; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
public function excluir_cadastro($id) |
| 34 |
|
{ |
| 35 |
|
$this->loadModel('AviseMe'); |
| 36 |
|
$this->layout = 'ajax'; |
| 37 |
|
|
| 38 |
|
$id = $this->request->data('id'); |
| 39 |
|
|
| 40 |
|
$dados = array ('ativo' => '0'); |
| 41 |
|
$parametros = array ('id' => $id); |
| 42 |
|
|
| 43 |
|
if ($this->AviseMe->updateAll($dados, $parametros)) { |
| 44 |
|
echo json_encode(true); |
| 45 |
|
} else { |
| 46 |
|
echo json_encode(false); |
| 47 |
|
} |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/** |
| 51 |
|
* @return boolean |
app/Controller/ConsultaController.php 1 location
|
@@ 18-32 (lines=15) @@
|
| 15 |
|
$this->layout = 'wadmin'; |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
function excluir_consulta() { |
| 19 |
|
$this->layout = 'ajax'; |
| 20 |
|
|
| 21 |
|
$id = $this->request->data('id'); |
| 22 |
|
$this->loadModel('Consulta'); |
| 23 |
|
|
| 24 |
|
$dados = array ('ativo' => '0'); |
| 25 |
|
$parametros = array ('id' => $id); |
| 26 |
|
|
| 27 |
|
if ($this->Consulta->updateAll($dados,$parametros)) { |
| 28 |
|
echo json_encode(true); |
| 29 |
|
} else { |
| 30 |
|
echo json_encode(false); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
} |
app/Controller/BannerController.php 1 location
|
@@ 152-165 (lines=14) @@
|
| 149 |
|
return array('nome' => $nameImage, 'status' => true); |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
public function excluir_cadastro() { |
| 153 |
|
$this->layout = 'ajax'; |
| 154 |
|
|
| 155 |
|
$id = $this->request->data('id'); |
| 156 |
|
|
| 157 |
|
$dados = array ('ativo' => '0'); |
| 158 |
|
$parametros = array ('id' => $id); |
| 159 |
|
|
| 160 |
|
if ($this->Banner->updateAll($dados, $parametros)) { |
| 161 |
|
echo json_encode(true); |
| 162 |
|
} else { |
| 163 |
|
echo json_encode(false); |
| 164 |
|
} |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
} |
app/Controller/ProdutoController.php 1 location
|
@@ 426-439 (lines=14) @@
|
| 423 |
|
} |
| 424 |
|
} |
| 425 |
|
|
| 426 |
|
public function excluir_cadastro() { |
| 427 |
|
$this->layout = 'ajax'; |
| 428 |
|
|
| 429 |
|
$id = $this->request->data('id'); |
| 430 |
|
|
| 431 |
|
$dados = array('ativo' => '0'); |
| 432 |
|
$parametros = array('id' => $id); |
| 433 |
|
|
| 434 |
|
if ($this->Produto->updateAll($dados, $parametros)) { |
| 435 |
|
echo json_encode(true); |
| 436 |
|
} else { |
| 437 |
|
echo json_encode(false); |
| 438 |
|
} |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
public function id_alias() { |
| 442 |
|
$id_alias = $this->Produto->find('first', array( |
app/Controller/VendaController.php 1 location
|
@@ 466-479 (lines=14) @@
|
| 463 |
|
return json_encode($resposta); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
public function excluir_cadastro() { |
| 467 |
|
$this->layout = 'ajax'; |
| 468 |
|
|
| 469 |
|
$id = $this->request->data('id'); |
| 470 |
|
|
| 471 |
|
$dados = array('ativo' => '0'); |
| 472 |
|
$parametros = array('id' => $id); |
| 473 |
|
|
| 474 |
|
if ($this->Venda->updateAll($dados, $parametros)) { |
| 475 |
|
echo json_encode(true); |
| 476 |
|
} else { |
| 477 |
|
echo json_encode(false); |
| 478 |
|
} |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
public function imprimir_nota_nao_fiscal($id) { |
| 482 |
|
$this->loadModel('LancamentoVenda'); |
app/Controller/ClienteController.php 1 location
|
@@ 44-57 (lines=14) @@
|
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
function excluir_cliente() { |
| 45 |
|
$this->layout = 'ajax'; |
| 46 |
|
|
| 47 |
|
$id = $this->request->data('id'); |
| 48 |
|
|
| 49 |
|
$dados = array ('ativo' => '0'); |
| 50 |
|
$parametros = array ('id' => $id); |
| 51 |
|
|
| 52 |
|
if ($this->Cliente->updateAll($dados,$parametros)) { |
| 53 |
|
echo json_encode(true); |
| 54 |
|
} else { |
| 55 |
|
echo json_encode(false); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
function listar_cadastros() { |
| 60 |
|
$this->layout = 'wadmin'; |