C_DateValue.js 1.3 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_DateValue(_c9O1, _cWB1, _cXB1){if(typeof _cXB1=="undefined"){_cXB1=C_ParameterValue._cX61;}this._cYB1=_cXB1;this.F_ConstructBaseClass(_c9O1);if(_cWB1){this.F_SetUseValue(_cWB1);}};C_DateValue.F_Extends(C_ParameterValue);C_DateValue.prototype._cN3=function(_cNM){C_DateValue.superClass._cN3.call(this, _cNM, "date");};C_DateValue.prototype._c3J=function(_cGN1){var _cO11=U_PromptInputParser._cY61(_cGN1, this._cYB1);return(_cO11?_cO11:null);};C_DateValue.prototype._cKR=function(_cGN1){var _cO11=null;if(_cGN1&&_cGN1.match(/^\d\d\d\d-\d\d-\d\d$/gi)){var _c7R1=U_PromptInputParser.F_ParseDate(_cGN1, U_PromptInputParser._cDA);if(_c7R1){_cO11=U_PromptInputParser.F_GetDateInTransferableFormat(_c7R1);}}return(_cO11?_cO11:null);};C_DateValue.prototype.F_SetDisplayProperties=function(_cXB1){this._cYB1=_cXB1;this._cC2();};C_DateValue.prototype._cOM=function(_cJR){var _cWB1=this.F_GetUseValue(_cJR);if(_cWB1!=null){var _c6R1="T00:00:00.000";if(this.F_IsRange()&&typeof _cJR!="undefined"&&_cJR==C_ParameterValue._cZB1){_c6R1="T23:59:59.999";}_cWB1+= _c6R1;}return _cWB1;};