// Licensed Materials - Property of IBM // IBM Cognos Products: cchl // (C) Copyright IBM Corp. 2003, 2016. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. function C_ListViewRange(_c1G, _cSM, _cCB1, _cTM, _cGA){G_HAL.F_VerifyDependencies("G_ResManager");G_HAL.F_VerifyDependencies("C_RangeBoundary");this._c2G=_c1G;this._c2G._cUM=this;this._cVM=_cSM;this._cDB1=_cCB1?_cCB1:null;this._cWM=(typeof _cTM!="undefined")?_cTM:null;this._cHA=( typeof _cGA!="undefined" )?_cGA:"";this._cEO1=U_XML.F_CreateDocument();this._cN1=null;this._c0D();if(!this._cWM){switch(this._c9R1){case "time":case "date":case "dateTime":this._cWM=this._cWM?this._cWM:this._cO1();break;case "interval":this._cWM=this._cWM?this._cWM:this._cP1();break;}}};C_ListViewRange.prototype.F_Detach=function(){this._cQR();var _c0C1=this._c2G.childNodes[ 0 ];var _c3L1=this._c2G.childNodes[ 1 ];this._c2G.removeChild(_c0C1);this._c2G.removeChild(_c3L1);delete this._cEO1;this._c2G._cUM=null;};C_ListViewRange.prototype._c0D=function(){this._c9R1="none";if(this._cVM&&this._cVM.getAttribute("type")){this._c9R1=this._cVM.getAttribute("type");}};C_ListViewRange.prototype._cK8=function(_c3G){var _cFO1;switch(this._c9R1){case "number":_cFO1=C_ListViewRange._c571;break;case "interval":_cFO1=C_ListViewRange._cIW;break;case "date":case "time":case "dateTime":default:_cFO1=C_ListViewRange._cJW;break;}_c3G.sort(_cFO1);};C_ListViewRange.prototype.F_Draw=function(){this._c2G.style.height="210px";this._c2G.className="clsListView";this._c2G.style.overflow="hidden";var _c0C1=this._c2G.appendChild(document.createElement("table"));U_Accessibility.F_SetRoleForLayoutTable(_c0C1);this._cPR(_c0C1);var _cQ11=this._c2G.appendChild(document.createElement("div"));_cQ11.style.height=this._c2G.clientHeight-_c0C1.offsetHeight+"px";_cQ11.style.width="100%";_cQ11.style.overflow="auto";this._c4G=_cQ11.appendChild(document.createElement("table"));this._c4G.className="clsDialogText";this._c4G.style.height="100%";this._c4G.setAttribute( "border", "0" );this._c4G.setAttribute( "cellSpacing", "0" );this._c4G.setAttribute( "cellPadding", "0" );U_Accessibility.F_SetRoleForLayoutTable(this._c4G);this._c17(true, this._c4G.insertRow(0));this._c17(false, this._c4G.insertRow(1));this._c671(this._c4G);};C_ListViewRange.prototype._cN=function(_c3G,_cXM){var _cJT1=0;for(_cJT1;_cJT1<_c3G.length;_cJT1++){if(_c3G[ _cJT1 ]==_cXM){break;}}return _cJT1;};C_ListViewRange.prototype._cPR=function(_c2V1){_c2V1.className="clsDialogText";_c2V1.style.width="100%";_c2V1.setAttribute( "border", "0" );_c2V1.setAttribute( "cellSpacing", "0" );_c2V1.setAttribute( "cellPadding", "0" );var _cMV1=_c2V1.insertRow(0);_cMV1.className="clsCCHLtableHeader";this._c27=_cMV1.insertCell(0);this._c27.style.width="26px";this._cPM(this._c27, "");this._cRR=_cMV1.insertCell(1);this._cRR.style.width="140px";this._cPM(this._cRR, G_ResManager.F_GetString("IDS_CCHL_TITLE_RANGE"));var _cIA=_cMV1.insertCell(2);this._cPM(_cIA, G_ResManager.F_GetString("IDS_CCHL_TITLE_STYLE"));};C_ListViewRange.prototype._cPM=function(_cNV1,_cQN1){var _c3V1=_cNV1.appendChild(document.createElement("div"));_c3V1.className="clsListViewColumnHeader";_c3V1.innerText=_cQN1;};C_ListViewRange.prototype._c17=function(_cAH1,_cMV1){_cMV1.style.height="6px";var _c4L1=_cMV1.insertCell(0);_c4L1.style.width=this._cRR.offsetWidth+12+"px";_c4L1.style.textAlign="right";_c4L1.style.verticalAlign="top";_c4L1.style.paddingTop=_cAH1?"2px":"0px";_c4L1.style.paddingBottom=_cAH1?"0px":"2px";_c4L1.innerText=this._c37(_cAH1);if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_c4L1.tabIndex=0;_c4L1.setAttribute( "aria-labelledby", ( this._cRR.uniqueID + " " + _c4L1.uniqueID ) );}if(_cAH1){this._cYM=_c4L1;}var _cAR1=_cMV1.insertCell(1);_cAR1.style.paddingTop=_cAH1?"2px":"0px";_cAR1.style.paddingBottom=_cAH1?"0px":"2px";var _c4V1=document.createElement("img");_c4V1.src=G_HAL.F_GetImageURL("cchl/images/range_tic.gif");_c4V1.style.height="23px";_c4V1.style.height="11px";_c4V1.setAttribute( "border", "0" );_cAR1.appendChild(_c4V1);_cMV1.insertCell(2);};C_ListViewRange.prototype._c37=function(_cAH1){var _cSR;switch(this._c9R1){case "date":case "dateTime":_cSR=_cAH1?G_ResManager.F_GetString( "IDS_CCHL_PRMT_LATEST_DATE" ):G_ResManager.F_GetString( "IDS_CCHL_PRMT_EARLIEST_DATE" );break;case "time":_cSR=_cAH1?G_ResManager.F_GetString( "IDS_CCHL_PRMT_LATEST_TIME" ):G_ResManager.F_GetString( "IDS_CCHL_PRMT_EARLIEST_TIME" );break;case "interval":_cSR=_cAH1?G_ResManager.F_GetString( "IDS_CCHL_PRMT_HIGHEST_INTERVAL" ):G_ResManager.F_GetString( "IDS_CCHL_PRMT_LOWEST_INTERVAL" );break;case "number":default:_cSR=_cAH1?G_ResManager.F_GetString( "IDS_CCHL_PRMT_HIGHEST_VALUE" ):G_ResManager.F_GetString( "IDS_CCHL_PRMT_LOWEST_VALUE" );break;}return _cSR;};C_ListViewRange.prototype._cS11=function(_cJT1,_cGN1,_c771,_cBR1){var _cMV1=this._c4G.insertRow(_cJT1);if((_cJT1==1)&&(this._c4G.rows.length>3)){var _c5L1=this._c4G.insertRow(_cJT1+1);this._c1D(_c5L1);}else if(_cJT1>1){this._c1D(_cMV1);_cMV1=this._c4G.insertRow(_cJT1+1);}_cMV1._cZM=new C_RangeBoundary(_cGN1, _c771, _cBR1, null);_cMV1._cGO1=true;this._cKW(_cMV1);return _cMV1;};C_ListViewRange.prototype._c671=function(){if(!this._cVM){this._cS11(this._c4G.rows.length-1, null, null, null);}else{var _cTR=this._cVM.selectNodes("./*/styleRange");if(!_cTR||_cTR.length==0){_cTR=this._cVM.selectNodes( "./v2_rangeConditionalCases/v2_rangeConditionalCase | ./v2_lineRangeCases/v2_lineRangeCase | ./v2_pointRangeCases/v2_pointRangeCase" );}for(var i=0;i<_cTR.length;i++){var _cGN1=_cTR[ i ].getAttribute("value");if(!this._cLW(_cGN1, false)){continue;}var _c771=( _cTR[ i ].getAttribute( "inclusive" )=="true" );this._cS11(this._c4G.rows.length-1, _cGN1, _c771, _cTR[ i ]);}var _cUR=this._cVM.selectSingleNode("./styleRangeRemaining");if(!_cUR||_cUR.length==0){_cUR=this._cVM.selectSingleNode( "./v2_rangeConditionalRemaining | ./v2_lineRangeRemaining | ./v2_pointRangeRemaining" );}if(_cUR){this._cS11(this._c4G.rows.length-1, null, null, _cUR);}if((_cTR.length==0)&&!_cUR){this._cS11(this._c4G.rows.length-1, null, null, null);}}this._cHO1();};C_ListViewRange.prototype._cKW=function(_cMV1){var _cG5=_cMV1.insertCell(0);_cG5.style.verticalAlign="top";this._cMW(_cMV1.insertCell(1));var _cNW=_cMV1.insertCell(2);_cNW.style.paddingLeft="10px";var _c0N=_cMV1._cZM.F_GetInitialBoundaryDefinition();if(!_c0N){var _c4C1=this._c4J(_cMV1); if(this._cDB1&&this._cDB1.F_ListViewRange_OnGetRangePropertyDefinition&&_c4C1&&_c4C1._cZM&&_c4C1._cZM.F_GetBoundaryProperty()){_c0N=this._cDB1.F_ListViewRange_OnGetRangePropertyDefinition(_c4C1._cZM.F_GetBoundaryProperty());}}if(this._cDB1&&this._cDB1.F_ListViewRange_OnAddNewRange){var _cVR=_cNW.appendChild(document.createElement("table"));_cVR.setAttribute( "border", "0" );_cVR.setAttribute( "cellSpacing", "0" );_cVR.setAttribute( "cellPadding", "0" );U_Accessibility.F_SetRoleForLayoutTable(_cVR);var _c2D=this._cDB1.F_ListViewRange_OnAddNewRange(_cVR, _c0N);_cMV1._cZM.F_SetBoundaryProperty(_c2D);}else{_cNW.innerText=" ";}var _cWR=_cMV1.insertCell(3);_cWR.style.width="1px";var _c4V1=this._cJA("1px");_c4V1.style.height="30px";_cWR.appendChild(_c4V1);};C_ListViewRange.prototype._c1D=function(_cMV1){_cMV1.style.height="6px";_cMV1.insertCell(0);var _c6L1=_cMV1.insertCell(1);var _cBH1=document.createElement("img");_cBH1.src=G_HAL.F_GetImageURL("cchl/images/range_tic_mid.gif");_cBH1.style.height="6px";_cBH1.style.width="23px";_cBH1.style.display="block";_cBH1.setAttribute( "border", "0" );_c6L1.appendChild(_cBH1);_cMV1.insertCell(2);_cMV1.insertCell(3);};C_ListViewRange.prototype._cMW=function(_cNV1){_cNV1.style.width="23px";var _c2V1=_cNV1.appendChild(document.createElement("table"));_c2V1.setAttribute( "border", "0" );_c2V1.setAttribute( "cellSpacing", "0" );_c2V1.setAttribute( "cellPadding", "0" );_c2V1.style.height="100%";U_Accessibility.F_SetRoleForLayoutTable(_c2V1);var _cCR1=_c2V1.insertRow(_c2V1.rows.length).insertCell(0);_cCR1.style.height="3px";var _cIO1=document.createElement("img");_cIO1.src=G_HAL.F_GetImageURL("cchl/images/range_top.gif");_cIO1.style.height="3px";_cIO1.style.width="23px";_cIO1.style.display="block";_cIO1.setAttribute( "border", "0" );_cCR1.appendChild(_cIO1);var _cCH1=_c2V1.insertRow(_c2V1.rows.length).insertCell(0);_cCH1.style.height="100%";_cCH1.style.backgroundImage="URL(" + G_HAL.F_GetImageURL( "cchl/images/range_resize.gif" ) + ")";var _c5C1=document.createElement("img");_c5C1.src=G_HAL.F_GetImageURL("cchl/images/range_middle.gif");_c5C1.style.height="11px";_c5C1.style.width="23px";_c5C1.style.display="block";_c5C1.setAttribute( "border", "0" );_cCH1.appendChild(_c5C1);var _cDH1=_c2V1.insertRow(_c2V1.rows.length).insertCell(0);_cDH1.style.height="3px";var _c6C1=document.createElement("img");_c6C1.src=G_HAL.F_GetImageURL("cchl/images/range_bottom.gif");_c6C1.style.height="3px";_c6C1.style.width="23px";_c6C1.style.display="block";_c6C1.setAttribute( "border", "0" );_cDH1.appendChild(_c6C1);};C_ListViewRange.prototype._c1N=function(_cMV1){if(this._c9R1=="number"){var _cXM=_cMV1._cZM;if((_cXM)&&(_cXM.F_GetBoundaryControl())&&(_cXM.F_GetBoundaryControl().F_Detach)){_cXM.F_GetBoundaryControl().F_Detach();_cXM.F_SetBoundaryControl(null);}}};C_ListViewRange.prototype._cO4=function(_cMV1){var _cNV1=_cMV1.cells.item(0);if(this._c9R1=="number"){var _c871=this._cL8(_cMV1);if(_c871&&_c871._cZM&&(!_c871._cZM.F_IsInclusive())){this._c1N(_c871);}if(_cMV1._cZM.F_IsInclusive()){this._c1N(_cMV1);}}if(_cNV1.firstChild){_cNV1.removeChild(_cNV1.firstChild);}};C_ListViewRange.prototype._cHO1=function(){var _c3G=this._cP4(true);for(var i=1;i0){_cW11 += "_LESS" + ( _c3G[i - 1].F_IsInclusive()?"":"_EQUAL" );_cQW=true;}_cD71[i].title=G_ResManager.F_GetString(_cW11,(_cV11?_c3G[i].F_GetBoundaryDisplay():_c3G[i-1].F_GetBoundaryDisplay()),((i>0)?_c3G[i-1].F_GetBoundaryDisplay():null));}};C_ListViewRange._c571=function(_cKO1,_cBL1){return((C_ListViewRange._c3D(_cKO1, _cBL1)!=0)?C_ListViewRange._c3D(_cKO1, _cBL1):-Math.F_SortNumeric(_cKO1.F_GetBoundary(), _cBL1.F_GetBoundary()));};C_ListViewRange._cJW=function(_cKO1,_cBL1){return((C_ListViewRange._c3D(_cKO1, _cBL1)!=0)?C_ListViewRange._c3D(_cKO1, _cBL1):-U_PromptInputParser.F_SortDateTime(_cKO1.F_GetBoundary(), _cBL1.F_GetBoundary()));};C_ListViewRange._c3D=function(_cKO1,_cBL1){if(_cKO1.F_GetBoundary()===null){return 1;}else if(_cBL1.F_GetBoundary()===null){return-1;}return 0;};C_ListViewRange._cIW=function(_cKO1,_cBL1){if(C_ListViewRange._c3D(_cKO1, _cBL1)!=0){return C_ListViewRange._c3D(_cKO1, _cBL1);}return-U_PromptInputParser.F_SortInterval(_cKO1.F_GetBoundary(), _cBL1.F_GetBoundary());};function C_RangeBoundary(_cWB1, _c771, _cQ1, _c2D){this._cBC1=_cWB1;this._cE71=_c771;this._cR1=_cQ1?_cQ1:null;this._c4D=_c2D?_c2D:null;this._cBJ=null;this._cYR=null;};C_RangeBoundary.prototype.F_GetBoundary=function(){return this._cBC1;};C_RangeBoundary.prototype.F_IsInclusive=function(){return this._cE71;};C_RangeBoundary.prototype.F_SetInclusive=function(_c771){this._cE71=_c771;};C_RangeBoundary.prototype.F_GetBoundaryProperty=function(){return this._c4D;};C_RangeBoundary.prototype.F_SetBoundaryProperty=function(_c2D){this._c4D=_c2D;};C_RangeBoundary.prototype.F_SetBoundary=function(_cWB1){this._cBC1=_cWB1;};C_RangeBoundary.prototype.F_SetBoundaryDisplay=function(_cXR){this._cYR=_cXR;};C_RangeBoundary.prototype.F_GetBoundaryDisplay=function(){return this._cYR;};C_RangeBoundary.prototype.F_SetBoundaryControl=function(_cCJ){this._cBJ=_cCJ;};C_RangeBoundary.prototype.F_GetBoundaryControl=function(){return this._cBJ;};C_RangeBoundary.prototype.F_GetInitialBoundaryDefinition=function(){return this._cR1;};