/// <summary>
        /// 在配置文件中读取门限值
        /// </summary>
        private void GetErrorDataIndex()
        {
            string threshold_str = INIOperationClass.INIGetStringValue(@"e:\TRTWork\ExeceCamer\ExeceCamera\ExeceCamera\threshold.ini", "threshold", " threshold_start", "0");
            double threshold     = Convert.ToDouble(threshold_str);//限制系数

            double k = threshold;

            string R_G_1_up   = string.Empty; //保存上限
            string R_G_1_down = string.Empty; //保存下限

            string B_G_1_up   = string.Empty; //保存上限
            string B_G_1_down = string.Empty; //保存下限

            string R_G_0_up   = string.Empty; //保存上限
            string R_G_0_down = string.Empty; //保存下限

            string B_G_0_up   = string.Empty; //保存上限
            string B_G_0_down = string.Empty; //保存下限

            int[] indexs_Lens0;               //存储说有超标下标
            int[] indexs_Lens1;

            List <int> indexs_count       = new List <int>();
            List <int> indexs_count_Lens1 = new List <int>();

            for (int i = 0; i < 24; i++)
            {
                double[] d_ = HelpMethod.GetDataCateDouble(dt, naem_r_g[i], "Lens0");
                HelpMethod.GetErrorDataIndex(d_, k, out indexs_Lens0);
                indexs_count.AddRange(indexs_Lens0);

                double[] d_Lens1 = HelpMethod.GetDataCateDouble(dt, naem_r_g[i], "Lens1");
                HelpMethod.GetErrorDataIndex(d_Lens1, k, out indexs_Lens1);
                indexs_count_Lens1.AddRange(indexs_Lens1);
            }
            indexs_Lens0 = indexs_count.Distinct().ToArray();
            if (indexs_Lens0.Count() != 0)
            {
                DataRow   row;
                DataTable errorData_dt = new DataTable("errorData");
                errorData_dt.Columns.Add("Filename");
                errorData_dt.Columns.Add("ID");



                //添加选择框
                DataGridViewCheckBoxColumn newColumn = new DataGridViewCheckBoxColumn();
                newColumn.HeaderText = "√表示可以通过";
                newColumn.Name       = "IsCheck";
                dataGridView1.Columns.Add(newColumn);

                for (int i = 0; i < indexs_Lens0.Count(); i++)
                {
                    row             = errorData_dt.NewRow();
                    row["ID"]       = indexs_Lens0[i];
                    row["Filename"] = dt.Rows[indexs_Lens0[i]]["Filename"];
                    errorData_dt.Rows.Add(row);
                }
                dataGridView1.DataSource = errorData_dt;
                dataGridView1.Visible    = true;

                int   indexs;
                int[] id;
                id = GetRowChecked(out indexs);

                //foreach (var item in id)
                //{
                //   double dd= Convert.ToDouble(dt.Rows[item][""]);
                //}
            }
        }