siddharth_application/application/controllers/requisitionform.php
gandhimathi Bharathirajan 91d22743ca PO Screen desing
2017-04-27 19:48:06 +05:30

56 lines
1.4 KiB
PHP

<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH . '/libraries/BaseController.php';
/**
* Class : purchaseorder (PurchaseorderController)
* User Class to control all user related operations.
* @author : VenbaMail Mali
* @version : 1.1
* @since : 15 Feb 2016
*/
class requisitionform extends BaseController
{
/**
* This is default constructor of the class
*/
public function __construct()
{
parent::__construct();
$this->load->model('purchaseorder_model');
$this->load->library('session');
$this->load->library('form_validation');
$this->isLoggedIn();
}
/**
* This function used to load the first screen of the user
*/
function requisition()
{
$this->global['pageTitle'] = 'Siddharth : Raise Requisition';
$data['RequestType'] = $this->purchaseorder_model->getConfigValue('C004');
$data['EmpList'] = $this->purchaseorder_model->getAllEmployees();
$data['MaterialList'] = $this->purchaseorder_model->getRawMaterialList();
$data['CostCenter'] = $this->purchaseorder_model->getCostCenter();
$this->loadViews("requisitionform", $this->global, $data,null);
}
function pageNotFound()
{
$this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found';
$this->loadViews("404", $this->global, NULL, NULL);
}
}
?>