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 _0hk=new _lcm("_0hk");_0hk._xyh=["total","minimum","maximum","average","count"];_0hk._jgn=function(_2if){"use strict";this._d0n._gye=_2if;this._4le();};_0hk._5z2=function(){"use strict";var _kec=this._j72(this._d0n._gye);var _u2k=this._53g("GroupTree");var _n7f=false;var _et6=false;var _tyj=_7hn._ij8(_u2k, "treeNode[@name='groups']");var _glf=this._53g("NodeTemplates");var _3ac=_7hn._ij8(_glf, "treeNode[@value='lcGroup']");_kec._kyh.forEach(function(_oah){var _v4l=_tyj.appendChild(_3ac.cloneNode(true));var _bzj=_oah._xml;var _snn=_bzj.getAttribute("refDsColumn");_v4l.setAttribute("label", _snn);var _45l=_7hn._ij8(_bzj, "lcGroup");this._wp(_v4l, _45l);if(!_n7f&&_45l){_n7f=true; }if(!_et6&&_45l&&_7hn._ij8(_45l, "lcGroupFooter")){_et6=true;}}, this);var _yli= _7hn._ij8(_u2k, "treeNode[@name='details']");var _hqa=_7hn._ij8(_glf, "treeNode[@value='lcDetail']");_kec._0pl.forEach(function(_oah){var _bzj=_oah._xml;var _vxj=_yli.appendChild(_hqa.cloneNode(true));_vxj.setAttribute("label", _bzj.getAttribute("refDsColumn"));}, this); var _xwg=this._2oh("divTreeView");this._d0n._njj=new _vgk(_xwg, _u2k, {_eg4: this._6v1.bind(this)});if(this._d0n._gye.getAttribute("enableCollapse")=="true"){this._6t3(_n7f, _et6);}var _s6n=this._2oh("chkEnableCollapse");var _lza=this._d0n._gye.getAttribute("enableCollapse");_s6n.checked=_lza&&_lza!="none"&&_n7f;_4qn._j96(_s6n, _n7f&&!_et6);};_0hk._6t3=function(_n7f,_et6){if(_n7f){if(_et6){this._d0n._gye.setAttribute("enableCollapse", "none");}else{var _6x2=!!_7hn._ij8(this._d0n._njj ._cr9(), "//treeNode[@value='lcGroupHeader' and @checked='true']")?"headers":"values";this._d0n._gye.setAttribute("enableCollapse", _6x2);}}else{this._d0n._gye.setAttribute("enableCollapse", "none");}};_0hk._wl3=function(){"use strict";this._d0n._njj._wfn();};_0hk._bgn=function(){"use strict";if(this._6ll()){this._3le();}};_0hk._6ll=function(){"use strict";var _702=new Map();var _sri=_7hn._x5g(this._d0n._gye, "lcColumns/lcColumn/lcGroup");for(var _n1l=0;_n1l<_sri.length;++_n1l){var _45l=_sri.item(_n1l);var _7wf=_45l.parentNode.getAttribute("refDsColumn");_702.set(_7wf, _45l);}var _cwa=new Set();var _w07=new Set();var _9g9=new Set();var _906=new Set();var _2g9=new Set();var _806=new Set();var _f17=new Set();var _e84=new Set();var _q3k=_7hn._x5g(this._d0n._njj._cr9(), ".//treeNode[@value='lcGroup']");for(var _3qm=0; _3qm<_q3k.length; _3qm++){var _v4l=_q3k.item(_3qm);var _7wf=_v4l.getAttribute("label");if (_v4l.getAttribute("checked") != "true"){if(_702.has(_7wf)){_w07.add(_702.get(_7wf));}}else{var _45l=_702.get(_7wf);if(!_45l){_cwa.add(_v4l);}this._f3(_45l, _v4l, "lcGroupHeader", _9g9, _906, _f17, _e84);this._f3(_45l, _v4l, "lcGroupFooter", _2g9, _806, _f17, _e84);}}var _aj3="none";if(this._2oh("chkEnableCollapse").checked){_aj3=_7hn._ij8( this._d0n._njj._cr9(), ".//treeNode[@value='lcGroupHeader' and @checked='true']" )?"headers":"values";}var _0x2=this._d0n._gye.getAttribute("enableCollapse");if(!_cwa.size&&!_w07.size&&!_9g9.size&&!_906.size &&!_2g9.size&&!_806.size &&!_f17.size&&!_e84.size && _aj3==_0x2){return true;}_erh._ybb();_e84.forEach(function(_cni){_cni.parentNode.removeChild(_cni);}, this);_906.forEach(function(_dzj){_dzj.parentNode.removeChild(_dzj);}, this);_806.forEach(function(_czj){_czj.parentNode.removeChild(_czj);}, this);_w07.forEach(function(_45l){_45l.parentNode.removeChild(_45l);}, this);_cwa.forEach(function(_v4l){var _xwi=_v4l.getAttribute("label");var _bzj=_7hn._ij8( this._d0n._gye, "lcColumns/lcColumn[@refDsColumn='" + _xwi + "']" );var _45l=_erh._u0g(_bzj, "lcGroup");_702.set(_xwi, _45l);}, this);_9g9.forEach(function(_vyj){var _v4l=_vyj.parentNode;var _xwi=_v4l.getAttribute("label");var _45l=_702.get(_xwi);var _cac=_erh._u0g(_45l, "lcGroupHeader");var _dac=_erh._u0g(_cac, "lcSummaryRows");this._3a(_vyj, _dac);}, this);_2g9.forEach(function(_pyj){var _v4l=_pyj.parentNode;var _xwi=_v4l.getAttribute("label");var _45l=_702.get(_xwi);var _bac=_erh._u0g(_45l, "lcGroupFooter");var _dac=_erh._u0g(_bac, "lcSummaryRows");this._3a(_pyj, _dac);}, this);_f17.forEach(function(_eqi){var _nnc=_eqi.getAttribute("value");var _x38=_eqi.parentNode;var _n16=_x38.getAttribute("value");var _v4l=_x38.parentNode;var _xwi=_v4l.getAttribute("label");var _45l=_702.get(_xwi);var _448=_7hn._ij8(_45l, _n16);var _dac=_7hn._ij8(_448, "lcSummaryRows");var _bvd=_erh._u0g(_dac, "lcSummaryRow");_bvd.setAttribute("summaryMethod", _nnc);}, this);_8qn._k5g(this._d0n._gye, 'lcColumn/lcGroup/lcGroupHeader/lcSummaryRows[not(*)]');_8qn._k5g(this._d0n._gye, 'lcColumn/lcGroup/lcGroupHeader[not(*)]');_8qn._k5g(this._d0n._gye, 'lcColumn/lcGroup/lcGroupFooter/lcSummaryRows[not(*)]');_8qn._k5g(this._d0n._gye, 'lcColumn/lcGroup/lcGroupFooter[not(*)]');this._d0n._gye.setAttribute("enableCollapse", _aj3);var _qu2=_7hn._ij8(this._d0n._gye, "lcRowStyleSequence/lcRowStyle")&&!_m9g._fy2(this._d0n._gye);if(_qu2){_8qn._k5g(this._d0n._gye, "lcRowStyleSequence");}_erh._iee(true);if(_qu2){Application._28j(_frh._c6j("IDS_MSG_ROWSTYLESEQUENCE_REMOVED", _frh._c6j("IDS_PROP_lcRowStyleSequence"),_frh._c6j("IDS_EL_listControl"),this._d0n._gye.getAttribute("name")),{type: 'warning'});}return true;};_0hk._f3=function(_45l, _v4l, _n16, _384, _le2, _f17, _e84){var _448=_45l&&_7hn._ij8(_45l, _n16);var _x38=_7hn._ij8(_v4l, "treeNode[@value='" + _n16 + "']");var _nf3=(_x38.getAttribute("checked")=="true");if(_448&&_nf3){var _z9h=_7hn._x5g(_x38, "treeNode");for(var _n2l=0; _n2l<_z9h.length;++_n2l){var _eqi=_z9h.item(_n2l);var _cni=_7hn._ij8(_448, "lcSummaryRows/lcSummaryRow[@summaryMethod='" + _eqi.getAttribute("value") + "']");var _gla =_eqi.getAttribute("checked")=="true";if(_cni&&_gla||(!_cni&&!_gla)){}else if(_cni&&!_gla){_e84.add(_cni);}else if(!_cni&&_gla){_f17.add(_eqi);}}}else if(_448&&!_nf3){_le2.add(_448);}else if(!_448&&_nf3){_384.add(_x38);}};_0hk._3a=function(_3sn,_dac){var _utn=_7hn._x5g(_3sn, "treeNode[@checked='true']");for(var i=0;i<_utn.length;i++){var _eqi=_utn.item(i);var _nnc=_eqi.getAttribute("value");var _bvd=_erh._u0g(_dac, "lcSummaryRow");_bvd.setAttribute("summaryMethod", _nnc); }};_0hk._j72=function(_nif){"use strict";var _4bn=new _2m9(_nif);var _5kn =_4bn._0lk.length;var _edf=_4bn._2f7;if(_edf===_5kn&&_5kn>0){_edf=_5kn-1;}else if(_edf!==_5kn&&_edf>0){_edf=_edf-1;}return {_v2n: _4bn,_kyh: _4bn._0lk.slice(0, _edf),_0pl: _4bn._0lk.slice(_edf)};};_0hk._wp=function(_v4l,_45l){"use strict";if(_45l){_v4l.setAttribute("checked", "true");}else{_v4l.removeAttribute("checked");}var _vyj=_7hn._ij8(_v4l, "treeNode[@value='lcGroupHeader']");this._01(_vyj, _45l);var _pyj=_7hn._ij8(_v4l, "treeNode[@value='lcGroupFooter']");this._01(_pyj, _45l);};_0hk._01=function(_x38,_45l){"use strict";var _448;if(_45l){_448=_7hn._ij8(_45l, _x38.getAttribute("value"));if(_448){_x38.setAttribute("checked", "true");}else{_x38.removeAttribute("checked");}}else{_x38.removeAttribute("checked");_x38.setAttribute("expanded", "false");}this._z5(_x38, _448);};_0hk._z5=function(_01k,_448){"use strict";if(!_448){this._xyh.forEach(function(_xgl){var _eqi=_7hn._ij8(_01k, "treeNode[@value='" + _xgl + "']");_eqi.removeAttribute("checked");}, this);}else{this._xyh.forEach(function(_xgl){var _eqi=_7hn._ij8(_01k, "treeNode[@value='" + _xgl + "']");var _prn=_7hn._ij8(_448, "lcSummaryRows/lcSummaryRow[@summaryMethod='" + _xgl + "']");if(_prn){_eqi.setAttribute("checked", "true");}}, this);}};_0hk._6v1=function(_h7k,_t2k,_zdf){"use strict";var _uxm=_t2k.getAttribute("value");var _v3c=(_t2k.getAttribute("checked") != "true"); switch(_uxm){case "lcGroup":if(_v3c){this._yth(_t2k, _h7k, _t2k);}else{this._fse(_t2k, _h7k, _t2k);}break;case "lcGroupHeader":case "lcGroupFooter":if(_v3c){this._yth(_t2k.parentNode, _h7k, _t2k);this._if(_t2k, _h7k, _t2k); }else {this._4v8(_t2k, _h7k);}break;case "total":case "minimum":case "maximum":case "count":case "average":if(_v3c){this._we5(_t2k.parentNode, _h7k, _t2k);}else if(this._dn4(_t2k)){var _x38=_t2k.parentNode;_x38.removeAttribute("checked");_h7k._3rh(_x38);}else{}break;default:return false;}setTimeout(this._lq2.bind(this, _h7k),0);return true;};_0hk._4v8=function(_k58,_h7k,_r3l){"use strict";this._xyh.forEach(function(_xgl){var _0sn=_7hn._ij8(_k58, "treeNode[@value='" + _xgl + "']");if(_0sn!=_r3l&&_0sn.getAttribute("checked")=="true"){_0sn.removeAttribute("checked");_h7k._3rh(_0sn);}}, this);};_0hk._fse=function(_v4l,_h7k,_r3l){"use strict";var _v4l=_v4l;while(_v4l){if(this._m3(_v4l, _h7k, _r3l)){var _vyj=_7hn._ij8(_v4l, "treeNode[@value='lcGroupHeader']");if(this._m3(_vyj, _h7k, _r3l)){this._4v8(_vyj, _h7k, _r3l);}var _pyj=_7hn._ij8(_v4l, "treeNode[@value='lcGroupFooter']");if(this._m3(_pyj, _h7k, _r3l)){this._4v8(_pyj, _h7k, _r3l); } } _v4l=_8qn._dn3(_v4l);}};_0hk._m3=function(_0sn, _h7k, _9li){"use strict";if (_0sn.getAttribute("checked") != "true"){return false;}if(_0sn!=_9li){_0sn.removeAttribute("checked");_h7k._3rh(_0sn); }return true;};_0hk._dn4=function(_eqi){"use strict";var _01k=_eqi.parentNode;var _utn=_7hn._x5g(_01k, "treeNode");for(var i=0;i< _utn.length;i++){var _0sn=_utn.item(i);if(_0sn!=_eqi&&_0sn.getAttribute("checked")=="true"){return false;}}return true;};_0hk._we5=function(_x38,_h7k,_9li){"use strict";if (_x38.getAttribute("checked") != "true"){if(_x38!=_9li){_x38.setAttribute("checked", "true");_h7k._3rh(_x38);}this._yth(_x38.parentNode, _h7k, _9li);}else{}};_0hk._yth=function(_v4l,_h7k,_9li){"use strict";if (_v4l.getAttribute("checked") != "true"){if(_v4l!=_9li){_v4l.setAttribute("checked", "true");_h7k._3rh(_v4l);}this._vi4(_v4l, _h7k, _9li);} else{}};_0hk._vi4=function(_v4l,_h7k,_9li){"use strict";var _s2h=_8qn._4q1(_v4l);while(_s2h&&_s2h.getAttribute("checked") != "true"){if(_s2h!=_9li){_s2h.setAttribute("checked", "true");_h7k._3rh(_s2h);}_s2h=_8qn._4q1(_s2h);}};_0hk._if=function(_x38,_h7k,_9li){"use strict";var _utn=_7hn._x5g(_x38, "treeNode");for(var i=0;i< _utn.length;i++){var _eqi=_utn.item(i);if(_eqi.getAttribute("checked")=="true"){return;}}var _zqa=_7hn._ij8(_x38, "treeNode[@value='" + this._xyh[0] + "']");if(_9li!=_zqa){_zqa.setAttribute("checked", "true");_h7k._3rh(_zqa); }};_0hk._lq2=function(_h7k){"use strict";var _ss6=!!_7hn._ij8(_h7k._cr9(), "//treeNode[@value='lcGroup' and @checked='true']")&&!_7hn._ij8(_h7k._cr9(), "//treeNode[@value='lcGroupFooter' and @checked='true']");var _s6n=this._2oh("chkEnableCollapse");if(_s6n.checked&&!_ss6){_s6n.checked=false;}_4qn._j96(_s6n, _ss6);};_0hk._jo9=function(){this._2oh( "_0hk_content" ).style.width = this._m56() + "px";};_0hk._4e1=function(){return 300;};_0hk._1q1=function(){return 300;};
|