/** * buildListFields Rack * name,label,alias,sort,func,filter,options,method */ public function buildListFields() { parent::buildListFields(); if ($this->checkUserView('sd_eprasysName', 'list')) { $this->addInList(array('eprasysName', $this->trans('sd_eprasysName', 'address'), 'sd', true, null, null, array('link_id' => 'crm_addresses_switch_device_edit', 'style' => 'text-align:center', 'parent_id' => 'getSwitchDeviceId'))); } if ($this->checkUserView('sd_ringNum', 'list')) { $this->addInList(array('ringNum', $this->trans('sd_ringNum', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_dateInstall', 'list')) { $this->addInList(array('dateInstall', $this->trans('sd_dateInstall', 'address'), 'sd', true, 'dateTimeFormat', null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_switchType', 'list')) { $this->addInList(array('switchType', $this->trans('sd_switchType', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_installer', 'list')) { $this->addInList(array('installer', $this->trans('sd_installer', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_onControl', 'list')) { $this->addInList(array('onControl', $this->trans('sd_onControl', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_macAddress', 'list')) { $this->addInList(array('macAddress', $this->trans('sd_macAddress', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('sd_serialNum', 'list')) { $this->addInList(array('serialNum', $this->trans('sd_serialNum', 'address'), 'sd', true, null, null, array('style' => 'text-align:center'))); } }
/** * buildListFields * name,label,alias,sort,func,filter,options,method */ public function buildListFields() { $type_id = $this->get('request')->get('type_id'); parent::buildListFields(); $this->addInList(array('installer', $this->trans('brd_installer', 'address'), 'brd', true, null, null, array('style' => 'text-align:center'))); $this->addInList(array('descr', $this->trans('brd_descr', 'address'), 'brd', true, null, null, array('style' => 'text-align:center'))); $this->addInList(array('dateInstall', $this->trans('brd_dateInstall', 'address'), 'brd', true, 'dateTimeFormat', null, array('style' => 'text-align:center'))); if ($type_id == 3) { $this->addInList(array('prom_door_parad', $this->trans('brd_prom_door_parad', 'address'), 'brd', true, null, 'yes_no', array('style' => 'text-align:center'))); $this->addInList(array('prom_lift_door', $this->trans('brd_prom_lift_door', 'address'), 'brd', true, null, 'yes_no', array('style' => 'text-align:center'))); $this->addInList(array('prom_shield', $this->trans('brd_prom_shield', 'address'), 'brd', true, null, 'yes_no', array('style' => 'text-align:center'))); } }
/** * buildListFields Rack * name,label,alias,sort,func,filter,options,method */ public function buildListFields() { parent::buildListFields(); if ($this->checkUserView('rk_eprasysName', 'list')) { $this->addInList(array('eprasysName', $this->trans('rk_eprasysName', 'address'), 'rk', true, null, null, array('link_id' => 'crm_addresses_rack_edit', 'style' => 'text-align:center', 'parent_id' => 'getRackId'), 'getEprasysNameRack')); } if ($this->checkUserView('rk_placeInstall', 'list')) { $this->addInList(array('placeInstall', $this->trans('rk_placeInstall', 'address'), 'rk', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('rk_keyNumber', 'list')) { $this->addInList(array('keyNumber', $this->trans('rk_keyNumber', 'address'), 'rk', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('rk_dateInstall', 'list')) { $this->addInList(array('dateInstall', $this->trans('rk_dateInstall', 'address'), 'rk', true, 'dateTimeFormat', null, array('style' => 'text-align:center'))); } }
/** * buildListFields * name,label,alias,sort,func,filter,options,method */ public function buildListFields() { parent::buildListFields(); if ($this->checkUserView('f_name', 'list')) { $this->addInList(array('name', $this->trans('f_name', 'address'), 'f', true, null, null, array('link_id' => 'crm_addresses_flat_edit', 'style' => 'text-align:center'))); } if ($this->checkUserView('f_rival', 'list')) { $this->addInList(array('rival', $this->trans('f_rival', 'address'), 'f', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('f_status', 'list')) { $this->addInList(array('status', $this->trans('f_status', 'address'), 'f', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('f_statusDescr', 'list')) { $this->addInList(array('statusDescr', $this->trans('f_statusDescr', 'address'), 'f', true, null, null, array('style' => 'text-align:center'))); } if ($this->checkUserView('f_flatDescr', 'list')) { $this->addInList(array('flatDescr', $this->trans('f_flatDescr', 'address'), 'f', true, null, null, array('style' => 'text-align:center'))); } }