示例#1
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name, gc_name, gpa_name')), 'gc_name' => array('label' => _('Settore'), 'options' => array('order_fields' => 'gc_name, gpa_name')), 'gpa_name' => array('label' => _('Azione'), 'options' => array('order_fields' => 'gpa_name, gc_name')), 'gpr_start_date' => array('label' => _('Inizio'), 'type' => 'date', 'width' => 100, 'options' => array('align' => 'center')), 'gpr_end_date' => array('label' => _('Fine'), 'type' => 'date', 'width' => 100, 'options' => array('align' => 'center')), 'gpr_estimated_cost' => array('label' => _('Costi stimati [€]'), 'type' => 'number', 'width' => 80, 'options' => array('format' => '%.2f')), 'gpr_expected_energy_saving' => array('label' => _('Risparmio energetico previsto [MWh/a]'), 'type' => 'number', 'width' => 80, 'options' => array('format' => '%.2f')), 'gpr_expected_renewable_energy_production' => array('label' => _('Produzione di energia rinnovabile prevista [MWh/a]'), 'type' => 'number', 'width' => 80, 'options' => array('format' => '%.2f')), 'gpr_expected_co2_reduction' => array('label' => _('Riduzione di CO2 prevista [t/a]'), 'type' => 'number', 'width' => 80, 'options' => array('format' => '%.2f')), 'gauge_info' => array('label' => _('Indicatori'), 'type' => 'text', 'width' => 80, 'options' => array('align' => 'right')), 'progress_energy' => array('label' => _('% Completam. Energia'), 'type' => 'number', 'width' => 80), 'progress_emission' => array('label' => _('% Completam. Emissioni'), 'type' => 'number', 'width' => 80));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#2
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => _('Comune'), 'visible' => $showMunicipality), 'bu_id' => array('label' => _('ID edificio'), 'width' => 100, 'visible' => false, 'options' => array('align' => 'right')), 'bu_code' => array('label' => _('Codice edificio'), 'width' => 100, 'options' => array('align' => 'right', 'order_fields' => 'bu_code_pad, bu_name, bu_id')), 'bpu_name' => array('label' => _("Destinazione d'uso"), 'options' => array('order_fields' => 'bpu_name, bu_code, bu_name, bu_id')), 'bu_name' => array('label' => _('Nome'), 'options' => array('order_fields' => 'bu_name, bpu_name, bu_id')), 'bu_address' => array('label' => _('Indirizzo'), 'type' => 'calculated', 'options' => array('order_fields' => 'fr_name, st_name, bu_nr_civic, bu_nr_civic_crossed')), 'bt_name' => array('label' => _('Tipologia costruttiva'), 'options' => array('order_fields' => 'bt_name, bu_code, bu_name, bu_id')), 'bu_area_heating' => array('label' => _('Sup.Risc.'), 'width' => 60, 'options' => array('align' => 'right', 'order_fields' => 'bu_area_heating, bu_code, bu_name, bu_id', 'number_format' => array('decimals' => 1))), 'bu_to_check' => array('label' => _('Da controllare'), 'width' => 70, 'visible' => false, 'options' => array('align' => 'center', 'order_fields' => 'bu_to_check, bu_code, bu_name, bu_id')));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#3
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name, ge_year, ge_name, ge_id')), 'ge_year' => array('label' => _('Anno riferimento'), 'width' => 100, 'type' => 'integer', 'options' => array('order_fields' => 'ge_year, mu_name, ge_name, ge_id')), 'ge_name' => array('label' => _('Titolo inventario emissioni'), 'options' => array('order_fields' => 'ge_name, ge_year, mu_name, ge_id')));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#4
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => _('Comune'), 'visible' => $showMunicipality), 'sl_full_name' => array('label' => _('Tratto')), 'sl_length' => array('label' => _('Lunghezza'), 'width' => 100, 'type' => 'float', 'options' => array('order_fields' => 'sl_length, sl_full_name, sl_id', 'number_format' => array('decimals' => 2))), 'sl_to_check' => array('label' => _('Da controllare'), 'width' => 100, 'visible' => false, 'options' => array('align' => 'center', 'order_fields' => 'sl_to_check, sl_full_name, sl_id')));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#5
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name, ac_code, ac_name, ac_id')), 'ac_code' => array('label' => _('Codice'), 'width' => 100, 'options' => array('align' => 'right', 'order_fields' => 'ac_code, ac_name, ac_id')), 'ac_name' => array('label' => _('Nome')), 'gc_name' => array('label' => _('Categoria PAES')), 'gpa_name' => array('label' => _('Azione principale'), 'options' => array('xnumber_format' => array('decimals' => 2))), 'ac_estimated_auto_financing' => array('label' => _('Autofinanziamento [€]'), 'width' => 100, 'type' => 'float', 'options' => array('order_fields' => 'ac_estimated_auto_financing', 'number_format' => array('decimals' => 2))), 'ac_expected_energy_saving_mwh' => array('label' => _('Risparmio energetico [MWh]'), 'width' => 100, 'type' => 'float', 'options' => array('order_fields' => 'ac_expected_energy_saving_mwh', 'number_format' => array('decimals' => 2))), 'ac_expected_renewable_energy_production_mwh' => array('label' => _('Produzione energetica [MWh]'), 'width' => 100, 'type' => 'float', 'options' => array('order_fields' => 'ac_expected_renewable_energy_production_mwh', 'number_format' => array('decimals' => 2))), 'ac_green_electricity_purchase_mwh' => array('label' => _('Acquisto energia verde [MWh]'), 'width' => 100, 'type' => 'float', 'options' => array('order_fields' => 'ac_green_electricity_purchase_mwh', 'number_format' => array('decimals' => 2))), 'ac_expected_co2_reduction_calc' => array('label' => _('Riduzione CO2 [t/a]'), 'type' => 'float', 'width' => 100, 'options' => array('order_fields' => 'ac_expected_co2_reduction_calc', 'number_format' => array('decimals' => 2))));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#6
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name')), 'gp_name' => array('label' => _('Nome')), 'gp_approval_date' => array('label' => _('Data approvazione'), 'type' => 'date', 'width' => 120), 'gp_approving_authority' => array('label' => _('Ente approvatore')));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }
示例#7
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name')), 'gst_name' => array('label' => _('Nome'), 'width' => 250), 'gst_target_descr' => array('label' => _('Descrizione obiettivi')), 'gst_reduction_target' => array('label' => _('Obiettivo riduzione (%)'), 'width' => 100, 'type' => 'float', 'options' => array('number_format' => array('decimals' => 2))), 'gst_reduction_target_year' => array('label' => _('Anno riduzione'), 'visible' => false, 'width' => 100, 'type' => 'integer', 'options' => array('align' => 'right', 'order_fields' => 'bu_code_pad, bu_name, bu_id')), 'gst_reduction_target_absolute' => array('label' => _('Riduz. assoluta'), 'width' => 60, 'options' => array('align' => 'center')), 'gst_staff_nr' => array('label' => _('Personale impiegato'), 'visible' => false, 'width' => 100, 'type' => 'integer', 'options' => array('number_format' => array('decimals' => null))), 'gst_budget' => array('label' => _("Stima risorse (€)"), 'type' => 'integer', 'width' => 100, 'options' => array('number_format' => array('decimals' => 2))), 'gst_emission_factor_type' => array('label' => _('Fatt.emiss.'), 'visible' => false, 'width' => 100), 'gst_emission_unit' => array('label' => _('Tipo emiss.'), 'width' => 80));
     return $rows;
 }
示例#8
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name')), 'doc_file' => array('label' => _('Nome')), 'doc_date' => array('label' => _('Data import'), 'width' => 100, 'type' => 'date'));
     return $rows;
 }
示例#9
0
 /**
  * Return the fields for the list table
  */
 public function getTableColumnConfig()
 {
     $showMunicipality = R3EcoGisHelper::getMunicipalityCount($this->do_id) > 1;
     $rows = array('mu_name' => array('label' => R3EcoGisHelper::geti18nMunicipalityLabel($this->do_id), 'visible' => $showMunicipality, 'options' => array('order_fields' => 'mu_type, mu_name, sw_title, sw_id')), 'sw_title' => array('label' => _('Titolo'), 'options' => array('order_fields' => 'sw_title, mu_name, sw_id')), 'sw_descr' => array('label' => _('Note'), 'visible' => false), 'sw_tot' => array('label' => _('N° interventi'), 'width' => 50, 'type' => 'integer', 'options' => array('align' => 'right', 'order_fields' => 'sw_tot, sw_title, mu_name, sw_id')), 'sw_efe_1' => array('label' => _('EFE'), 'width' => 50, 'type' => 'float', 'options' => array('align' => 'right', 'order_fields' => 'sw_efe_1, sw_title, mu_name, sw_id', 'number_format' => array('decimals' => 3))), 'swc_estimated_cost_tot' => array('label' => _('Costi totali stimati'), 'width' => 100, 'type' => 'float', 'options' => array('align' => 'right', 'order_fields' => 'swc_estimated_cost_tot, sw_id', 'number_format' => array('decimals' => 2))), 'swc_expected_energy_saving_tot' => array('label' => _('Risparmio energetico totale [MWh/a]'), 'width' => 100, 'type' => 'float', 'options' => array('align' => 'right', 'order_fields' => 'swc_expected_energy_saving_tot, sw_id', 'number_format' => array('decimals' => 0))), 'swc_expected_renewable_energy_production_tot' => array('label' => _('Produzione di energia totale [MWh/a]'), 'width' => 100, 'type' => 'float', 'options' => array('align' => 'right', 'order_fields' => 'swc_expected_renewable_energy_production_tot, sw_id', 'number_format' => array('decimals' => 0))), 'swc_expected_co2_reduction_tot' => array('label' => _('Riduzione di CO2 totale [t/a]'), 'width' => 100, 'type' => 'float', 'options' => array('align' => 'right', 'order_fields' => 'swc_expected_co2_reduction_tot, sw_id', 'number_format' => array('decimals' => 0))));
     if (R3AuthInstance::get()->getParam('mu_id') != '') {
         unset($rows['mu_name']);
     }
     return $rows;
 }