Subversion Repositories DevTools

Rev

Rev 2269 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2269 Rev 2273
Line 310... Line 310...
310
			os.sprintf( "%d", evaluationContext.getTransaction().getFormatVersion() );
310
			os.sprintf( "%d", evaluationContext.getTransaction().getFormatVersion() );
311
			m_cachedValue = value = os.c_str();
311
			m_cachedValue = value = os.c_str();
312
		}
312
		}
313
		return ( true );
313
		return ( true );
314
	case EXPRESSIONID_NOW:
314
	case EXPRESSIONID_NOW:
315
		m_cachedValue = value = TDateTime::CurrentDateTime().FormatString( "dd-mm-yyyy hh:nn:ss" ).c_str();
315
		value = TDateTime::CurrentDateTime().FormatString( "dd-mm-yyyy hh:nn:ss" ).c_str();
316
		return ( true );
316
		return ( true );
317
	case EXPRESSIONID_UTCNOW:
317
	case EXPRESSIONID_UTCNOW:
318
		{
318
		{
319
			const TDateTime time = TDateTime::CurrentDateTime() + ( ( _timezone / 3600.0 ) / 24.0 );
319
			const TDateTime time = TDateTime::CurrentDateTime() + ( ( _timezone / 3600.0 ) / 24.0 );
320
 
320
 
321
			m_cachedValue = value = time.FormatString( "dd-mm-yyyy hh:nn:ss" ).c_str();
321
			value = time.FormatString( "dd-mm-yyyy hh:nn:ss" ).c_str();
322
		}
322
		}
323
		return ( true );
323
		return ( true );
324
	case EXPRESSIONID_YESTERDAY:
324
	case EXPRESSIONID_YESTERDAY:
325
		{
325
		{
326
			const TDateTime time = TDateTime::CurrentDateTime() - 1;
326
			const TDateTime time = TDateTime::CurrentDateTime() - 1;
Line 544... Line 544...
544
					{
544
					{
545
						/**
545
						/**
546
						 *	We have a discriminant, so we evaluate it to form
546
						 *	We have a discriminant, so we evaluate it to form
547
						 *	our name,
547
						 *	our name,
548
						 */
548
						 */
549
                        if (name == "SSN")
549
                        if (name == "AUTOSSN")
550
                        {
550
                        {
551
                            fullName = "SSN["+evaluationContext.getDeviceId()+"]";
551
                            fullName = "AUTOSSN["+evaluationContext.getDeviceId()+"]";
552
                        }
552
                        }
553
                        else if (name == "TRIP")
553
                        else if (name == "AUTOTRIP")
554
                        {
554
                        {
555
                            fullName = "TRIP["+evaluationContext.getDeviceId()+"]";
555
                            fullName = "AUTOTRIP["+evaluationContext.getDeviceId()+"]";
556
                        } 
556
                        } 
557
                        else if (name == "AUTOPSN")
557
                        else if (name == "AUTOPSN")
558
                        {
558
                        {
559
                            fullName = "AUTOPSN["+evaluationContext.getCsn()+"]";
559
                            fullName = "AUTOPSN["+evaluationContext.getCsn()+"]";
560
                        }                         
560
                        }