123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: cchl
- // (C) Copyright IBM Corp. 2003, 2016.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- function C_PromptDateTime(_cVD, _cLI, _cCB1, _cTS){G_HAL.F_VerifyDependencies("G_ResManager");G_HAL.F_VerifyDependencies("U_PromptInputParser");G_HAL.F_VerifyDependencies("C_PromptBaseDateTime");this.F_ConstructBaseClass(_cVD, _cLI, _cCB1, _cTS);this._c0D();if(!_cTS){this._cO7();}this._c2();if(this._cSQ){_cVD.classList.add(C_PromptControl.M_sClassPDTC);this.F_UpdateControlStyle(_cVD);}var _cNG=this._cBT1();this._cAB=null;if(this._c0P1){G_HAL.F_VerifyDependencies("C_PromptRange");this._cAB=new C_PromptRange(_cNG, _cLI, this, C_PromptRange._cTD1, this.F_GetSimpleDefaultValue());}else{if(this._cSQ){_cNG=C_PromptPublicControl.F_CreateParentTable(_cNG);}this._cAB=new C_PromptBaseDateTime(_cNG, _cLI, this, false, this.F_GetSimpleDefaultValue());}if(!this._c8O){this.F_PromptControl_OnValueChange();}};C_PromptDateTime.F_Extends(C_PromptPublicControl);C_PromptDateTime.prototype._c0D=function(){C_PromptDateTime.superClass._c0D.call(this);this._cYB1=(this._cWM.getAttribute("calendar")==="Imperial"?C_ParameterValue._cVC1:C_ParameterValue._cX61);this._cWX=(this._cWM.getAttribute("showSeconds")==="true"?true:false);this._c1E=(this._cWM.getAttribute("showMilliseconds")==="true"?true:false);};C_PromptDateTime.prototype._c2=function(){var _cXB1=( this._cWM.getAttribute( "calendar" )=="Imperial" )?C_ParameterValue._cVC1:C_ParameterValue._cX61;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(_cXB1, _cEW, _cTC);}};C_PromptDateTime.prototype.F_CreateSimpleValue=function(){return new C_DateTimeValue(this._c0P1, null, this._cYB1, this._cWX, this._c1E);};
|