GetREMAININGList() public method

获得前几行数据 重载 董苇 反向取30个数据
public GetREMAININGList ( string strData ) : DataSet
strData string
return System.Data.DataSet
Esempio n. 1
0
        //数组获取数据库融资余额
        public decimal[] GETREMAINING(string StockCode)
        {
            decimal[] REMAINING = new decimal[20];
            D.StockDAL dsd = new D.StockDAL();
            M.Stock ms = new M.Stock();
            DataSet ds = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                REMAINING[i] = decimal.Parse(ds.Tables[0].Rows[19 - i][5].ToString());
            }
            return REMAINING;
        }
Esempio n. 2
0
        //数组获取数据库融券余量
        public int[] GETREMAINQUILITY(string StockCode)
        {
            int[] REMAINQUILITY = new int[20];
            D.StockDAL dsd = new D.StockDAL();
            M.Stock ms = new M.Stock();
            DataSet ds = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                REMAINQUILITY[i] = int.Parse(ds.Tables[0].Rows[19 - i][9].ToString());
            }
            return REMAINQUILITY;
        }
Esempio n. 3
0
        //数组获取数据库融资买入额
        public decimal[] GETPURCHASES(string StockCode)
        {
            decimal[] PURCHASES = new decimal[20];
            D.StockDAL dsd = new D.StockDAL();
            M.Stock ms = new M.Stock();
            DataSet ds = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                PURCHASES[i] = decimal.Parse(ds.Tables[0].Rows[19 - i][6].ToString());
            }
            return PURCHASES;
        }
Esempio n. 4
0
        //数组获取数据库日期
        public DateTime[] GETDATE(string StockCode)
        {
            DateTime[] DATE = new DateTime[20];
            D.StockDAL dsd = new D.StockDAL();
            M.Stock ms = new M.Stock();
            DataSet ds = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                DATE[i] = DateTime.Parse(ds.Tables[0].Rows[19 - i][2].ToString());
            }
            return DATE;
        }
Esempio n. 5
0
        //数组获取数据库日期
        public DateTime[] GETDATE(string StockCode)
        {
            DateTime[] DATE = new DateTime[20];
            D.StockDAL dsd  = new D.StockDAL();
            M.Stock    ms   = new M.Stock();
            DataSet    ds   = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                DATE[i] = DateTime.Parse(ds.Tables[0].Rows[19 - i][2].ToString());
            }
            return(DATE);
        }
Esempio n. 6
0
        //数组获取数据库融券卖出量
        public int[] GETSELLQUANTITY(string StockCode)
        {
            int[]      SELLQUANTITY = new int[20];
            D.StockDAL dsd          = new D.StockDAL();
            M.Stock    ms           = new M.Stock();
            DataSet    ds           = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                SELLQUANTITY[i] = int.Parse(ds.Tables[0].Rows[19 - i][10].ToString());
            }
            return(SELLQUANTITY);
        }
Esempio n. 7
0
        //数组获取数据库融资买入额
        public decimal[] GETPURCHASES(string StockCode)
        {
            decimal[]  PURCHASES = new decimal[20];
            D.StockDAL dsd       = new D.StockDAL();
            M.Stock    ms        = new M.Stock();
            DataSet    ds        = new DataSet();

            ds = dsd.GetREMAININGList(StockCode);

            for (int i = 0; i < 20; i++)
            {
                PURCHASES[i] = decimal.Parse(ds.Tables[0].Rows[19 - i][6].ToString());
            }
            return(PURCHASES);
        }