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/BannerController.php 1 location
|
@@ 123-136 (lines=14) @@
|
| 120 |
|
return array('nome' => $nameImage, 'status' => true); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function excluir_cadastro() { |
| 124 |
|
$this->layout = 'ajax'; |
| 125 |
|
|
| 126 |
|
$id = $this->request->data('id'); |
| 127 |
|
|
| 128 |
|
$dados = array ('ativo' => '0'); |
| 129 |
|
$parametros = array ('id' => $id); |
| 130 |
|
|
| 131 |
|
if ($this->Banner->updateAll($dados, $parametros)) { |
| 132 |
|
echo json_encode(true); |
| 133 |
|
} else { |
| 134 |
|
echo json_encode(false); |
| 135 |
|
} |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
} |
app/Controller/ClienteController.php 1 location
|
@@ 40-53 (lines=14) @@
|
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
function excluir_cliente() { |
| 41 |
|
$this->layout = 'ajax'; |
| 42 |
|
|
| 43 |
|
$id = $this->request->data('id'); |
| 44 |
|
|
| 45 |
|
$dados = array ('ativo' => '0'); |
| 46 |
|
$parametros = array ('id' => $id); |
| 47 |
|
|
| 48 |
|
if ($this->Cliente->updateAll($dados,$parametros)) { |
| 49 |
|
echo json_encode(true); |
| 50 |
|
} else { |
| 51 |
|
echo json_encode(false); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
function listar_cadastros() { |
| 56 |
|
$this->layout = 'wadmin'; |
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/ProdutoController.php 1 location
|
@@ 406-419 (lines=14) @@
|
| 403 |
|
} |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
public function excluir_cadastro() { |
| 407 |
|
$this->layout = 'ajax'; |
| 408 |
|
|
| 409 |
|
$id = $this->request->data('id'); |
| 410 |
|
|
| 411 |
|
$dados = array('ativo' => '0'); |
| 412 |
|
$parametros = array('id' => $id); |
| 413 |
|
|
| 414 |
|
if ($this->Produto->updateAll($dados, $parametros)) { |
| 415 |
|
echo json_encode(true); |
| 416 |
|
} else { |
| 417 |
|
echo json_encode(false); |
| 418 |
|
} |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
public function id_alias() { |
| 422 |
|
$id_alias = $this->Produto->find('first', array( |
app/Controller/VendaController.php 1 location
|
@@ 378-391 (lines=14) @@
|
| 375 |
|
return json_encode($resposta); |
| 376 |
|
} |
| 377 |
|
|
| 378 |
|
public function excluir_cadastro() { |
| 379 |
|
$this->layout = 'ajax'; |
| 380 |
|
|
| 381 |
|
$id = $this->request->data('id'); |
| 382 |
|
|
| 383 |
|
$dados = array('ativo' => '0'); |
| 384 |
|
$parametros = array('id' => $id); |
| 385 |
|
|
| 386 |
|
if ($this->Venda->updateAll($dados, $parametros)) { |
| 387 |
|
echo json_encode(true); |
| 388 |
|
} else { |
| 389 |
|
echo json_encode(false); |
| 390 |
|
} |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
public function imprimir_nota_nao_fiscal($id) { |
| 394 |
|
$this->loadModel('LancamentoVenda'); |