Exemplo n.º 1
0
        public DataTable getHQData(string strCode, DateTime begT, DateTime endT)
        {
            GLClass  globj   = new GLClass(strCode);
            WSDClass wsetobj = new WSDClass(strCode, "open,high,low,close,pct_chg,volume,windcode", begT, endT);

            //WSDClass wsetobj = new WSDClass(strCode, "open,close,volume,windcode", begT, endT);
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }
Exemplo n.º 2
0
        public DataTable getRecords(string strCode, DateTime dt)
        {
            GLClass   globj = new GLClass(strCode);
            WSETClass wsetobj;

            if (strCode == null || strCode.Length == 0)//如果是板块类
            {
                wsetobj = new WSETMarketClass(globj.GLCode, dt);
            }
            else//如果是指数类
            {
                wsetobj = new WSETIndexClass(globj.GLCode, dt);
            }
            return(WDDataAdapter.getRecords(wsetobj.getDataSet()));
        }
Exemplo n.º 3
0
        public Int64 getRecordCount(string strCode, DateTime dt)
        {
            GLClass   globj = new GLClass(strCode);
            WSETClass wsetobj;

            if (strCode == null || strCode.Length == 0)//如果是板块类
            {
                wsetobj = new WSETMarketClass(globj.GLCode, dt);
            }
            else//如果是指数类
            {
                wsetobj = new WSETIndexClass(globj.GLCode, dt);
            }

            return(wsetobj.getDataSetCount());
        }