示例#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);
     }
 }
 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
 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
 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
 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');
 }