示例#1
0
 public TestStringData()
 {
     MethodTableReference.initTable();
     Data.DataTest.initDataTest();
 }
示例#2
0
        public string stringData(string expression)
        {
            string[] arr = expression.Split(':');
            if (arr.Length == 1)
            {
                return("ERROR#1");
            }
            string methodName    = arr[0];
            string stockCode     = arr[1];
            string timeRangeType = "W0";

            if (arr.Length >= 3)
            {
                timeRangeType = arr[2];
            }
            switch (stockCode.ToUpper())
            {
            default:
                string result = "###";
                try
                {
                    result = ReflectionUtils.GetPropValue(Data.DataTest.lstDataTest[stockCode.ToUpper()], MethodTableReference.getMethodName(methodName)).ToString();
                }
                catch (Exception)
                {
                }
                return(result);
            }
            return("Undefined");
        }