C_PromptTime.js 1.7 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: cchl
  3. // (C) Copyright IBM Corp. 2003, 2016.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function C_PromptTime(_c7T, _cO21, _cCB1, _cTS){G_HAL.F_VerifyDependencies("G_ResManager");G_HAL.F_VerifyDependencies("U_PromptInputParser");G_HAL.F_VerifyDependencies("C_PromptBaseTimeTextBox");this.F_ConstructBaseClass(_c7T, _cO21, _cCB1, _cTS);this._c0D();if(!_cTS){this._cO7();}this._c2();if(this._cSQ){_c7T.classList.add(C_PromptControl.M_sClassPTI);this.F_UpdateControlStyle(_c7T);}var _cNG=this._cBT1();this._cAB;if(this._c0P1){G_HAL.F_VerifyDependencies("C_PromptRange");this._cAB=new C_PromptRange(_cNG, _cO21, this, C_PromptRange._c1S1, this.F_GetSimpleDefaultValue());}else{if(this._cSQ){_cNG=C_PromptPublicControl.F_CreateParentTable(_cNG);}this._cAB=new C_PromptBaseTimeTextBox(_cNG, _cO21, this, false, this.F_GetSimpleDefaultValue());}if(!this._c8O){this.F_PromptControl_OnValueChange();}};C_PromptTime.F_Extends(C_PromptPublicControl);C_PromptTime.prototype._c0D=function(){C_PromptTime.superClass._c0D.call(this);this._cWX=(this._cWM.getAttribute("showSeconds")==="true"?true:false);this._c1E=(this._cWM.getAttribute("showMilliseconds")==="true"?true:false);};C_PromptTime.prototype._c2=function(){var _cEW=( this._cWM.getAttribute( "showSeconds" )=="true" );var _cTC=( this._cWM.getAttribute( "showMilliseconds" )=="true" );for(var i=0;this._c8O&&(i<this._c8O.length);i++){this._c8O[ i ].F_SetDisplayProperties(_cEW, _cTC);}};C_PromptTime.prototype.F_CreateSimpleValue=function(){return new C_TimeValue(this._c0P1, null, this._cWX, this._c1E);};