function printFrame ( ) { // id is id of iFrame var frm = document . getElementById ( id ). contentWindow ; frm . focus (); // focus on contentWindow is needed on some ie versions frm . print (); return false ; }
1. use NuGet to install Quartz to Project 2. Create sub class of IJob: public class HelpOnlineJob : IJob { public void Execute (IJobExecutionContext context) { // call methods in schedule new CompanyDB().ResetPrintingTimes(); new ASIMSNotificationDB().ResetReachingPrintingAllowanceNotification(); new OnlineEducationDB().BackupDatabase(); } } 3. Create class with static method public class HelpOnlineJobScheduler { public static void Start() { IScheduler scheduler = StdSchedulerFactory.GetDefaultScheduler();...
Comments
Post a Comment