mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Added ticket module (prerequiste to incident etc.) and change the declaration of a menu : made by an identifier
SVN:trunk[510]
This commit is contained in:
@@ -12,6 +12,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/1.0.0',
|
||||
'itop-ticket/1.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -771,48 +771,54 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
//
|
||||
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Menu:Class:Organization/Name' => 'Organizations',
|
||||
'Menu:Class:Organization/Title' => 'ALl Organizations',
|
||||
'Menu:Class:Application/Name' => 'Applications',
|
||||
'Menu:Class:Application/Title' => 'All Applications',
|
||||
'Menu:Audit' => 'Audit',
|
||||
'Menu:Audit+' => 'Audit',
|
||||
'Menu:Organization' => 'Organizations',
|
||||
'Menu:Organization+' => 'ALl Organizations',
|
||||
'Menu:Application' => 'Applications',
|
||||
'Menu:Application+' => 'All Applications',
|
||||
'Menu:Audit' => 'Audit',
|
||||
'Menu:ConfigManagement' => 'Configuration Management',
|
||||
'Menu:ConfigManagement/Overview' => 'Overview',
|
||||
'Menu:Class:Contact/Name' => 'Contacts',
|
||||
'Menu:Class:Person/Name' => 'Persons',
|
||||
'Menu:Class:Person/Title' => 'All Persons',
|
||||
'Menu:Class:Team/Name' => 'Teams',
|
||||
'Menu:Class:Team/Title' => 'All Teams',
|
||||
'Menu:Class:FileDoc/Name' => 'Documents',
|
||||
'Menu:Class:FileDoc/Title' => 'All Documents',
|
||||
'Menu:Class:Location/Name' => 'Locations',
|
||||
'Menu:Class:Location/Title' => 'All Locations',
|
||||
'Menu:ConfigManagement:CI' => 'Configuration Items',
|
||||
'Menu:Class:BusinessProcess/Name' => 'Business Processes',
|
||||
'Menu:Class:BusinessProcess/Title' => 'All Business Processes',
|
||||
'Menu:Class:ApplicationSolution/Name' => 'Application Solutions',
|
||||
'Menu:Class:ApplicationSolution/Title' => 'All Application Solutions',
|
||||
'Menu:ConfigManagement:Software' => 'Software',
|
||||
'Menu:Class:Licence/Name' => 'Licences',
|
||||
'Menu:Class:Licence/Title' => 'All Licences',
|
||||
'Menu:Class:Patch/Name' => 'Patches',
|
||||
'Menu:Class:Patch/Title' => 'ALl Patches',
|
||||
'Menu:Class:ApplicationInstance/Name' => 'Installed Applications',
|
||||
'Menu:Class:ApplicationInstance/Title' => 'All Installed Applications',
|
||||
'Menu:Class:DatabaseInstance/Name' => 'Database Instances',
|
||||
'Menu:Class:DatabaseInstance/Title' => 'All Database Instances',
|
||||
'Menu:ConfigManagement:Hardware' => 'Hardware',
|
||||
'Menu:Class:Subnet/Name' => 'Subnets',
|
||||
'Menu:Class:Subnet/Title' => 'All Subnets',
|
||||
'Menu:Class:NetworkDevice/Name' => 'Network Devices',
|
||||
'Menu:Class:NetworkDevice/Title' => 'All Network Devices',
|
||||
'Menu:Class:Server/Name' => 'Servers',
|
||||
'Menu:Class:Server/Title' => 'All Servers',
|
||||
'Menu:Class:Printer/Name' => 'Printers',
|
||||
'Menu:Class:Printer/Title' => 'All Printers',
|
||||
'Menu:Class:MobilePhone/Name' => 'Mobile Phones',
|
||||
'Menu:Class:MobilePhone/Title' => 'All Mobile Phones',
|
||||
'Menu:Class:PC/Name' => 'Personal Computers',
|
||||
'Menu:Class:PC/Title' => 'All Personal Computers',
|
||||
'Menu:ConfigManagement+' => 'Configuration Management',
|
||||
'Menu:ConfigManagementOverview' => 'Overview',
|
||||
'Menu:ConfigManagementOverview+' => 'Overview',
|
||||
'Menu:Contact' => 'Contacts',
|
||||
'Menu:Contact+' => 'Contacts',
|
||||
'Menu:Person' => 'Persons',
|
||||
'Menu:Person+' => 'All Persons',
|
||||
'Menu:Team' => 'Teams',
|
||||
'Menu:Team+' => 'All Teams',
|
||||
'Menu:FileDoc' => 'Documents',
|
||||
'Menu:FileDoc+' => 'All Documents',
|
||||
'Menu:Location' => 'Locations',
|
||||
'Menu:Location+' => 'All Locations',
|
||||
'Menu:ConfigManagementCI' => 'Configuration Items',
|
||||
'Menu:ConfigManagementCI+' => 'Configuration Items',
|
||||
'Menu:BusinessProcess' => 'Business Processes',
|
||||
'Menu:BusinessProcess+' => 'All Business Processes',
|
||||
'Menu:ApplicationSolution' => 'Application Solutions',
|
||||
'Menu:ApplicationSolution+' => 'All Application Solutions',
|
||||
'Menu:ConfigManagementSoftware' => 'Software',
|
||||
'Menu:Licence' => 'Licences',
|
||||
'Menu:Licence+' => 'All Licences',
|
||||
'Menu:Patch' => 'Patches',
|
||||
'Menu:Patch+' => 'ALl Patches',
|
||||
'Menu:ApplicationInstance' => 'Installed Applications',
|
||||
'Menu:ApplicationInstance+' => 'All Installed Applications',
|
||||
'Menu:DatabaseInstance' => 'Database Instances',
|
||||
'Menu:DatabaseInstance+' => 'All Database Instances',
|
||||
'Menu:ConfigManagementHardware' => 'Hardware',
|
||||
'Menu:Subnet' => 'Subnets',
|
||||
'Menu:Subnet+' => 'All Subnets',
|
||||
'Menu:NetworkDevice' => 'Network Devices',
|
||||
'Menu:NetworkDevice+' => 'All Network Devices',
|
||||
'Menu:Server' => 'Servers',
|
||||
'Menu:Server+' => 'All Servers',
|
||||
'Menu:Printer' => 'Printers',
|
||||
'Menu:Printer+' => 'All Printers',
|
||||
'Menu:MobilePhone' => 'Mobile Phones',
|
||||
'Menu:MobilePhone+' => 'All Mobile Phones',
|
||||
'Menu:PC' => 'Personal Computers',
|
||||
'Menu:PC+' => 'All Personal Computers',
|
||||
));
|
||||
?>
|
||||
|
||||
@@ -1102,48 +1102,48 @@ class lnkProcessToSolution extends cmdbAbstractObject
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
// Create the top-level group. fRank = 1, means it will be inserted after the group '0', which is usually 'Welcome'
|
||||
|
||||
$oAdminMenu = new MenuGroup('UI:AdminToolsMenu', 999);
|
||||
$oAdminMenu = new MenuGroup('AdminTools', 999);
|
||||
$iAdminGroup = $oAdminMenu->GetIndex();
|
||||
new OQLMenuNode('Menu:Class:Organization/Name', 'Menu:Class:Organization/Title', 'SELECT Organization', $iAdminGroup, 10 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Application/Name', 'Menu:Class:Application/Title', 'SELECT Application', $iAdminGroup, 20 /* fRank */);
|
||||
new OQLMenuNode('Organization', 'SELECT Organization', $iAdminGroup, 10 /* fRank */);
|
||||
new OQLMenuNode('Application', 'SELECT Application', $iAdminGroup, 20 /* fRank */);
|
||||
|
||||
$oToolsMenu = new MenuGroup('UI:AdvancedToolsMenu', 998);
|
||||
$oToolsMenu = new MenuGroup('AdvancedToolsMenu', 998);
|
||||
$iToolsGroup = $oToolsMenu->GetIndex();
|
||||
new WebPageMenuNode('Menu:Audit', '../pages/audit.php', $iToolsGroup, 33 /* fRank */);
|
||||
new WebPageMenuNode('Audit', '../pages/audit.php', $iToolsGroup, 33 /* fRank */);
|
||||
|
||||
|
||||
$oConfigManagementGroup = new MenuGroup('Menu:ConfigManagement', 1 /* fRank */);
|
||||
$oConfigManagementGroup = new MenuGroup('ConfigManagement', 1 /* fRank */);
|
||||
|
||||
// Create an entry, based on a custom template, for the Configuration management overview, under the top-level group
|
||||
new TemplateMenuNode('Menu:ConfigManagement/Overview', '../business/templates/configuration_management_menu.html', $oConfigManagementGroup->GetIndex(), 0 /* fRank */);
|
||||
new TemplateMenuNode('ConfigManagementOverview', '../business/templates/configuration_management_menu.html', $oConfigManagementGroup->GetIndex(), 0 /* fRank */);
|
||||
|
||||
|
||||
$oContactNode = new TemplateMenuNode('Menu:Class:Contact/Name', '../business/templates/contacts_menu.html', $oConfigManagementGroup->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Person/Name', 'Menu:Class:Person/Title', 'SELECT Person', $oContactNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Team/Name', 'Menu:Class:Team/Title', 'SELECT Team', $oContactNode->GetIndex(), 2 /* fRank */);
|
||||
$oContactNode = new TemplateMenuNode('Contact', '../business/templates/contacts_menu.html', $oConfigManagementGroup->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Person', 'SELECT Person', $oContactNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Team', 'SELECT Team', $oContactNode->GetIndex(), 2 /* fRank */);
|
||||
|
||||
new OQLMenuNode('Menu:Class:FileDoc/Name', 'Menu:Class:FileDoc/Title', 'SELECT FileDoc', $oConfigManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Location/Name', 'Menu:Class:Location/Title', 'SELECT Location', $oConfigManagementGroup->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('FileDoc', 'SELECT FileDoc', $oConfigManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Location', 'SELECT Location', $oConfigManagementGroup->GetIndex(), 3 /* fRank */);
|
||||
|
||||
|
||||
$oCINode = new TemplateMenuNode('Menu:ConfigManagement:CI', '../business/templates/configuration_items_menu.html', $oConfigManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
$oCINode = new TemplateMenuNode('ConfigManagementCI', '../business/templates/configuration_items_menu.html', $oConfigManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
|
||||
new OQLMenuNode('Menu:Class:BusinessProcess/Name', 'Menu:Class:BusinessProcess/Title', 'SELECT BusinessProcess', $oCINode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ApplicationSolution/Name', 'Menu:Class:ApplicationSolution/Title', 'SELECT ApplicationSolution', $oCINode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('BusinessProcess', 'SELECT BusinessProcess', $oCINode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('ApplicationSolution', 'SELECT ApplicationSolution', $oCINode->GetIndex(), 1 /* fRank */);
|
||||
|
||||
$oSWNode = new TemplateMenuNode('Menu:ConfigManagement:Software', '', $oCINode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Licence/Name', 'Menu:Class:Licence/Title', 'SELECT Licence', $oSWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Patch/Name', 'Menu:Class:Patch/Title', 'SELECT Patch', $oSWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ApplicationInstance/Name', 'Menu:Class:ApplicationInstance/Title', 'SELECT ApplicationInstance', $oSWNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:DatabaseInstance/Name', 'Menu:Class:DatabaseInstance/Title', 'SELECT DatabaseInstance', $oSWNode->GetIndex(), 3 /* fRank */);
|
||||
$oSWNode = new TemplateMenuNode('ConfigManagementSoftware', '', $oCINode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Licence', 'SELECT Licence', $oSWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Patch', 'SELECT Patch', $oSWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('ApplicationInstance', 'SELECT ApplicationInstance', $oSWNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('DatabaseInstance', 'SELECT DatabaseInstance', $oSWNode->GetIndex(), 3 /* fRank */);
|
||||
|
||||
$oHWNode = new TemplateMenuNode('Menu:ConfigManagement:Hardware', '', $oCINode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Subnet/Name', 'Menu:Class:Subnet/Title', 'SELECT Subnet', $oHWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:NetworkDevice/Name', 'Menu:Class:NetworkDevice/Title', 'SELECT NetworkDevice', $oHWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Server/Name', 'Menu:Class:Server/Title', 'SELECT Server', $oHWNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Printer/Name', 'Menu:Class:Printer/Title', 'SELECT Printer', $oHWNode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:MobilePhone/Name', 'Menu:Class:MobilePhone/Title', 'SELECT MobilePhone', $oHWNode->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:PC/Name', 'Menu:Class:PC/Title', 'SELECT PC', $oHWNode->GetIndex(), 5 /* fRank */);
|
||||
$oHWNode = new TemplateMenuNode('ConfigManagementHardware', '', $oCINode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('Subnet', 'SELECT Subnet', $oHWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('NetworkDevice', 'SELECT NetworkDevice', $oHWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Server', 'SELECT Server', $oHWNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Printer', 'SELECT Printer', $oHWNode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('MobilePhone', 'SELECT MobilePhone', $oHWNode->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('PC', 'SELECT PC', $oHWNode->GetIndex(), 5 /* fRank */);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -12,6 +12,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/1.0.0',
|
||||
'itop-tickets/1.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -12,6 +12,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/1.0.0',
|
||||
'itop-tickets/1.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -12,6 +12,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/1.0.0',
|
||||
'itop-tickets/1.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -12,6 +12,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/1.0.0',
|
||||
'itop-tickets/1.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -48,4 +48,13 @@
|
||||
// Class:<class_name>/Stimulus:<stimulus_code>
|
||||
// Class:<class_name>/Stimulus:<stimulus_code>+
|
||||
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Menu:ServiceManagement' => 'Service Management',
|
||||
'Menu:ServiceManagement+' => 'Service Management Overview',
|
||||
'UI-ServiceManagementMenu-ContractsBySrvLevel' => 'Contracts by service level',
|
||||
'UI-ServiceManagementMenu-ContractsByStatus' => 'Contracts by status',
|
||||
'UI-ServiceManagementMenu-ContractsEndingIn30Days' => 'Contracts ending in less then 30 days',
|
||||
));
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -378,12 +378,13 @@ class ServiceLevel extends cmdbAbstractObject
|
||||
MetaModel::Init_AddAttribute(new AttributeString("ticket_type", array("allowed_values"=>null, "sql"=>"ticket_type", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeString("ticket_priorities", array("allowed_values"=>null, "sql"=>"ticket_priorities", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeInteger("value", array("allowed_values"=>null, "sql"=>"value", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeString("value_unit", array("allowed_values"=>null, "sql"=>"value_unit", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeLinkedSetIndirect("sla_list", array("linked_class"=>"lnkLevelToSLA", "ext_key_to_me"=>"servicelevel_id", "ext_key_to_remote"=>"sla_id", "allowed_values"=>null, "count_min"=>0, "count_max"=>0, "depends_on"=>array())));
|
||||
|
||||
MetaModel::Init_SetZListItems('details', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value', 'sla_list'));
|
||||
MetaModel::Init_SetZListItems('advanced_search', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value'));
|
||||
MetaModel::Init_SetZListItems('standard_search', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value'));
|
||||
MetaModel::Init_SetZListItems('list', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value'));
|
||||
MetaModel::Init_SetZListItems('details', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value', 'value_unit', 'sla_list'));
|
||||
MetaModel::Init_SetZListItems('advanced_search', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value', 'value_unit'));
|
||||
MetaModel::Init_SetZListItems('standard_search', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value', 'value_unit'));
|
||||
MetaModel::Init_SetZListItems('list', array('name', 'metric', 'ticket_type', 'ticket_priorities', 'value', 'value_unit'));
|
||||
}
|
||||
}
|
||||
class lnkLevelToSLA extends cmdbAbstractObject
|
||||
@@ -410,11 +411,14 @@ class lnkLevelToSLA extends cmdbAbstractObject
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalField("sla_name", array("allowed_values"=>null, "extkey_attcode"=>"sla_id", "target_attcode"=>"name", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalKey("servicelevel_id", array("targetclass"=>"ServiceLevel", "jointype"=>null, "allowed_values"=>null, "sql"=>"servicelevel_id", "is_null_allowed"=>false, "on_target_delete"=>DEL_AUTO, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalField("servicelevel_name", array("allowed_values"=>null, "extkey_attcode"=>"servicelevel_id", "target_attcode"=>"name", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalField("servicelevel_metric", array("allowed_values"=>null, "extkey_attcode"=>"servicelevel_id", "target_attcode"=>"metric", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalField("servicelevel_value", array("allowed_values"=>null, "extkey_attcode"=>"servicelevel_id", "target_attcode"=>"value", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
MetaModel::Init_AddAttribute(new AttributeExternalField("servicelevel_value_unit", array("allowed_values"=>null, "extkey_attcode"=>"servicelevel_id", "target_attcode"=>"value_unit", "is_null_allowed"=>true, "depends_on"=>array())));
|
||||
|
||||
MetaModel::Init_SetZListItems('details', array('sla_id', 'servicelevel_id'));
|
||||
MetaModel::Init_SetZListItems('advanced_search', array('sla_id', 'servicelevel_id'));
|
||||
MetaModel::Init_SetZListItems('standard_search', array('sla_id', 'servicelevel_id'));
|
||||
MetaModel::Init_SetZListItems('list', array('sla_id', 'servicelevel_id'));
|
||||
MetaModel::Init_SetZListItems('details', array('sla_id', 'servicelevel_id', 'servicelevel_metric', 'servicelevel_value', 'servicelevel_value_unit'));
|
||||
MetaModel::Init_SetZListItems('advanced_search', array('sla_id', 'servicelevel_id', 'servicelevel_metric', 'servicelevel_value', 'servicelevel_value_unit'));
|
||||
MetaModel::Init_SetZListItems('standard_search', array('sla_id', 'servicelevel_id', 'servicelevel_metric', 'servicelevel_value', 'servicelevel_value_unit'));
|
||||
MetaModel::Init_SetZListItems('list', array('sla_id', 'servicelevel_id', 'servicelevel_metric', 'servicelevel_value', 'servicelevel_value_unit'));
|
||||
}
|
||||
}
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
@@ -426,41 +430,20 @@ class lnkLevelToSLA extends cmdbAbstractObject
|
||||
// + ...
|
||||
// + ...
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
// Create the top-level group. fRank = 1, means it will be inserted after the group '0', which is usually 'Welcome'
|
||||
$oMyMenuGroup = new MenuGroup('Menu:MyModule', 1 /* fRank */);
|
||||
|
||||
// Create an entry, based on a custom template, for the Configuration management overview, under the top-level group
|
||||
$oMyMenuNode = new TemplateMenuNode('Menu:MyModule', '../business/templates/configuration_management_menu.html', $oMyMenuGroup->GetIndex(), 0 /* fRank */);
|
||||
// By default, one entry per class
|
||||
new OQLMenuNode('Menu:Class:Contract/Name', 'Menu:Class:Contract/Title', 'SELECT Contract', $oMyMenuNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ProviderContract/Name', 'Menu:Class:ProviderContract/Title', 'SELECT ProviderContract', $oMyMenuNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:CustomerContract/Name', 'Menu:Class:CustomerContract/Title', 'SELECT CustomerContract', $oMyMenuNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkProviderToCustomer/Name', 'Menu:Class:lnkProviderToCustomer/Title', 'SELECT lnkProviderToCustomer', $oMyMenuNode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkContractToSLA/Name', 'Menu:Class:lnkContractToSLA/Title', 'SELECT lnkContractToSLA', $oMyMenuNode->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkContractToDoc/Name', 'Menu:Class:lnkContractToDoc/Title', 'SELECT lnkContractToDoc', $oMyMenuNode->GetIndex(), 5 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkContractToContact/Name', 'Menu:Class:lnkContractToContact/Title', 'SELECT lnkContractToContact', $oMyMenuNode->GetIndex(), 6 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkContractToCI/Name', 'Menu:Class:lnkContractToCI/Title', 'SELECT lnkContractToCI', $oMyMenuNode->GetIndex(), 7 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ServiceType/Name', 'Menu:Class:ServiceType/Title', 'SELECT ServiceType', $oMyMenuNode->GetIndex(), 8 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:Service/Name', 'Menu:Class:Service/Title', 'SELECT Service', $oMyMenuNode->GetIndex(), 9 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:SLA/Name', 'Menu:Class:SLA/Title', 'SELECT SLA', $oMyMenuNode->GetIndex(), 10 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ServiceLevel/Name', 'Menu:Class:ServiceLevel/Title', 'SELECT ServiceLevel', $oMyMenuNode->GetIndex(), 11 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:lnkLevelToSLA/Name', 'Menu:Class:lnkLevelToSLA/Title', 'SELECT lnkLevelToSLA', $oMyMenuNode->GetIndex(), 12 /* fRank */);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$oAdminMenu = new MenuGroup('UI:AdminToolsMenu', 999);
|
||||
$oAdminMenu = new MenuGroup('AdminTools', 999);
|
||||
$iAdminGroup = $oAdminMenu->GetIndex();
|
||||
new OQLMenuNode('Menu:Class:ServiceType/Name', 'Menu:Class:ServiceType/Title', 'SELECT ServiceType', $iAdminGroup, 20 /* fRank */);
|
||||
new OQLMenuNode('ServiceType', 'SELECT ServiceType', $iAdminGroup, 25 /* fRank */);
|
||||
|
||||
$oServiceManagementGroup = new MenuGroup('Menu:ServiceManagement', 2 /* fRank */);
|
||||
|
||||
new OQLMenuNode('Menu:Class:ProviderContract/Name', 'Menu:Class:ProviderContract/Title', 'SELECT ProviderContract', $oServiceManagementGroup->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ProviderContract/Name', 'Menu:Class:ProviderContract/Title', 'SELECT ProviderContract', $oServiceManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ProviderContract/Name', 'Menu:Class:ProviderContract/Title', 'SELECT Service', $oServiceManagementGroup->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:SLA/Name', 'Menu:Class:SLA/Title', 'SELECT SLA', $oServiceManagementGroup->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('Menu:Class:ServiceLevel/Name', 'Menu:Class:ServiceLevel/Title', 'SELECT ServiceLevel', $oServiceManagementGroup->GetIndex(), 5 /* fRank */);
|
||||
$oServiceManagementGroup = new MenuGroup('ServiceManagement', 2 /* fRank */);
|
||||
|
||||
|
||||
|
||||
new OQLMenuNode('ProviderContract', 'SELECT ProviderContract', $oServiceManagementGroup->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('CustomerContract', 'SELECT CustomerContract', $oServiceManagementGroup->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Service', 'SELECT Service', $oServiceManagementGroup->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('SLA', 'SELECT SLA', $oServiceManagementGroup->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('ServiceLevel', 'SELECT ServiceLevel', $oServiceManagementGroup->GetIndex(), 5 /* fRank */);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user