static void Main(string[] args) { string connectionstring = System.Configuration.ConfigurationManager.AppSettings["connectionstring"]; string alldir = System.Configuration.ConfigurationManager.AppSettings["allocDir"]; string allbakdir = System.Configuration.ConfigurationManager.AppSettings["allocBakDir"]; string warehouse = System.Configuration.ConfigurationManager.AppSettings["warehouse"]; AllocTask allTask = new AllocTask(alldir, allbakdir, connectionstring, warehouse); string caldir = System.Configuration.ConfigurationManager.AppSettings["calDir"]; string calbakdir = System.Configuration.ConfigurationManager.AppSettings["calBakDir"]; CalendarTask calTask = new CalendarTask(caldir, calbakdir, connectionstring, warehouse); allTask.Start(); calTask.Start(); System.Console.ReadLine(); }
public static void run() { string connectionstring = System.Configuration.ConfigurationManager.AppSettings["connectionstring"]; string alldir = System.Configuration.ConfigurationManager.AppSettings["allocDir"]; string allbakdir = System.Configuration.ConfigurationManager.AppSettings["allocBakDir"]; AllocTask allTask = new AllocTask(alldir, allbakdir, connectionstring, "wmwhse2"); string caldir = System.Configuration.ConfigurationManager.AppSettings["calDir"]; string calbakdir = System.Configuration.ConfigurationManager.AppSettings["calBakDir"]; CalendarTask calTask = new CalendarTask(caldir, calbakdir, connectionstring, "wmwhse2"); allTask.Start(); calTask.Start(); }