//查看中左下方的页面的展示
        private List <JumpPoints> leftBelowList(string tableName, string Train, string txtLineName, string geofile)//返回的是结果集
        //string tableName = "";//geo文件
        //
        {
            List <TotalFile>  totalData  = leftlist(Train, txtLineName, geofile);
            List <JumpPoints> jumpPoints = new List <JumpPoints>();

            if (totalData.Count > 0)
            {
                IOperator _dbOperator = new DbOperator();
                _dbOperator.DbFilePath = Constpath;
                JumpPointsDAL _jumpDal = new JumpPointsDAL(_dbOperator.DbFilePath);
                jumpPoints = _jumpDal.Load(tableName);
            }
            return(jumpPoints);
        }
        private void calcDgvResult()
        {
            try
            {
                if (dgvResult.SelectedRows != null && dgvResult.SelectedRows.Count > 0)
                {
                    jumpPoints.Clear();
                    tableName = dgvResult.SelectedRows[0].Cells[3].Value.ToString();
                    double totalLength = Convert.ToDouble(dgvResult.SelectedRows[0].Cells[4].Value);
                    jumpPoints = _jumpDal.Load(tableName);
                    if (jumpPoints.Count > 0)
                    {
                        dgvData.DataSource = null;
                        dgvData.Rows.Clear();
                        dgvData.DataSource = jumpPoints;

                        txtMaxForward.Text  = jumpPoints.Max(p => p.DiffSample).ToString();
                        txtMaxNegative.Text = jumpPoints.Min(p => p.DiffSample).ToString();
                        double arr  = jumpPoints.Sum(p => p.DiffSample) / totalLength;
                        double arr1 = jumpPoints.Sum(p => Math.Abs(p.DiffSample)) / jumpPoints.Count;
                        txtAverage.Text         = arr.ToString("F5");
                        txtAbsoluteAverage.Text = arr1.ToString("F5");


                        int[]    dataX = jumpPoints.Select(p => (int)p.CurrentMileage).ToList().Distinct().ToArray();
                        double[] dataY = jumpPoints.Select(p => p.DiffSample).ToArray();
                        _chartScatterConfig.AxesXMin = dataX.Min();
                        _chartScatterConfig.AxesXMax = dataX.Max();
                        _chartScatterConfig.AxesYMin = dataY.Min();
                        _chartScatterConfig.AxesYMax = dataY.Max();
                        CreateScatterChart();
                        CreateColumnChart();


                        //_chartJumpConfig.AxesXMin = -400;
                        //_chartJumpConfig.AxesXMax = 1000;
                        //_chartJumpConfig.AxesXMin = 0;
                        _chartJumpConfig.AxesXStep = 100;
                        _chartJumpConfig.AxesYMin  = -400;
                        _chartJumpConfig.AxesYMax  = 400;
                        //_chartJumpConfig.AxesYStep = 1;
                        _chartJumpConfig.AxesXStep  = 30;
                        _chartJumpConfig.AxesYStep  = 200;
                        _chartJumpConfig.ChartTitle = "跳变值柱状图2";
                        _chartJumpConfig.AxesXTitle = "里程";
                        _chartJumpConfig.AxesYTitle = "采样点差值";

                        _chartJumpConfig.AxesXMin = dataX.Min();
                        _chartJumpConfig.AxesXMax = dataX.Max();
                        //_chartJumpConfig.AxesYMin = dataY.Min();
                        //_chartJumpConfig.AxesYMax = dataY.Max();
                        CreateJumpChart();
                    }
                    else
                    {
                        MessageBox.Show("没有找到数据");
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("错误:" + ex.Message);
            }
        }