123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- /****************************************************************************************************************************
- 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_QanLog_BoxView( iLog )
- {
- this.m_iLog = iLog;
- this.m_divLogContainer = G_QanApp.F_GetElementInLoggingView( "log_" + this.m_iLog );
-
- this.m_divEPContainers = [];
- this.m_divEPViews = [];
- }
- C_QanLog_BoxView.prototype.F_Init = function()
- {
- this.F_GetNodeDetailsContainer();
- this.F_GetView( "Execution Plan" );
- this.F_GetView( "Data Flow" );
- G_QanApp.F_GetLoggingView().setLogItemPresentation( "Data Flow", this.m_divLogContainer );
- this.F_GetExecPlanPropertyPane();
- }
- C_QanLog_BoxView.prototype.F_GetExecutionTreeContainer = function()
- {
- this.F_GetView( "Data Flow" );
- }
- C_QanLog_BoxView.prototype.f_initTreeContainer = function( sTreeType, sTreeTypeShort )
- {
- G_QanApp.m_executionTreeViews.push( v_oPlanTreeView );
- }
- C_QanLog_BoxView.prototype.F_GetView = function( sTreeType )
- {
- if( this.m_divEPContainers[sTreeType] )
- return this.m_divEPContainers[sTreeType];
-
- var v_sTreeTypeShort;
- var v_oPlanTreeView;
-
- if( sTreeType == "Execution Plan" )
- {
- v_sTreeTypeShort = "EP";
- v_oPlanTreeView = new C_QanExecPlan_TreeView( G_QanApp.F_GetExecutionTree(this.m_iLog) );
- }
- else if( sTreeType == "Data Flow" )
- {
- v_sTreeTypeShort = "DF";
- v_oPlanTreeView = new C_QanExecFlow_TreeView( G_QanApp.F_GetExecutionTree(this.m_iLog) );
- }
- else if( sTreeType == "Full Log" )
- {
- v_sTreeTypeShort = "FL";
- v_oPlanTreeView = new C_QanLog_FullView( this.m_iLog );
- }
- else
- return;
-
- var v_divEPContainer = this.f_createTreeContainer(sTreeType, v_sTreeTypeShort);
- v_oPlanTreeView.F_Init( v_divEPContainer,
- G_QanApp.F_GetElementInLoggingView("tempTreeContainer") );
-
- this.m_divEPContainers[sTreeType] = v_divEPContainer;
- this.m_divEPViews[sTreeType] = v_oPlanTreeView;
- }
- C_QanLog_BoxView.prototype.f_createTreeContainer = function( sTreeType, sTreeTypeShort )
- {
- var v_sId = "log" + sTreeTypeShort + "_" + this.m_iLog;
- var v_divEPContainer = G_QanApp.F_GetElementInLoggingView( v_sId );
- if( v_divEPContainer )
- {
- this.m_divEPContainers[sTreeType] = v_divEPContainer;
- return v_divEPContainer;
- }
-
- if( !this.m_divLogContainer )
- return;
-
- v_divEPContainer = this.m_divLogContainer.document.createElement( "DIV" );
- v_divEPContainer.className = "planTree " + sTreeTypeShort;
- v_divEPContainer.id = v_sId;
- v_divEPContainer.presentation = sTreeType;
-
- this.m_divLogContainer.insertBefore(
- v_divEPContainer, this.m_divLogContainer.children[2] );
-
- this.m_divEPContainers[sTreeType] = v_divEPContainer;
- return v_divEPContainer;
- }
- C_QanLog_BoxView.prototype.F_ShowPresentation = function( v_sPresentationType )
- {
-
- }
- C_QanLog_BoxView.prototype.F_GetNodeDetailsContainer = function()
- {
- if( this.m_divDetailsContainer )
- return this.m_divDetailsContainer;
- if( !this.m_divLogContainer )
- return;
- this.m_divDetailsContainer = this.m_divLogContainer.document.createElement( "DIV" );
- this.m_divLogContainer.appendChild( this.m_divDetailsContainer );
- this.m_divDetailsContainer.className = "planNodeDetails";
- this.m_divDetailsContainer.presentation = "Execution Plan; Data Flow";
- return this.m_divDetailsContainer;
- }
- C_QanLog_BoxView.prototype.F_GetExecPlanPropertyPane = function()
- {
- if( this.m_oPropertyPane )
- return this.m_oPropertyPane;
-
- this.m_oPropertyPane = new C_QanEPNode_PropPane( this.F_GetNodeDetailsContainer() );
- this.m_oPropertyPane.F_Init();
-
- return this.m_oPropertyPane;
- }
-
-
|