_i36.js 8.1 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. var _i36=new _lcm("_i36");_i36._jgn=function(_8rm){this._0jm=_8rm;this._4le();};_i36._src=function(){this._v3i=new _jgk(this._2oh("cboDirection"), _frh._53g("Direction"), null, this);this._3sk=new _pgk(this._2oh("divPattern"), _frh._53g("Pattern"), this);this._s2n=new _lfn(this._2oh("deckMain"));this._yrl=new _pgk(this._2oh("chartEffect"), this._53g("RadioChartEffects"), this);this._wgd="black";this._pv7="black";this._cfa="white";this._ov7="black";this._mv7="white";};_i36._fdm=function(){if(this._v3i){this._v3i._fdm();delete this._v3i;}if(this._3sk){this._3sk._fdm();delete this._3sk;}if(this._s2n){this._s2n._fdm();delete this._s2n;}if(this._yrl){this._yrl._fdm();delete this._yrl;}};_i36._5z2=function(){this._6rb=0;this._lhg=new _jgk(this._2oh("cboVariable"), null, null, this);this._zpk=new _jgk(this._2oh("cboValue"), null, null, this);this._wca={};var _hkf=this._0jm.selectSingleNode("conditionalChartColors/@refVariable");if(_hkf){this._lhg._3kk(_hkf.value);this._nlj=_hkf.value;this._2oh("tblEffects").style.hidden = "";var _n3k=this._0jm.selectNodes("conditionalChartColors/*");for(var i=0; i<_n3k.length; i++){this._wca[_n3k.item( i ).getAttribute("refVariableValue")] = _n3k.item( i ).selectSingleNode("*");}this._26a();this._7a3();this._e7d();this._kpb=true;}else{this._nlj="";this._2oh("tblEffects").style.hidden = "hidden";this._lhg._3kk("", "IDS_NONE" );this._cs8();this._kpb=false;}this._yrl._wfn();};_i36._o46=function(){delete this._0jm;delete this._nlj;delete this._wca;this._lhg._fdm();delete this._lhg;this._zpk._fdm();delete this._zpk;};_i36._bgn=function(){_erh._ybb();_8qn._cqh(this._0jm, "conditionalChartColors");var _jfk=this._lhg._qik();if(_jfk){var _p8l=_agm._n3g(_erh._vtc(), _jfk).selectNodes("variableValues/*");for(var i=0; i<_p8l.length; i++){var _v1m=this._wca[_p8l.item(i).getAttribute("value")];if(_v1m){var _1an=_erh._h56(this._0jm, "conditionalChartColors");_1an.setAttribute("refVariable", _jfk);var _crm=_erh._u0g(_1an, "conditionalChartColor");_crm.setAttribute("refVariableValue", _p8l.item( i ).getAttribute("value"));_crm.appendChild(_erh._e5j(_v1m));}}}_erh._iee();this._3le();};_i36._kg2=function(_35k,_a6k){if(_35k==this._lhg){_rlk._m23(_35k, _a6k);}else if(_35k==this._zpk){_rlk._ha5(_35k, _a6k, this._lhg._qik());}};_i36._jg2=function(_35k,_a6k){_35k._ic7("");};_i36._g67=function(_35k,_mzj){if(_35k==this._lhg&&_rlk._495(_mzj.getAttribute("idsLabel"))){this._nlj="";_35k._3kk("", "IDS_NONE");_8fm._jgn( "_g0g", this._n75(), _mzj.getAttribute("idsLabel") );if(this._kpb==true){this._kpb=false;this._cs8();}}else if(_35k==this._lhg&&this._nlj!=_35k._qik()){this._nlj=_35k._qik();if(this._kpb==true){_67j("IDS_MSG_LOST_CONDITIONALPALETTE", null, _2dm._zkk);this._kpb=false;}this._cs8();this._r43();}else if(_35k==this._zpk){this._gx3();}else if(_35k==this._v3i){this._wca[this._zpk._qik()].setAttribute("direction", _35k._qik());this._bxh();}};_i36._vab=function(_vdn,_pld){if(_vdn){this._lhg._3kk(_vdn, _vdn?null:"IDS_NONE");}this._cs8();};_i36._pe4=function(_a6k,_mzj,_zdf){if(_a6k._ezm()=="_i36_chartEffect"){this._s5d(_mzj.getAttribute("value"));}else if(_a6k._ezm()=="_i36_divPattern"){this._wca[this._zpk._qik()].setAttribute("patternType", _mzj.getAttribute("value"));this._bxh();}};_i36._y0g=function(_pvm){this._jv7=_pvm;_8fm._jgn("cchl/dialogs/_1zm", this._xp9(), false, this._wca[this._zpk._qik()].getAttribute(_pvm), this._jib(_pvm), this);};_i36._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":var _v1m=this._wca[this._zpk._qik()];var _pvm=_e5m._6ik();if(_pvm==""){switch(this._jv7){case "value":_pvm=this._wgd;break;case "toColor":_pvm=this._cfa;break;case "fromColor":_pvm=this._pv7;break;case "foregroundColor":_pvm=this._ov7;break;case "backgroundColor":_pvm=this._mv7;}}_v1m.setAttribute(this._jv7, _pvm);this._xth(_v1m.nodeName);}};_i36._3wc=function(e){if(e.keyCode==_4qn._qrh){e.stopPropagation();}};_i36._5ab=function(e){switch(e.keyCode){case _4qn._x8j:_4qn._w0g(e);this._2oh("btnOK").focus();break;}};_i36._1z3=function(_ebl,_v1m,_5en){var _uxm=_ebl.value;var _uyl=_cgm._6qh(_uxm);if(isNaN(_uyl)){_67j("IDS_HAL_ERR_INVALID_NUMBER");_ebl.value=_8gm._fd7(_v1m.getAttribute(_5en));return;}if(_uyl<0||_uyl>100){_67j("IDS_ERR_BAD_PERCENT");_ebl.value=_8gm._fd7(_v1m.getAttribute(_5en));return;}_ebl.value=_8gm._fd7(_uyl);_v1m.setAttribute(_5en, _uyl.toString());};_i36._jib=function(_pvm){switch(_pvm){case "value":return _frh._c6j("IDS_LBL_COLOR");case "toColor":return _frh._c6j("IDS_LBL_TOCOLOR");case "fromColor":return _frh._c6j("IDS_LBL_FROMCOLOR");case "foregroundColor":return _frh._c6j("IDS_LBL_FORECOLOR");case "backgroundColor":return _frh._c6j("IDS_LBL_BACKCOLOR");}};_i36._s5d=function(_uxm){this._2oh("rightside").style.visibility = "inherit";var _v1m=null;if(_uxm!="none"){_v1m=this._zz9(_uxm);}this._wca[this._zpk._qik()]=_v1m;this._kpb=true;this._xth(_uxm);};_i36._26a=function(){var _jfk=this._lhg._qik();if(_jfk){var _33k=_agm._n3g(_erh._vtc(), _jfk);var _n5n=_33k.getAttribute("type")=="boolean";if(_n5n){this._zpk._3kk("1", "IDS_PROPVAL_TRUE");}else{var _x3h=_33k.selectSingleNode("variableValues/variableValue");if(_x3h){this._zpk._3kk(_x3h.getAttribute("value"), null, _rlk._huc(_33k, _x3h));}else{this._zpk._3kk("", "IDS_NO_VALUE" );}}}else{this._zpk._3kk("", "IDS_NONE");}this._gx3();};_i36._cs8=function(){this._e7d();this._wca={};this._7a3();};_i36._gx3=function(){this._r43();if(this._zpk._qik()==""){this._2oh("tblEffects").style.display = "none";this._2oh("divMsg").style.display = "";if(this._lhg._qik()){var _33k=_agm._n3g(_erh._vtc(), this._lhg._qik());var _n5n=_33k.getAttribute("type")=="boolean";if(_n5n){_4qn._1je( this._2oh("divMsg"), _frh._c6j("IDS_MSG_CHART_DEFAULT_PALETTE_NO_CONDITION") );}else{_4qn._1je( this._2oh("divMsg"), _frh._c6j("IDS_MSG_CHART_DEFAULT_PALETTE_OTHER_CONDITION") );}}}else{this._2oh("tblEffects").style.display = "";this._2oh("divMsg").style.display = "none";}};_i36._e7d=function(){this._26a();this._zpk._mqh(this._lhg._qik()!="");};_i36._7a3=function(){this._2oh("tblEffects").style.visibility = this._lhg._qik()?"":"hidden";};_i36._xth=function(_ncn){var _v1m=this._wca[this._zpk._qik()];switch(_ncn){case "none":this._s2n._ujk(3);break;case "chartColor":this._s2n._ujk(2);_u0n._2b5(this._2oh("btnColor"), _v1m.getAttribute("value"));break;case "chartGradient":this._s2n._ujk(0);_u0n._2b5(this._2oh("btnToColor"), _v1m.getAttribute("toColor"));_u0n._2b5(this._2oh("btnFromColor"), _v1m.getAttribute("fromColor"));this._v3i._hwc(_v1m.getAttribute("direction"));break;case "chartPattern":this._s2n._ujk(1);_u0n._2b5(this._2oh("btnForeColor"), _v1m.getAttribute("foregroundColor"));_u0n._2b5(this._2oh("btnBackColor"), _v1m.getAttribute("backgroundColor"));this._3sk._hwc(_v1m.getAttribute("patternType"));}this._bxh();};_i36._zz9=function(_uxm){var _v1m=_erh._cnh(_uxm);switch(_uxm){case "chartColor":_v1m.setAttribute("value", this._wgd);break;case "chartGradient":_v1m.setAttribute("direction", "down");_v1m.setAttribute("fromColor", this._pv7);_v1m.setAttribute("toColor", this._cfa);break;case "chartPattern":_v1m.setAttribute("patternType", "horizontal");_v1m.setAttribute("foregroundColor", this._ov7);_v1m.setAttribute("backgroundColor", this._mv7);}return _v1m;};_i36._bxh=function(){var div=this._2oh("divPreview");var _v1m=this._wca[this._zpk._qik()];if(_v1m&&_v1m.nodeName=="chartGradient"){_n0n._233(div, _v1m.getAttribute("fromColor"), _v1m.getAttribute("toColor"), _v1m.getAttribute("direction"));}else{div.innerHTML="";}this._v0a();};_i36._r43=function(){var _v1m=this._wca[this._zpk._qik()];this._yrl._hwc(_v1m?_v1m.nodeName:"none", false, false);this._xth(_v1m?_v1m.nodeName:"none");this._7a3();};_i36._v0a=function(){var _v1m=this._wca[this._zpk._qik()];if(_v1m){var _7yi=_v1m.getAttribute("foregroundColor");var _2wi=_v1m.getAttribute("backgroundColor");var _m9h=this._3sk._tfe();for(var i=0; i<_m9h.length; i++){var _mzj=_m9h.item(i);_mzj.setAttribute( "html", '<div style="height:16px; width:100%; background-color:' + _2wi + ';background-image:' + _q0d._ub4( _mzj.getAttribute( "value" ), _7yi, _2wi ) + '"></div>' );}}this._3sk._wfn();};