12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /****************************************************************************************************************************
- Licensed Materials - Property of IBM
- BI and PM: QFW
- © Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- *****************************************************************************************************************************/
- function C_QanExecFlow_TreeView( oExecPlan )
- {
- this.F_ConstructBaseClass( oExecPlan );
- };
- C_QanExecFlow_TreeView.F_Extends( C_QanExecPlan_TreeView );
- C_QanExecFlow_TreeView.prototype.f_createTreeNode = function ( oPlanNode, iParentViewNodeId, iNestingParentViewNodeId )
- {
- if(!oPlanNode)
- {
- v_sName = "XQE";
-
- v_sName = "<table><tr valign=middle><td>" + v_sName + "</td></tr></table>";
-
- var v_sBoxColor = "#836FFF";
-
- this.m_oExecPlanTreeView.add( 1, -1, v_sName,
- null, null, v_sBoxColor, "");
- return 1;
- }
-
- var v_iViewNodeId = oPlanNode.F_GetID();
- var v_sName = oPlanNode.F_GetOperationBoxHtml();
- if( !v_sName )
- v_sName = "";
-
- if( !oPlanNode.F_GetNestedRootNodes() )
- v_sName = "<table><tr valign=middle><td>" + v_sName + "</td></tr></table>";
- else
- v_sName = "<i>" + v_sName + "</i>";
-
- if( !iNestingParentViewNodeId || iNestingParentViewNodeId < 0 )
- {
- var v_sBoxColor = ( !oPlanNode.F_GetNestedRootNodes() ) ? "#d6fbc6": null;
- this.m_oExecPlanTreeView.add( v_iViewNodeId, iParentViewNodeId, v_sName,
- null, null, v_sBoxColor, "");
- }
- else
- {
- this.m_oExecPlanTreeView.addNested( v_iViewNodeId, iNestingParentViewNodeId, v_sName,
- null, null, "#d6fbc6", "" );
- }
-
- return v_iViewNodeId;
- }
- C_QanExecFlow_TreeView.prototype.f_getSelectedNodeColor = function()
- {
- return "#FCFFD3";
- }
|