コード例 #1
0
ファイル: Program.cs プロジェクト: weedkiller/AABCMaster
        private static void EPPSandbox()
        {
            string filepath = "E:\\temp\\catalyst_timesheet_test_import.xlsx";

            var importer = new DomainServices.Integrations.Catalyst.TimesheetImporter(filepath);

            importer.Import();
        }
コード例 #2
0
        public ActionResult CatalystTimesheetProcess(string fileName)
        {
            string path     = System.Configuration.ConfigurationManager.AppSettings["CatalystImportDirectory"];
            string fullPath = Server.MapPath(System.IO.Path.Combine(path, fileName));

            var importer = new DomainServices.Integrations.Catalyst.TimesheetImporter(fullPath);

            importer.Import();

            return(new HttpStatusCodeResult(System.Net.HttpStatusCode.OK));
        }