_00g.js 2.0 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. _00g._w0n="text";_00g._lnl="number";_00g._jaj="currency";_00g._vlk="integer";_00g._2n8="positive integer";_00g._u9g="percentage";function _00g(_mnm, _ffk, _vgl, _tu2, _sug){if(typeof _vgl=="undefined"){_vgl=_00g._w0n;}this._mtk=_vgl;this._pr2=_tu2;_00g.baseConstructor.call(this, _mnm, _sug);if(!_mnm||_vgl!=_00g._w0n){this._p6g(_ffk);}};_olk._vjl(_00g, _u3b);_00g.prototype._fq2=function(_hmc){_00g.superClass._fq2.call(this, _hmc, "simpleValue");};_00g.prototype._j1a=function(_uxm){if(_uxm===null||_uxm===undefined){return _uxm;}var _qi9;switch(this._mtk){case "text":_qi9=_uxm;break;case "number":_qi9=_tf7._boe(_uxm, false, this._pr2);break;case "currency":_qi9=_tf7._ghb(_uxm, this._pr2);break;case "integer":case "positive integer":case "natural":case "whole":_qi9=_tf7._i3d(_uxm);break;case "percentage":_qi9=_tf7._zg5(_uxm);break;default:alert( "Invalid numeric value subtype supplied." );}return _qi9;};_00g.prototype._48d=function(_uxm){if(_uxm==null||_uxm==undefined){return _uxm;}var _jkh;switch(this._mtk){case "text":_jkh=_uxm;break;case "number":case "currency":case "percentage":var _uyl=parseFloat(_uxm);_jkh=isNaN(_uyl)?undefined:_uxm;break;case "integer":var _90m=parseInt(_uxm);_jkh=isNaN(_90m)?undefined:_uxm;break;case "positive integer":var _90m=parseInt(_uxm);_jkh=(!isNaN(_90m)&&(_90m>=0))?_uxm:_90m.toString();break;default:alert( "Invalid numeric value subtype supplied." );}return _jkh;};_00g.prototype._p6g=function(_ffk,_tod){if(this._1ll()&&(this._mtk==_00g._w0n)&&(typeof _tod=="undefined")){alert( "Do not attempt to set a text use value for a range with a single value input. Unable to parse if the input contains multiple colons." );return;}_00g.superClass._p6g.call(this, _ffk, _tod);};_00g.prototype._xf4=function(_vgl,_tu2){this._mtk=_vgl;this._pr2=_tu2;this._vw1();};