Example #1
0
        public static bool ImportFromWeb(DateTime updateTime, databases.baseDS.exchangeDetailRow exchangeDetailRow)
        {
            bool retVal = true;

            switch (exchangeDetailRow.code.Trim().ToUpper())
            {
            case "HOSE_MHBS":
                Stock.hoseImport hoseImport = new Stock.hoseImport();
                retVal = hoseImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "HASTC_MHBS":
                Stock.htastcImport htastcImport = new Stock.htastcImport();
                retVal = htastcImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "HOSE_SSI":
            case "HASTC_SSI":
                Stock.ssi_StockImport ssiStockImport = new Stock.ssi_StockImport();
                retVal = ssiStockImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "VNIDX_SSI":
                Stock.ssi_vnIdxImport vnIdxSSI = new Stock.ssi_vnIdxImport();
                retVal = vnIdxSSI.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "VNIDX_VSE":
                Stock.vnIdxImport vnIdxVSE = new Stock.vnIdxImport();
                retVal = vnIdxVSE.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "HN_IDX1":     //??
                Stock.hnIdxImport hnIdxImport = new Stock.hnIdxImport();
                retVal = hnIdxImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "GOLD_FOREX":
                Gold.forexImport forexImport = new Gold.forexImport();
                retVal = forexImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

            case "GOLD_KITCO":
                Gold.kitcoImport kitcoImport = new Gold.kitcoImport();
                retVal = kitcoImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;
            }
            return(retVal);
        }
Example #2
0
        public static bool ImportFromWeb(DateTime updateTime, databases.baseDS.exchangeDetailRow exchangeDetailRow)
        {
            bool retVal = true;
            switch (exchangeDetailRow.code.Trim().ToUpper())
            {
                case "HOSE_MHBS":
                    Stock.hoseImport hoseImport = new Stock.hoseImport();
                    retVal = hoseImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;
                case "HASTC_MHBS":
                    Stock.htastcImport htastcImport = new Stock.htastcImport();
                    retVal = htastcImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                case "HOSE_SSI":
                case "HASTC_SSI":
                    Stock.ssi_StockImport ssiStockImport = new Stock.ssi_StockImport();
                    retVal = ssiStockImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                case "VNIDX_SSI":
                    Stock.ssi_vnIdxImport vnIdxSSI = new Stock.ssi_vnIdxImport();
                    retVal = vnIdxSSI.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;
                case "VNIDX_VSE":
                    Stock.vnIdxImport vnIdxVSE = new Stock.vnIdxImport();
                    retVal = vnIdxVSE.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                case "HN_IDX1": //??
                    Stock.hnIdxImport hnIdxImport = new Stock.hnIdxImport();
                    retVal = hnIdxImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                case "GOLD_FOREX":
                    Gold.forexImport forexImport = new Gold.forexImport();
                    retVal = forexImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;
                case "GOLD_KITCO":
                    Gold.kitcoImport kitcoImport = new Gold.kitcoImport();
                    retVal = kitcoImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;
            }
            return retVal;
        }
        public static bool ImportFromWeb(DateTime updateTime, databases.baseDS.exchangeDetailRow exchangeDetailRow)
        {
            bool retVal = true;
            switch (exchangeDetailRow.code.Trim().ToUpper())
            {
                case "SSI_HOSE"://ssi for both HOSE & HASTC
                    Stock.ssi_StockImport ssiStockImport = new Stock.ssi_StockImport();
                    retVal = ssiStockImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                //case "GOLD_KITCO":
                //    return false;
                    //Gold.kitcoImport kitcoImport = new Gold.kitcoImport();
                    //retVal = kitcoImport.ImportFromWeb(updateTime, exchangeDetailRow);
                    //break;
            }
            return retVal;
        }