public Kaifa_B2B_ImportService()
        {
            InitializeComponent();
            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"];

            allTask = new AllocTask(alldir, allbakdir, connectionstring,warehouse);
            string caldir = System.Configuration.ConfigurationManager.AppSettings["calDir"];
            string calbakdir = System.Configuration.ConfigurationManager.AppSettings["calBakDir"];

            calTask = new CalendarTask(caldir, calbakdir, connectionstring, warehouse);
        }
Ejemplo n.º 2
0
        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();

        }
Ejemplo n.º 3
0
        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();
        
        
        }