static void Main(string[] args) { DateTime refDate = ToDateTime(args[0].ToString()); //while (d.DayOfWeek == DayOfWeek.Sunday || d.DayOfWeek == DayOfWeek.Saturday) // d = d.Date.AddDays(-1); Console.WriteLine("reference date : " + refDate.ToString("yyyyMMdd")); Console.WriteLine(refDate.ToString("yyyyMMdd") + "fund price feed start.."); FundPriceETL etl_fund = new FundPriceETL(); etl_fund.ftpConnectionInitialize(); etl_fund.getData(refDate); Console.WriteLine(refDate.ToString("yyyyMMdd") + "end.."); }
// ftp -> db public void load_market_data(DateTime refDate) { // load 함 - ETL 로 처리 할거임.우선 ㄱㄱ MarketDataETL etl = new MarketDataETL(); etl.ftpConnectionInitialize(); etl.getData(refDate); FundPriceETL etl_fund = new FundPriceETL(); etl_fund.ftpConnectionInitialize(); etl_fund.getData(refDate); // 우선 sampleData //SampleMarketDataETL sample_etl = new SampleMarketDataETL(); //sample_etl.getData(refDate); }
// ftp -> db public void load_market_data(DateTime refDate) { // load 함 - ETL 로 처리 할거임.우선 ㄱㄱ updateBatchJobID_start(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.LOAD_MARKETDATA); MarketDataETL etl = new MarketDataETL(); etl.ftpConnectionInitialize(); etl.getData(refDate); FundPriceETL etl_fund = new FundPriceETL(); etl_fund.ftpConnectionInitialize(); etl_fund.getData(refDate); updateBatchJobID_end(refDate, clsHDAT_BATCHJOB_RESULT_TB.BATCH_JOB_ID_Type.LOAD_MARKETDATA); // 우선 sampleData //SampleMarketDataETL sample_etl = new SampleMarketDataETL(); //sample_etl.getData(refDate); }