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_PromptDate(_cFT, _cH21, _cCB1, _cTS){G_HAL.F_VerifyDependencies("G_ResManager");G_HAL.F_VerifyDependencies("U_PromptInputParser");G_HAL.F_VerifyDependencies("C_PromptBaseTextBox");G_HAL.F_VerifyDependencies("C_PromptBaseDateCalendar");this.F_ConstructBaseClass(_cFT, _cH21, _cCB1, _cTS);this._c0D();if(!_cTS){this._cO7();}this._c2();if(this._cSQ){_cFT.classList.add(C_PromptControl.M_sClassPCA);this.F_UpdateControlStyle(_cFT);}var _cNG=this._cBT1();if(this._cGT==1){G_HAL.F_VerifyDependencies("C_PromptBaseDateTextBox");}this._cAB;if(this._c0P1){G_HAL.F_VerifyDependencies("C_PromptRange");this._cAB=new C_PromptRange(_cNG, _cH21, this,((this._cGT==1)?C_PromptRange._c9Y:C_PromptRange._cHT), this.F_GetSimpleDefaultValue());}else{if(this._cGT==1){this._cAB=new C_PromptBaseDateTextBox(_cNG, _cH21, this, this.F_GetSimpleDefaultValue());}else{this._cAB=new C_PromptBaseDateCalendar(_cNG, _cH21, this, false, this.F_GetSimpleDefaultValue());}}if(!this._c8O){this.F_PromptCalendar_OnValueChange();}};C_PromptDate.F_Extends(C_PromptPublicControl);C_PromptDate.prototype._c0D=function(){C_PromptDate.superClass._c0D.call(this);this._cGT=0;if(this._cWM.getAttribute("selectDateUI")){this._cGT=( this._cWM.getAttribute( "selectDateUI" )=="editBox" )?1:0;}this._cYB1=(this._cWM.getAttribute("calendar")==="Imperial"?C_ParameterValue._cVC1:C_ParameterValue._cX61);};C_PromptDate.prototype._c2=function(){var _cXB1=( this._cWM.getAttribute( "calendar" )=="Imperial" )?C_ParameterValue._cVC1:C_ParameterValue._cX61;for(var i=0;this._c8O&&(i<this._c8O.length);i++){this._c8O[ i ].F_SetDisplayProperties(_cXB1);}};C_PromptDate.prototype.F_PromptCalendar_OnValueChange=function(_c5M){if(!this._cHX){this._cU3();}};C_PromptDate.prototype.F_CreateSimpleValue=function(){return new C_DateValue(this._c0P1, null, this._cYB1);};
|