Ejemplo n.º 1
0
        private void BgwFromErpDoWork(object sender, DoWorkEventArgs e)
        {
            SpareEntities     db   = EntitiesFactory.CreateSpareInstance();
            InterfaceEntities OAdb = EntitiesFactory.CreateInterfaceInstance();

            ReadErpFiles(db);
            GetOAData(OAdb, db);
            EntitiesFactory.SaveDb(db);
            EntitiesFactory.SaveDb(OAdb);
        }