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())); }
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())); }
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()); }