Пример #1
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string datepickerfrom  = this.DatePickerFrom.DateTime;
            StockQueryCondition qc = new StockQueryCondition();

            qc.DatePickerFrom = datepickerfrom;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #2
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string datepickerfrom  = this.DatePickerFrom.DateTime;
            string type            = this.DropDownListType.SelectedValue;
            StockQueryCondition qc = new StockQueryCondition();

            qc.DatePickerFrom = datepickerfrom;
            qc.BuyPoint       = type;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #3
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string code            = this.txtStockCode.Text.Trim();
            string datepickerfrom  = this.DatePickerFrom.DateTime;
            StockQueryCondition qc = new StockQueryCondition();

            qc.StockCode      = code;
            qc.DatePickerFrom = datepickerfrom;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #4
0
        private void Refresh()
        {
            string dateFrom     = Request.QueryString["datefrom"] == null ? string.Empty : Request.QueryString["datefrom"];
            string dateTo       = Request.QueryString["dateto"] == null ? string.Empty : Request.QueryString["dateto"];
            string market       = Request.QueryString["market"] == null ? string.Empty : Request.QueryString["market"];
            string field        = Request.QueryString["field"] == null ? string.Empty : Request.QueryString["field"];
            string chart        = Request.QueryString["chart"] == null ? string.Empty : Request.QueryString["chart"];
            string province     = Request.QueryString["province"] == null ? string.Empty : Request.QueryString["province"];
            string stockName    = Request.QueryString["stockName"] == null ? string.Empty : Request.QueryString["stockName"].ToString().Trim();
            string stockcode    = Request.QueryString["stockcode"] == null ? string.Empty : Request.QueryString["stockcode"];
            string MarketName   = Request.QueryString["MarketName"] == "--请选择--" ? string.Empty : Request.QueryString["MarketName"];
            string FieldName    = Request.QueryString["FieldName"] == "--请选择--" ? string.Empty : Request.QueryString["FieldName"].Trim();
            string ChartName    = Request.QueryString["ChartName"] == "--请选择--" ? string.Empty : Request.QueryString["ChartName"];
            string ProvinceName = Request.QueryString["ProvinceName"] == "--请选择--" ? string.Empty : Request.QueryString["ProvinceName"].Trim();

            StockQueryCondition qc = new StockQueryCondition();

            qc.DatePickerFrom = dateFrom;
            qc.DatePickerTo   = dateTo;
            qc.StockCode      = stockcode;
            qc.StockName      = stockName;
            qc.Market         = MarketName;
            qc.Field          = FieldName;
            qc.Chart          = ChartName;
            qc.Province       = ProvinceName;


            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
            AISTOCK_STOCK_DAILY_DATA_V_DATA data = new AISTOCK_STOCK_DAILY_DATA_V_DATA();

            data = new StockSystem().GetStockHistory(qc);
            AISTOCK_STOCK_AVG_PRICE_DATA avgData = new AISTOCK_STOCK_AVG_PRICE_DATA();

            avgData = new StockSystem().GetStockAvgHistory(qc);

            this.BmBlafTableHistory.Clear();
            this.BmBlafTableHistory.BorderColor = Color.Black;
            this.BmBlafTableHistory.BorderWidth = Unit.Point(1);
            this.DrawBlafTableHeader();
            this.DrawBlafTableBody(data, avgData);

            this.LabelTitle.Text = "名称:查询股票历史记录<br>" +
                                   "创建时间:" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "<br>" +
                                   "时间:" + qc.DatePickerFrom + "至" + qc.DatePickerTo + "<br>" +
                                   "所属证券市场:" + (qc.Market == string.Empty ? "ALL" : qc.Market) + "<br>" +
                                   "所属证监会行业:" + (qc.Field == string.Empty ? "ALL" : qc.Field) + "<br>" +
                                   "所属省份:" + (qc.Province == string.Empty ? "ALL" : qc.Province) + "<br>" +
                                   "K线图:" + (qc.Chart == string.Empty ? "ALL" : qc.Chart) + "<br>" +
                                   "股票代码:" + (qc.StockCode == string.Empty ? "ALL" : qc.StockCode) + "<br>" +
                                   "股票名称:" + (qc.StockName == string.Empty ? "ALL" : qc.StockName);
        }
Пример #5
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string code            = this.txtStockCode.Text.Trim();
            string market          = this.DropDownListCategory.SelectedValue;
            string field           = this.DropDownListField.SelectedValue;
            string province        = this.DropDownListProvince.SelectedValue;
            StockQueryCondition qc = new StockQueryCondition();

            qc.StockCode = code;
            qc.Market    = market;
            qc.Field     = field;
            qc.Province  = province;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #6
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string code             = this.txtStockCode.Text.Trim();
            string name             = this.txtStockName.Text.Trim();
            string datepickerfrom   = this.DatePickerFrom.DateTime;
            string datepickerto     = this.DatePickerTo.DateTime;
            string datepickersearch = this.DatePickerSearch.DateTime;
            string type             = this.DropDownListType.SelectedValue;
            StockQueryCondition qc  = new StockQueryCondition();

            qc.DatePickerFrom   = datepickerfrom;
            qc.DatePickerTo     = datepickerto;
            qc.DatePickerSearch = datepickersearch;
            qc.StockCode        = code;
            qc.StockName        = name;
            qc.BuyPoint         = type;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #7
0
        /// <summary>
        /// 记录查询条件
        /// </summary>
        private void RecordQueryCondition()
        {
            string code            = this.txtStockCode.Text.Trim();
            string name            = this.txtStockName.Text.Trim();
            string market          = this.DropDownListCategory.SelectedValue;
            string field           = this.DropDownListField.SelectedValue;
            string province        = this.DropDownListProvince.SelectedValue;
            string index           = this.DropDownListIndex.SelectedValue;
            string datepickerfrom  = this.DatePickerFrom.DateTime;
            StockQueryCondition qc = new StockQueryCondition();

            qc.StockCode      = code;
            qc.Index          = index;
            qc.StockName      = name;
            qc.Market         = market;
            qc.Field          = field;
            qc.Province       = province;
            qc.DatePickerFrom = datepickerfrom;
            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
        }
Пример #8
0
        private void Refresh()
        {
            string dateFrom   = Request.QueryString["datefrom"] == null ? string.Empty : Request.QueryString["datefrom"];
            string dateTo     = Request.QueryString["dateto"] == null ? string.Empty : Request.QueryString["dateto"];
            string dateSearch = Request.QueryString["datesearch"] == null ? string.Empty : Request.QueryString["datesearch"];
            string type       = Request.QueryString["type"] == null ? string.Empty : Request.QueryString["type"];
            string stockName  = Request.QueryString["stockName"] == null ? string.Empty : Request.QueryString["stockName"].ToString().Trim();
            string stockcode  = Request.QueryString["stockcode"] == null ? string.Empty : Request.QueryString["stockcode"];
            string TypeName   = Request.QueryString["TypeName"] == "--请选择--" ? string.Empty : Request.QueryString["TypeName"];

            StockQueryCondition qc = new StockQueryCondition();

            qc.DatePickerFrom   = dateFrom;
            qc.DatePickerTo     = dateTo;
            qc.DatePickerSearch = dateSearch;
            qc.StockCode        = stockcode;
            qc.StockName        = stockName;
            qc.BuyPoint         = TypeName;

            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();
            AISTOCK_STOCK_BUY_HISTORY_DATA data = new StockSystem().GetBuyHistoryData(qc);

            this.BmBlafTableHistory.Clear();
            this.BmBlafTableHistory.BorderColor = Color.Black;
            this.BmBlafTableHistory.BorderWidth = Unit.Point(1);
            this.DrawBlafTableHeader();
            this.DrawBlafTableBody(data);

            this.LabelTitle.Text = "名称:查询买入股票历史记录<br>" +
                                   "创建时间:" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "<br>" +
                                   "时间:" + qc.DatePickerFrom + "至" + qc.DatePickerTo + "<br>" +
                                   "买股类型:" + (qc.BuyPoint == string.Empty ? "ALL" : qc.BuyPoint) + "<br>" +
                                   "查询时间:" + qc.DatePickerFrom + "<br>" +
                                   "股票代码:" + (qc.StockCode == string.Empty ? "ALL" : qc.StockCode) + "<br>" +
                                   "股票名称:" + (qc.StockName == string.Empty ? "ALL" : qc.StockName);
        }
Пример #9
0
        private void Refresh()
        {
            string dateFrom     = Request.QueryString["datefrom"] == null ? string.Empty : Request.QueryString["datefrom"];
            string market       = Request.QueryString["market"] == null ? string.Empty : Request.QueryString["market"];
            string field        = Request.QueryString["field"] == null ? string.Empty : Request.QueryString["field"];
            string index        = Request.QueryString["index"] == null ? string.Empty : Request.QueryString["index"];
            string province     = Request.QueryString["province"] == null ? string.Empty : Request.QueryString["province"];
            string stockName    = Request.QueryString["stockName"] == null ? string.Empty : Request.QueryString["stockName"].ToString().Trim();
            string stockcode    = Request.QueryString["stockcode"] == null ? string.Empty : Request.QueryString["stockcode"];
            string MarketName   = Request.QueryString["MarketName"] == "--请选择--" ? string.Empty : Request.QueryString["MarketName"];
            string FieldName    = Request.QueryString["FieldName"] == "--请选择--" ? string.Empty : Request.QueryString["FieldName"].Trim();
            string IndexName    = Request.QueryString["IndexName"].Trim();
            string ProvinceName = Request.QueryString["ProvinceName"] == "--请选择--" ? string.Empty : Request.QueryString["ProvinceName"].Trim();

            StockQueryCondition qc = new StockQueryCondition();

            qc.DatePickerFrom = dateFrom;
            qc.StockCode      = stockcode;
            qc.StockName      = stockName;
            qc.Market         = MarketName;
            qc.Field          = FieldName;
            qc.Index          = IndexName;
            qc.Province       = ProvinceName;

            this.ViewState["_StockQueryCondition"] = qc.SerializeToString();

            int indexDay = 14;

            if (qc.Index.Equals("RSI(5)"))
            {
                indexDay = 5;
            }
            else if (qc.Index.Equals("RSI(9)"))
            {
                indexDay = 9;
            }
            else if (qc.Index.Equals("RSI(14)"))
            {
                indexDay = 14;
            }
            else if (qc.Index.Equals("WMS(10)"))
            {
                indexDay = 10;
            }
            else if (qc.Index.Equals("WMS(20)"))
            {
                indexDay = 20;
            }

            string dateTo = DateTimeFunction.ConvertDate(qc.DatePickerFrom);
            string date   = new StockSystem().GetIndexDay(qc.DatePickerFrom, indexDay);

            date = DateTimeFunction.ConvertDate(DateTime.Parse(date).ToShortDateString());

            AISTOCK_STOCK_STATS_DATA stockData = new StockSystem().GetStockData(dateTo, stockcode);

            if (qc.Index.Equals("RSI(5)") || qc.Index.Equals("RSI(9)") || qc.Index.Equals("RSI(14)"))
            {
                AISTOCK_STOCK_INDEX_V_DATA dataRSI = new AISTOCK_STOCK_INDEX_V_DATA();
                dataRSI = new StockSystem().GetStockDataIndex(date, dateTo, stockcode);

                this.BmBlafTable.Clear();
                this.BmBlafTable.BorderColor = Color.Black;
                this.BmBlafTable.BorderWidth = Unit.Point(1);
                DrawRsiTableHeader();
                DrawRsiTableBody(dataRSI, stockData);
            }
            else if (qc.Index.Equals("WMS(10)") || qc.Index.Equals("WMS(20)"))
            {
                AISTOCK_STOCK_WMS_V_DATA dataWms = new AISTOCK_STOCK_WMS_V_DATA();
                dataWms = new StockSystem().GetStockWmsData(date, dateTo, stockcode);

                this.BmBlafTable.Clear();
                this.BmBlafTable.BorderColor = Color.Black;
                this.BmBlafTable.BorderWidth = Unit.Point(1);
                DrawWmsTableHeader();
                DrawWmsTableBody(stockData, dataWms);
            }
            this.LabelTitle.Text = "名称:股票指标分析<br>" +
                                   "创建时间:" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "<br>" +
                                   "时间:" + qc.DatePickerFrom + "<br>" +
                                   "所属证券市场:" + (qc.Market == string.Empty ? "ALL" : qc.Market) + "<br>" +
                                   "所属证监会行业:" + (qc.Field == string.Empty ? "ALL" : qc.Field) + "<br>" +
                                   "所属省份:" + (qc.Province == string.Empty ? "ALL" : qc.Province) + "<br>" +
                                   "指标类型:" + (qc.Index == string.Empty ? "ALL" : qc.Index) + "<br>" +
                                   "股票代码:" + (qc.StockCode == string.Empty ? "ALL" : qc.StockCode) +
                                   "股票名称:" + (qc.StockName == string.Empty ? "ALL" : qc.StockName);
        }