123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- var _3qc=new _lcm("_3qc");_3qc._jgn=function(_u4c,_arg,_s8f){this._ufg=_arg;this._tue=_s8f!=false;this._4le(_u4c, null);};_3qc._bgn=function(){var _1ul=_8qn._fde(null, this._y2n._eq9().selectNodes("listItems/listItem/@value"));if(this._tue){_erh._ybb();}for(var i=0;i<this._ufg.length;i++){var _zpi=this._ufg[i];var _858=_erh._h56(_zpi, this._ew7);_8qn._k5g(_858, "*");for(var j=0;j<_1ul.length;j++){_erh._u0g(_858, this._uwb).setAttribute("color", _1ul[j]);}_8qn._k5g(_zpi, this._ew7+"[not(*)]");}if(this._tue){_erh._iee();}this._3le();};_3qc._5z2=function(){var _ozj=this._53g("ColorSequence");var _ini=_ozj.selectSingleNode("listItems");var _ick=this._ufg[0].nodeName;switch(_ick){case "appList":this._ew7="appListRowStyleSequence";this._uwb="appListRowStyle";break;case "listControl":this._ew7="lcRowStyleSequence";this._uwb="lcRowStyle"; break;}var nl=this._ufg[0].selectNodes( this._ew7+"/" + this._uwb + "/@color" );for(var i=0;i<nl.length;i++){var _mzj=_ini.appendChild(_ozj.ownerDocument.createElement("listItem"));_mzj.setAttribute("value", nl.item(i).value);_mzj.setAttribute("tooltip", nl.item(i).value);this._bm2(_mzj);}this._y2n=new _pgk(this._2oh("divList"), _ozj, this);this._mse();};_3qc._o46=function(){if(this._y2n){this._y2n._fdm();this._y2n=null;}};_3qc._bm2=function(_mzj){var _uxm=_mzj.getAttribute("value");if(!_uxm){_mzj.setAttribute( "idsLabel", "IDS_PROPVAL_DEFAULT" );}var _dwm=_pgk._4g8(_mzj);_mzj.setAttribute( "html", '<table role="presentation" cellpadding="0" cellspacing="2" style="width:160px;"><tr><td style="text-align:center; border:1px solid var(--text-03); height:17px' + ( _uxm?'; background-color:' + _uxm:'' ) + '">' + ( _dwm?_cgm._qoh( _dwm ):' ' ) + '</td></tr></table>' );};_3qc._0qh=function(){if(!this._nhj){this._nhj=this._53g("ColorSequenceColors");var nl=this._nhj.selectNodes("listItems/listItem[not(@html)]");for(var i=0;i<nl.length;i++){var _mzj=nl.item(i);_mzj.setAttribute( "tooltip", _mzj.getAttribute( "value" ) );this._bm2(_mzj);}this._4rb=this._nhj.selectNodes("listItems/listItem").length;}_u0n._2a6( this, this._2oh( "btnNew" ), "", null, this._nhj, this._4rb * 36, 100 );};_3qc._xm=function(_xgc,_5en,_uxm){if(_uxm=="custom"){this._y0g();return;}this._2jb(_uxm);this._y2n._wfn();this._mse();};_3qc._2jb=function(_pvm){var _mzj=this._y2n._767();_mzj.setAttribute("value", _pvm);if(_pvm){_mzj.setAttribute( "tooltip", _mzj.getAttribute( "value" ) );}else{_mzj.setAttribute( "idsLabel", "IDS_PROPVAL_DEFAULT" );}this._bm2(_mzj);};_3qc._y0g=function(_pvm){_8fm._jgn( "cchl/dialogs/_1zm", this._xp9(), false, _pvm||"", null, this );};_3qc._io9=function(_e5m){switch(_e5m._b2g()){case "_1zm":this._2jb(_1zm._6ik());this._y2n._wfn();this._mse();}};_3qc._mse=function(){var _xtn=new _ece();_xtn._uzm( '<table role="presentation" class="ls" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border-collapse:collapse; font-size:6pt">' );for(var j=0;j<9;){var nl=this._y2n._eq9().selectNodes("listItems/listItem");if(nl.length==0){break;}for(var i=0;(i<nl.length)&&j<9; i++, j++){var _mzj=nl.item(i);var _uxm=_mzj.getAttribute("value");_xtn._uzm( '<tr style="background-color:' + ( _uxm||"white" ) + '"><td class="lc" style="width:33%"> </td><td class="lc" style="width:33%"> </td><td class="lc" style="width:33%"> </td></tr>' );}}_xtn._uzm('</table>');var div=this._2oh("divPreview");div.innerHTML=_xtn._fkk();};_3qc._ovc=function(){var _mzj=this._y2n._885();if(!_mzj){_mzj=_pgk._m65(this._y2n._eq9(), 0);}if(_mzj){_mzj.parentNode.removeChild(_mzj);this._y2n._wfn();}this._mse();};
|