function __construct()
 {
     parent::__construct(MY_Controller::SYSTEM_APP);
     $this->load->file('application/modules/app/security_rol/permission.php');
     $this->permission = new Security_Rol_Permission($this->name_key);
     $this->permission->create = Helper_App_Session::isPermissionForModule($this->name_key, 'create');
     $this->permission->update = Helper_App_Session::isPermissionForModule($this->name_key, 'update');
     if (!Helper_App_Session::isLogin()) {
         $this->redirect('app/login');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (!$this->permission->access) {
         Helper_App_Log::write("Rol: intento de acceso");
         $this->redirect('app/dashboard');
         return;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'list-binnacle':
             $this->listBinnacle();
             break;
         case 'load-binnacle':
             $this->loadBinnacle();
             break;
         case 'save-rol':
             $this->saveRol();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'backup':
             $this->backup();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'load-profile':
             $this->loadProfile();
             break;
         case 'load-components':
             $this->loadComponents();
             break;
         case 'load-pais':
             $this->loadPais();
             break;
         case 'load-provincia':
             $this->loadProvincia();
             break;
         case 'load-ciudad':
             $this->loadCiudad();
             break;
         case 'save-profile':
             $this->saveProfile();
             break;
         case 'upload-picture-profile':
             $this->uploadPictureProfile();
             break;
         case 'load-picture-profile':
             $this->loadPictureProfile();
             break;
         case 'delete-picture-profile':
             $this->deletePictureProfile();
             break;
         case 'save-user':
             $this->saveUser();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 function __construct()
 {
     parent::__construct(MY_Controller::SYSTEM_APP);
     if (!Helper_App_Session::isLogin()) {
         $this->redirect('app/login');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->redirect('app/login');
         return;
     }
     $this->browser = Helper_App_Session::isIExplorer();
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'load-company':
             $this->loadCompany();
             break;
         case 'upload-company-logo':
             $this->uploadCompanyLogo();
             break;
         case 'save-company':
             $this->saveCompany();
             break;
         case 'list-branch':
             $this->listCompanyBranch();
             break;
         case 'load-company-branch':
             $this->loadCompanyBranch();
             break;
         case 'save-company-branch':
             $this->saveCompanyBranch();
             break;
         case 'load-pais':
             $this->loadPais();
             break;
         case 'load-provincia':
             $this->loadProvincia();
             break;
         case 'load-ciudad':
             $this->loadCiudad();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'list-user-acounts':
             $this->listUserAcounts();
             break;
         case 'load-components':
             $this->loadComponents();
             break;
         case 'load-pais':
             $this->loadPais();
             break;
         case 'load-provincia':
             $this->loadProvincia();
             break;
         case 'load-ciudad':
             $this->loadCiudad();
             break;
         case 'load-acount':
             $this->loadAcount();
             break;
         case 'load-person':
             $this->loadPerson();
             break;
         case 'save-acount':
             $this->saveAcount();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 function __construct()
 {
     parent::__construct(MY_Controller::SYSTEM_APP);
     if (!Helper_App_Session::isLogin()) {
         $this->redirect('app/login');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->redirect('app/login_advanced');
         return;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'list-modules-submodules':
             $this->listModulesSubmodules();
             break;
         case 'listmodule':
             $this->listModule();
             break;
         case 'load-module':
             $this->loadModule();
             break;
         case 'save-module':
             $this->saveModule();
             break;
         case 'load-components-modal-module':
             $this->loadComponentsModalModule();
             break;
         case 'save-order-modules':
             $this->saveOrderModules();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 public function process($action)
 {
     if (!Helper_App_Session::isLogin()) {
         $this->noaction('Fuera de sesión');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->noaction('Fuera de sesión por Inactividad');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->noaction('Fuera de session por Bloqueo');
         return;
     }
     if (!$this->permission->access) {
         $this->noaction('Acceso no permitido');
         return;
     }
     switch ($action) {
         case 'list-profile':
             $this->listProfile();
             break;
         case 'load-profile':
             $this->loadProfile();
             break;
         case 'save-profile':
             $this->saveProfile();
             break;
         case 'save-profile-permission':
             $this->saveProfilePermission();
             break;
         case 'load-components-modal-rol':
             $this->loadComponentsModalRol();
             break;
         default:
             $this->noaction($action);
             break;
     }
 }
 function __construct()
 {
     parent::__construct(MY_Controller::SYSTEM_APP);
     $this->load->file('application/modules/app/system_module/permission.php');
     $this->permission = new System_Module_Permission($this->name_key);
     if (!Helper_App_Session::isLogin()) {
         $this->redirect('app/login');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (!$this->permission->access) {
         Helper_App_Log::write("Module: intento de acceso");
         $this->redirect('app/dashboard');
         return;
     }
 }
 function __construct()
 {
     parent::__construct(MY_Controller::SYSTEM_APP);
     $this->load->file('application/modules/app/utility_company_and_company_branch/permission.php');
     $this->permission = new Utility_Company_And_Company_Branch_Permission($this->name_key);
     if (!Helper_App_Session::isLogin()) {
         $this->redirect('app/login');
         return;
     }
     if (!Helper_App_Session::inInactivity()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (Helper_App_Session::isBlock()) {
         $this->redirect('app/login_advanced');
         return;
     }
     if (!$this->permission->access) {
         Helper_App_Log::write("Mantenimiento de Empresa y Sucursales: intento de acceso");
         $this->redirect('app/dashboard');
         return;
     }
 }