示例#1
0
        public static bool ImportFromWeb(DateTime updateTime, databases.baseDS.exchangeDetailRow exchangeDetailRow)
        {
            bool retVal = true;
            switch (exchangeDetailRow.code.Trim().ToUpper())
            {                
                case "HOSE1"://mhbs 01
                    Stock.hoseImport hoseImport1 = new Stock.hoseImport();
                    retVal = hoseImport1.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

                case "HOSE2": //mhbs 02
                    Stock.hoseImport hoseImport2 = new Stock.hoseImport();
                    retVal = hoseImport2.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;                

                case "HASTC1"://mhbs 01
                    Stock.htastcImport htastcImport1 = new Stock.htastcImport();
                    retVal = htastcImport1.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;
                case "HASTC2"://mhbs 02
                    Stock.htastcImport htastcImport2 = new Stock.htastcImport();
                    retVal = htastcImport2.ImportFromWeb(updateTime, exchangeDetailRow);
                    break;

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

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

                case "HNIDX_SSI":
                    Stock.ssi_hastcIdxImport hastcIdxSSI = new Stock.ssi_hastcIdxImport();
                    retVal = hastcIdxSSI.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;
        }
示例#2
0
        public static bool ImportFromWeb(DateTime updateTime, databases.baseDS.exchangeDetailRow exchangeDetailRow)
        {
            bool retVal = true;

            switch (exchangeDetailRow.code.Trim().ToUpper())
            {
            case "HOSE1":    //mhbs 01
                return(false);

            //Stock.hoseImport hoseImport1 = new Stock.hoseImport();
            //retVal = hoseImport1.ImportFromWeb(updateTime, exchangeDetailRow);
            //break;

            case "HOSE2":     //mhbs 02
                return(false);

            //Stock.hoseImport hoseImport2 = new Stock.hoseImport();
            //retVal = hoseImport2.ImportFromWeb(updateTime, exchangeDetailRow);
            //break;

            case "HASTC1":    //mhbs 01
                return(false);

            //Stock.htastcImport htastcImport1 = new Stock.htastcImport();
            //retVal = htastcImport1.ImportFromWeb(updateTime, exchangeDetailRow);
            //break;
            case "HASTC2":    //mhbs 02
                return(false);

            //Stock.htastcImport htastcImport2 = new Stock.htastcImport();
            //retVal = htastcImport2.ImportFromWeb(updateTime, exchangeDetailRow);
            //break;

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

            case "HASTC_SSI":    //ssi
                Stock.ssi_StockImport ssi_hastcStockImport = new Stock.ssi_StockImport();
                retVal = ssi_hastcStockImport.ImportFromWeb(updateTime, exchangeDetailRow);
                break;

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

            case "HNIDX_SSI":
                Stock.ssi_hastcIdxImport hastcIdxSSI = new Stock.ssi_hastcIdxImport();
                retVal = hastcIdxSSI.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":
                return(false);

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