/**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_IMPORT_TITLE'), 'upload');
     JHtmlSidebar::setAction('index.php?option=com_costbenefitprojection&view=import');
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('import');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     $canDo = CostbenefitprojectionHelper::getActions('costbenefitprojection');
     JToolBarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_DASHBOARD'), 'grid-2');
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('costbenefitprojection');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     // adding the joomla toolbar to the front
     JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR . '/includes/toolbar.php');
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('createaccount');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // now initiate the toolbar
     $this->toolbar = JToolbar::getInstance();
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_CURRENCIES'), 'credit');
     JHtmlSidebar::setAction('index.php?option=com_costbenefitprojection&view=currencies');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('currency.add');
     }
     // Only load if there are items
     if (CostbenefitprojectionHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('currency.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('currencies.publish');
             JToolBarHelper::unpublishList('currencies.unpublish');
             JToolBarHelper::archiveList('currencies.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('currencies.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'currencies.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('currencies.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('currency.export')) {
             JToolBarHelper::custom('currencies.exportData', 'download', '', 'COM_COSTBENEFITPROJECTION_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('currency.import')) {
         JToolBarHelper::custom('currencies.importData', 'upload', '', 'COM_COSTBENEFITPROJECTION_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('currencies');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     // hide the main menu
     $this->app->input->set('hidemainmenu', true);
     // add title to the page
     JToolbarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_COMBINEDRESULTS'), 'cogs');
     // add the back button
     // JToolBarHelper::custom('combinedresults.back', 'undo-2', '', 'COM_COSTBENEFITPROJECTION_BACK', false);
     // add cpanel button
     JToolBarHelper::custom('combinedresults.dashboard', 'grid-2', '', 'COM_COSTBENEFITPROJECTION_DASH', false);
     if ($this->canDo->get('combinedresults.companies')) {
         // add Companies button.
         JToolBarHelper::custom('combinedresults.gotoCompanies', 'vcard', '', 'COM_COSTBENEFITPROJECTION_COMPANIES', false);
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('combinedresults');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_INTERVENTIONS'), 'wand');
     JHtmlSidebar::setAction('index.php?option=com_costbenefitprojection&view=interventions');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('intervention.add');
     }
     // Only load if there are items
     if (CostbenefitprojectionHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('intervention.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('interventions.publish');
             JToolBarHelper::unpublishList('interventions.unpublish');
             JToolBarHelper::archiveList('interventions.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('interventions.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'interventions.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('interventions.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('intervention.export')) {
             JToolBarHelper::custom('interventions.exportData', 'download', '', 'COM_COSTBENEFITPROJECTION_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('intervention.import')) {
         JToolBarHelper::custom('interventions.importData', 'upload', '', 'COM_COSTBENEFITPROJECTION_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('interventions');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
     // Set Company Name Selection
     $this->companyNameOptions = JFormHelper::loadFieldType('Company')->getOptions();
     if ($this->companyNameOptions) {
         // Company Name Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL') . ' -', 'filter_company', JHtml::_('select.options', $this->companyNameOptions, 'value', 'text', $this->state->get('filter.company')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Company Name Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COMPANY_LABEL') . ' -', 'batch[company]', JHtml::_('select.options', $this->companyNameOptions, 'value', 'text'));
         }
     }
     // Set Type Selection
     $this->typeOptions = $this->getTheTypeSelections();
     if ($this->typeOptions) {
         // Type Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_LABEL') . ' -', 'filter_type', JHtml::_('select.options', $this->typeOptions, 'value', 'text', $this->state->get('filter.type')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Type Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_TYPE_LABEL') . ' -', 'batch[type]', JHtml::_('select.options', $this->typeOptions, 'value', 'text'));
         }
     }
     // Set Coverage Selection
     $this->coverageOptions = $this->getTheCoverageSelections();
     if ($this->coverageOptions) {
         // Coverage Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL') . ' -', 'filter_coverage', JHtml::_('select.options', $this->coverageOptions, 'value', 'text', $this->state->get('filter.coverage')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Coverage Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_COVERAGE_LABEL') . ' -', 'batch[coverage]', JHtml::_('select.options', $this->coverageOptions, 'value', 'text'));
         }
     }
     // Set Duration Selection
     $this->durationOptions = $this->getTheDurationSelections();
     if ($this->durationOptions) {
         // Duration Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_LABEL') . ' -', 'filter_duration', JHtml::_('select.options', $this->durationOptions, 'value', 'text', $this->state->get('filter.duration')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Duration Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_INTERVENTION_DURATION_LABEL') . ' -', 'batch[duration]', JHtml::_('select.options', $this->durationOptions, 'value', 'text'));
         }
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->id;
     $isNew = $this->item->id == 0;
     JToolbarHelper::title(JText::_($isNew ? 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_NEW' : 'COM_COSTBENEFITPROJECTION_HELP_DOCUMENT_EDIT'), 'pencil-2 article-add');
     // Built the actions for new and existing records.
     if ($this->refid || $this->ref) {
         if ($this->canDo->get('help_document.create') && $isNew) {
             // We can create the record.
             JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
         } elseif ($this->canDo->get('help_document.edit')) {
             // We can save the record.
             JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
         }
         if ($isNew) {
             // Do not creat but cancel.
             JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL');
         } else {
             // We can close it.
             JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE');
         }
     } else {
         if ($isNew) {
             // For new records, check the create permission.
             if ($this->canDo->get('help_document.create')) {
                 JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY');
                 JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
                 JToolBarHelper::custom('help_document.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
             }
             JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CANCEL');
         } else {
             if ($this->canDo->get('help_document.edit')) {
                 // We can save the new record
                 JToolBarHelper::apply('help_document.apply', 'JTOOLBAR_APPLY');
                 JToolBarHelper::save('help_document.save', 'JTOOLBAR_SAVE');
                 // We can save this record, but check the create permission to see
                 // if we can return to make a new one.
                 if ($this->canDo->get('help_document.create')) {
                     JToolBarHelper::custom('help_document.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
                 }
             }
             $canVersion = $this->canDo->get('core.version') && $this->canDo->get('help_document.version');
             if ($this->state->params->get('save_history', 1) && $this->canDo->get('help_document.edit') && $canVersion) {
                 JToolbarHelper::versions('com_costbenefitprojection.help_document', $this->item->id);
             }
             if ($this->canDo->get('help_document.create')) {
                 JToolBarHelper::custom('help_document.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
             }
             JToolBarHelper::cancel('help_document.cancel', 'JTOOLBAR_CLOSE');
         }
     }
     JToolbarHelper::divider();
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('help_document');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     // hide the main menu
     $this->app->input->set('hidemainmenu', true);
     // set the title
     if (isset($this->item->name) && $this->item->name) {
         $title = $this->item->name;
     }
     // Check for empty title and add view name if param is set
     if (empty($title)) {
         $title = JText::_('COM_COSTBENEFITPROJECTION_COMPANYRESULTS');
     }
     // add title to the page
     JToolbarHelper::title($title, 'chart');
     // add the back button
     // JToolBarHelper::custom('companyresults.back', 'undo-2', '', 'COM_COSTBENEFITPROJECTION_BACK', false);
     // add cpanel button
     JToolBarHelper::custom('companyresults.dashboard', 'grid-2', '', 'COM_COSTBENEFITPROJECTION_DASH', false);
     if ($this->canDo->get('companyresults.companies')) {
         // add Companies button.
         JToolBarHelper::custom('companyresults.gotoCompanies', 'vcard', '', 'COM_COSTBENEFITPROJECTION_COMPANIES', false);
     }
     if ($this->canDo->get('companyresults.edit')) {
         // add Edit button.
         JToolBarHelper::custom('companyresults.editCompany', 'pencil', '', 'COM_COSTBENEFITPROJECTION_EDIT', false);
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('companyresults');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
 }
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COSTBENEFITPROJECTION_COMPANIES'), 'vcard');
     JHtmlSidebar::setAction('index.php?option=com_costbenefitprojection&view=companies');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('company.add');
     }
     // Only load if there are items
     if (CostbenefitprojectionHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('company.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('companies.publish');
             JToolBarHelper::unpublishList('companies.unpublish');
             JToolBarHelper::archiveList('companies.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('companies.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->canDo->get('combinedresults.access')) {
             // add Combined Results button.
             JToolBarHelper::custom('companies.redirectToCombinedresults', 'cogs', '', 'COM_COSTBENEFITPROJECTION_COMBINEDRESULTS', true);
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'companies.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('companies.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('company.export')) {
             JToolBarHelper::custom('companies.exportData', 'download', '', 'COM_COSTBENEFITPROJECTION_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('company.import')) {
         JToolBarHelper::custom('companies.importData', 'upload', '', 'COM_COSTBENEFITPROJECTION_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = CostbenefitprojectionHelper::getHelpUrl('companies');
     if (CostbenefitprojectionHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COSTBENEFITPROJECTION_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_costbenefitprojection');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COSTBENEFITPROJECTION_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
     // Set Department Selection
     $this->departmentOptions = $this->getTheDepartmentSelections();
     if ($this->departmentOptions) {
         // Department Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT_LABEL') . ' -', 'filter_department', JHtml::_('select.options', $this->departmentOptions, 'value', 'text', $this->state->get('filter.department')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Department Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_DEPARTMENT_LABEL') . ' -', 'batch[department]', JHtml::_('select.options', $this->departmentOptions, 'value', 'text'));
         }
     }
     // Set Country Name Selection
     $this->countryNameOptions = JFormHelper::loadFieldType('Countries')->getOptions();
     if ($this->countryNameOptions) {
         // Country Name Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_LABEL') . ' -', 'filter_country', JHtml::_('select.options', $this->countryNameOptions, 'value', 'text', $this->state->get('filter.country')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Country Name Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_COUNTRY_LABEL') . ' -', 'batch[country]', JHtml::_('select.options', $this->countryNameOptions, 'value', 'text'));
         }
     }
     // Set Service Provider User Selection
     $this->service_providerUserOptions = JFormHelper::loadFieldType('Serviceprovider')->getOptions();
     if ($this->service_providerUserOptions) {
         // Service Provider User Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER_LABEL') . ' -', 'filter_service_provider', JHtml::_('select.options', $this->service_providerUserOptions, 'value', 'text', $this->state->get('filter.service_provider')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Service Provider User Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_SERVICE_PROVIDER_LABEL') . ' -', 'batch[service_provider]', JHtml::_('select.options', $this->service_providerUserOptions, 'value', 'text'));
         }
     }
     // Set Per Selection
     $this->perOptions = $this->getThePerSelections();
     if ($this->perOptions) {
         // Per Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL') . ' -', 'filter_per', JHtml::_('select.options', $this->perOptions, 'value', 'text', $this->state->get('filter.per')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Per Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COSTBENEFITPROJECTION_COMPANY_PER_LABEL') . ' -', 'batch[per]', JHtml::_('select.options', $this->perOptions, 'value', 'text'));
         }
     }
 }