_gqc.js 5.2 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 _gqc=new _lcm( "_gqc", "dlgV2GaugeBorder" );_gqc._jgn=function(_8rm,_6wa){this._0jm=_8rm;this._0rl=_8rm.selectSingleNode("v2_dialBorder");this._zca=_6wa;this._4le();};_gqc._5z2=function(){this._d0n._jw8=[];this._d0n._2ga=new _npc( this._2oh( 'tblTxtBorderRadius' ), this._53g( 'Border' ), this, null );this._d0n._2ga._3kk('50');this._d0n._jw8.push(this._d0n._2ga); this._d0n._vpk=new _jgk(this._2oh("cboBevelStyle"), this._53g("cboGaugeBorderStyle"), null, this);this._d0n._0qk=new _jgk(this._2oh("cboWidthStyle"), this._53g("cboGaugeBorderWidthStyle"), null, this);if(this._0rl){this._2oh("chkShowBorder").checked=true;this._4km=this._0rl.getAttribute("gaugeBorderColor");this._d0n._2ga._3kk(this._0rl.getAttribute("gaugeBorderRadius")||'50');this._d0n._vpk._hwc(this._0rl.getAttribute("gaugeBorderBevel"));this._d0n._0qk._hwc(this._0rl.getAttribute("gaugeBorderWidthStyle"));}else{this._2oh("chkShowBorder").checked=false;this._4km="gray";this._d0n._vpk._hwc("flat");this._d0n._0qk._hwc("shallow");}this._mig=this._0jm.getAttribute("gaugeStartAngle");this._ngj=this._0jm.getAttribute("gaugeEndAngle");this._d0n._oed=new _xbe(this._2oh("divAngleChooser"), this, this._mig, this._ngj);this._d0n._cmg=new _npc( this._2oh("tblStartAngle"), this._53g("StartAngle"), this, null);this._d0n._jw8.push(this._d0n._cmg);this._d0n._iij=new _npc( this._2oh("tblEndAngle"), this._53g("EndAngle"), this, null);this._d0n._jw8.push(this._d0n._iij);this._d0n._cmg._mc7(_frh._c6j('IDS_INVALID_PROMPT_RANGE', 0, 360));this._d0n._iij._mc7(_frh._c6j('IDS_INVALID_PROMPT_RANGE', 0, 360));this._fmb();};_gqc._xhe=function(){this._fmb();};_gqc._fdm=function(){delete this._0jm;delete this._0rl;};_gqc._9ll=function(){_8fm._jgn("cchl/dialogs/_1zm", this._xp9(), false, this._4km, null, this, false, false);};_gqc._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":this._4km=_e5m._6ik();this._fmb();break;}};_gqc._8g2=function(_d0e){this._7dg(Math.round(_d0e._8uc()), Math.round(_d0e._e2g()));};_gqc._x51=function(_ivi){this._7dg(this._d0n._cmg._l3g(), this._d0n._iij._l3g());};_gqc._7dg=function(_gyg,_htj){this._mig=_gyg;this._ngj=_htj;this._fmb();};_gqc._fmb=function(){var _mwk=this._2oh("chkShowBorder").checked;this._pj8("btnBorderColor", _mwk);this._2oh("lblBorderColor").className = _mwk?"clsHyperLink":"clsDialogText";this._obb("lblBorderColor", _mwk);this._obb("lblBorderRadius", _mwk);this._d0n._2ga._mqh(_mwk);this._obb("lblBorderBevelStyle", _mwk);this._d0n._vpk._mqh(_mwk);this._obb("lblWidthStyle", _mwk);this._d0n._0qk._mqh(_mwk);this._obb("legendStyle", _mwk);this._obb("lblStartAngle", _mwk);this._d0n._cmg._mqh(_mwk);this._obb("lblEndAngle", _mwk);this._d0n._iij._mqh(_mwk);this._obb("legendAngles", _mwk);this._d0n._oed._mqh(_mwk); _u0n._2b5(this._2oh("btnBorderColor"), this._4km);this._d0n._cmg._3kk(this._mig.toString());this._d0n._iij._3kk(this._ngj.toString());this._d0n._oed._tje(this._mig, this._ngj);this._w5a();};_gqc._6ll=function(){var _znm=this._ggm();if(!_znm){_m9b("IDS_MSG_AXES_ANGLES_UPDATED");}};_gqc._bgn=function(){var _znm=this._ggm();if(!_znm){_m9b("IDS_MSG_AXES_ANGLES_UPDATED");}this._3le();};_gqc._gk6=function(){if(!this._2oh("chkShowBorder").checked){return true;}var _6tm=this._0jm.selectNodes("v2_gaugeAxes/v2_gaugeAxis");var _znm=true;for(var i=0; i<_6tm.length; i++){var _wfi=_6tm.item(i).getAttribute("gaugeAxisStartAngle");var _80l=_6tm.item(i).getAttribute("gaugeAxisEndAngle");var _hxi=_6tm.item(i).getAttribute("gaugeAxisDirection");_znm=_fnl._1l8(_wfi, _80l, _hxi, this._mig, this._ngj);if(!_znm){break;}}if(!_znm){_m9b("IDS_MSG_AXES_ANGLES_UPDATED");return false;}return true;};_gqc._ggm=function(_znm){var _znm=true;_erh._ybb();_8qn._cqh(this._0jm, "v2_dialBorder");if(this._2oh("chkShowBorder").checked){var _bsm=_erh._u0g(this._0jm, "v2_dialBorder");_bsm.setAttribute("gaugeBorderColor", this._4km);_bsm.setAttribute("gaugeBorderRadius", this._d0n._2ga._l3g());_bsm.setAttribute("gaugeBorderBevel", this._d0n._vpk._qik());_bsm.setAttribute("gaugeBorderWidthStyle", this._d0n._0qk._qik());this._0jm.setAttribute("gaugeStartAngle", this._mig);this._0jm.setAttribute("gaugeEndAngle", this._ngj);var _6tm=this._0jm.selectNodes("v2_gaugeAxes/v2_gaugeAxis");for(var i=0; i<_6tm.length; i++){var _hxi=_6tm.item(i).getAttribute("gaugeAxisDirection");var _wfi=_6tm.item(i).getAttribute("gaugeAxisStartAngle");var _80l=_6tm.item(i).getAttribute("gaugeAxisEndAngle"); var _8ai=_fnl._1l8(_wfi, _80l, _hxi, this._mig, this._ngj);if(!_8ai){_znm=false;if(_hxi=="counterclockwise"){_8qn._qie(_6tm.item(i), "gaugeAxisStartAngle", this._mig);_8qn._qie(_6tm.item(i), "gaugeAxisEndAngle", this._ngj); }else{_8qn._qie(_6tm.item(i), "gaugeAxisStartAngle", this._ngj);_8qn._qie(_6tm.item(i), "gaugeAxisEndAngle", this._mig); }}} }_erh._iee(true);return _znm;};_gqc._i7=function(_rgc){this._w5a();};_gqc._9c=function(_rgc){this._w5a();};_gqc._w5a=function(){var _zwk=true;for(var i=0;i<this._d0n._jw8.length;i++){if(this._d0n._jw8[i]._y6j()&&!this._d0n._jw8[i]._3ll()){_zwk=false;break;}}this._pj8("btnApply", _zwk);this._pj8("btnOK", _zwk);};