示例#1
0
        protected override System.Web.UI.DataSourceView GetView(string viewName)
        {
            switch (viewName)
            {
            case VIEW_NAME_USERS:
                if (this.users == null)
                {
                    this.users = new ViewUserSchemas(this);
                }
                return(this.users);

            case VIEW_NAME_ROOTS:
                if (this.roots == null)
                {
                    this.roots = new ViewRootOrgnizations(this);
                }
                return(this.roots);

            case VIEW_NAME_ALLTYPES:
                if (this.allTypes == null)
                {
                    this.allTypes = new ViewAllSchemas(this);
                }
                return(this.allTypes);

            default:
                return(null);
            }
        }
		protected override System.Web.UI.DataSourceView GetView(string viewName)
		{
			switch (viewName)
			{
				case VIEW_NAME_USERS:
					if (this.users == null)
						this.users = new ViewUserSchemas(this);
					return this.users;
				case VIEW_NAME_ROOTS:
					if (this.roots == null)
						this.roots = new ViewRootOrgnizations(this);
					return this.roots;
				case VIEW_NAME_ALLTYPES:
					if (this.allTypes == null)
						this.allTypes = new ViewAllSchemas(this);
					return this.allTypes;
				default:
					return null;
			}
		}