C_QanExecFlow_TreeView.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /****************************************************************************************************************************
  2. Licensed Materials - Property of IBM
  3. BI and PM: QFW
  4. © Copyright IBM Corp. 2005, 2010
  5. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  6. *****************************************************************************************************************************/
  7. function C_QanExecFlow_TreeView( oExecPlan )
  8. {
  9. this.F_ConstructBaseClass( oExecPlan );
  10. };
  11. C_QanExecFlow_TreeView.F_Extends( C_QanExecPlan_TreeView );
  12. C_QanExecFlow_TreeView.prototype.f_createTreeNode = function ( oPlanNode, iParentViewNodeId, iNestingParentViewNodeId )
  13. {
  14. if(!oPlanNode)
  15. {
  16. v_sName = "XQE";
  17. v_sName = "<table><tr valign=middle><td>" + v_sName + "</td></tr></table>";
  18. var v_sBoxColor = "#836FFF";
  19. this.m_oExecPlanTreeView.add( 1, -1, v_sName,
  20. null, null, v_sBoxColor, "");
  21. return 1;
  22. }
  23. var v_iViewNodeId = oPlanNode.F_GetID();
  24. var v_sName = oPlanNode.F_GetOperationBoxHtml();
  25. if( !v_sName )
  26. v_sName = "";
  27. if( !oPlanNode.F_GetNestedRootNodes() )
  28. v_sName = "<table><tr valign=middle><td>" + v_sName + "</td></tr></table>";
  29. else
  30. v_sName = "<i>" + v_sName + "</i>";
  31. if( !iNestingParentViewNodeId || iNestingParentViewNodeId < 0 )
  32. {
  33. var v_sBoxColor = ( !oPlanNode.F_GetNestedRootNodes() ) ? "#d6fbc6": null;
  34. this.m_oExecPlanTreeView.add( v_iViewNodeId, iParentViewNodeId, v_sName,
  35. null, null, v_sBoxColor, "");
  36. }
  37. else
  38. {
  39. this.m_oExecPlanTreeView.addNested( v_iViewNodeId, iNestingParentViewNodeId, v_sName,
  40. null, null, "#d6fbc6", "" );
  41. }
  42. return v_iViewNodeId;
  43. }
  44. C_QanExecFlow_TreeView.prototype.f_getSelectedNodeColor = function()
  45. {
  46. return "#FCFFD3";
  47. }