예제 #1
0
        /// <summary>
        /// 获取测试参数名称
        /// </summary>
        /// <param name="q"></param>
        /// <param name="useIndex"></param>
        /// <returns></returns>
        private List <TestParmNameInfo> GetTestParmNames(QueryArgs q)
        {
            List <TestParmNameInfo> results = new List <TestParmNameInfo>();
            var rdr = _Connection.ExecuteQuery(q.TableName, q.Condition);

            while (rdr.Read())
            {
                TestParmNameInfo tstPrmNameInfo = new TestParmNameInfo();
                tstPrmNameInfo.MTest    = (int)rdr["MTest"];
                tstPrmNameInfo.RunType  = (int)rdr["RunType"];
                tstPrmNameInfo.OrderNum = (int)rdr["OrderNum"];
                tstPrmNameInfo.ParmType = (int)rdr["ParmType"];
                tstPrmNameInfo.ParmName = (string)rdr["ParmName"];
                results.Add(tstPrmNameInfo);
            }

            return(results);
        }
예제 #2
0
        /// <summary>
        /// 获取测试参数名称
        /// </summary>
        /// <param name="q"></param>
        /// <param name="useIndex"></param>
        /// <returns></returns>
        private List<TestParmNameInfo> GetTestParmNames(QueryArgs q)
        {
            List<TestParmNameInfo> results = new List<TestParmNameInfo>();
            var rdr = _Connection.ExecuteQuery(q.TableName, q.Condition);
            while (rdr.Read())
            {
                TestParmNameInfo tstPrmNameInfo = new TestParmNameInfo();
                tstPrmNameInfo.MTest = (int)rdr["MTest"];
                tstPrmNameInfo.RunType = (int)rdr["RunType"];
                tstPrmNameInfo.OrderNum = (int)rdr["OrderNum"];
                tstPrmNameInfo.ParmType = (int)rdr["ParmType"];
                tstPrmNameInfo.ParmName = (string)rdr["ParmName"];
                results.Add(tstPrmNameInfo);
            }

            return results;
        }