private void startTradgTradhUpdating() { List <string> linkList = GetSourceFileLinks(tse_url); nameDic = JapanShared.GetNameMap(baknoteFilePath, workSheetName); // For tradgUpdate try { dailySourceFilePath = DownloadFile(linkList[0]); JpTRADGInfo tradgTradingInfo = printAndGetJpDailyTradingInfo(dailySourceFilePath); GenerateTTradgTargetFile(targretFileDir, tradgTradingInfo); } catch (Exception ex) { Logger.Log("There's error during task: TRADG. Exception: " + ex.Message); } // For TRADH try { if (linkList.Count == 2) { weeklySourceFilePath = DownloadFile(linkList[1]); JpTRADHInfo tradhTradeInfo = PrintAndGetJpWeeklyTradingInfo(weeklySourceFilePath); GenerateTradhTargetFile(targretFileDir, tradhTradeInfo); } } catch (Exception ex) { Logger.Log("There's error during task: TRADH. Exception: " + ex.Message); } }
protected override void Initialize() { base.Initialize(); app = new ExcelApp(false, false); if (app.ExcelAppInstance == null) { Logger.Log("Excel cannot be started", Logger.LogType.Error); } configObj = Config as JapanOSETradeVolumeUpdatorConfig; nameDic = JapanShared.GetNameMap(configObj.BAKNOTE_FILE_PATH, configObj.WORKSHEETNAME_BAKNOTE); }