Showing
1 changed file
with
854 additions
and
0 deletions
documentation/index.html
0 → 100644
| 1 | +<html> | ||
| 2 | + <head> | ||
| 3 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
| 4 | + <meta name="Tittel" content=""/> | ||
| 5 | + <meta name="Emne" content=""/> | ||
| 6 | + <meta name="Kategori" content=""/> | ||
| 7 | + <meta name="Nøkkelord" content=""/> | ||
| 8 | + <meta name="Beskrivelse" content=""/> | ||
| 9 | + <meta name="Forfatter" content="Tore Christiansen"/> | ||
| 10 | + <meta name="Overordnet" content=""/> | ||
| 11 | + <meta name="Firma" content="IDI-NTNU"/> | ||
| 12 | + | ||
| 13 | + <title>20141017 ILAP 2</title> | ||
| 14 | + <script src="20141017 ILAP 2.0 Ontology Model-filer/frameset.js" type="text/javascript" language="javascript"></script> | ||
| 15 | + <script type="text/javascript" language="javascript" > | ||
| 16 | + | ||
| 17 | +function FileEntry (pageIndex, pageID, pageName, priImage, secImage) | ||
| 18 | +{ | ||
| 19 | + this.PageIndex = pageIndex; | ||
| 20 | + this.PageID = pageID; | ||
| 21 | + this.PageName = pageName; | ||
| 22 | + this.PriImage = priImage; | ||
| 23 | + this.SecImage = secImage; | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +var viewMgr = null; | ||
| 27 | + | ||
| 28 | +var g_FileList = new Array( | ||
| 29 | + new FileEntry (1, 16, "ILAP", "vml_1.htm", "png_1.htm"), | ||
| 30 | + new FileEntry (2, 94, "ILAP HQPC", "vml_2.htm", "png_2.htm"), | ||
| 31 | + new FileEntry (3, 93, "ILAP Lifecycle", "vml_3.htm", "png_3.htm"), | ||
| 32 | + new FileEntry (4, 85, "ILAP LifeCycle Details", "vml_4.htm", "png_4.htm"), | ||
| 33 | + new FileEntry (5, 88, "ILAP Top Structure", "vml_5.htm", "png_5.htm"), | ||
| 34 | + new FileEntry (6, 95, "ILAP Classification", "vml_6.htm", "png_6.htm"), | ||
| 35 | + new FileEntry (7, 102, "ILAP Planning Core", "vml_7.htm", "png_7.htm"), | ||
| 36 | + new FileEntry (8, 158, "ILAP Legend", "vml_8.htm", "png_8.htm"), | ||
| 37 | + new FileEntry (9, 127, "ILAP Standard Data Fields", "vml_9.htm", "png_9.htm"), | ||
| 38 | + new FileEntry (10, 144, "Activity", "vml_10.htm", "png_10.htm"), | ||
| 39 | + new FileEntry (11, 130, "Constraint", "vml_11.htm", "png_11.htm"), | ||
| 40 | + new FileEntry (12, 139, "Calendar", "vml_12.htm", "png_12.htm"), | ||
| 41 | + new FileEntry (13, 123, "Schedule", "vml_13.htm", "png_13.htm"), | ||
| 42 | + new FileEntry (14, 152, "Responsible", "vml_14.htm", "png_14.htm"), | ||
| 43 | + new FileEntry (15, 113, "Phase", "vml_15.htm", "png_15.htm"), | ||
| 44 | + new FileEntry (16, 147, "Resource", "vml_16.htm", "png_16.htm"), | ||
| 45 | + new FileEntry (17, 148, "Result", "vml_17.htm", "png_17.htm"), | ||
| 46 | + new FileEntry (18, 150, "Value", "vml_18.htm", "png_18.htm"), | ||
| 47 | + new FileEntry (19, 111, "Facility", "vml_19.htm", "png_19.htm"), | ||
| 48 | + new FileEntry (20, 110, "Discipline", "vml_20.htm", "png_20.htm"), | ||
| 49 | + new FileEntry (21, 114, "Shutdown", "vml_21.htm", "png_21.htm"), | ||
| 50 | + new FileEntry (22, 109, "Milestone", "vml_22.htm", "png_22.htm"), | ||
| 51 | + new FileEntry (23, 117, "Status", "vml_23.htm", "png_23.htm"), | ||
| 52 | + new FileEntry (24, 103, "Risk", "vml_24.htm", "png_24.htm"), | ||
| 53 | + new FileEntry (25, 115, "Criticality", "vml_25.htm", "png_25.htm"), | ||
| 54 | + new FileEntry (26, 112, "Priority", "vml_26.htm", "png_26.htm"), | ||
| 55 | + new FileEntry (27, 116, "Expense", "vml_27.htm", "png_27.htm"), | ||
| 56 | + new FileEntry (28, 128, "Contract", "vml_28.htm", "png_28.htm"), | ||
| 57 | + new FileEntry (29, 126, "Material Order Status", "vml_29.htm", "png_29.htm"), | ||
| 58 | + new FileEntry (30, 118, "WBS", "vml_30.htm", "png_30.htm"), | ||
| 59 | + new FileEntry (31, 153, "Plan & Schedule", "vml_31.htm", "png_31.htm"), | ||
| 60 | + new FileEntry (32, 154, "Planned & Scheduled Activities", "vml_32.htm", "png_32.htm"), | ||
| 61 | + new FileEntry (33, 142, "Schedule Dates", "vml_33.htm", "png_33.htm"), | ||
| 62 | + new FileEntry (34, 149, "Asset", "vml_34.htm", "png_34.htm"), | ||
| 63 | + new FileEntry (35, 155, "Pland and subplans", "vml_35.htm", "png_35.htm"), | ||
| 64 | + new FileEntry (36, 138, "Plan Classifiers", "vml_36.htm", "png_36.htm"), | ||
| 65 | + new FileEntry (37, 137, "Application", "vml_37.htm", "png_37.htm"), | ||
| 66 | + new FileEntry (38, 120, "UserField1", "vml_38.htm", "png_38.htm"), | ||
| 67 | + new FileEntry (39, 119, "UserField2", "vml_39.htm", "png_39.htm"), | ||
| 68 | + new FileEntry (40, 98, "ILAP Import", "vml_40.htm", "png_40.htm"), | ||
| 69 | + new FileEntry (41, 99, "ILAP Data Exchange", "vml_41.htm", "png_41.htm"), | ||
| 70 | + new FileEntry (42, 58, "ILAP Reference Data", "vml_42.htm", "png_42.htm") | ||
| 71 | + | ||
| 72 | +); | ||
| 73 | + | ||
| 74 | +var g_CurPageIndex = 0; | ||
| 75 | +var g_ZoomLoaded = false; | ||
| 76 | +var g_WidgetsLoaded = false; | ||
| 77 | +var g_FileProtocol = "file://"; | ||
| 78 | + | ||
| 79 | +var g_HLMenuEntry = "menuEntry"; | ||
| 80 | +var g_HLMenuEntryDiv = "menuEntryDiv"; | ||
| 81 | + | ||
| 82 | +var g_LoadingWidgets = false; | ||
| 83 | + | ||
| 84 | +var isSVG = g_FileList[g_CurPageIndex].PriImage.indexOf("svg") >= 0; | ||
| 85 | +var isVML = g_FileList[g_CurPageIndex].PriImage.indexOf("vml") >= 0; | ||
| 86 | +var isXAML = g_FileList[g_CurPageIndex].PriImage.indexOf("xaml") >= 0; | ||
| 87 | + | ||
| 88 | +function CViewMgr(convertedImgID, highlightDivID) | ||
| 89 | +{ | ||
| 90 | + this.onResize = null; | ||
| 91 | + this.ApplyZoom = null; | ||
| 92 | + this.ChangingView = false; | ||
| 93 | + | ||
| 94 | + this.put_Location = ViewMgrDefaultFind; | ||
| 95 | + this.Zoom = ViewMgrDefaultResize; | ||
| 96 | + this.PostZoomProcessing = null; | ||
| 97 | + this.setView = null; | ||
| 98 | + this.PostSetViewProcessing = null; | ||
| 99 | + this.viewChanged = null; | ||
| 100 | + | ||
| 101 | + this.SupportsDetails = false; | ||
| 102 | + this.SupportsSearch = false; | ||
| 103 | + | ||
| 104 | + this.visBBoxLeft = 0.0; | ||
| 105 | + this.visBBoxRight = 0.0; | ||
| 106 | + this.visBBoxBottom = 0.0; | ||
| 107 | + this.visBBoxTop = 0.0; | ||
| 108 | + | ||
| 109 | + this.highlightDiv = null; | ||
| 110 | + this.stepWidth = 10; | ||
| 111 | + | ||
| 112 | + this.id = convertedImgID; | ||
| 113 | + this.zoomFactor = -1; | ||
| 114 | + this.zoomLast = -1; | ||
| 115 | + this.origWH = 1; | ||
| 116 | + this.origWidth = 100; | ||
| 117 | + this.aspectRatio = 1; | ||
| 118 | + | ||
| 119 | + this.docDrawing = null; | ||
| 120 | + var docDrawing = frmDrawing.document; | ||
| 121 | + if(docDrawing) | ||
| 122 | + { | ||
| 123 | + this.docDrawing = docDrawing; | ||
| 124 | + var docEl = docDrawing.getElementById(this.id); | ||
| 125 | + if (!docEl) | ||
| 126 | + docEl = docDrawing.childNodes[0]; | ||
| 127 | + | ||
| 128 | + this.s = docEl.style; | ||
| 129 | + this.origWidth = this.s.pixelWidth; | ||
| 130 | + this.origWH = this.s.pixelWidth / this.s.pixelHeight; | ||
| 131 | + | ||
| 132 | + this.highlightDiv = docDrawing.getElementById(highlightDivID); | ||
| 133 | + } | ||
| 134 | + | ||
| 135 | + this.loadPage = DefPageLoad; | ||
| 136 | + this.getPNZ = null; | ||
| 137 | +} | ||
| 138 | + | ||
| 139 | +function DefPageLoad (pageIndex) | ||
| 140 | +{ | ||
| 141 | + if (pageIndex >= 0) | ||
| 142 | + { | ||
| 143 | + var curPath = frmDrawing.location.href; | ||
| 144 | + var fileDelim = curPath.lastIndexOf ('/'); | ||
| 145 | + if (fileDelim == -1) | ||
| 146 | + fileDelim = curPath.lastIndexOf ('\\'); | ||
| 147 | + var newPath = curPath.substring (0, fileDelim + 1); | ||
| 148 | + newPath += g_FileList[pageIndex].PriImage; | ||
| 149 | + frmDrawing.location.href = newPath; | ||
| 150 | + | ||
| 151 | + SetPNZDisplay (pageIndex); | ||
| 152 | + } | ||
| 153 | +} | ||
| 154 | + | ||
| 155 | +function CurPageUpdate (pageIndex) | ||
| 156 | +{ | ||
| 157 | + if (pageIndex >= 0) | ||
| 158 | + { | ||
| 159 | + g_CurPageIndex = pageIndex; | ||
| 160 | + | ||
| 161 | + SetCurPageInGoto (pageIndex); | ||
| 162 | + | ||
| 163 | + var divDetails = frmToolbar.document.getElementById("divDetails"); | ||
| 164 | + if (divDetails) | ||
| 165 | + { | ||
| 166 | + var displayStatus = "block"; | ||
| 167 | + if (!viewMgr || !viewMgr.SupportsDetails) | ||
| 168 | + { | ||
| 169 | + displayStatus = "none"; | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + divDetails.style.display = displayStatus; | ||
| 173 | + } | ||
| 174 | + | ||
| 175 | + var divSearch = frmToolbar.document.getElementById("divSearch"); | ||
| 176 | + if (divSearch) | ||
| 177 | + { | ||
| 178 | + var displayStatus = "block"; | ||
| 179 | + if (!viewMgr || !viewMgr.SupportsSearch) | ||
| 180 | + { | ||
| 181 | + displayStatus = "none"; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + divSearch.style.display = displayStatus; | ||
| 185 | + } | ||
| 186 | + | ||
| 187 | + SetPNZDisplay (pageIndex); | ||
| 188 | + | ||
| 189 | + LoadZoom (); | ||
| 190 | + } | ||
| 191 | +} | ||
| 192 | + | ||
| 193 | +function FramePageLoaded () | ||
| 194 | +{ | ||
| 195 | + if (isUpLevel && viewMgr == null) | ||
| 196 | + { | ||
| 197 | + var curPath = frmDrawing.location.href; | ||
| 198 | + var fileDelim = curPath.lastIndexOf ('/'); | ||
| 199 | + if (fileDelim >= 0) | ||
| 200 | + { | ||
| 201 | + var fileName = curPath.substring (fileDelim + 1, curPath.length); | ||
| 202 | + var pageIndex = PageIndexFromFileName (fileName); | ||
| 203 | + SetCurPageInGoto (pageIndex); | ||
| 204 | + SetPNZDisplay (pageIndex); | ||
| 205 | + } | ||
| 206 | + } | ||
| 207 | +} | ||
| 208 | + | ||
| 209 | +function LoadZoom () | ||
| 210 | +{ | ||
| 211 | + var zoomWidget = frmToolbar.frames["ifrmPNZ"]; | ||
| 212 | + if (zoomWidget) | ||
| 213 | + { | ||
| 214 | + if (g_ZoomLoaded) | ||
| 215 | + { | ||
| 216 | + zoomWidget.findContent(); | ||
| 217 | + PageLoadedDoCallback (); | ||
| 218 | + } | ||
| 219 | + else | ||
| 220 | + { | ||
| 221 | + window.setTimeout("LoadZoom()", 500); | ||
| 222 | + } | ||
| 223 | + } | ||
| 224 | + else | ||
| 225 | + { | ||
| 226 | + PageLoadedDoCallback (); | ||
| 227 | + } | ||
| 228 | +} | ||
| 229 | + | ||
| 230 | +function SetCurPageInGoto (pageIndex) | ||
| 231 | +{ | ||
| 232 | + var gotoPageSelect = frmToolbar.document.getElementById("Select1"); | ||
| 233 | + if (gotoPageSelect != null) | ||
| 234 | + { | ||
| 235 | + gotoPageSelect.value = pageIndex; | ||
| 236 | + } | ||
| 237 | +} | ||
| 238 | + | ||
| 239 | +function SetPNZDisplay (pageIndex) | ||
| 240 | +{ | ||
| 241 | + var divPNZ = frmToolbar.document.getElementById("divPNZ"); | ||
| 242 | + if (divPNZ) | ||
| 243 | + { | ||
| 244 | + var displayStatus = "block"; | ||
| 245 | + if (g_FileList[pageIndex].PageID < 0) | ||
| 246 | + { | ||
| 247 | + displayStatus = "none"; | ||
| 248 | + } | ||
| 249 | + | ||
| 250 | + divPNZ.style.display = displayStatus; | ||
| 251 | + } | ||
| 252 | +} | ||
| 253 | + | ||
| 254 | +function ViewMgrDefaultFind() | ||
| 255 | +{ | ||
| 256 | + return; | ||
| 257 | +} | ||
| 258 | + | ||
| 259 | +function ViewMgrDefaultResize(size) | ||
| 260 | +{ | ||
| 261 | + return; | ||
| 262 | +} | ||
| 263 | + | ||
| 264 | + | ||
| 265 | + | ||
| 266 | +g_callBackFunctionArray = new Array(); | ||
| 267 | +function PageLoadedDoCallback() | ||
| 268 | +{ | ||
| 269 | + if (g_WidgetsLoaded) | ||
| 270 | + { | ||
| 271 | + for( var i=0; i < g_callBackFunctionArray.length; i++ ) | ||
| 272 | + { | ||
| 273 | + g_callBackFunctionArray[i](); | ||
| 274 | + } | ||
| 275 | + g_callBackFunctionArray = new Array(); | ||
| 276 | + } | ||
| 277 | + else | ||
| 278 | + { | ||
| 279 | + window.setTimeout("PageLoadedDoCallback()", 500); | ||
| 280 | + } | ||
| 281 | +} | ||
| 282 | + | ||
| 283 | + | ||
| 284 | +function ParseParams (strRawParams) | ||
| 285 | +{ | ||
| 286 | + if ( strRawParams != null && strRawParams.length > 0 ) | ||
| 287 | + { | ||
| 288 | + strRawParams = strRawParams.substring(1); | ||
| 289 | + | ||
| 290 | + var arrayParamTokens = strRawParams.split('&'); | ||
| 291 | + for (var count = 0; count < arrayParamTokens.length; count++) | ||
| 292 | + { | ||
| 293 | + arrayParamTokens[count] = unescape(arrayParamTokens[count]); | ||
| 294 | + this[count] = arrayParamTokens[count].substring(0, arrayParamTokens[count].indexOf('=')); | ||
| 295 | + this[this[count]] = arrayParamTokens[count].substring(arrayParamTokens[count].indexOf('=') + 1); | ||
| 296 | + } | ||
| 297 | + } | ||
| 298 | + else | ||
| 299 | + { | ||
| 300 | + this[0] = null; | ||
| 301 | + } | ||
| 302 | + return this; | ||
| 303 | +} | ||
| 304 | + | ||
| 305 | +var gParams = ParseParams (location.search); | ||
| 306 | + | ||
| 307 | +var g_PageParamValue = gParams['page']; | ||
| 308 | +if (g_PageParamValue != null && | ||
| 309 | + g_PageParamValue.length > 0) | ||
| 310 | +{ | ||
| 311 | + var pageIndex = PageIndexFromName (g_PageParamValue); | ||
| 312 | + if (pageIndex > 0 && pageIndex < g_FileList.length) | ||
| 313 | + { | ||
| 314 | + g_CurPageIndex = pageIndex; | ||
| 315 | + } | ||
| 316 | +} | ||
| 317 | +else | ||
| 318 | +{ | ||
| 319 | + g_PageParamValue = null; | ||
| 320 | +} | ||
| 321 | + | ||
| 322 | +var g_FirstPageToLoad = g_PageParamValue; | ||
| 323 | + | ||
| 324 | +var g_ZoomParamValue = gParams['zoom']; | ||
| 325 | +if (g_ZoomParamValue != null && g_ZoomParamValue.length > 0) | ||
| 326 | +{ | ||
| 327 | + g_ZoomParamValue = 1.0 * g_ZoomParamValue; | ||
| 328 | + if (g_ZoomParamValue >= 10 && g_ZoomParamValue <= 500) | ||
| 329 | + { | ||
| 330 | + g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (viewMgr && viewMgr.Zoom) { viewMgr.Zoom(g_ZoomParamValue); } }; | ||
| 331 | + } | ||
| 332 | +} | ||
| 333 | + | ||
| 334 | +var g_ShapeParamValue = gParams['shape']; | ||
| 335 | +if (g_ShapeParamValue != null && g_ShapeParamValue.length > 0) | ||
| 336 | +{ | ||
| 337 | + if (g_PageParamValue != null && g_PageParamValue.length > 0) | ||
| 338 | + { | ||
| 339 | + g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var shapeNode = FindShapeXMLByName (g_PageParamValue, g_ShapeParamValue); if (shapeNode) { frmToolbar.TreeSelect (g_FileList[g_CurPageIndex].PageID, shapeNode.attributes.getNamedItem ("ID").text); } }; | ||
| 340 | + } | ||
| 341 | + else | ||
| 342 | + { | ||
| 343 | + g_ShapeParamValue = null; | ||
| 344 | + } | ||
| 345 | +} | ||
| 346 | + | ||
| 347 | +var g_SearchParamValue = gParams['search']; | ||
| 348 | +if (g_SearchParamValue != null && g_SearchParamValue.length > 0) | ||
| 349 | +{ | ||
| 350 | + g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { if (frmToolbar.theForm) { frmToolbar.theForm.findString.value = g_SearchParamValue; } }; | ||
| 351 | + g_callBackFunctionArray[g_callBackFunctionArray.length] = function () { var goButton = frmToolbar.document.getElementById('GoButton'); if(goButton) { goButton.click(); } }; | ||
| 352 | +} | ||
| 353 | + | ||
| 354 | + | ||
| 355 | +var strHLTooltipText = "Klikk for å følge hyperkobling."; | ||
| 356 | +var strPropsTooltipText = "Trykk Ctrl og klikk for å vise detaljer."; | ||
| 357 | + | ||
| 358 | +var strFocusHLTooltipText = "Trykk Enter for å følge hyperkobling."; | ||
| 359 | +var strFocusPropsTooltipText = "Trykk Ctrl + Enter for å vise detaljer."; | ||
| 360 | + | ||
| 361 | + | ||
| 362 | +function UpdateTooltip (element, pageID, shapeID) | ||
| 363 | +{ | ||
| 364 | + if (isUpLevel) | ||
| 365 | + { | ||
| 366 | + var strHL, strProps; | ||
| 367 | + | ||
| 368 | + if(frmDrawing.event.type == "focus") | ||
| 369 | + { | ||
| 370 | + strHL = strFocusHLTooltipText; | ||
| 371 | + strProps = strFocusPropsTooltipText; | ||
| 372 | + } | ||
| 373 | + else | ||
| 374 | + { | ||
| 375 | + strHL = strHLTooltipText; | ||
| 376 | + strProps = strPropsTooltipText; | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + var strTooltip = ""; | ||
| 380 | + if (element.origTitle) | ||
| 381 | + { | ||
| 382 | + strTooltip = element.origTitle.toString(); | ||
| 383 | + } | ||
| 384 | + | ||
| 385 | + var shapeNode = FindShapeXML (pageID, shapeID); | ||
| 386 | + | ||
| 387 | + if( shapeNode != null ) | ||
| 388 | + { | ||
| 389 | + var propColl = SelectNodes(shapeNode, "Prop"); | ||
| 390 | + if (propColl != null && propColl.length > 0) | ||
| 391 | + { | ||
| 392 | + if (strTooltip.length > 0) | ||
| 393 | + { | ||
| 394 | + strTooltip += "\n"; | ||
| 395 | + } | ||
| 396 | + strTooltip += strProps; | ||
| 397 | + } | ||
| 398 | + } | ||
| 399 | + | ||
| 400 | + var hlObj = GetHLAction (shapeNode, pageID, shapeID); | ||
| 401 | + if (hlObj != null && (hlObj.DoFunction.length > 0 || hlObj.Hyperlink.length > 0)) | ||
| 402 | + { | ||
| 403 | + if (strTooltip.length > 0) | ||
| 404 | + { | ||
| 405 | + strTooltip += "\n"; | ||
| 406 | + } | ||
| 407 | + strTooltip += strHL; | ||
| 408 | + } | ||
| 409 | + | ||
| 410 | + element.title = strTooltip; | ||
| 411 | + if (element.alt != null) | ||
| 412 | + { | ||
| 413 | + element.alt = strTooltip; | ||
| 414 | + } | ||
| 415 | + } | ||
| 416 | +} | ||
| 417 | + | ||
| 418 | + | ||
| 419 | +function GetHLAction (shapeNode, pageID, shapeID) | ||
| 420 | +{ | ||
| 421 | + var hlObj = new HLObj ("", "", "", false); | ||
| 422 | + | ||
| 423 | + if (shapeNode != null) | ||
| 424 | + { | ||
| 425 | + try | ||
| 426 | + { | ||
| 427 | + var hlColl = SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink"); | ||
| 428 | + } | ||
| 429 | + catch(err) | ||
| 430 | + { | ||
| 431 | + var hlColl = []; | ||
| 432 | + } | ||
| 433 | + | ||
| 434 | + if (hlColl.length > 1) | ||
| 435 | + { | ||
| 436 | + if(window.frmDrawing.event) | ||
| 437 | + { | ||
| 438 | + hlObj.DoFunction = "showMenu(" + pageID + ", " + shapeID + ");" | ||
| 439 | + } | ||
| 440 | + else // XAML | ||
| 441 | + { | ||
| 442 | + // Use default hyperlink to set the action | ||
| 443 | + var fFoundDefault = false; | ||
| 444 | + for (var count = 0; count < hlColl.length; ++count) | ||
| 445 | + { | ||
| 446 | + var hlDefault = SelectSingleNode(hlColl[count], "HLURL:Default/text()"); | ||
| 447 | + if (hlDefault != null && hlDefault.nodeValue.length > 0 && | ||
| 448 | + hlDefault.nodeValue == "1" /*Indicates that this is the default hyperlink <HLURL:Default>1</HLURL:Default>*/) | ||
| 449 | + { | ||
| 450 | + hlObj = CreateHLObj(hlColl[count]); | ||
| 451 | + fFoundDefault = true; | ||
| 452 | + break; | ||
| 453 | + } | ||
| 454 | + } | ||
| 455 | + | ||
| 456 | + if (!fFoundDefault) | ||
| 457 | + hlObj = CreateHLObj(hlColl[0]); | ||
| 458 | + } | ||
| 459 | + } | ||
| 460 | + else if (hlColl.length == 1) | ||
| 461 | + { | ||
| 462 | + hlObj = CreateHLObj (hlColl[0]); | ||
| 463 | + } | ||
| 464 | + } | ||
| 465 | + | ||
| 466 | + return hlObj; | ||
| 467 | +} | ||
| 468 | + | ||
| 469 | +function HLObj (strHyperlink, strDoFunction, strDesc, newWindow) | ||
| 470 | +{ | ||
| 471 | + this.Hyperlink = strHyperlink; | ||
| 472 | + this.DoFunction = strDoFunction; | ||
| 473 | + this.Desc = strDesc; | ||
| 474 | + this.NewWindow = newWindow; | ||
| 475 | +} | ||
| 476 | + | ||
| 477 | +function clickMenu() | ||
| 478 | +{ | ||
| 479 | + var e = window.frmDrawing.event; | ||
| 480 | + var menu = frmDrawing.document.getElementById("menu1") | ||
| 481 | + | ||
| 482 | + if (menu != null && menu.style.display != "none") | ||
| 483 | + { | ||
| 484 | + menu.style.display="none"; | ||
| 485 | + | ||
| 486 | + if (e && e.srcElement && e.srcElement.doFunction != null) | ||
| 487 | + { | ||
| 488 | + eval(e.srcElement.doFunction); | ||
| 489 | + } | ||
| 490 | + } | ||
| 491 | +} | ||
| 492 | + | ||
| 493 | +function toggleMenuDiv(el, highlight) | ||
| 494 | +{ | ||
| 495 | + var divEl = el; | ||
| 496 | + var aEl = null; | ||
| 497 | + | ||
| 498 | + var ID = el.id.substring (g_HLMenuEntryDiv.length, el.id.length) * 1.0; | ||
| 499 | + aEl = frmDrawing.document.getElementById(g_HLMenuEntry + ID); | ||
| 500 | + | ||
| 501 | + toggleMenu(divEl, aEl, highlight); | ||
| 502 | +} | ||
| 503 | + | ||
| 504 | +function toggleMenuLink(el, highlight) | ||
| 505 | +{ | ||
| 506 | + var divEl = null; | ||
| 507 | + var aEl = el; | ||
| 508 | + | ||
| 509 | + var ID = el.id.substring (g_HLMenuEntry.length, el.id.length) * 1.0; | ||
| 510 | + divEl = frmDrawing.document.getElementById(g_HLMenuEntryDiv + ID); | ||
| 511 | + | ||
| 512 | + toggleMenu(divEl, aEl, highlight); | ||
| 513 | +} | ||
| 514 | + | ||
| 515 | +function toggleMenu(divEl, aEl, highlight) | ||
| 516 | +{ | ||
| 517 | + if (highlight) | ||
| 518 | + { | ||
| 519 | + divEl.className="highlightItem"; | ||
| 520 | + aEl.className="highlightItem"; | ||
| 521 | + } | ||
| 522 | + else | ||
| 523 | + { | ||
| 524 | + divEl.className="menuItem"; | ||
| 525 | + aEl.className="menuItem"; | ||
| 526 | + } | ||
| 527 | +} | ||
| 528 | + | ||
| 529 | +function showMenu(pageID, shapeID) | ||
| 530 | +{ | ||
| 531 | + var shapeXML = FindShapeXML (pageID, shapeID); | ||
| 532 | + if (shapeXML != null) | ||
| 533 | + { | ||
| 534 | + CreateHLMenu (shapeXML); | ||
| 535 | + var menu = frmDrawing.document.getElementById("menu1"); | ||
| 536 | + if (menu != null) | ||
| 537 | + { | ||
| 538 | + menu.style.visibility = "hidden"; | ||
| 539 | + menu.style.display = "inline"; | ||
| 540 | + | ||
| 541 | + var clientWidth = frmDrawing.document.body.clientWidth; | ||
| 542 | + var clientHeight = frmDrawing.document.body.clientHeight; | ||
| 543 | + | ||
| 544 | + var menuWidth = menu.clientWidth; | ||
| 545 | + var menuHeight = menu.clientHeight; | ||
| 546 | + | ||
| 547 | + var doc = frmDrawing.document; | ||
| 548 | + | ||
| 549 | + var e = window.frmDrawing.event; | ||
| 550 | + if(e) | ||
| 551 | + { | ||
| 552 | + var elem = e.srcElement; | ||
| 553 | + | ||
| 554 | + var menuLeft = e.x; | ||
| 555 | + var menuTop = e.y; | ||
| 556 | + | ||
| 557 | + var img = doc.getElementById("ConvertedImage"); | ||
| 558 | + | ||
| 559 | + if( (menuLeft + doc.body.scrollLeft < elem.offsetLeft) || (menuLeft + doc.body.scrollLeft > elem.offsetLeft + elem.offsetWidth + img.offsetLeft) ) | ||
| 560 | + { | ||
| 561 | + menuLeft = elem.offsetLeft + img.offsetLeft + elem.offsetWidth/2; | ||
| 562 | + } | ||
| 563 | + | ||
| 564 | + if( (menuTop + doc.body.scrollTop < elem.offsetTop) || (menuTop + doc.body.scrollTop > elem.offsetTop + elem.offsetHeight + img.offsetTop) ) | ||
| 565 | + { | ||
| 566 | + menuTop = elem.offsetTop + img.offsetTop + elem.offsetHeight/2; | ||
| 567 | + } | ||
| 568 | + | ||
| 569 | + var scrollBarSize = 20; | ||
| 570 | + if (menuLeft + menuWidth > clientWidth - scrollBarSize) | ||
| 571 | + { | ||
| 572 | + menuLeft = clientWidth - menuWidth - scrollBarSize; | ||
| 573 | + } | ||
| 574 | + | ||
| 575 | + if (menuTop + menuHeight > clientHeight - scrollBarSize) | ||
| 576 | + { | ||
| 577 | + menuTop = clientHeight - menuHeight - scrollBarSize; | ||
| 578 | + } | ||
| 579 | + | ||
| 580 | + menu.style.posLeft = menuLeft + frmDrawing.document.body.scrollLeft; | ||
| 581 | + menu.style.posTop = menuTop + frmDrawing.document.body.scrollTop; | ||
| 582 | + menu.style.visibility = "visible"; | ||
| 583 | + | ||
| 584 | + var firstLink = frmDrawing.document.getElementById(g_HLMenuEntry + "0"); | ||
| 585 | + firstLink.focus (); | ||
| 586 | + | ||
| 587 | + if (e.keyCode == 13) | ||
| 588 | + { | ||
| 589 | + toggleMenuLink(firstLink, true); | ||
| 590 | + } | ||
| 591 | + | ||
| 592 | + e.cancelBubble = true; | ||
| 593 | + } | ||
| 594 | + } | ||
| 595 | + } | ||
| 596 | +} | ||
| 597 | + | ||
| 598 | +function MenuKeyDown () | ||
| 599 | +{ | ||
| 600 | + var e = window.frmDrawing.event; | ||
| 601 | + var el = e.srcElement; | ||
| 602 | + | ||
| 603 | + if (e.keyCode == 27) // 27 == ESC | ||
| 604 | + { | ||
| 605 | + clickMenu(); | ||
| 606 | + e.cancelBubble = true; | ||
| 607 | + return; | ||
| 608 | + } | ||
| 609 | + | ||
| 610 | + var curSelID = el.id.substring (g_HLMenuEntry.length, el.id.length) * 1.0; | ||
| 611 | + var newSelID = -1; | ||
| 612 | + | ||
| 613 | + if (e.keyCode == 40) // 40 == down arrow | ||
| 614 | + { | ||
| 615 | + newSelID = curSelID + 1; | ||
| 616 | + } | ||
| 617 | + else if (e.keyCode == 38) // 38 == up arrow | ||
| 618 | + { | ||
| 619 | + newSelID = curSelID - 1; | ||
| 620 | + } | ||
| 621 | + | ||
| 622 | + var newSelEntry = frmDrawing.document.getElementById(g_HLMenuEntry + newSelID); | ||
| 623 | + | ||
| 624 | + if (newSelEntry) | ||
| 625 | + { | ||
| 626 | + newSelEntry.focus(); | ||
| 627 | + | ||
| 628 | + var curSelEntry = frmDrawing.document.getElementById(g_HLMenuEntry + curSelID); | ||
| 629 | + toggleMenuLink (curSelEntry, false); | ||
| 630 | + toggleMenuLink (newSelEntry, true); | ||
| 631 | + } | ||
| 632 | + | ||
| 633 | + e.cancelBubble = true; | ||
| 634 | +} | ||
| 635 | + | ||
| 636 | +function CreateHLMenu (shapeNode) | ||
| 637 | +{ | ||
| 638 | + var strHLMenuHTML = ""; | ||
| 639 | + | ||
| 640 | + if (shapeNode != null) | ||
| 641 | + { | ||
| 642 | + var hlColl = SelectNodes(shapeNode, "Scratch/B/SolutionXML/HLURL:Hyperlinks/HLURL:Hyperlink"); | ||
| 643 | + | ||
| 644 | + strHLMenuHTML = "<div class='innerhlMenu'>"; | ||
| 645 | + | ||
| 646 | + var hlCount = hlColl.length; | ||
| 647 | + for (var count = 0; count < hlCount; count++) | ||
| 648 | + { | ||
| 649 | + var hlObj = CreateHLObj (hlColl[count]); | ||
| 650 | + if (hlObj != null) | ||
| 651 | + { | ||
| 652 | + if (hlObj.Desc.length > 0) | ||
| 653 | + { | ||
| 654 | + strHLMenuHTML += "<div id='" + (g_HLMenuEntryDiv + count) + "' class='menuItem' onmouseover='toggleMenuDiv(this, true)' onmouseout='toggleMenuDiv(this, false)' onclick='" + (g_HLMenuEntry + count) + ".click()'>"; | ||
| 655 | + strHLMenuHTML += "<a href="; | ||
| 656 | + | ||
| 657 | + if (hlObj.DoFunction.length > 0) | ||
| 658 | + { | ||
| 659 | + strHLMenuHTML += "'javascript:" + hlObj.DoFunction + "'"; | ||
| 660 | + } | ||
| 661 | + else | ||
| 662 | + { | ||
| 663 | + var targetVal = "_top"; | ||
| 664 | + if (hlObj.NewWindow) | ||
| 665 | + { | ||
| 666 | + targetVal = "_blank"; | ||
| 667 | + } | ||
| 668 | + strHLMenuHTML += "'" + hlObj.Hyperlink + "' target='" + targetVal + "'"; | ||
| 669 | + } | ||
| 670 | + | ||
| 671 | + strHLMenuHTML += " class='menuItem' id='" + (g_HLMenuEntry + count) + "' onkeydown='parent.MenuKeyDown();' onmouseover='toggleMenuLink(this, true)' onmouseout='toggleMenuLink(this, false)'>"; | ||
| 672 | + strHLMenuHTML += hlObj.Desc + "</a></div>"; | ||
| 673 | + } | ||
| 674 | + } | ||
| 675 | + } | ||
| 676 | + | ||
| 677 | + strHLMenuHTML += "</div>"; | ||
| 678 | + } | ||
| 679 | + | ||
| 680 | + var menu = frmDrawing.document.getElementById("menu1") | ||
| 681 | + menu.innerHTML = strHLMenuHTML; | ||
| 682 | +} | ||
| 683 | + | ||
| 684 | +function CreateHLObj (hlNode) | ||
| 685 | +{ | ||
| 686 | + var strAddress = ""; | ||
| 687 | + var hlObj = new HLObj ("", "", "", false); | ||
| 688 | + | ||
| 689 | + if (hlNode != null) | ||
| 690 | + { | ||
| 691 | + var hlAddress = SelectSingleNode(hlNode,"HLURL:Address/text()"); | ||
| 692 | + if (hlAddress != null && hlAddress.nodeValue.length > 0) | ||
| 693 | + { | ||
| 694 | + // Get AbsoluteURL | ||
| 695 | + var absoluteURL = SelectSingleNode(hlNode,"HLURL:AbsoluteURL/text()"); | ||
| 696 | + var strAbsURL = ""; | ||
| 697 | + if (absoluteURL != null && absoluteURL.nodeValue.length > 0) | ||
| 698 | + strAbsURL = absoluteURL.nodeValue; | ||
| 699 | + | ||
| 700 | + // Get Address | ||
| 701 | + var strAddr = hlAddress.nodeValue; | ||
| 702 | + | ||
| 703 | + // Use relative address if AbsoluteURL is missing | ||
| 704 | + if (strAbsURL == "") | ||
| 705 | + { | ||
| 706 | + strAddress = strAddr; | ||
| 707 | + } | ||
| 708 | + else if (strAbsURL.indexOf (g_FileProtocol) == 0) | ||
| 709 | + { | ||
| 710 | + var strAbsPath = strAbsURL.substring (g_FileProtocol.length, strAbsURL.length); | ||
| 711 | + strAbsPath.toLowerCase (); | ||
| 712 | + strAddr.toLowerCase (); | ||
| 713 | + if (strAbsPath == strAddr) | ||
| 714 | + { | ||
| 715 | + strAddress = strAbsPath; | ||
| 716 | + } | ||
| 717 | + else | ||
| 718 | + { | ||
| 719 | + strAddress = strAddr; | ||
| 720 | + | ||
| 721 | + var hlSubAddress = SelectSingleNode(hlNode,"HLURL:SubAddress/text()"); | ||
| 722 | + if (hlSubAddress != null && hlSubAddress.nodeValue.length > 0) | ||
| 723 | + { | ||
| 724 | + strAddress += '#'; | ||
| 725 | + strAddress += hlSubAddress.nodeValue; | ||
| 726 | + } | ||
| 727 | + | ||
| 728 | + var hlExtraInfo = SelectSingleNode(hlNode,"HLURL:ExtraInfo/text()"); | ||
| 729 | + if (hlExtraInfo != null && hlExtraInfo.nodeValue.length > 0) | ||
| 730 | + { | ||
| 731 | + strAddress += '?'; | ||
| 732 | + strAddress += hlExtraInfo.nodeValue; | ||
| 733 | + } | ||
| 734 | + } | ||
| 735 | + } | ||
| 736 | + else | ||
| 737 | + { | ||
| 738 | + strAddress = strAbsURL; | ||
| 739 | + } | ||
| 740 | + | ||
| 741 | + strAddress = HTMLEscape (strAddress); | ||
| 742 | + hlObj.Hyperlink += strAddress; | ||
| 743 | + } | ||
| 744 | + else | ||
| 745 | + { | ||
| 746 | + hlAddress = SelectSingleNode(hlNode,"HLURL:SubAddress/text()"); | ||
| 747 | + if (hlAddress != null && hlAddress.nodeValue.length > 0) | ||
| 748 | + { | ||
| 749 | + strAddress = hlAddress.nodeValue; | ||
| 750 | + | ||
| 751 | + var pageShapeSep = strAddress.lastIndexOf ('/'); | ||
| 752 | + if (pageShapeSep > 0) | ||
| 753 | + { | ||
| 754 | + if (PageIndexFromName (strAddress) < 0) | ||
| 755 | + { | ||
| 756 | + strAddress = unescape (strAddress); | ||
| 757 | + if (PageIndexFromName (strAddress) < 0) | ||
| 758 | + { | ||
| 759 | + strAddress = strAddress.substring (0, strAddress.lastIndexOf ('/')); | ||
| 760 | + } | ||
| 761 | + } | ||
| 762 | + } | ||
| 763 | + | ||
| 764 | + var pageIndex = PageIndexFromName (strAddress); | ||
| 765 | + | ||
| 766 | + hlObj.DoFunction = "GoToPage (" + pageIndex + ");"; | ||
| 767 | + strAddress = HTMLEscape (strAddress); | ||
| 768 | + hlObj.Desc = strAddress; | ||
| 769 | + } | ||
| 770 | + } | ||
| 771 | + | ||
| 772 | + hlDesc = SelectSingleNode(hlNode,"HLURL:Description/text()"); | ||
| 773 | + if (hlDesc != null && hlDesc.nodeValue.length > 0) | ||
| 774 | + { | ||
| 775 | + hlObj.Desc = HTMLEscape (hlDesc.nodeValue); | ||
| 776 | + } | ||
| 777 | + else | ||
| 778 | + { | ||
| 779 | + hlObj.Desc = strAddress; | ||
| 780 | + } | ||
| 781 | + | ||
| 782 | + var hlNewWindow = SelectSingleNode(hlNode,"HLURL:NewWindow/text()"); | ||
| 783 | + if (hlNewWindow != null && hlNewWindow.nodeValue.length > 0) | ||
| 784 | + { | ||
| 785 | + hlObj.NewWindow = (hlNewWindow.nodeValue == "1"); | ||
| 786 | + } | ||
| 787 | + } | ||
| 788 | + | ||
| 789 | + return hlObj; | ||
| 790 | +} | ||
| 791 | + | ||
| 792 | + | ||
| 793 | + </script> | ||
| 794 | + </head> | ||
| 795 | + | ||
| 796 | + <frameset id="frmstOuter" cols="237,*"> | ||
| 797 | + <frame src="20141017 ILAP 2.0 Ontology Model-filer/toolbar.htm" name="frmToolbar" id="frmToolbar" title="Denne rammen inneholder verktøy du kan bruke til å manipulere tegningen." frameborder="6" bordercolor="#999999" scrolling="no" marginheight="0" marginwidth="0" > | ||
| 798 | + <frame src="20141017 ILAP 2.0 Ontology Model-filer/png_1.htm" name="frmDrawing" title="Denne rammen inneholder sidene i tegningen." marginheight="10" marginwidth="10" onload="if (parent.isUpLevel) FramePageLoaded()" > | ||
| 799 | + | ||
| 800 | + <noframes> | ||
| 801 | + <body> | ||
| 802 | + | ||
| 803 | + <h1>20141017 ILAP 2</h1> | ||
| 804 | + <ul> | ||
| 805 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_1.htm">ILAP</a></li> | ||
| 806 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_2.htm">ILAP HQPC</a></li> | ||
| 807 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_3.htm">ILAP Lifecycle</a></li> | ||
| 808 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_4.htm">ILAP LifeCycle Details</a></li> | ||
| 809 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_5.htm">ILAP Top Structure</a></li> | ||
| 810 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_6.htm">ILAP Classification</a></li> | ||
| 811 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_7.htm">ILAP Planning Core</a></li> | ||
| 812 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_8.htm">ILAP Legend</a></li> | ||
| 813 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_9.htm">ILAP Standard Data Fields</a></li> | ||
| 814 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_10.htm">Activity</a></li> | ||
| 815 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_11.htm">Constraint</a></li> | ||
| 816 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_12.htm">Calendar</a></li> | ||
| 817 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_13.htm">Schedule</a></li> | ||
| 818 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_14.htm">Responsible</a></li> | ||
| 819 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_15.htm">Phase</a></li> | ||
| 820 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_16.htm">Resource</a></li> | ||
| 821 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_17.htm">Result</a></li> | ||
| 822 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_18.htm">Value</a></li> | ||
| 823 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_19.htm">Facility</a></li> | ||
| 824 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_20.htm">Discipline</a></li> | ||
| 825 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_21.htm">Shutdown</a></li> | ||
| 826 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_22.htm">Milestone</a></li> | ||
| 827 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_23.htm">Status</a></li> | ||
| 828 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_24.htm">Risk</a></li> | ||
| 829 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_25.htm">Criticality</a></li> | ||
| 830 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_26.htm">Priority</a></li> | ||
| 831 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_27.htm">Expense</a></li> | ||
| 832 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_28.htm">Contract</a></li> | ||
| 833 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_29.htm">Material Order Status</a></li> | ||
| 834 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_30.htm">WBS</a></li> | ||
| 835 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_31.htm">Plan & Schedule</a></li> | ||
| 836 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_32.htm">Planned & Scheduled Activities</a></li> | ||
| 837 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_33.htm">Schedule Dates</a></li> | ||
| 838 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_34.htm">Asset</a></li> | ||
| 839 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_35.htm">Pland and subplans</a></li> | ||
| 840 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_36.htm">Plan Classifiers</a></li> | ||
| 841 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_37.htm">Application</a></li> | ||
| 842 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_38.htm">UserField1</a></li> | ||
| 843 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_39.htm">UserField2</a></li> | ||
| 844 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_40.htm">ILAP Import</a></li> | ||
| 845 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_41.htm">ILAP Data Exchange</a></li> | ||
| 846 | + <li><a href="20141017 ILAP 2.0 Ontology Model-filer/png_42.htm">ILAP Reference Data</a></li> | ||
| 847 | + | ||
| 848 | + </ul> | ||
| 849 | + </body> | ||
| 850 | + </noframes> | ||
| 851 | + </frameset> | ||
| 852 | + | ||
| 853 | +</html> | ||
| 854 | + |
-
Please register or login to post a comment