C_ListViewRange.js 26 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: cchl
  3. // (C) Copyright IBM Corp. 2003, 2016.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. 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;i<this._c4G.rows.length-1;i++){var _cMV1=this._c4G.rows.item(i);if(_cMV1._cGO1!==true){continue;}this._cO4(_cMV1);var _cNV1=_cMV1.cells.item(0);var _c2V1=_cNV1.appendChild(document.createElement("table"));_c2V1.className="clsDialogText";_c2V1.setAttribute( "border", "0" );_c2V1.setAttribute( "cellSpacing", "0" );_c2V1.setAttribute( "cellPadding", "0" );_c2V1.style.width="100%";_c2V1.style.height="100%";U_Accessibility.F_SetRoleForLayoutTable(_c2V1);var _cKA=this._cH5(true, _c2V1, _cMV1);var _c871=this._cL8(_cMV1);if(_c871&&_c871._cZM){if(_cKA.F_GetBoundaryControl()){_c871._cZM.F_SetBoundaryControl(_cKA.F_GetBoundaryControl());}if(_cKA.F_GetBoundaryDisplay()){_c871._cZM.F_SetBoundaryDisplay(_cKA.F_GetBoundaryDisplay());}}var _c7L1=_c2V1.insertRow(1);var _c5V1=_c7L1.insertCell(0);_c5V1.style.height="100%";_c5V1.appendChild(this._cJA("26px"));var _c6V1=_c7L1.insertCell(1);_c6V1.appendChild(this._cJA("1px"));_c6V1=_c7L1.insertCell(2);_c6V1.appendChild(this._cJA("9px"));_cKA=this._cH5(false, _c2V1, _cMV1);if(_cKA.F_GetBoundaryControl()){_cMV1._cZM.F_SetBoundaryControl(_cKA.F_GetBoundaryControl());}if(_cKA.F_GetBoundaryDisplay()){_cMV1._cZM.F_SetBoundaryDisplay(_cKA.F_GetBoundaryDisplay());}_cMV1._cGO1=false;}this._cQ4();this._cOW();};C_ListViewRange.prototype._cOW=function(){this._cRR.style.width=this._cYM.offsetWidth-this._c27.offsetWidth+12+"px";};C_ListViewRange.prototype._cH5=function(_cKT1,_c2V1,_cMV1){var _cQB1=null;if(_cKT1){var _c871=this._cL8(_cMV1);if(_c871&&_c871._cZM&&!_c871._cZM.F_IsInclusive()){_cQB1=_c871._cZM.F_GetBoundary();}}else{if(_cMV1._cZM.F_IsInclusive()){_cQB1=_cMV1._cZM.F_GetBoundary();}}var _c971=_c2V1.insertRow(_cKT1?0:2);var _c5G=_c971.insertCell(0);_c5G.style.width="24px";_c5G.style.textAlign="center";_c5G.appendChild(_cQB1?this._cM8(_cKT1, _cQB1):this._cJA("24px"));var _c5J=_c971.insertCell(1);_c5J.style.width="100%";var _cXM=new C_RangeBoundary();if(_cQB1){_c5J.style.textAlign="right";this._cLA(_c5J, _cKT1, _cQB1, _cXM);}else{_c5J.appendChild(this._cJA(this._cYM.offsetWidth-this._c27.offsetWidth-12+"px"));}var _cMA=_c971.insertCell(2);_cMA.style.width="9px";_cMA.style.paddingTop="1px";_cMA.style.verticalAlign="top";_cMA.appendChild(_cQB1?this._cZ(_cKT1, _cQB1):this._cJA("9px"));return _cXM;};C_ListViewRange.prototype._cLA=function(_cNV1,_cKT1,_cQB1,_cXM){if(this._c9R1=="number"){G_HAL.F_VerifyDependencies("C_PromptTextBox");_cNV1.style.verticalAlign="top";var _c2V1=_cNV1.appendChild(document.createElement("table"));if(this._cDB1&&this._cDB1._c7C1&&_cQB1){_c2V1.id=this._cDB1._c7C1+"_tbl_" + _cQB1;}_c2V1.style.width="100%";U_Accessibility.F_SetRoleForLayoutTable(_c2V1);var _c6J=new C_SimpleValue(false, _cQB1, C_SimpleValue._c8L1);if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_c2V1.setAttribute("aria-labelledby", this._cRR.uniqueID);}_cXM.F_SetBoundaryControl(new C_PromptTextBox(_c2V1, this._cD2(), this, [ _c6J ]));_cXM.F_SetBoundaryDisplay(_cXM.F_GetBoundaryControl().F_GetParameterValues()[0].F_GetDisplayValue());}else{_cNV1.style.paddingRight="5px";_cNV1.style.textAlign="right";var _cLT1=_cNV1.appendChild(document.createElement("span"));_cLT1.className="clsHyperlink_hover";_cLT1.style.whiteSpace="nowrap";_cLT1.onclick=function(e){ e.stopPropagation(); C_ListViewRange._cI5(this, _cKT1); };_cLT1.innerText=this._c7J(_cQB1);_cXM.F_SetBoundaryDisplay(_cLT1.innerText);if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_cLT1.tabIndex=0;_cLT1.setAttribute( "aria-labelledby", ( this._cRR.uniqueID + " " + _cLT1.uniqueID ) );}}return _cXM;};C_ListViewRange.prototype._cD2=function(){var _c6M=this._cEO1.createElement("promptTextBox");_c6M.setAttribute( "required", "true" );_c6M.setAttribute( "hideAdornments", "true" );_c6M.setAttribute( "numbersOnly", "true" );_c6M.setAttribute( "showThousandSeparator", "true" );_c6M.setAttribute( "restrictInput", "true" );_c6M.setAttribute( "inputClass", "clsCCHLNumericRange" );return _c6M;};C_ListViewRange.prototype._cO1=function(){var _cLI=this._cEO1.createElement("promptDateTime");_cLI.setAttribute( "required", "true" );_cLI.setAttribute( "hideAdornments", "true" );_cLI.setAttribute( "selectDateTimeUI", "calendar" );_cLI.setAttribute( "selectDateUI", "calendar" );_cLI.setAttribute( "selectTimeUI", "clock" );_cLI.setAttribute( "restrictInput", "true" );return _cLI;};C_ListViewRange.prototype._cP1=function(){var _cOI=this._cEO1.createElement("promptInterval");_cOI.setAttribute( "required", "true" );_cOI.setAttribute( "hideAdornments", "true" );_cOI.setAttribute( "showSeconds", "true" );_cOI.setAttribute( "showMilliseconds", "true" );_cOI.setAttribute( "restrictInput", "true" );return _cOI;};C_ListViewRange._cI5=function(_cPW,_cKT1){var _c2N=_cPW.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode._cUM;var _cMV1=_cPW.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;if(_cKT1){_cMV1=_c2N._cL8(_cMV1);}_c2N._c6G(_cMV1);};C_ListViewRange.prototype._c7J=function(_cGN1){var _cXR;switch(this._c9R1){case "time":var _cDR1=2;if(this._cWM&&( this._cWM.getAttribute( "showSeconds" )=="true" ) ){_cDR1=1;}if(this._cWM&&( this._cWM.getAttribute( "showMilliseconds" )=="true" ) ){_cDR1=0;}_cXR=U_PromptInputParser.F_FormatInput(_cGN1, "time", null, null, _cDR1);break;case "date":case "dateTime":_cXR=U_PromptInputParser.F_FormatInput(_cGN1, this._c9R1, false, 0, 2);break;default:_cXR=_cGN1;break;}return _cXR;};C_ListViewRange.prototype._c6G=function(_cMV1){this._cN1=_cMV1;var _cQB1=_cMV1._cZM.F_GetBoundary();var _cGG1;switch(this._c9R1){case "date":G_HAL.F_VerifyDependencies("D_PromptDateTime");_cGG1=D_PromptDateTime.K_eDlgTypeDateOnly;this._cHA=( this._cHA!="" )?this._cHA:G_ResManager.F_GetString( "IDS_CCHL_TITLE_DATE" );D_PromptDateTime.F_Show(_cMV1, this._cWM, _cGG1, null, this._cHA, [ new C_DateValue(false, _cQB1)], this);break;case "time":G_HAL.F_VerifyDependencies("D_PromptDateTime");_cGG1=D_PromptDateTime.K_eDlgTypeTimeOnly;this._cHA=( this._cHA!="" )?this._cHA:G_ResManager.F_GetString( "IDS_CCHL_TITLE_TIME" );D_PromptDateTime.F_Show(_cMV1, this._cWM, _cGG1, null, this._cHA, [ new C_TimeValue(false, _cQB1)], this);break;case "dateTime":G_HAL.F_VerifyDependencies("D_PromptDateTime");_cGG1=D_PromptDateTime.K_eDlgTypeDateTime;this._cHA=( this._cHA!="" )?this._cHA:G_ResManager.F_GetString( "IDS_CCHL_TITLE_DATE_TIME" );D_PromptDateTime.F_Show(_cMV1, this._cWM, _cGG1, null, this._cHA, [ new C_DateTimeValue(false, _cQB1)], this);break;case "interval":G_HAL.F_VerifyDependencies("D_PromptInterval");this._cHA=( this._cHA!="" )?this._cHA:G_ResManager.F_GetString( "IDS_CCHL_TITLE_INTERVAL" );D_PromptInterval.F_Show(_cMV1, this._cWM, null, this._cHA, [ new C_IntervalValue(false, _cQB1)], this);break;}};C_ListViewRange.prototype.F_Dialog_OnOK=function(_cCK1){this._cT11(_cCK1.F_GetParameterValues()[0].F_GetUseValue(), this._cN1);};C_ListViewRange.prototype._cM8=function(_cKT1,_cQB1){var _c4V1=document.createElement("img");if(this._cDB1&&this._cDB1._c7C1){_c4V1.id=this._cDB1._c7C1+"_Boundary_" + _cQB1;}_c4V1.src=G_HAL.F_GetImageURL("hal/images/btn_delete.gif");_c4V1.style.height="16px";_c4V1.style.width="16px";_c4V1.setAttribute( "border", "0" );_c4V1.style.cursor="pointer";_c4V1.title=G_ResManager.F_GetString("IDS_CCHL_MSG_DELETE_VALUE");_c4V1.setAttribute( "direction", ( _cKT1?"top":"bottom" ) );_c4V1.onclick=C_ListViewRange._cNA;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_c4V1.tabIndex=0;_c4V1.alt="";}return _c4V1;};C_ListViewRange._cNA=function(e){e.stopPropagation();C_ListViewRange._c8C1( this, this.getAttribute( "direction" )=="top" );};C_ListViewRange.prototype._cZ=function(_c7V1,_cQB1){var _c4V1=document.createElement("img");if(this._cDB1&&this._cDB1._c7C1&&_cQB1){_c4V1.id=this._cDB1._c7C1+"_style_img_" + _cQB1;}_c4V1.src=G_HAL.F_GetImageURL( "cchl/images/rangestyle_" + ( _c7V1?"up":"down" ) + "_normal.gif" );_c4V1.style.height="19px";_c4V1.style.width="9px";_c4V1.setAttribute( "border", "0" );_c4V1.style.cursor="pointer";_c4V1.title=_c7V1?G_ResManager.F_GetString( "IDS_CCHL_MSG_MOVE_VALUE_ABOVE" ):G_ResManager.F_GetString( "IDS_CCHL_MSG_MOVE_VALUE_BELOW" );_c4V1.setAttribute( "direction", ( _c7V1?"up":"down" ) );_c4V1.onmouseover=C_ListViewRange._cI;_c4V1.onmouseout=C_ListViewRange._cO;_c4V1.onclick=_c7V1?C_ListViewRange._c3N:C_ListViewRange._c7G;if(G_HAL.M_oLibraries["hal"]["enableAccessibility"]){_c4V1.tabIndex=0;_c4V1.alt="";}return _c4V1;};C_ListViewRange._cI=function(e){e.stopPropagation();this.src=G_HAL.F_GetImageURL( "cchl/images/rangestyle_" + this.getAttribute( "direction" ) + "_rollover.gif" );};C_ListViewRange._cO=function(e){e.stopPropagation();this.src=G_HAL.F_GetImageURL( "cchl/images/rangestyle_" + this.getAttribute( "direction" ) + "_normal.gif" );};C_ListViewRange.prototype._cJA=function(_cIN1){var _c4V1=document.createElement("img");_c4V1.src=G_HAL.F_GetImageURL("hal/images/blank.gif");_c4V1.style.height="1px";_c4V1.style.width=_cIN1;_c4V1.style.display="block";_c4V1.setAttribute( "border", "0" );return _c4V1;};C_ListViewRange._c3N=function(e){e.stopPropagation();var _cBR1=this.parentNode;while(!_cBR1._cUM){_cBR1=_cBR1.parentNode;}var _c2N=_cBR1._cUM;var _cA71=this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;var _c871=_c2N._cL8(_cA71);if((_c2N._c9R1=="number")&&_c871._cZM.F_GetBoundaryControl()){_c871._cZM.F_SetBoundary(_c871._cZM.F_GetBoundaryControl().F_GetParameterValues()[0].F_GetUseValue());}_c871._cZM.F_SetInclusive(true);_c871._cGO1=true;_cA71._cGO1=true;_c2N._cHO1();};C_ListViewRange._c7G=function(e){e.stopPropagation();var _cBR1=this.parentNode;while(!_cBR1._cUM){_cBR1=_cBR1.parentNode;}var _c2N=_cBR1._cUM;var _cA71=this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;if((_c2N._c9R1=="number")&&_cA71._cZM.F_GetBoundaryControl()){_cA71._cZM.F_SetBoundary(_cA71._cZM.F_GetBoundaryControl().F_GetParameterValues()[0].F_GetUseValue());}_cA71._cZM.F_SetInclusive(false);_cA71._cGO1=true;_c2N._c4J(_cA71)._cGO1=true;_c2N._cHO1();};C_ListViewRange._c8C1=function(_c4V1,_cKT1){var _cBR1=_c4V1.parentNode;while(!_cBR1._cUM){_cBR1=_cBR1.parentNode;}var _c2N=_cBR1._cUM;var _cA71=_c4V1.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;if(_cKT1){_cA71=_c2N._cL8(_cA71);}_c2N._c4J(_cA71)._cGO1=true;if(_c2N._cL8(_cA71)){_c2N._cL8(_cA71)._cGO1=true;}_c2N._c8J(_cA71);_c2N._cHO1();};C_ListViewRange.prototype._c8J=function(_cMV1){this._c1N(_cMV1);if(this._cDB1&&this._cDB1.F_ListViewRange_OnRemoveRange&&_cMV1._cZM&&_cMV1._cZM.F_GetBoundaryProperty()){this._cDB1.F_ListViewRange_OnRemoveRange(_cMV1._cZM.F_GetBoundaryProperty());}if(_cMV1==this._c4G.rows.item(1)){_cMV1.parentNode.removeChild(_cMV1.nextSibling);}else{_cMV1.parentNode.removeChild(_cMV1.previousSibling);}_cMV1.parentNode.removeChild(_cMV1);};C_ListViewRange.prototype._cQR=function(){var _cOA=this._cP4(false);for(var i=0;i<_cOA.length;i++){this._c8J(_cOA[ i ]);}};C_ListViewRange.prototype.F_InsertRangeBreak=function(_cGN1){if(!this._cLW(_cGN1, true)){return;}var _c3G=this._cP4(true);if(this._cJ5(_c3G, _cGN1)){if(this._cDB1&&this._cDB1.F_ListViewRange_OnAddDuplicateBoundary){this._cDB1.F_ListViewRange_OnAddDuplicateBoundary(_cGN1);}return;}var _cXM=new C_RangeBoundary(_cGN1, null, null, null);_c3G.push(_cXM);this._cK8(_c3G);var _cJT1=this._cN(_c3G, _cXM);var _cMV1=this._cS11(((_cJT1==0)?1:_cJT1*2), _cGN1, false, null);this._c4J(_cMV1)._cGO1=true;this._cHO1();};C_ListViewRange.prototype._cLW=function(_cGN1,_cB71){if(!_cGN1||!U_PromptInputParser.F_IsInputValid(_cGN1, this._c9R1, 0, null, null)){if(_cB71&&this._cDB1&&this._cDB1.F_ListViewRange_OnInvalidNewBoundary){this._cDB1.F_ListViewRange_OnInvalidNewBoundary(_cGN1);}return false;}return true;};C_ListViewRange.prototype._cJ5=function(_c3G,_cGN1,_cK5){var _c4N=false;for(var i=0;i<_c3G.length;i++){if((_cK5!=_c3G[ i ])&&(((this._c9R1=="number")&&(_c3G[ i ].F_GetBoundary()!==null)&&((_c3G[ i ].F_GetBoundary()-_cGN1)==0))||(_c3G[ i ].F_GetBoundary()==_cGN1))){_c4N=true;break;}}return _c4N;};C_ListViewRange.prototype._cL8=function(_cMV1){var _c871=null;if(_cMV1!=this._c4G.rows.item(1)){_c871=_cMV1.previousSibling.previousSibling;}return _c871;};C_ListViewRange.prototype._c4J=function(_cMV1){var _cJO1=null;if(_cMV1!=this._c4G.rows.item(this._c4G.rows.length-2)){_cJO1=_cMV1.nextSibling.nextSibling;}return _cJO1;};C_ListViewRange.prototype._cP4=function(_c47){var _c3G=[];for(var i=1;i<this._c4G.rows.length-1;i++){var _cMV1=this._c4G.rows.item(i);if(_cMV1._cZM){_c3G.push(_c47?_cMV1._cZM:_cMV1);}}return _c3G;};C_ListViewRange.prototype.F_GetRangeValues=function(){return this._cP4(true);};C_ListViewRange.prototype.F_PromptControl_FinishedInput=function(_c5M){var _cOA=this._cP4(false);var _c9J=null;for(var i=0;i<_cOA.length;i++){if(_cOA[ i ]._cZM.F_GetBoundaryControl()==_c5M){_c9J=_cOA[ i ];break;}}this._cT11(_c5M.F_GetParameterValues()[0].F_GetUseValue(), _c9J);};C_ListViewRange.prototype._cT11=function(_c9C1,_c9J){if(!this._cLW(_c9C1, false)){this._cAJ(_c9J);return;}var _cXM=_c9J._cZM;var _c3G=this._cP4(true);if(this._cJ5(_c3G, _c9C1, _cXM)){if(this._cDB1&&this._cDB1.F_ListViewRange_OnAddDuplicateBoundary){this._cDB1.F_ListViewRange_OnAddDuplicateBoundary(_c9C1);}this._cAJ(_c9J);}else if(_cXM){var _cU11=this._cN(_c3G, _cXM);_cXM.F_SetBoundary(_c9C1);_cXM.F_SetBoundaryDisplay(this._c7J(_c9C1));this._cK8(_c3G);var _cAC1=this._cN(_c3G, _cXM);if(_cU11!=_cAC1){this._c9L1(_c3G);}else if(this._c9R1!="number"){this._cAJ(_c9J);}}this._cQ4();};C_ListViewRange.prototype._c9L1=function(_c3G){var _cOA=this._cP4(false);var _cC71=[];for(var i=0;i<_c3G.length;i++){_cC71.push(_c3G[ i ].F_GetBoundary());}var _cAL1=false;for(var j=0;j<_cC71.length-1;j++){var _cMV1=_cOA[ j ];if(_cMV1._cZM.F_GetBoundary()!=_cC71[ j ]){_cMV1._cZM.F_SetBoundary(_cC71[ j ]);_cAL1=true;}_cMV1._cGO1=_cAL1;}_cOA[ _cOA.length-1 ]._cGO1=true;this._cHO1();};C_ListViewRange.prototype._cAJ=function(_cMV1){_cMV1=_cMV1._cZM.F_IsInclusive()?_cMV1:this._c4J(_cMV1);_cMV1._cGO1=true;setTimeout( "document.getElementById( '" + this._c2G.uniqueID + "' )._cUM._cHO1()", 0 );};C_ListViewRange.prototype._c8G=function(){var _cD71=[];for(var i=1;i<this._c4G.rows.length-1;i++){var _cMV1=this._c4G.rows.item(i);if(_cMV1._cZM){_cD71.push(_cMV1.cells.item(1));}}return _cD71;};C_ListViewRange.prototype._cQ4=function(){var _cD71=this._c8G();if(_cD71.length==1){_cD71[0].removeAttribute("title");return;}var _c3G=this._cP4(true);for(var i=0;i<_c3G.length;i++){var _cV11=false;var _cQW=false;var _cW11="IDS_CCHL_" + ( ( ( this._c9R1=="date" )||( this._c9R1=="time" )||( this._c9R1=="dateTime" ) )?"DATETIME":"VALUE" );if(_c3G[i].F_GetBoundary()!==null){_cW11 += "_GREATER" + ( _c3G[i].F_IsInclusive()?"_EQUAL":"" );_cV11=true;}if(i>0){_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;};