private void DrawTwoPinTableBody(AISTOCK_STOCK_TWO_PIN_V_DATA data) { if (data == null) { return; } if (data.AISTOCK_STOCK_TWO_PIN_V.Count <= 0) { return; } TableRow bodyRow; foreach (AISTOCK_STOCK_TWO_PIN_V_DATA.AISTOCK_STOCK_TWO_PIN_VRow row in data.AISTOCK_STOCK_TWO_PIN_V.Rows) { bodyRow = this.BmBlafTable.AddBodyRow(); this.BmBlafTable.AddCell(bodyRow, url.Replace("stockcode", row.STOCK_CODE), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.STOCK_NAME, HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.YESTERDAY, HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.YESTERDAY_BEGIN.ToString(), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.YESTERDAY_END.ToString(), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.YESTERDAY_MIN_PRICE.ToString(), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.TODAY, HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.TODAY_BEGIN.ToString(), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.TODAY_END.ToString(), HorizontalAlign.Left); this.BmBlafTable.AddCell(bodyRow, row.TODAY_MIN_PRICE.ToString(), HorizontalAlign.Left); } }
/// <summary> /// 双针探底 /// </summary> /// <param name="date"></param> /// <param name="dateTo"></param> /// <returns></returns> public AISTOCK_STOCK_TWO_PIN_V_DATA GetTwoPinData(string date, string dateTo) { AISTOCK_STOCK_TWO_PIN_V_DATA data = new AISTOCK_STOCK_TWO_PIN_V_DATA(); using (DaStock da = new DaStock()) { da.LoadTwoPinData(data.AISTOCK_STOCK_TWO_PIN_V, date, dateTo); } return(data); }