123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: irot
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function _961(_lp1, _0c6, _vl7, _a45){_be9._452("_4l6");_be9._452("_4k2");_be9._452("_0g2");_be9._452("_ry");_961.baseConstructor.call(this, _lp1, _0c6, _vl7, _a45);this._o43=false;this._yk2();this._a99();};_9t7._v88(_961, _zf2);_961.prototype._1o8=function(){this._9b2._1o8();this._lp8();};_961.prototype._cz8=function(){this._9b2._cz8();};_961.prototype._yk2=function(){_961.superClass._yk2.call(this);this._rt4=0;this._zo6=null;this._nb7=null;this._fm3=false;this._f09=(this._dv4&&this._2m2(this._dv4))?_4k2._677(this._dv4, _4k2._692, this._264):new Date();if(this._j74.getAttribute("calendar")){this._rt4=( this._j74.getAttribute( "calendar" )=="Imperial" )?1:0;}var _m27=this._j74.getAttribute("firstDate");if(_m27&&this._2m2(_m27)){this._zo6=_4k2._677(_m27, _4k2._692, this._264);}var _9o7=this._j74.getAttribute("lastDate");if(_9o7&&this._2m2(_9o7)){this._nb7=_4k2._677(_9o7, _4k2._692, this._264);}if(this._j74.getAttribute("DateTime")){this._fm3=( this._j74.getAttribute( "DateTime" )=="true" )?true:false;}if(this._nb7&&(this._f09>this._nb7)){this._f09=new Date(this._nb7.valueOf());}if(this._zo6&&(this._f09<this._zo6)){this._f09=new Date(this._zo6.valueOf());}};_961.prototype._a99=function(){var _re4=this._411();var _c12=this._h73.insertRow(0);var _dx3=_c12.insertCell(0);_dx3.style.verticalAlign="top";var _vc3=_dx3.appendChild(document.createElement("table"));_io4._h81(_vc3);this._lk1(_vc3, "tblDateTextBox");if(this._5t4){_vc3.classList.add(_1k4._bb5);_vc3.setAttribute("nemesis_id","PromptControl");if(_kx5._y14){_vc3.classList.add(_1k4._cb5);}if(_fe9._a04(_vc3)){_vc3.classList.add("clsDirectionRtl");}}_1k4._sv2(_re4, _4l6._m67("IDS_CCHL_AC_DATE"));this._9b2=new _0g2(_vc3, _re4, this, _4k2._3c(this._f09));if(!this._5t4){this._h73.style.width=_vc3.offsetWidth+"px";}var _4t5=_c12.insertCell(1);_4t5.className="clsCCHLDatePickerButton";_4t5.style.verticalAlign="top";_4t5.style.width="32px";var _805=_4t5.appendChild(document.createElement("img"));this._lk1(_805, "imgDatePicker");_805.className="clsCCHLToolbarButton clsCCHLDatePickerButton";_805.src=_be9._7v5((this._k53>=11.5)?"cchl/images/icon_datepicker_11_5.gif":"cchl/images/icon_datepicker.gif");_805.onmouseout=_961._zj1;_805.onmousedown=_961._za1;if(_be9._kl6["hal"]["enableAccessibility"]){_805.tabIndex=0;_805.setAttribute( "role", "button" );_805.alt=_4l6._m67("IDS_CCHL_AC_DATE_PICKER");_805.onkeydown=_961._4v1;}this._8u4=_805;};_961.prototype._411=function(){var _it8=this._j74.ownerDocument;var _re4=_it8.createElement("promptTextBox");_ie9._jk4(_re4, this._j74, "useStyleVersion");_re4.setAttribute( "required", ( this._gb7?"true":"false" ) );_re4.setAttribute("parameter", this._qr6);_re4.setAttribute( "multiSelect", (!this._3f5?"false":"true") );_re4.setAttribute( "validation", "date" );_re4.setAttribute( "formatting", "date" );_re4.setAttribute( "hideAdornments", ( this._qm3?"true":"false" ) );_re4.setAttribute( "multiLine", "false" );_re4.setAttribute( "hideText", "false" );_re4.setAttribute( "calendar", ( this._rt4==0?"Gregorian":"Imperial" ) );_re4.setAttribute( "renderAdornmentsCell", ( this._6c1?"true":"false" ) );if(this._j74.getAttribute("firstDate")){_re4.setAttribute( "firstDate", this._j74.getAttribute( "firstDate" ) );}if(this._j74.getAttribute("lastDate")){_re4.setAttribute( "lastDate", this._j74.getAttribute( "lastDate" ) );}if(this._j74.getAttribute("specname")){_re4.setAttribute("specname", "promptTextBox");}return _re4;};_961.prototype._2m2=function(_hy8){return !!_hy8.match(/^\d\d\d\d-\d\d-\d\d$/gi);};_961._zj1=function(e){e.stopPropagation();var _he2=this.parentNode.parentNode.parentNode.parentNode._b84;if(_he2._o43){_he2._o43=false;}};_961.prototype._m6=function(){this._ti1();};_961.prototype._54=function(){this._n11();};_961._za1=function(e){if(_be9._co4&&_be9._co4._h5){_be9._co4._h5(e);}e.stopPropagation();var _he2=this.parentNode.parentNode.parentNode.parentNode._b84;_he2._5z5();_he2._wv1();};_961._4v1=function(e){if(e.keyCode===_fe9._687){e.stopPropagation();var _he2=this.parentNode.parentNode.parentNode.parentNode._b84;_he2._5z5();_he2._wv1();}};_961.prototype._wv1=function(){this._o43=true;var _kt3=this._j74.cloneNode(true);_vo8._w89("cchl/dialogs/_4y3", this._8u4, this, _kt3, this._f09?_4k2._3c(this._f09):null, this._5t4);};_961.prototype._fu5=function(){this._f09=new Date(_4y3._cl4().valueOf());this._9b2._es7(_4k2._gl4(this._f09, this._rt4, this._264));this._o43=false;};_961.prototype._1a=function(){if(_4y3._804()){this._f09=new Date(_4y3._cl4().valueOf());this._9b2._es7(_4k2._gl4(this._f09, this._rt4, this._264));if(!this._3f5){this._xu();}}};_961.prototype._cl4=function(){return this._f09;};_961.prototype._598=function(){return this._9b2._je3();};_961.prototype._hc=function(_8g4){if(_8g4._pn4()){if(this._rt4==1){this._f09=_4k2._5s7(_8g4._je3(), _4k2._hv5("dateOrder", this._264), this._264);}else{this._f09=_4k2._677(_8g4._je3(), _4k2._hv5("dateOrder", this._264), this._264);}this._f09=(this._f09===false)?null:this._f09;}};_961.prototype._th2=function(){var _l07;if(!this._f09){_l07=new _n57(false, null, this._rt4, this._fm3);}else{_l07=new _n57(false, _4k2._3c(this._f09), this._rt4, this._fm3);}return _l07;};_961.prototype._681=function(){this._5z5();};_961.prototype._hk6=function(_pe8){this._9b2._hk6(_pe8);if(_be9._kl6["hal"]["enableAccessibility"]){this._8u4.tabIndex=_pe8?0:-1;}};_961.prototype._cq1=function(){this._f09=new Date();if(this._nb7&&this._f09>this._nb7){this._f09=new Date(this._nb7.valueOf());}if(this._zo6&&this._f09<this._zo6){this._f09=new Date(this._zo6.valueOf());}this._9b2._es7(_4k2._gl4(this._f09, this._rt4, this._264));};_961.prototype._3j2=function(_8x8){var _tp7=this._rk6(_8x8);if(!_tp7||!_tp7.match(/^\d+-\d{1,2}-\d{1,2}$/g)){this._cq1();}else{var _le8=_tp7.split(/-/);this._f09=new Date(_le8[0], _le8[1]-1, _le8[2]);this._9b2._es7(_4k2._gl4(this._f09, this._rt4, this._264));}};_961.prototype._0a5=function(_u96){if(this._9b2){this._9b2._0a5(_u96);}};
|