_1qc.js 4.4 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 _1qc=new _lcm( "_1qc", "dlgAppProperties" );_1qc._5z2=function(){var _83m=_erh._vtc();var _u8h=_83m.selectSingleNode("appProperties/appWindowSize/*");var _t8h=_83m.selectSingleNode("appProperties/appWindowIcon");var _3mf=_83m.selectSingleNode("appProperties/appWindowTitle");var _s1l=_agm._ksc(_83m);this._2oh("chkCompressOutput").checked = !_83m.selectSingleNode("appProperties[@compressOutput='false']");this._d0n._5uk=new _npc( this._2oh( "tblTxtWidth" ), this._53g( "HeightWidth" ), this, null );this._d0n._xlj=new _npc( this._2oh( "tblTxtHeight" ), this._53g( "HeightWidth" ), this, null );var _zdk=_u8h?_u8h.nodeName:"";switch(_zdk){case "appWindowSizeMaximize":this._2oh("radSize_Maximize").checked=true;break;case "appWindowSizeFixed":this._2oh("radSize_Fixed").checked=true;this._d0n._xlj._3kk(_u8h.getAttribute("height"));this._d0n._5uk._3kk(_u8h.getAttribute("width"));break;default:this._2oh("radSize_BrowserDefault").checked=true;break;}this._bi8();this._2oh("txtMaxRows").value=_s1l;_4qn._0s(this._2oh("txtMaxRows"), this._fmb.bind(this), true, "integer");var _k7c=_83m.selectSingleNode("appProperties/appAccess");this._2oh("txtAccessCode").value = _k7c?this._iz3(_k7c.getAttribute("accessCode")):"";this._2oh("txtWindowIcon").value=_8qn._w2g(_t8h);this._d0n._wye=_3mf ?_erh._e5j(_3mf, true):_erh._z5b("appWindowTitle/defaultText");this._eo7();};_1qc._o46=function(){_4qn._0j(this._2oh("txtMaxRows"));};_1qc._bgn=function(){var _83m=_erh._vtc();_erh._ybb();var _awk=this._z0n(_83m);if(_awk){_8qn._cqh(_83m, "appProperties[not(*)]");_erh._iee();}else{_erh._5c7();}this._3le();};_1qc._z0n=function(_83m){var _u8h;if(this._2oh("radSize_Maximize").checked){_u8h=_erh._cnh("appWindowSizeMaximize");}else if(this._2oh("radSize_Fixed").checked){var _r8m=this._d0n._xlj._yp9();var _yxm=this._d0n._5uk._yp9();if(!_r8m||!_yxm){_67j("IDS_MSG_APP_WINDOWSIZEMISSING", null, _2dm._bfm);return false;}_u8h=_erh._cnh("appWindowSizeFixed");_u8h.setAttribute("width", _yxm);_u8h.setAttribute("height", _r8m);}var _nel=this._2oh("txtMaxRows").value;var _r7c=_erh._h56(_83m, "appProperties");_8qn._k5g(_r7c, "*[not (self::appVariables)]");this._plb();if(this._d0n._wye.selectSingleNode("defaultText[text() != '']")){_r7c.appendChild(_erh._woh(this._d0n._wye));}if(_u8h){_erh._u0g(_r7c, "appWindowSize").appendChild(_u8h);}var _9lh=this._2oh("txtWindowIcon").value;if(_9lh){var _t8h=_erh._u0g(_r7c, "appWindowIcon");_t8h.text=_9lh;}if(_nel){var _n1h=_erh._u0g(_r7c, "appMaxRows");_n1h.setAttribute("value", _nel);}var _odh=this._2oh("txtAccessCode").value;if(_odh){var _k7c=_erh._u0g(_r7c, "appAccess");_k7c.setAttribute("accessCode", this._tj5(_odh));}_erh._6k8([_r7c], "compressOutput", this._2oh( "chkCompressOutput" ).checked?"true":"false", "true");return true;};_1qc._ai8=function(){var _83m=_erh._vtc();var _jtd=_83m.cloneNode(true);var _awk=this._z0n(_jtd);if(_awk){var _sz4=_jtd.selectSingleNode("appProperties");_8qn._k5g(_sz4, "*[not(self::appWindowSize | self::appMaxRows)]");var _x84=_agm._juc(_jtd, _sz4);_qkk._3kk("DefaultAppProperties", _x84);}};_1qc._plb=function(){var _jxm=this._2oh("txtDefaultText").value;var _4hf=this._d0n._wye.selectSingleNode("defaultText");_4hf.text=_jxm;};_1qc._2p3=function(){this._plb();_8fm._jgn( "_7qc", this._d0n._wye, null, new _izf(this, {"_io9":"_eo7"}), _frh._c6j("IDS_TITLE_APP_WINDOWTITLE"), null, false );};_1qc._eo7=function(){var _4hf=this._d0n._wye.selectSingleNode("defaultText");this._2oh("txtDefaultText").value=_8qn._w2g(_4hf);};_1qc._fmb=function(){};_1qc._bi8=function(){var _mdi=this._2oh("radSize_Fixed").checked;this._obb("divFixedSize", _mdi);this._d0n._5uk._mqh(_mdi);this._d0n._xlj._mqh(_mdi);};_1qc._if4=function(){_8fm._jgn( "cchl/dialogs/_uce", this._xp9(), this._2oh("txtWindowIcon").value, this._lv8.bind(this), null, ["image/x-icon"] );};_1qc._lv8=function(){this._2oh("txtWindowIcon").value=_uce._zdm();};_1qc._iz3=function(_gon){var _4lm=_cgm._5ik(_gon);var _m9m="";for(var i=_4lm.length-1;i>0;i -=2){_m9m+= _4lm[i];}return _m9m;};_1qc._tj5=function(_gon){var _4lm=_cgm._5ik(_gon);var _m9m="";var i=_4lm.length;var _hzg="!".charCodeAt(0);while(i--){var _ovj=_hzg+Math.floor(Math.random()*90);_m9m+= String.fromCharCode(_ovj);_m9m+= _4lm[i];}return _m9m;};