_536.js 9.0 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. function _536(_5c8, _rsa, _b6k, _654, _u5e){_zpn._la6("_frh");_zpn._la6("_tf7");_zpn._la6("_jx2");_zpn._la6("_fk3");_536.baseConstructor.call(this, _5c8, _rsa, _b6k, _u5e);this._9i7();this._aze;this._m0f;this._w04=_654;this._9p6 ={"date":null,"time":null};this._gb1;this._in6=_5c8;this._8hn();};_olk._vjl(_536, _u47);_536.prototype._fdm=function(){this._aze._fdm();this._m0f._fdm();this._igm();};_536.prototype._dzm=function(){this._aze._dzm();};_536.prototype._9i7=function(){_536.superClass._9i7.call(this);this._is7=0;if(this._9sb.getAttribute("selectDateTimeUI")){switch(this._9sb.getAttribute("selectDateTimeUI")){case "mixed":this._is7=2;break;case "editBox":this._is7=1;break;case "calendar":default:this._is7=0;break;}}};_536.prototype._3x3=function(_uxm){return !!_uxm.match(/^\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d\.\d\d\d$/gi);};_536.prototype._8hn=function(){var _h6h=this._pe5();var _k6h=this._qe5();_h6h.setAttribute("specname", "promptDateTime");_k6h.setAttribute("specname", "promptDateTime");var _q98=null;var _s98=null;if(this._0hd&&this._3x3(this._0hd)){var _0jd=this._0hd.split( " " );_q98=_0jd[ 0 ];_s98=_0jd[ 1 ];}switch(this._is7){case 0:this._ine(_h6h, _k6h, _q98, _s98);break;case 1:this._yag(_h6h, _k6h, _q98, _s98);break;case 2:this._3bj(_h6h, _k6h, _q98, _s98);break;}this._gb1=null;};_536.prototype._ine=function(_h6h,_k6h,_q98,_s98){var _u3j=this._e39.insertRow(0);var _xyf=_u3j.insertCell(0);if(this._6fj&&!this._x8a){this._sh7(_xyf);}else if(!this._6fj&&!this._fim&&!this._xue){this._qm2(_xyf);}var _hym=_u3j.insertCell(1);_hym.style.paddingLeft="5px";_hym.style.verticalAlign="top";_hym.className="clsCCHLBoundingBox";var _qbm=_hym.appendChild(document.createElement("table"));_k0d._9q3(_qbm);if(this._dbd){_qbm.classList.add(_mpc._sle);if(_o7g._kdb){_qbm.classList.add(_mpc._ule);}if(_4qn._59b(_qbm)){_qbm.classList.add("clsDirectionRtl");}}this._gb1="date";this._aze=new _jx2(_qbm, _h6h, this, false, _q98, this._in6);var _oym=_u3j.insertCell(2);_oym.style.verticalAlign="top";_oym.className="clsCCHLBoundingBox";var _sbm=_oym.appendChild(document.createElement("table"));_k0d._9q3(_sbm);if(this._dbd){_sbm.classList.add(_mpc._sle);if(_o7g._kdb){_sbm.classList.add(_mpc._ule);}if(_4qn._59b(_sbm)){_sbm.classList.add("clsDirectionRtl");}}this._gb1="time";this._m0f=new _fk3(_sbm, _k6h, this, this._w04, _s98, this._in6);};_536.prototype._yag=function(_h6h,_k6h,_q98,_s98){var _u3j=this._e39.insertRow(0);var _xyf=_u3j.insertCell(0);if(this._6fj&&!this._x8a){this._sh7(_xyf);}else if(!this._6fj&&!this._fim&&!this._xue){this._qm2(_xyf);}var _m3j=_u3j.insertCell(1);var _klh=_m3j.appendChild(document.createElement("table"));_klh.setAttribute( "cellSpacing", "0" );_klh.setAttribute( "cellPadding", "0" );_k0d._9q3(_klh);var _qym=_klh.insertRow(0);var _hym=_qym.insertCell(0);_hym.style.paddingLeft="5px";_hym.style.verticalAlign="top";_hym.className="clsCCHLBoundingBox";var _qbm=_hym.appendChild(document.createElement("table"));_k0d._9q3(_qbm);this._lp4(_qbm, "tblDate");if(this._dbd){_qbm.classList.add(_mpc._sle);_qbm.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_qbm.classList.add(_mpc._ule);}if(_4qn._59b(_qbm)){_qbm.classList.add("clsDirectionRtl");}}this._gb1="date";this._aze=new _ek3(_qbm, _h6h, this, _q98);var _tym=_klh.insertRow(1);var _oym=_tym.insertCell(0);_oym.style.paddingLeft="5px";_oym.style.verticalAlign="top";_oym.className="clsCCHLBoundingBox";_oym.style.paddingTop="0px";var _sbm=_oym.appendChild(document.createElement("table"));_k0d._9q3(_sbm);this._lp4(_sbm, "tblTime");if(this._dbd){_sbm.classList.add(_mpc._sle);_sbm.setAttribute("nemesis_id","PromptControl");if(_o7g._kdb){_sbm.classList.add(_mpc._ule);}if(_4qn._59b(_sbm)){_sbm.classList.add("clsDirectionRtl");}}this._gb1="time";this._m0f=new _fk3(_sbm, _k6h, this, this._w04, _s98, this._in6);};_536.prototype._3bj=function(_h6h,_k6h,_q98,_s98){var _hym=this._e39.insertRow(0).insertCell(0);var _qbm=_hym.appendChild(document.createElement("table"));_k0d._9q3(_qbm);this._gb1="date";this._aze=new _jx2(_qbm, _h6h, this, false, _q98);var _olh=this._e39.insertRow(1).insertCell(0);_olh.className="clsDialogText";_olh.style.paddingTop="5px";_olh.style.paddingBottom="1px";_4qn._1je(_olh, _frh._c6j("IDS_CCHL_LBL_FONT_TIME"));var _oym=this._e39.insertRow(2).insertCell(0);var _sbm=_oym.appendChild(document.createElement("table"));_k0d._9q3(_sbm);this._gb1="time";this._m0f=new _fk3(_sbm, _k6h, this, this._w04, _s98);};_536.prototype._pe5=function(){var _aom=this._9sb.ownerDocument;var _h6h=_aom.createElement("promptDate");_8qn._9rc(_h6h, this._9sb, "useStyleVersion");if(this._9sb.getAttribute("required")){_h6h.setAttribute( "required", this._9sb.getAttribute( "required" ) );}if(this._9sb.getAttribute("parameter")){_h6h.setAttribute( "parameter", this._9sb.getAttribute( "parameter" ) );}if(this._9sb.getAttribute("multiSelect")){_h6h.setAttribute( "multiSelect", this._9sb.getAttribute( "multiSelect" ) );}if(this._9sb.getAttribute("hideAdornments")){_h6h.setAttribute( "hideAdornments", this._9sb.getAttribute( "hideAdornments" ) );}if(this._9sb.getAttribute("calendar")){_h6h.setAttribute( "calendar", this._9sb.getAttribute( "calendar" ) );}_h6h.setAttribute( "renderAdornmentsCell", "false" );var _k9e;if((this._is7==0)||(this._is7==2)){_k9e="calendar";}else{_k9e="editBox";}_h6h.setAttribute("selectDateUI", _k9e);if(this._9sb.getAttribute("firstDate")){_h6h.setAttribute( "firstDate", this._9sb.getAttribute( "firstDate" ) );}if(this._9sb.getAttribute("lastDate")){_h6h.setAttribute( "lastDate", this._9sb.getAttribute( "lastDate" ) );}if(this._9sb.getAttribute("restrictInput")){_h6h.setAttribute( "restrictInput", this._9sb.getAttribute( "restrictInput" ) );}if(this._9sb.getAttribute("useValueEncoding")){_h6h.setAttribute( "useValueEncoding", this._9sb.getAttribute( "useValueEncoding" ) );}return _h6h;};_536.prototype._qe5=function(){var _aom=this._9sb.ownerDocument;var _k6h=_aom.createElement("promptTime");_8qn._9rc(_k6h, this._9sb, "useStyleVersion");if((this._is7!=2)&&(this._9sb.getAttribute("required"))){_k6h.setAttribute( "required", this._9sb.getAttribute( "required" ) );}else if(this._is7==2){_k6h.setAttribute( "required", "false" );}if(this._9sb.getAttribute("parameter")){_k6h.setAttribute( "parameter", this._9sb.getAttribute( "parameter" ) );}if(this._9sb.getAttribute("multiSelect")){_k6h.setAttribute( "multiSelect", this._9sb.getAttribute( "multiSelect" ) );}if(this._9sb.getAttribute("hideAdornments")){_k6h.setAttribute( "hideAdornments", this._9sb.getAttribute( "hideAdornments" ) );}_k6h.setAttribute( "renderAdornmentsCell", ( this._is7 != 2 )?"false":"true" );_k6h.setAttribute( "selectTimeUI", ( this._is7==0 )?"clock":"editBox" );if(this._9sb.getAttribute("showSeconds")){_k6h.setAttribute( "showSeconds", this._9sb.getAttribute( "showSeconds" ) );}if(this._9sb.getAttribute("showMilliseconds")){_k6h.setAttribute( "showMilliseconds", this._9sb.getAttribute( "showMilliseconds" ) );}if(this._9sb.getAttribute("clockMode")){_k6h.setAttribute( "clockMode", this._9sb.getAttribute( "clockMode" ) );}if(this._9sb.getAttribute("restrictInput")){_k6h.setAttribute( "restrictInput", this._9sb.getAttribute( "restrictInput" ) );}if(this._9sb.getAttribute("useValueEncoding")){_k6h.setAttribute( "useValueEncoding", this._9sb.getAttribute( "useValueEncoding" ) );}return _k6h;};_536.prototype._c97=function(){var _c9k;var _2uj=( this._9sb.getAttribute( "calendar" )=="Imperial" )?_u3b._haj:_u3b._ith;var _3af=( this._9sb.getAttribute( "showSeconds" )=="true" );var _608=( this._9sb.getAttribute( "showMilliseconds" )=="true" );if(this._ohg&&!this._ohg.checked){_c9k=null;}else{_c9k=this._aze._c97()._l3g()+" " + this._m0f._c97()._l3g();}return(new _fpc(false, _c9k, _2uj, _3af, _608));};_536.prototype._vm=function(_rgc){switch(_rgc){case this._aze:this._9p6[ "date" ]=true;break;case this._m0f:this._9p6[ "time" ]=true;break;}if(this._gb1&&(this._gb1=="date")){this._9p6[ "date" ]=true;}else if(this._gb1&&(this._gb1=="time")){this._9p6[ "time" ]=true;}if(this._9p6[ "date" ]&&this._9p6[ "time" ] ){this._fq4(true);this._1l4();}};_536.prototype._me=function(_rgc){switch(_rgc){case this._aze:this._9p6[ "date" ]=false;break;case this._m0f:this._9p6[ "time" ]=false;break;}if(this._gb1&&(this._gb1=="date")){this._9p6[ "date" ]=false;}else if(this._gb1&&(this._gb1=="time")){this._9p6[ "time" ]=false;}this._fq4(false);this._j63();};_536.prototype._hp3=function(){this._dbg();};_536.prototype._mqh=function(_mvl){if(this._aze._mqh){this._aze._mqh(_mvl);}if(this._m0f._mqh){this._m0f._mqh(_mvl);}};_536.prototype._zx=function(){if(!this._xue){this._5n2();}};_536.prototype._o55=function(){this._aze._o55();this._m0f._o55();};_536.prototype._qc7=function(_3vm){var _ffk=this._zqh(_3vm);if(!_ffk||!_ffk.match(/^\d+-\d{1,2}-\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3}$/g)){this._o55();}else{var _4vl=_ffk.split(/\s+/);this._aze._qc7({"use": _4vl[0]});this._m0f._qc7({"use": _4vl[1]});}};_536.prototype._9je=function(_uyg){this._aze._9je(_uyg);this._m0f._9je(_uyg);};