//日志显示部分
        #region 获取表里的字段
        private void TableColumnMeta()
        {
            var debugInfo = new NatureDebugInfo {
                Title = "[Nature.Service.MetaData.GetMeta.TableColumnMeta]获取表里的字段"
            };

            BaseDebug.DetailList.Add(debugInfo);

            //获取页面视图元数据
            //GetPageViewMeta(MasterPageViewID, debugInfo.DetailList);

            var managerTableColumnMeta = new ManagerTableColumnMeta
            {
                DalCollection = Dal,
                PageViewID    = ModuleID //这里ModuleID传递过来的是表id
            };

            var sb = new StringBuilder(3000);

            sb.Append("\"colMeta\":{ ");

            Dictionary <int, IColumn> dictFormColumnMeta = managerTableColumnMeta.GetMetaData(debugInfo.DetailList);

            //遍历元数据,给dic_ColumnsValue赋值——字段值
            foreach (KeyValuePair <int, IColumn> info in dictFormColumnMeta)
            {
                var colMeta = (ColumnMeta)info.Value;
                if (colMeta.ColumnKind != 15)
                {
                    sb.Append("\"");
                    sb.Append(colMeta.ColumnID);
                    sb.Append("\":\"");
                    sb.Append(colMeta.ColName);
                    sb.Append("\",");
                }
            }


            sb[sb.Length - 1] = '}';

            Response.Write(sb.ToString());

            debugInfo.Stop();
        }
        //日志显示部分
        #region 获取表里的字段
        private void TableColumnMeta()
        {
            var debugInfo = new NatureDebugInfo { Title = "[Nature.Service.MetaData.GetMeta.TableColumnMeta]获取表里的字段" };
            BaseDebug.DetailList.Add(debugInfo);

            //获取页面视图元数据
            //GetPageViewMeta(MasterPageViewID, debugInfo.DetailList);

            var managerTableColumnMeta = new ManagerTableColumnMeta
            {
                DalCollection = Dal,
                PageViewID = ModuleID //这里ModuleID传递过来的是表id
            };

            var sb = new StringBuilder(3000);
            sb.Append("\"colMeta\":{ ");

            Dictionary<int, IColumn> dictFormColumnMeta = managerTableColumnMeta.GetMetaData(debugInfo.DetailList);

            //遍历元数据,给dic_ColumnsValue赋值——字段值
            foreach (KeyValuePair<int, IColumn> info in dictFormColumnMeta)
            {
                var colMeta = (ColumnMeta)info.Value;
                if (colMeta.ColumnKind != 15)
                {
                    sb.Append("\"");
                    sb.Append(colMeta.ColumnID);
                    sb.Append("\":\"");
                    sb.Append(colMeta.ColName);
                    sb.Append("\",");
                }
            }


            sb[sb.Length - 1] = '}';

            Response.Write(sb.ToString());

            debugInfo.Stop();
           
        }