C_IntervalValue.js 1.5 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_IntervalValue(_c9O1, _cWB1, _cEW, _cTC){this._cFW=2;if(_cTC){this._cFW=0;}else if(_cEW){this._cFW=1;}this.F_ConstructBaseClass(_c9O1);if(_cWB1){this.F_SetUseValue(_cWB1);}};C_IntervalValue.F_Extends(C_ParameterValue);C_IntervalValue.prototype.F_SetUseValue=function(_cWB1,_cJR){if(_cWB1){if(_cWB1.match(/^(-?\d+\s\d\d:\d\d:\d\d.\d\d\d)\d*:(-?\d+\s\d\d:\d\d:\d\d.\d\d\d)\d*$/)){var _cWB1=RegExp.$1+":" + RegExp.$2;}else if(_cWB1.match(/^(-?\d+\s\d\d:\d\d:\d\d.\d\d\d)\d*$/)){var _cWB1=RegExp.$1;}}C_IntervalValue.superClass.F_SetUseValue.call(this, _cWB1, _cJR);};C_IntervalValue.prototype._cN3=function(_cNM){C_IntervalValue.superClass._cN3.call(this, _cNM, "interval");};C_IntervalValue.prototype._c3J=function(_cGN1){var _cO11=_cGN1;if(_cO11&&(this._cFW==1)){_cO11=_cGN1.match(/^-?\d+\s\d\d:\d\d:\d\d/gi)[0];}else if(_cO11&&(this._cFW==2)){var _cAO1=_cGN1.match(/^-?\d+\s\d\d:\d\d/gi);if(_cAO1){_cO11=_cAO1[0];}}return(_cO11?_cO11:null);};C_IntervalValue.prototype._cKR=function(_cGN1){var _cO11=null;if(_cGN1&&(_cGN1.match(/^-?P\d+DT\d\dH\d\dM\d\d.\d\d\dS$/gi)||_cGN1.match(/^-?\d+\s\d\d:\d\d:\d\d\.\d\d\d$/gi))){_cO11=_cGN1;}return(_cO11?_cO11:null);};C_IntervalValue.prototype.F_SetDisplayProperties=function(_cEW,_cTC){this._cFW=2;if(_cTC){this._cFW=0;}else if(_cEW){this._cFW=1;}this._cC2();};