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/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/VendaController.php 1 location
|
@@ 388-401 (lines=14) @@
|
| 385 |
|
return json_encode($resposta); |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
public function excluir_cadastro() { |
| 389 |
|
$this->layout = 'ajax'; |
| 390 |
|
|
| 391 |
|
$id = $this->request->data('id'); |
| 392 |
|
|
| 393 |
|
$dados = array('ativo' => '0'); |
| 394 |
|
$parametros = array('id' => $id); |
| 395 |
|
|
| 396 |
|
if ($this->Venda->updateAll($dados, $parametros)) { |
| 397 |
|
echo json_encode(true); |
| 398 |
|
} else { |
| 399 |
|
echo json_encode(false); |
| 400 |
|
} |
| 401 |
|
} |
| 402 |
|
|
| 403 |
|
public function imprimir_nota_nao_fiscal($id) { |
| 404 |
|
$this->loadModel('LancamentoVenda'); |
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
|
@@ 424-437 (lines=14) @@
|
| 421 |
|
} |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
public function excluir_cadastro() { |
| 425 |
|
$this->layout = 'ajax'; |
| 426 |
|
|
| 427 |
|
$id = $this->request->data('id'); |
| 428 |
|
|
| 429 |
|
$dados = array('ativo' => '0'); |
| 430 |
|
$parametros = array('id' => $id); |
| 431 |
|
|
| 432 |
|
if ($this->Produto->updateAll($dados, $parametros)) { |
| 433 |
|
echo json_encode(true); |
| 434 |
|
} else { |
| 435 |
|
echo json_encode(false); |
| 436 |
|
} |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
public function id_alias() { |
| 440 |
|
$id_alias = $this->Produto->find('first', array( |