Ejemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $this->checkLogin();
     Account::_valLogin();
     $this->orm->debug = true;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 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'));
         }
     }
 }
Ejemplo n.º 8
0
 function __construct()
 {
     parent::__construct();
     $this->checkLogin();
     Account::_valLogin();
 }
Ejemplo n.º 9
0
 public function index()
 {
     Account::_valLogin();
     $this->load->view('mutasistock_view');
 }
Ejemplo n.º 10
0
 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');
 }
Ejemplo n.º 11
0
 public function index()
 {
     Account::_valLogin();
     $this->load->view('stockcontrol_view');
 }