function __construct() { parent::__construct(); $this->checkLogin(); Account::_valLogin(); $this->orm->debug = true; }
function __construct() { parent::__construct(); $this->output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); $this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); Account::_valLogin(); $this->orm->debug = true; }
public function edit($iddeliveryorder) { Account::_valLogin(); if (isset($_SESSION['message'])) { Message::_modal($_SESSION['message']['title'], $_SESSION['message']['content'], $_SESSION['message']['icon']); } $data = array(); $data['link'] = site_url('/') . "deliveryorder"; $data['deliveryorder'] = $this->orm->deliveryorder->where('iddeliveryorder', $iddeliveryorder)->fetch(); $this->load->view('delivery_order_edit_view', $data); }
public function index() { Account::_valLogin(); $this->load->model('stock_model'); if (isset($_SESSION['message'])) { Message::_modal($_SESSION['message']['title'], $_SESSION['message']['content'], $_SESSION['message']['icon']); } $data = array(); $data['link'] = base_url() . "index.php/Pengadaan"; $data['pengadaans'] = $this->orm->pengadaan->where('idrefstore', $_SESSION['user']['idrefstore']); $this->load->view('transferin_view', $data); }
public function index() { Account::_valLogin(); $this->load->model('stock_model'); if (isset($_SESSION['message'])) { Message::_modal($_SESSION['message']['title'], $_SESSION['message']['content'], $_SESSION['message']['icon']); } $data = array(); $data['link'] = base_url() . "index.php/Deliveryorder"; $data['deliveryorderdetail'] = $this->orm->deliveryorderdetail->order('iddeliveryorderdetail ASC,iddeliveryorder DESC'); $this->load->view('transferout_view', $data); }
function __construct() { parent::__construct(); $this->output->set_header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); $this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate"); Account::_valLogin(); $this->orm->debug = true; $this->load->model('quotationsales', '', TRUE); $this->load->model('quotationsalesdetail', '', TRUE); $this->load->model('refbarang', '', TRUE); }
public function delete() { Account::_valLogin(); $iddeliveryorder = $this->input->post('id', true); if ($iddeliveryorder != null) { $deliveryorder = $this->orm->deliveryorder->where('iddeliveryorder', $iddeliveryorder); $deliveryorder->delete(); $deliveryorderdetail = $this->orm->deliveryorderdetail->where('iddeliveryorder', $iddeliveryorder); $ress = $deliveryorderdetail->delete(); if ($ress) { echo json_encode(array('response' => 'success', 'msg' => 'Delete Data DO Berhasil')); } else { echo json_encode(array('response' => 'failed', 'msg' => 'Delete Data DO Gagal')); } } }
function __construct() { parent::__construct(); $this->checkLogin(); Account::_valLogin(); }
public function index() { Account::_valLogin(); $this->load->view('mutasistock_view'); }
public function delete($idpengadaan = null) { Account::_valLogin(); if ($idpengadaan != null) { $pengadaan = $this->orm->pengadaan->where('idpengadaan', $idpengadaan); $pengadaan->delete(); $pengadaandetail = $this->orm->pengadaandetail->where('idpengadaan', $idpengadaan); $pengadaandetail->delete(); Message::_set(TRUE, 'Hapus Data Pengadaan Berhasil', 'Hapus Data Pengadaan Gagal'); } redirect('transaksi/pengadaan'); }
public function index() { Account::_valLogin(); $this->load->view('stockcontrol_view'); }