示例#1
0
 /**
  * Return the data for a single customer
  */
 public function getLookupData()
 {
     $lkp = array();
     $energyMeterData = $this->data['em_data'];
     $lkp['dt_values'] = R3EcoGisHelper::getDeviceTypeList($_SESSION['do_id'], $this->kind, array('production' => $energyMeterData['em_is_production'] == 'T' ? true : null, 'consumption' => $energyMeterData['em_is_production'] == 'T' ? null : true));
     if (1 == 2) {
         // Inizio e fine impianto sono solo anni
         $lkp['dev_install_date_values'] = R3EcoGisHelper::getDeviceInstallYearList($_SESSION['do_id'], $this->kind);
         $lkp['dev_end_date_values'] = R3EcoGisHelper::getDeviceEndYearList($_SESSION['do_id'], $this->kind);
     }
     return $lkp;
 }