Ejemplo n.º 1
0
        public RadarClassify Clone()
        {
            RadarClassify rc = new RadarClassify();

            rc.Enable           = Enable;
            rc.ClassifyLabel    = ClassifyLabel;
            rc.ClassifyValue    = ClassifyValue;
            rc.ClassifyMaxValue = ClassifyMaxValue;
            rc.ClassifyMinValue = ClassifyMinValue;
            return(rc);
        }
Ejemplo n.º 2
0
        private void AddSeriesByClassify(Series series, RadarClassify item, string classifyLabel, string classifyValue)
        {
            if (!item.Enable)
            {
                return;
            }
            string bindPath = _bindPath;

            if (SourceField.CustomMode)
            {
                bindPath = (this as IBindReportExpressionEngine).ExpressionEngine.GetExpressionPath(SourceField.CustomTablePath, bindPath, _dtm);
            }
            else
            {
                if (!string.IsNullOrEmpty(_bindPath))
                {
                    if (this.SourceField != null)
                    {
                        bindPath = _bindPath + "." + this.SourceField.Name;
                    }
                }
                else
                {
                    if (this.SourceField != null)
                    {
                        bindPath = this.SourceField.Name;
                    }
                }
            }
            string value = ExpressionExecute(classifyValue, "", _dtm, bindPath);
            double yvalue;

            if (!string.IsNullOrEmpty(classifyLabel) && !string.IsNullOrEmpty(value) && Double.TryParse(value, out yvalue))
            {
                series.Points.AddXY(classifyLabel, yvalue);
            }
            series.ChartType = (SeriesChartType)ChartType;
        }