_tp1.js 6.3 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: irot
  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. function _tp1(_451, _vl7, _v35, _w35, _nc2){_be9._452("_4l6");this._q31=_451;this._q31._xm1=this;this._0d7=_vl7||null;this._6s6=null;this._6v4=_v35||_4l6._m67("IDS_CCHL_MSG_TEXT_CONDITION");this._7v4=_w35||_4l6._m67("IDS_CCHL_MSG_STYLE");this._z92=_nc2||false;};_tp1.prototype._1o8=function(){this._lm4();var _yp7=this._q31.childNodes[ 0 ];var _mf8=this._q31.childNodes[ 1 ];this._q31.removeChild(_yp7);this._q31.removeChild(_mf8);this._q31._xm1=null;};_tp1.prototype._cs1=function(_x17){this._gq2=_x17;};_tp1.prototype._f89=function(){this._q31.style.height="200px";this._q31.className="clsListView";this._q31.style.overflow="hidden";var _yp7=this._q31.appendChild(document.createElement("table"));_io4._h81(_yp7);this._dp4(_yp7);var _k86=this._q31.appendChild(document.createElement("div"));_k86.style.height=this._q31.clientHeight-_yp7.offsetHeight+"px";_k86.style.width="100%";_k86.style.overflow="auto";_k86.style.verticalAlign="top";this._p41=_k86.appendChild(document.createElement("table"));this._p41.style.width="100%";this._p41.setAttribute( "cellSpacing", "0" );this._p41.setAttribute( "cellPadding", "0" );this._p41.style.borderCollapse="collapse";_io4._h81(this._p41);};_tp1.prototype._dp4=function(_zf9){_zf9.style.width="100%";_zf9.setAttribute( "cellSpacing", "0" );_zf9.setAttribute( "cellPadding", "0" );var _bh9=_zf9.insertRow(0);_bh9.className="clsCCHLtableHeader";this._wq2=_bh9.insertCell(0);this._wq2.style.width=this._gq2||(this._q31.clientWidth-240+"px");this._w24(this._wq2, this._6v4);var _461=_bh9.insertCell(1);this._w24(_461, this._7v4);};_tp1.prototype._w24=function(_ah9,_ux8){var _2f9=_ah9.appendChild(document.createElement("div"));_2f9.className="clsListViewColumnHeader";_2f9.innerHTML=_ux8;};_tp1.prototype._x67=function(_5h4,_xu8,_o55){if(typeof _xu8=="undefined"){_xu8=((this._p41.rows.length)<2)?this._p41.rows.length:(this._p41.rows.length-1);}var _bh9=this._p41.insertRow(_xu8);_bh9.className="clsListItem_normal";var _ah9=_bh9.insertCell(0);_ah9.className="clsListItem_gridLine";_ah9.style.width=this._wq2.clientWidth-1+"px";_ah9.onmousedown=_tp1._uj1;_ah9.ondblclick=_tp1._zu1;_ah9.id=this._q31.id+"_idx_" + this._p41.rows.length; var _ok5=_ah9.appendChild(document.createElement("div"));_ok5.style.textOverflow="ellipsis";_ok5.style.overflow="hidden";_ok5.style.whiteSpace="nowrap";_ok5.style.margin="2px 5px 2px 5px";_ok5.style.width=this._wq2.clientWidth-11+"px";if(_o55){_ok5.innerHTML='<svg class="clsSvgIcon16x16" style="margin:1px 2px 1px 1px;"><use xlink:href="#' + _o55 + '"/></svg>';}var _xp7=_ok5.appendChild(document.createElement("span"));_xp7.style.paddingLeft="2px";_xp7.style.verticalAlign="middle";_fe9._u95(_xp7, _5h4);if(_be9._kl6["hal"]["enableAccessibility"]){_ok5.tabIndex=0;_ok5.setAttribute( "aria-labelledby", ( _fe9._9h2( this._wq2 ) + " " + _fe9._9h2( _xp7 ) ) );}_bh9._094=_5h4;var _xc3=_bh9.insertCell(1);_xc3.className="clsListItem_gridLine";var _2s2=_xc3.appendChild(document.createElement("div"));_2s2.style.overflow="hidden";_2s2.style.whiteSpace="nowrap";_2s2.style.margin="2px 5px 2px 5px";if(this._0d7&&this._0d7._95){var _2v2=_2s2.appendChild(document.createElement("table"));_2v2.setAttribute( "cellSpacing", "0" );_2v2.setAttribute( "cellPadding", "0" );_2v2.id=this._q31.id+"_idx_" + this._p41.rows.length + "_tbl"; _io4._h81(_2v2);var _ht2=this._0d7._95(_2v2);_bh9._mp2=_ht2;}};_tp1.prototype._ri2=function(){if(!this._6s6){return;}if(this._0d7&&this._0d7._b5){this._0d7._b5(this._6s6.parentNode._mp2);}this._6s6.parentNode.parentNode.removeChild(this._6s6.parentNode);this._6s6=null;};_tp1.prototype._lm4=function(){var _ui7=this._nv5();for(var i=0;i<_ui7;i++){var _bh9=this._p41.rows.item(0);if(this._0d7&&this._0d7._b5){this._0d7._b5(_bh9._mp2);}_bh9.parentNode.removeChild(_bh9);}this._6s6=null;};_tp1._uj1=function(e){ if(_be9._co4&&_be9._co4._h5){_be9._co4._h5(e);}e.stopPropagation();var _ul7=this.parentNode.parentNode.parentNode.parentNode.parentNode._xm1;if((this.parentNode.rowIndex+1)==this.parentNode.parentNode.rows.length&&!_ul7._z92){return;}_ul7._3a7(this);if(_ul7._0d7&&_ul7._0d7._a5){_ul7._0d7._a5(this.parentNode.rowIndex);}};_tp1._zu1=function(e){ if(_be9._co4&&_be9._co4._h5){_be9._co4._h5(e);}e.stopPropagation();var _ul7=this.parentNode.parentNode.parentNode.parentNode.parentNode._xm1;if((this.parentNode.rowIndex+1)==this.parentNode.parentNode.rows.length&&!_ul7._z92){return;}_ul7._3a7(this);if(_ul7._0d7&&_ul7._0d7._f2){_ul7._0d7._f2(this.parentNode.rowIndex);}};_tp1.prototype._3a7=function(_py8){if(this._6s6==_py8){return;}if(this._6s6){this._6s6.className="clsListItem_gridLine";}_py8.className += " clsListItem_selected";this._6s6=_py8;};_tp1.prototype._li2=function(){if(!this._6s6){return;}var _c57=this._6s6.parentNode;var _588=this._6s6.parentNode.previousSibling;if(_588){_c57.parentNode.insertBefore(_c57, _588);}};_tp1.prototype._tr1=function(){if(!this._6s6){return;}var _c57=this._6s6.parentNode;var _588=this._6s6.parentNode.nextSibling;if(_588){_c57.parentNode.insertBefore(_c57, _588.nextSibling);}};_tp1.prototype._ar1=function(){if(!this._6s6){return null;}return this._6s6.parentNode.rowIndex;};_tp1.prototype._nv5=function(){if(!this._p41.firstChild){return 0;}else{return this._p41.firstChild.childNodes.length;}};_tp1.prototype._9r1=function(){return this._6s6.parentNode._mp2;};_tp1.prototype._a77=function(_xu8,_pj5){var _d57=this._p41.rows.item(_xu8);if(_d57){this._3a7(_d57.cells.item(0));if((_pj5===true)&&this._0d7&&this._0d7._a5){this._0d7._a5(_xu8);}}};_tp1.prototype._gx5=function(){if(this._6s6){this._6s6.className="clsListItem_gridLine";}this._6s6=null;};_tp1.prototype._o95=function(_xu8,_5h4){var _bh9=this._p41.rows.item(_xu8);if(_bh9){_bh9._094=_5h4;var _2f9=_bh9.cells.item(0).firstChild;_fe9._u95(_2f9, _5h4);}};_tp1.prototype._c22=function(){var _i56=[];for(var i=0;i<this._nv5();i++){var _bh9=this._p41.rows.item(i);_i56.push(new _m57(_bh9._094, _bh9._mp2));}return _i56;};_tp1.prototype._404=function(_xu8){var tr=this._p41.rows.item(_xu8);tr.style.display="none";};_tp1.prototype._hh1=function(_xu8){var tr=this._p41.rows.item(_xu8);tr.style.display="";};_tp1.prototype._8j2=function(){var _ju8=this._nv5();for(var i=0; i<_ju8; i++){this._hh1(i);}};