예제 #1
0
 function __construct()
 {
     parent::__construct('reports');
     $this->load->helper('report');
     $this->has_profit_permission = $this->Employee->has_module_action_permission('reports', 'show_profit', $this->Employee->get_logged_in_employee_info()->person_id);
     $this->has_cost_price_permission = $this->Employee->has_module_action_permission('reports', 'show_cost_price', $this->Employee->get_logged_in_employee_info()->person_id);
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('sale_lib');
     $this->load->model('Item');
     $this->load->model('Cash');
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->sale_lib->nameS = $this->sale_lib->get_mode() . '_';
     $this->load->helper('report');
 }
예제 #4
0
 function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
     $this->load->library('barcode_lib');
     $this->Sale->create_sales_items_temp_table();
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Respuesta_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 4)) {
         redirect('no_access/' . $module_id);
     }
 }
예제 #6
0
 public function __construct()
 {
     parent::__construct();
     if ($key = $this->Appconfig->get('mc_api_key')) {
         $this->load->library('MailChimp', array($key), 'MailChimp');
     } else {
         show_error($this->lang->line('common_mailchimp_dashboard_rejected'));
     }
 }
예제 #7
0
파일: Alumno.php 프로젝트: aeduc/mideteed
 public function __construct()
 {
     parent::__construct();
     $this->load->model('ensayo_model');
     $this->load->model('alumno_model');
     $this->load->model('prueba_model');
     $this->load->model('hojarespuesta_model');
     $this->load->model('asignacionprueba_model');
     $this->load->helper('date');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 1)) {
         redirect('no_access/' . $module_id);
     }
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Prueba_model');
     $this->load->model('alumno_model');
     $this->load->model('colegio_model');
     $this->load->model('profesor_model');
     $this->load->model('registros_model');
     $this->load->model('Asignacionprueba_model');
     $this->load->model('comunas_model');
     $this->load->model('usuario_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 2)) {
         redirect('no_access/' . $module_id);
     }
 }
예제 #9
0
파일: reports.php 프로젝트: zerubbabel/pos
 function __construct()
 {
     parent::__construct('reports');
     $method_name = $this->uri->segment(2);
     $exploder = explode('_', $method_name);
     preg_match("/(?:inventory)|([^_.]*)(?:_graph|_row)?\$/", $method_name, $matches);
     preg_match("/^(.*?)([sy])?\$/", array_pop($matches), $matches);
     $submodule_id = $matches[1] . (count($matches) > 2 ? $matches[2] : "s");
     $employee_id = $this->Employee->get_logged_in_employee_info()->person_id;
     // check access to report submodule
     if (sizeof($exploder) > 1 && !$this->Employee->has_grant('reports_' . $submodule_id, $employee_id)) {
         redirect('no_access/reports/reports_' . $submodule_id);
     }
     $this->load->helper('report');
 }
예제 #10
0
파일: Profesor.php 프로젝트: aeduc/mideteed
 public function __construct()
 {
     parent::__construct();
     $this->load->model('prueba_model');
     $this->load->model('profesor_model');
     $this->load->model('alumno_model');
     $this->load->model('hojarespuesta_model');
     $this->load->model('asignacionprueba_model');
     $this->load->model('respuesta_model');
     $this->load->model('ensayo_model');
     $this->load->model('colegio_model');
     $this->load->model('nivel_model');
     $this->load->model('estadistica_model');
     if (!$this->usuario_model->has_permission($this->session->userdata('perfil'), 3)) {
         redirect('no_access/' . $module_id);
     }
 }
예제 #11
0
 public function __construct()
 {
     parent::__construct('config');
 }
예제 #12
0
 function __construct()
 {
     parent::__construct('item_kits');
 }
예제 #13
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #14
0
 function __construct()
 {
     parent::__construct('locations');
 }
예제 #15
0
 function __construct()
 {
     parent::__construct('giftcards');
 }
 function __construct($module_id = null)
 {
     parent::__construct($module_id);
 }
예제 #17
0
 public function __construct()
 {
     parent::__construct('items');
 }
예제 #18
0
 function __construct()
 {
     parent::__construct('reports');
     $this->load->helper('report');
 }
예제 #19
0
 public function __construct()
 {
     parent::__construct('share_inventories');
     $this->load->library('receiving_lib');
 }
예제 #20
0
파일: config.php 프로젝트: zerubbabel/pos
 function __construct()
 {
     parent::__construct('config');
     $this->load->library('barcode_lib');
 }
예제 #21
0
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('m_home', 'm_member'));
 }
예제 #22
0
 function __construct()
 {
     parent::__construct('sales');
     $this->load->library('sale_lib');
 }
예제 #23
0
 function __construct()
 {
     parent::__construct('receivings');
     $this->load->library('receiving_lib');
     $this->load->library('barcode_lib');
 }
예제 #24
0
파일: Testing.php 프로젝트: aeduc/mideteed
 public function __construct()
 {
     parent::__construct();
     $this->load->model('asignacionprueba_model');
     $this->load->model('estadistica_model');
 }
예제 #25
0
 public function __construct()
 {
     parent::__construct('stock_control');
 }
예제 #26
0
 public function __construct()
 {
     parent::__construct('orders');
     $this->load->library('order_lib');
     $this->load->model('Order');
 }
예제 #27
0
 function __construct()
 {
     parent::__construct('reports');
     $this->load->helper('report');
     $this->load->library('Report_Service', array(), 'Service');
 }
예제 #28
0
 public function __construct()
 {
     parent::__construct('invetories_compare');
 }
예제 #29
0
 function __construct()
 {
     parent::__construct('items');
     $this->load->library('item_lib');
 }
예제 #30
0
 function __construct()
 {
     parent::__construct();
     $this->data['pagetitle'] = 'Dashboard';
     $this->data['description'] = $this->lang->line('common_welcome_message');
 }