Permalink
Browse files

Update to Ext.NET Community (AGPL) release 2.0.0.rc1

Signed-off-by: Geoffrey McGill <geoff@ext.net>
  • Loading branch information...
1 parent 47e4f23 commit fbfa8adb25b171e778274ee6d1fed4eef71ec19a Geoffrey McGill committed Jun 21, 2012
Showing 3,932 changed files with 135,485 additions and 8,436 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
View
@@ -0,0 +1,19 @@
+<%@ Page Language="C#" %>
+
+<!DOCTYPE html>
+
+<html>
+<head runat="server">
+ <title>The page not found : Ext.NET Examples</title>
+ <style type="text/css">
+ body {
+ background-color : #fff;
+ background-image : url(/resource/images/404.png);
+ background-repeat : no-repeat;
+ background-position : top center;
+ }
+ </style>
+</head>
+<body>
+</body>
+</html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,176 @@
+use "SimpleTasks"
+go
+
+
+/* DROP OBJECTS */
+
+if exists (select * from sys.objects where name = 'Reset')
+ drop procedure "Reset"
+GO
+
+CREATE PROCEDURE Reset
+ /*
+ (
+ @parameter1 int = 5,
+ @parameter2 datatype OUTPUT
+ )
+ */
+AS
+ BEGIN
+ EXECUTE sp_executesql N'/* INITIALIZE */
+
+SET DATEFORMAT ymd
+
+
+use "SimpleTasks"
+
+
+/* DROP OBJECTS */
+
+if exists (select * from sys.objects where name = ''Task'')
+ drop table "Task"
+
+
+if exists (select * from sys.objects where name = ''Category'')
+ drop table "Category"
+
+
+if exists (select * from sys.objects where name = ''IsListParent'')
+ drop function "IsListParent"
+
+
+
+
+
+/* CREATE TABLES */
+
+CREATE TABLE "Category" (
+ "ID" "int" IDENTITY (1, 1) NOT NULL ,
+ "ParentID" "int" NULL,
+ "Name" nvarchar (MAX) NOT NULL ,
+ "IsFolder" bit NOT NULL,
+ CONSTRAINT "PK_Category" PRIMARY KEY CLUSTERED
+ (
+ "ID"
+ ),
+ CONSTRAINT "FK_Category_Category" FOREIGN KEY
+ (
+ "ParentID"
+ ) REFERENCES "Category" (
+ "ID"
+ )
+)
+
+
+CREATE TABLE "Task" (
+ "ID" "int" IDENTITY (1, 1) NOT NULL ,
+ "CategoryID" "int" NOT NULL,
+ "Title" nvarchar (MAX) NOT NULL ,
+ "Description" nvarchar (MAX) NULL ,
+ "DueDate" "datetime" NOT NULL ,
+ "CompletedDate" "datetime" NULL ,
+ "Reminder" "datetime" NULL,
+ "Completed" bit NOT NULL,
+ CONSTRAINT "PK_Task" PRIMARY KEY CLUSTERED
+ (
+ "ID"
+ ),
+ CONSTRAINT "FK_Task_Category" FOREIGN KEY
+ (
+ "CategoryID"
+ ) REFERENCES "Category" (
+ "ID"
+ )
+)
+
+
+
+/* ADD DATA */
+
+set quoted_identifier on
+
+
+set identity_insert "Category" on
+
+
+ALTER TABLE "Category" NOCHECK CONSTRAINT ALL
+
+
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(1, null, ''All Lists'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(2, 1, ''Work'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(3, 1, ''Home'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(4, 1, ''Misc'', 1)
+
+
+set identity_insert "Category" off
+
+
+ALTER TABLE "Category" CHECK CONSTRAINT ALL
+
+
+
+set identity_insert "Task" on
+
+
+ALTER TABLE "Task" NOCHECK CONSTRAINT ALL
+
+
+DECLARE @Date DATETIME = GETDATE()
+Declare @DayOfMonth TinyInt Set @DayOfMonth = DAY(@Date) - 1
+Declare @Month TinyInt Set @Month = MONTH(@Date) - 1
+Declare @Year Integer Set @Year = YEAR(@Date)
+SET @Date = DateAdd(day, @DayOfMonth,
+ DateAdd(month, @Month,
+ DateAdd(Year, @Year-1900, 0)))
+
+/* SUBTRACT 3 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(1, 4, ''Groceries'', ''Milk and Eggs'', DATEADD(DAY, -3, @Date), DATEADD(DAY, -3, @Date), null, 1)
+
+/* SUBTRACT 2 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(2, 3, ''Bike Tune-up'', ''Drop off bike for tune-up'', DATEADD(DAY, -2, @Date), DATEADD(DAY, -2, @Date), null, 1)
+
+/* TODAY */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(3, 2, ''Finish demo application'', null, @Date, null, null, 0)
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(4, 3, ''Movie Night'', ''Rent Family Movie'', @Date, null, null, 0)
+
+/* PLUS 20 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(5, 2, ''Documentation Kick Off'', ''Meeting to discuss documentation project'', DATEADD(DAY, 20, @Date), null, null, 0)
+
+
+set identity_insert "Task" off
+
+
+ALTER TABLE "Task" CHECK CONSTRAINT ALL
+
+ '
+
+ EXECUTE sp_executesql N'
+
+CREATE FUNCTION IsListParent
+ (
+ @targetNode int,
+ @dropNode int
+ )
+
+ RETURNS bit
+ AS
+ BEGIN
+ WHILE (EXISTS(SELECT * FROM Category WHERE ParentID = @dropNode ))
+ BEGIN
+ SELECT @dropNode = ID FROM Category WHERE ParentID = @dropNode
+ IF @dropNode = @targetNode
+ BEGIN
+ RETURN 1
+ END
+ END
+ RETURN 0
+ END
+'
+ RETURN
+ END
+GO
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,176 @@
+use "SimpleTasks"
+go
+
+
+/* DROP OBJECTS */
+
+if exists (select * from sys.objects where name = 'Reset')
+ drop procedure "Reset"
+GO
+
+CREATE PROCEDURE Reset
+ /*
+ (
+ @parameter1 int = 5,
+ @parameter2 datatype OUTPUT
+ )
+ */
+AS
+ BEGIN
+ EXECUTE sp_executesql N'/* INITIALIZE */
+
+SET DATEFORMAT ymd
+
+
+use "SimpleTasks"
+
+
+/* DROP OBJECTS */
+
+if exists (select * from sys.objects where name = ''Task'')
+ drop table "Task"
+
+
+if exists (select * from sys.objects where name = ''Category'')
+ drop table "Category"
+
+
+if exists (select * from sys.objects where name = ''IsListParent'')
+ drop function "IsListParent"
+
+
+
+
+
+/* CREATE TABLES */
+
+CREATE TABLE "Category" (
+ "ID" "int" IDENTITY (1, 1) NOT NULL ,
+ "ParentID" "int" NULL,
+ "Name" nvarchar (MAX) NOT NULL ,
+ "IsFolder" bit NOT NULL,
+ CONSTRAINT "PK_Category" PRIMARY KEY CLUSTERED
+ (
+ "ID"
+ ),
+ CONSTRAINT "FK_Category_Category" FOREIGN KEY
+ (
+ "ParentID"
+ ) REFERENCES "Category" (
+ "ID"
+ )
+)
+
+
+CREATE TABLE "Task" (
+ "ID" "int" IDENTITY (1, 1) NOT NULL ,
+ "CategoryID" "int" NOT NULL,
+ "Title" nvarchar (MAX) NOT NULL ,
+ "Description" nvarchar (MAX) NULL ,
+ "DueDate" "datetime" NOT NULL ,
+ "CompletedDate" "datetime" NULL ,
+ "Reminder" "datetime" NULL,
+ "Completed" bit NOT NULL,
+ CONSTRAINT "PK_Task" PRIMARY KEY CLUSTERED
+ (
+ "ID"
+ ),
+ CONSTRAINT "FK_Task_Category" FOREIGN KEY
+ (
+ "CategoryID"
+ ) REFERENCES "Category" (
+ "ID"
+ )
+)
+
+
+
+/* ADD DATA */
+
+set quoted_identifier on
+
+
+set identity_insert "Category" on
+
+
+ALTER TABLE "Category" NOCHECK CONSTRAINT ALL
+
+
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(1, null, ''All Lists'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(2, 1, ''Work'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(3, 1, ''Home'', 1)
+INSERT "Category"("ID", "ParentID", "Name", "IsFolder") VALUES(4, 1, ''Misc'', 1)
+
+
+set identity_insert "Category" off
+
+
+ALTER TABLE "Category" CHECK CONSTRAINT ALL
+
+
+
+set identity_insert "Task" on
+
+
+ALTER TABLE "Task" NOCHECK CONSTRAINT ALL
+
+
+DECLARE @Date DATETIME = GETDATE()
+Declare @DayOfMonth TinyInt Set @DayOfMonth = DAY(@Date) - 1
+Declare @Month TinyInt Set @Month = MONTH(@Date) - 1
+Declare @Year Integer Set @Year = YEAR(@Date)
+SET @Date = DateAdd(day, @DayOfMonth,
+ DateAdd(month, @Month,
+ DateAdd(Year, @Year-1900, 0)))
+
+/* SUBTRACT 3 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(1, 4, ''Groceries'', ''Milk and Eggs'', DATEADD(DAY, -3, @Date), DATEADD(DAY, -3, @Date), null, 1)
+
+/* SUBTRACT 2 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(2, 3, ''Bike Tune-up'', ''Drop off bike for tune-up'', DATEADD(DAY, -2, @Date), DATEADD(DAY, -2, @Date), null, 1)
+
+/* TODAY */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(3, 2, ''Finish demo application'', null, @Date, null, null, 0)
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(4, 3, ''Movie Night'', ''Rent Family Movie'', @Date, null, null, 0)
+
+/* PLUS 20 DAYS */
+INSERT "Task"("ID", "CategoryID", "Title", "Description", "DueDate", "CompletedDate", "Reminder", "Completed")
+ VALUES(5, 2, ''Documentation Kick Off'', ''Meeting to discuss documentation project'', DATEADD(DAY, 20, @Date), null, null, 0)
+
+
+set identity_insert "Task" off
+
+
+ALTER TABLE "Task" CHECK CONSTRAINT ALL
+
+ '
+
+ EXECUTE sp_executesql N'
+
+CREATE FUNCTION IsListParent
+ (
+ @targetNode int,
+ @dropNode int
+ )
+
+ RETURNS bit
+ AS
+ BEGIN
+ WHILE (EXISTS(SELECT * FROM Category WHERE ParentID = @dropNode ))
+ BEGIN
+ SELECT @dropNode = ID FROM Category WHERE ParentID = @dropNode
+ IF @dropNode = @targetNode
+ BEGIN
+ RETURN 1
+ END
+ END
+ RETURN 0
+ END
+'
+ RETURN
+ END
+GO
Binary file not shown.
@@ -0,0 +1,22 @@
+Copyright (c) 2007-2012, Ext.NET, Inc. (http://www.ext.net/). All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+See also:
+ http://www.ext.net/
Oops, something went wrong.

0 comments on commit fbfa8ad

Please sign in to comment.