TimerToPdf
1.----------------TimerEvent-------------------
var today:Date=new Date();
hours == today.hours;
minutes == total.minutes;
if(hours==8 && minutes==11){
}
public function ShortTimer()
{
// cuplayer.com提示creates a new five-second Timer
var minuteTimer:Timer = new Timer(1000, 5);
// designates listeners for the interval and completion events
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
// cuplayer.com提示starts the timer ticking
minuteTimer.start();
}
public function onTick(evt:TimerEvent):void
{
// cuplayer.com提示displays the tick count so far
// The target of this event is the Timer instance itself.
trace("tick " + evt.target.currentCount);
}
public function onTimerComplete(evt:TimerEvent):void
{
trace("Time's Up!");
}
2-----------------------timerToPdf-------------------------------------
1 timer --> 2 Servlet --> timerToPdf-->
context=new org.springframework.context.support.ClassPathXmlApplicationContext("spring/*.xml");
-->reportAttachmentService[applicationContext-service.xml]-->ReportAttachmentService-->
ReportAttachmentImpl-->getSqlMapClientTemplate().insert(ReportAttachment.class.getName()+".insert", object);
[SqlMapConigPMS-->ReportAttachment.xml]