ASP.NET MVC- AngularJS Treeview

MVC application. AngularJS Treeview is a expandable node list that expand the child nodes whild selected. Compatible: Safari, Chrome, Firefox, Opera, IE8, IE9 and mobile browsers (Android, Chrome Mobile, iOS Safari) Clone: Use Git or checkout with SVN using the web URL.  Attri

C# (8.7 MB)
 
 
 
 
 
(0)
734 times
Add to favorites
7/4/2016
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
��USE [master]

GO

/****** Object:  Database [AngularTree]    Script Date: 6/22/2016 7:26:55 PM ******/

CREATE DATABASE [AngularTree] ON  PRIMARY 

( NAME = N'AngularTree', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\AngularTree.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )

 LOG ON 

( NAME = N'AngularTree_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\AngularTree_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)

GO

IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))

begin

EXEC [AngularTree].[dbo].[sp_fulltext_database] @action = 'enable'

end

GO

ALTER DATABASE [AngularTree] SET ANSI_NULL_DEFAULT OFF 

GO

ALTER DATABASE [AngularTree] SET ANSI_NULLS OFF 

GO

ALTER DATABASE [AngularTree] SET ANSI_PADDING OFF 

GO

ALTER DATABASE [AngularTree] SET ANSI_WARNINGS OFF 

GO

ALTER DATABASE [AngularTree] SET ARITHABORT OFF 

GO

ALTER DATABASE [AngularTree] SET AUTO_CLOSE OFF 

GO

ALTER DATABASE [AngularTree] SET AUTO_SHRINK OFF 

GO

ALTER DATABASE [AngularTree] SET AUTO_UPDATE_STATISTICS ON 

GO

ALTER DATABASE [AngularTree] SET CURSOR_CLOSE_ON_COMMIT OFF 

GO

ALTER DATABASE [AngularTree] SET CURSOR_DEFAULT  GLOBAL 

GO

ALTER DATABASE [AngularTree] SET CONCAT_NULL_YIELDS_NULL OFF 

GO

ALTER DATABASE [AngularTree] SET NUMERIC_ROUNDABORT OFF 

GO

ALTER DATABASE [AngularTree] SET QUOTED_IDENTIFIER OFF 

GO

ALTER DATABASE [AngularTree] SET RECURSIVE_TRIGGERS OFF 

GO

ALTER DATABASE [AngularTree] SET  DISABLE_BROKER 

GO

ALTER DATABASE [AngularTree] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 

GO

ALTER DATABASE [AngularTree] SET DATE_CORRELATION_OPTIMIZATION OFF 

GO

ALTER DATABASE [AngularTree] SET TRUSTWORTHY OFF 

GO

ALTER DATABASE [AngularTree] SET ALLOW_SNAPSHOT_ISOLATION OFF 

GO

ALTER DATABASE [AngularTree] SET PARAMETERIZATION SIMPLE 

GO

ALTER DATABASE [AngularTree] SET READ_COMMITTED_SNAPSHOT OFF 

GO

ALTER DATABASE [AngularTree] SET HONOR_BROKER_PRIORITY OFF 

GO

ALTER DATABASE [AngularTree] SET RECOVERY FULL 

GO

ALTER DATABASE [AngularTree] SET  MULTI_USER 

GO

ALTER DATABASE [AngularTree] SET PAGE_VERIFY CHECKSUM  

GO

ALTER DATABASE [AngularTree] SET DB_CHAINING OFF 

GO

EXEC sys.sp_db_vardecimal_storage_format N'AngularTree', N'ON'

GO

USE [AngularTree]

GO

/****** Object:  Table [dbo].[Role]    Script Date: 6/22/2016 7:26:55 PM ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE TABLE [dbo].[Role](

	[RoleID] [int] NOT NULL,

	[RoleName] [nvarchar](50) NULL,

	[ParentID] [int] NULL,

	[Child] [int] NULL,

 CONSTRAINT [PK_Role] PRIMARY KEY CLUSTERED 

(

	[RoleID] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]



GO

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (1, N'Member', 1, NULL)

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (2, N'Guest', 1, NULL)

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (3, N'Admin', 1, 1)

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (4, N'Guest-1', 2, 1)

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (5, N'Editor', 1, 1)

INSERT [dbo].[Role] ([RoleID], [RoleName], [ParentID], [Child]) VALUES (6, N'Guest-2', 4, 1)

USE [master]

GO

ALTER DATABASE [AngularTree] SET  READ_WRITE 

GO