Ticket bizmodel,searchable,changemgmt false autoincrement ticket_change id %1$s images/change.png new assigned planned approved closed rejected status new true hardware software system network application other category hardware true reject_reason true changemanager_id Person true DEL_MANUAL changemanager_id email id]]> parent_id Change true DEL_MANUAL parent_id ref true creation_date true approval_date true fallback_plan true UserRequest parent_change_id none 0 0 Incident parent_change_id none 0 0 Problem related_change_id none 0 0 Change parent_id none 0 0 status ev_assign assigned ev_plan planned ev_reject rejected ev_approve approved SetApprovalDate ResetRejectReason ev_reopen assigned ev_finish closed SetClosureDate false public LifecycleAction Set('approval_date', time()); return true; }]]> false public LifecycleAction Set('reject_reason', ''); return true; }]]> false public LifecycleAction Set('close_date', time()); return true; }]]> false protected Overload-DBObject Get('contacts_list'); $oToImpact = $this->Get('functionalcis_list'); $oImpactedInfras = DBObjectSet::FromLinkSet($this, 'functionalcis_list', 'functionalci_id'); $aComputed = $oImpactedInfras->GetRelatedObjects('impacts', 10); if (isset($aComputed['FunctionalCI']) && is_array($aComputed['FunctionalCI'])) { foreach($aComputed['FunctionalCI'] as $iKey => $oObject) { $oNewLink = new lnkFunctionalCIToTicket(); $oNewLink->Set('functionalci_id', $iKey); $oToImpact->AddObject($oNewLink); } } if (isset($aComputed['Contact']) && is_array($aComputed['Contact'])) { foreach($aComputed['Contact'] as $iKey => $oObject) { $oNewLink = new lnkContactToTicket(); $oNewLink->Set('contact_id', $iKey); $oNewLink->Set('role', 'contact automatically computed'); $oToNotify->AddObject($oNewLink); } } $this->Set('creation_date', time()); $this->Set('last_update', time()); }]]> false protected Overload-DBObject Set('last_update', time()); }]]> false public Overload-DBObject Get('ref'); if (strlen($sCurrRef) == 0) { $iKey = $this->GetKey(); if ($iKey < 0) { // Object not yet in the Database $iKey = MetaModel::GetNextKey(get_class($this)); } $sName = sprintf('C-%06d', $iKey); $this->Set('ref', $sName); } }]]> /** * Get the icon representing this object * @param boolean $bImgTag If true the result is a full IMG tag (or an emtpy string if no icon is defined) * @return string Either the full IMG tag ($bImgTag == true) or just the path to the icon file */ false public Overload-DBObject Get('status'); switch($this->GetState()) { case 'approved': case 'implemented': case 'monitored': $sIcon = self::MakeIconFromName('change-approved.png'); break; case 'rejected': case 'notapproved': $sIcon = self::MakeIconFromName('change-rejected.png'); break; case 'closed': $sIcon = self::MakeIconFromName('change-closed.png'); break; default: $sIcon = MetaModel::GetClassIcon(get_class($this), $bImgTag); } return $sIcon; }]]> true protected Overload-DBObject "; } else { $sIcon = $sPath; } } return $sIcon; }]]>
10 20 30 40 50 60 70 80 10 10 20 30 40 50 20 10 20 30 40 90 10 10 20 30 20 10 100 10 10 20 30 40 50 60
10 20 30 40 50 60 70 80 90 100 110 120 10 20 30 40 50 60 70
50 0 ChangeManagement overview.xml 1 ChangeManagement Change 2 ChangeManagement Change 3 ChangeManagement 1 Change:Shortcuts fast 2 Change:Shortcuts 1 fast 3 Change:Shortcuts fast