// 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.
C_ParameterValue._cUC1=true;C_ParameterValue._cZB1=false;C_ParameterValue._cX61=0;C_ParameterValue._cVC1=1;function C_ParameterValue(_c9O1){this._cMH1=_c9O1;this._cBC1=null;this._cOD=null;this._cPD=null;this._cYR=null;this._cR5=null;this._cS5=null;};C_ParameterValue.prototype._cOM=function(_cJR){return this.F_GetUseValue(_cJR);};C_ParameterValue.prototype.F_GetUseValue=function(_cJR){if(!this.F_IsRange()||(this.F_IsRange()&&(typeof _cJR=="undefined"))){return this._cBC1;}return(_cJR==C_ParameterValue._cUC1)?this._cOD:this._cPD;};C_ParameterValue.prototype.F_SetUseValue=function(_cWB1,_cJR){if(!this.F_IsRange()){this._cBC1=this._cKR(_cWB1);}else if(this.F_IsRange()&&(typeof _cJR=="undefined")){this._cN3(_cWB1);}else if(_cJR==C_ParameterValue._cUC1){this._cOD=this._cKR(_cWB1);}else{this._cPD=this._cKR(_cWB1);}if(this.F_IsRange()){if((this._cOD===null)&&(this._cPD===null)){this._cBC1=null;}else{this._cBC1=( this._cOD?this._cOD:"" ) + ":" + ( this._cPD?this._cPD:"" );}}this._c59();};C_ParameterValue.prototype.F_GetDisplayValue=function(_cJR){if(!this.F_IsRange()||(this.F_IsRange()&&(typeof _cJR=="undefined"))){return this._cYR;}return(_cJR==C_ParameterValue._cUC1)?this._cR5:this._cS5;};C_ParameterValue.prototype._cD7=function(){var _cXR=null;if(this._cR5&&this._cS5){if(this._cR5==this._cS5){_cXR=this._cR5;}else{_cXR=G_ResManager.F_GetString("IDS_CCHL_PRMT_RANGE", this._cR5, this._cS5);}}else if(!this._cR5&&this._cS5){_cXR=G_ResManager.F_GetString("IDS_CCHL_PRMT_RANGE_MAX", this._cS5);}else if(this._cR5&&!this._cS5){_cXR=G_ResManager.F_GetString("IDS_CCHL_PRMT_RANGE_MIN", this._cR5);}return _cXR;};C_ParameterValue.prototype._c59=function(){if(this.F_IsRange()){this._cR5=this._cOD?this._c3J(this._cOD):null;this._cR5=this._cR5?this._cR5:this._cOD;this._cS5=this._cPD?this._c3J(this._cPD):null;this._cS5=this._cS5?this._cS5:this._cPD;this._cYR=this._cD7();}else{this._cYR=this._cBC1?this._c3J(this._cBC1):null;}};C_ParameterValue.prototype._cN3=function(_cNM,_cIR1){var _cIN=U_PromptInputParser.F_SplitUseValueRange(_cNM, _cIR1);this._cOD=((_cIN&&_cIN[ 0 ])?this._cKR(_cIN[ 0 ]):null);this._cPD=((_cIN&&_cIN[ 1 ])?this._cKR(_cIN[ 1 ]):null);};C_ParameterValue.prototype.F_IsRange=function(){return this._cMH1;};C_ParameterValue.prototype._cC2=function(){if(this.F_IsRange()){this.F_SetUseValue(this.F_GetUseValue(C_ParameterValue._cUC1), C_ParameterValue._cUC1);this.F_SetUseValue(this.F_GetUseValue(C_ParameterValue._cZB1), C_ParameterValue._cZB1);}else{this.F_SetUseValue(this.F_GetUseValue());}};C_ParameterValue.prototype.F_ToScriptableValue=function(){if(this.F_IsRange()){return new C_ScriptableParameterRangeValue(this.F_GetUseValue(C_ParameterValue._cUC1), this.F_GetDisplayValue(C_ParameterValue._cUC1), this.F_GetUseValue(C_ParameterValue._cZB1), this.F_GetDisplayValue(C_ParameterValue._cZB1));}return new C_ScriptableParameterValue(this.F_GetUseValue(), this.F_GetDisplayValue()); };C_ParameterValue.prototype.F_ToXmlString=function(){var a=[];if(this.F_IsRange()){var _cVO1=this._cOM(C_ParameterValue._cUC1);var _c0U1=this._cOM(C_ParameterValue._cZB1);if(!_cVO1&&!_c0U1){a.push( '' );}else{var _cIR1=((_cVO1&&_c0U1 )?'boundRangeParmValueItem':( _cVO1?'unboundedEndRangeParmValueItem':'unboundedStartRangeParmValueItem' ) );a.push( '' );a.push( '- ' );a.push( 'true' );if(_cVO1){a.push( '');a.push( 'true' );a.push( '' + this.F_GetDisplayValue( C_ParameterValue._cUC1 ).F_XMLEncode() + '' );a.push( '' + _cVO1.F_XMLEncode() + '' );a.push('');}if(_c0U1){a.push( '' );a.push( 'true' );a.push( '' + this.F_GetDisplayValue( C_ParameterValue._cZB1 ).F_XMLEncode() + '' );a.push( '' + _c0U1.F_XMLEncode() + '' );a.push('');}a.push('
');a.push('');}}else{var _cWB1=this._cOM();var _cXR=this.F_GetDisplayValue();if(_cWB1===null){a.push( '' );}else{a.push( '' );a.push( '- ' );a.push( 'true' );if(_cXR!==null){a.push( '' + _cXR.F_XMLEncode() + '' );}a.push( '' + _cWB1.F_XMLEncode() + '' );a.push('
');a.push('');}}return a.join("");};