Esempio n. 1
0
        //获取DataTable中某一string的位置
        public int[] getPoints(DataTable dt, string findString)
        {
            getDataTablePointsInfo sectionInfo = new getDataTablePointsInfo(dt);

            int[][] Pannel_Points = sectionInfo.GetInfo_Between(findString);

            return(Pannel_Points[0]);
        }
Esempio n. 2
0
        //获取区间三个位置点    "Pannel information"  "Calculation results"  "Machine configration'  的 位置
        public void getPannelCalculationMachineconf_Point()
        {
            //获取 四个位置点
            string findString_Panel            = "Panel information";
            string findString_JOB              = "JOB";
            string findString2                 = "Calculation results";
            string findString3                 = "Machine configration";
            getDataTablePointsInfo sectionInfo = new getDataTablePointsInfo(Resultdt);

            int[][] Pannel_Points      = sectionInfo.GetInfo_Between(findString_Panel);
            int[][] Calculation_Points = sectionInfo.GetInfo_Between(findString2);
            int[][] Machineconf_Points = sectionInfo.GetInfo_Between(findString3);

            Pannel_Point      = Pannel_Points[0];
            Calculation_Point = Calculation_Points[0];
            Machineconf_Point = Machineconf_Points[0];
            JOB_Point         = sectionInfo.GetInfo_Between(findString_JOB)[0];
        }
Esempio n. 3
0
        /*
         * //获取Calculation results下的所有 Pattern 位置
         * //Pattern1\Pattern2\Pattern3  Pattern格式
         * public void getCalculationPatterns()
         * {
         *  //获取的Pattern 字符,不是完全匹配
         *  string findString1 = "Pattern";
         *
         *  getDataTablePointsInfo sectionInfo = new getDataTablePointsInfo(dt, Calculation_Point, Machineconf_Point);
         *
         *  calculation_Pattern_POints = sectionInfo.GetInfo_Between(findString1, false);
         *
         * }
         */

        //获取Machine configration下的所有 Pattern 位置
        //Pattern1\Pattern2\Pattern3  Pattern格式
        public void getMachineconfPatterns()
        {
            //获取的Pattern 字符,不是完全匹配
            string findString_Pattern = "Pattern";

            getDataTablePointsInfo sectionInfo = new getDataTablePointsInfo(Resultdt, Machineconf_Point);

            machineconf_Pattern_POints = sectionInfo.GetInfo_Between(findString_Pattern, false);
        }
Esempio n. 4
0
        //获取DataTable中两点间某一string的位置
        public int[] getPoints(DataTable dt, int[] Point1, int[] Point2, string findString1)
        {
            getDataTablePointsInfo sectionInfo = new getDataTablePointsInfo(dt, Point1, Point2);

            return(sectionInfo.GetInfo_Between(findString1)[0]);
        }