_l12.js 9.0 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 _l12(_4v2, _lt3, _vl7, _4e1, _a45){_be9._452("_4l6");_be9._452("_4k2");_be9._452("_ry");_be9._452("_a61");_l12.baseConstructor.call(this, _4v2, _lt3, _vl7, _a45);this._yk2();this._pg5;this._8h5;this._8c1=_4e1;this._2b2 ={"date":null,"time":null};this._4e;this._ba2=_4v2;this._a99();};_9t7._v88(_l12, _zf2);_l12.prototype._1o8=function(){this._pg5._1o8();this._8h5._1o8();this._lp8();};_l12.prototype._cz8=function(){this._pg5._cz8();};_l12.prototype._yk2=function(){_l12.superClass._yk2.call(this);this._fp2=0;if(this._j74.getAttribute("selectDateTimeUI")){switch(this._j74.getAttribute("selectDateTimeUI")){case "mixed":this._fp2=2;break;case "editBox":this._fp2=1;break;case "calendar":default:this._fp2=0;break;}}};_l12.prototype._qa1=function(_hy8){return !!_hy8.match(/^\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d\.\d\d\d$/gi);};_l12.prototype._a99=function(){var _0c6=this._it1();var _2c6=this._jt1();_0c6.setAttribute("specname", "promptDateTime");_2c6.setAttribute("specname", "promptDateTime");var _au2=null;var _bu2=null;if(this._dv4&&this._qa1(this._dv4)){var _7w4=this._dv4.split( " " );_au2=_7w4[ 0 ];_bu2=_7w4[ 1 ];}switch(this._fp2){case 0:this._yb5(_0c6, _2c6, _au2, _bu2);break;case 1:this._0z5(_0c6, _2c6, _au2, _bu2);break;case 2:this._797(_0c6, _2c6, _au2, _bu2);break;}this._4e=null;};_l12.prototype._yb5=function(_0c6,_2c6,_au2,_bu2){var _657=this._h73.insertRow(0);var _3t5=_657.insertCell(0);if(this._gb7&&!this._qm3){this._tk2(_3t5);}else if(!this._gb7&&!this._gq8&&!this._3f5){this._ru(_3t5);}var _qy8=_657.insertCell(1);_qy8.style.paddingLeft="5px";_qy8.style.verticalAlign="top";_qy8.className="clsCCHLBoundingBox";var _qm8=_qy8.appendChild(document.createElement("table"));_io4._h81(_qm8);if(this._5t4){_qm8.classList.add(_1k4._bb5);if(_kx5._y14){_qm8.classList.add(_1k4._cb5);}if(_fe9._a04(_qm8)){_qm8.classList.add("clsDirectionRtl");}}this._4e="date";this._pg5=new _ry(_qm8, _0c6, this, false, _au2, this._ba2);var _uy8=_657.insertCell(2);_uy8.style.verticalAlign="top";_uy8.className="clsCCHLBoundingBox";var _sm8=_uy8.appendChild(document.createElement("table"));_io4._h81(_sm8);if(this._5t4){_sm8.classList.add(_1k4._bb5);if(_kx5._y14){_sm8.classList.add(_1k4._cb5);}if(_fe9._a04(_sm8)){_sm8.classList.add("clsDirectionRtl");}}this._4e="time";this._8h5=new _a61(_sm8, _2c6, this, this._8c1, _bu2, this._ba2);};_l12.prototype._0z5=function(_0c6,_2c6,_au2,_bu2){var _657=this._h73.insertRow(0);var _3t5=_657.insertCell(0);if(this._gb7&&!this._qm3){this._tk2(_3t5);}else if(!this._gb7&&!this._gq8&&!this._3f5){this._ru(_3t5);}var _257=_657.insertCell(1);var _th6=_257.appendChild(document.createElement("table"));_th6.setAttribute( "cellSpacing", "0" );_th6.setAttribute( "cellPadding", "0" );_io4._h81(_th6);var _vy8=_th6.insertRow(0);var _qy8=_vy8.insertCell(0);_qy8.style.paddingLeft="5px";_qy8.style.verticalAlign="top";_qy8.className="clsCCHLBoundingBox";var _qm8=_qy8.appendChild(document.createElement("table"));_io4._h81(_qm8);this._lk1(_qm8, "tblDate");if(this._5t4){_qm8.classList.add(_1k4._bb5);_qm8.setAttribute("nemesis_id","PromptControl");if(_kx5._y14){_qm8.classList.add(_1k4._cb5);}if(_fe9._a04(_qm8)){_qm8.classList.add("clsDirectionRtl");}}this._4e="date";this._pg5=new _961(_qm8, _0c6, this, _au2);var _0z8=_th6.insertRow(1);var _uy8=_0z8.insertCell(0);_uy8.style.paddingLeft="5px";_uy8.style.verticalAlign="top";_uy8.className="clsCCHLBoundingBox";_uy8.style.paddingTop="0px";var _sm8=_uy8.appendChild(document.createElement("table"));_io4._h81(_sm8);this._lk1(_sm8, "tblTime");if(this._5t4){_sm8.classList.add(_1k4._bb5);_sm8.setAttribute("nemesis_id","PromptControl");if(_kx5._y14){_sm8.classList.add(_1k4._cb5);}if(_fe9._a04(_sm8)){_sm8.classList.add("clsDirectionRtl");}}this._4e="time";this._8h5=new _a61(_sm8, _2c6, this, this._8c1, _bu2, this._ba2);};_l12.prototype._797=function(_0c6,_2c6,_au2,_bu2){var _qy8=this._h73.insertRow(0).insertCell(0);var _qm8=_qy8.appendChild(document.createElement("table"));_io4._h81(_qm8);this._4e="date";this._pg5=new _ry(_qm8, _0c6, this, false, _au2);var _xh6=this._h73.insertRow(1).insertCell(0);_xh6.className="clsDialogText";_xh6.style.paddingTop="5px";_xh6.style.paddingBottom="1px";_fe9._u95(_xh6, _4l6._m67("IDS_CCHL_LBL_FONT_TIME"));var _uy8=this._h73.insertRow(2).insertCell(0);var _sm8=_uy8.appendChild(document.createElement("table"));_io4._h81(_sm8);this._4e="time";this._8h5=new _a61(_sm8, _2c6, this, this._8c1, _bu2);};_l12.prototype._it1=function(){var _it8=this._j74.ownerDocument;var _0c6=_it8.createElement("promptDate");_ie9._jk4(_0c6, this._j74, "useStyleVersion");if(this._j74.getAttribute("required")){_0c6.setAttribute( "required", this._j74.getAttribute( "required" ) );}if(this._j74.getAttribute("parameter")){_0c6.setAttribute( "parameter", this._j74.getAttribute( "parameter" ) );}if(this._j74.getAttribute("multiSelect")){_0c6.setAttribute( "multiSelect", this._j74.getAttribute( "multiSelect" ) );}if(this._j74.getAttribute("hideAdornments")){_0c6.setAttribute( "hideAdornments", this._j74.getAttribute( "hideAdornments" ) );}if(this._j74.getAttribute("calendar")){_0c6.setAttribute( "calendar", this._j74.getAttribute( "calendar" ) );}_0c6.setAttribute( "renderAdornmentsCell", "false" );var _m55;if((this._fp2==0)||(this._fp2==2)){_m55="calendar";}else{_m55="editBox";}_0c6.setAttribute("selectDateUI", _m55);if(this._j74.getAttribute("firstDate")){_0c6.setAttribute( "firstDate", this._j74.getAttribute( "firstDate" ) );}if(this._j74.getAttribute("lastDate")){_0c6.setAttribute( "lastDate", this._j74.getAttribute( "lastDate" ) );}if(this._j74.getAttribute("restrictInput")){_0c6.setAttribute( "restrictInput", this._j74.getAttribute( "restrictInput" ) );}if(this._j74.getAttribute("useValueEncoding")){_0c6.setAttribute( "useValueEncoding", this._j74.getAttribute( "useValueEncoding" ) );}return _0c6;};_l12.prototype._jt1=function(){var _it8=this._j74.ownerDocument;var _2c6=_it8.createElement("promptTime");_ie9._jk4(_2c6, this._j74, "useStyleVersion");if((this._fp2!=2)&&(this._j74.getAttribute("required"))){_2c6.setAttribute( "required", this._j74.getAttribute( "required" ) );}else if(this._fp2==2){_2c6.setAttribute( "required", "false" );}if(this._j74.getAttribute("parameter")){_2c6.setAttribute( "parameter", this._j74.getAttribute( "parameter" ) );}if(this._j74.getAttribute("multiSelect")){_2c6.setAttribute( "multiSelect", this._j74.getAttribute( "multiSelect" ) );}if(this._j74.getAttribute("hideAdornments")){_2c6.setAttribute( "hideAdornments", this._j74.getAttribute( "hideAdornments" ) );}_2c6.setAttribute( "renderAdornmentsCell", ( this._fp2 != 2 )?"false":"true" );_2c6.setAttribute( "selectTimeUI", ( this._fp2==0 )?"clock":"editBox" );if(this._j74.getAttribute("showSeconds")){_2c6.setAttribute( "showSeconds", this._j74.getAttribute( "showSeconds" ) );}if(this._j74.getAttribute("showMilliseconds")){_2c6.setAttribute( "showMilliseconds", this._j74.getAttribute( "showMilliseconds" ) );}if(this._j74.getAttribute("clockMode")){_2c6.setAttribute( "clockMode", this._j74.getAttribute( "clockMode" ) );}if(this._j74.getAttribute("restrictInput")){_2c6.setAttribute( "restrictInput", this._j74.getAttribute( "restrictInput" ) );}if(this._j74.getAttribute("useValueEncoding")){_2c6.setAttribute( "useValueEncoding", this._j74.getAttribute( "useValueEncoding" ) );}return _2c6;};_l12.prototype._th2=function(){var _3n7;var _vh7=( this._j74.getAttribute( "calendar" )=="Imperial" )?_qx3._w87:_qx3._ul6;var _gk5=( this._j74.getAttribute( "showSeconds" )=="true" );var _zr2=( this._j74.getAttribute( "showMilliseconds" )=="true" );if(this._a26&&!this._a26.checked){_3n7=null;}else{_3n7=this._pg5._th2()._tv5()+" " + this._8h5._th2()._tv5();}return(new _vj4(false, _3n7, _vh7, _gk5, _zr2));};_l12.prototype._m6=function(_7g4){switch(_7g4){case this._pg5:this._2b2[ "date" ]=true;break;case this._8h5:this._2b2[ "time" ]=true;break;}if(this._4e&&(this._4e=="date")){this._2b2[ "date" ]=true;}else if(this._4e&&(this._4e=="time")){this._2b2[ "time" ]=true;}if(this._2b2[ "date" ]&&this._2b2[ "time" ] ){this._zk1(true);this._ti1();}};_l12.prototype._54=function(_7g4){switch(_7g4){case this._pg5:this._2b2[ "date" ]=false;break;case this._8h5:this._2b2[ "time" ]=false;break;}if(this._4e&&(this._4e=="date")){this._2b2[ "date" ]=false;}else if(this._4e&&(this._4e=="time")){this._2b2[ "time" ]=false;}this._zk1(false);this._n11();};_l12.prototype._681=function(){this._5z5();};_l12.prototype._hk6=function(_pe8){if(this._pg5._hk6){this._pg5._hk6(_pe8);}if(this._8h5._hk6){this._8h5._hk6(_pe8);}};_l12.prototype._1a=function(){if(!this._3f5){this._xu();}};_l12.prototype._cq1=function(){this._pg5._cq1();this._8h5._cq1();};_l12.prototype._3j2=function(_8x8){var _tp7=this._rk6(_8x8);if(!_tp7||!_tp7.match(/^\d+-\d{1,2}-\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2}.\d{1,3}$/g)){this._cq1();}else{var _le8=_tp7.split(/\s+/);this._pg5._3j2({"use": _le8[0]});this._8h5._3j2({"use": _le8[1]});}};_l12.prototype._0a5=function(_u96){this._pg5._0a5(_u96);this._8h5._0a5(_u96);};