Files
BE_IBL/application/controllers/mockup/sampling/verification/Verification.php
2026-04-15 15:24:12 +07:00

51 lines
1.1 KiB
PHP
Executable File

<?php
class Verification extends MY_Controller
{
var $db_smartone;
function __construct()
{
parent::__construct();
$this->db_smartone = $this->load->database("onedev", true);
}
function send()
{
$prm = $this->sys_input;
$sql = "CALL sp_sampling_send_to_verification('{$prm['ids']}')";
$query = $this->db_smartone->query($sql);
if ($query)
{
$row = $query->row();
$this->sys_ok($row);
}
else {
$this->sys_error_db("sampling send", $this->db_smartone);
exit;
}
}
function remove()
{
$prm = $this->sys_input;
$sql = "CALL sp_sampling_remove_from_verification('{$prm['id']}')";
$query = $this->db_smartone->query($sql);
if ($query)
{
$row = $query->row();
$this->sys_ok($row);
}
else {
$this->sys_error_db("sampling remove", $this->db_smartone);
exit;
}
}
}
?>