Skip to content

Commit 1dcfd33

Browse files
committed
documentation(EJ2-67661): UG document to save and load report using database.
1 parent 6bff378 commit 1dcfd33

42 files changed

Lines changed: 341703 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MVC/PivotTable/.vs/PivotTable/config/applicationhost.config

Lines changed: 1025 additions & 0 deletions
Large diffs are not rendered by default.
175 KB
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace PivotTable
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15+
"~/Scripts/jquery.validate*"));
16+
17+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
18+
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
19+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20+
"~/Scripts/modernizr-*"));
21+
22+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23+
"~/Scripts/bootstrap.js"));
24+
25+
bundles.Add(new StyleBundle("~/Content/css").Include(
26+
"~/Content/bootstrap.css",
27+
"~/Content/site.css"));
28+
}
29+
}
30+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace PivotTable
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace PivotTable
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}

MVC/PivotTable/Content/Site.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}
25+
26+
.navbar-inverse .navbar-toggle:hover,
27+
.navbar-inverse .navbar-toggle:focus {
28+
background-color: #777;
29+
border-color: #fff
30+
}

MVC/PivotTable/Controllers/HomeController.cs

Lines changed: 195 additions & 0 deletions
Large diffs are not rendered by default.

MVC/PivotTable/Global.asax

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="PivotTable.MvcApplication" Language="C#" %>

MVC/PivotTable/Global.asax.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Optimization;
7+
using System.Web.Routing;
8+
using System.Web.Security;
9+
using System.Web.SessionState;
10+
11+
namespace PivotTable
12+
{
13+
public class MvcApplication : System.Web.HttpApplication
14+
{
15+
protected void Application_Start()
16+
{
17+
AreaRegistration.RegisterAllAreas();
18+
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
19+
RouteConfig.RegisterRoutes(RouteTable.Routes);
20+
BundleConfig.RegisterBundles(BundleTable.Bundles);
21+
}
22+
}
23+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace PivotTable.Models
2+
{
3+
public class PivotData
4+
{
5+
public int Sold { get; set; }
6+
public int In_Stock { get; set; }
7+
public double Amount { get; set; }
8+
public string Country { get; set; }
9+
public string Product_Categories { get; set; }
10+
public string Products { get; set; }
11+
public string Order_Source { get; set; }
12+
public string Year { get; set; }
13+
public string Quarter { get; set; }
14+
}
15+
}

0 commit comments

Comments
 (0)