v18.4.0.39
This commit is contained in:
Родитель
42df79ca2b
Коммит
3e4d6e1d78
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1 @@
|
|||
|
Двоичный файл не отображается.
|
@ -0,0 +1,40 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
||||
namespace samplebrowser.Areas.ExpenseAnalysis.Controllers
|
||||
{
|
||||
[Area("ExpenseAnalysis")]
|
||||
public class ExpenseController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
List<string> ls = new List<string>();
|
||||
ls.Add("All");
|
||||
ls.Add("January");
|
||||
ls.Add("February");
|
||||
ls.Add("March");
|
||||
ls.Add("April");
|
||||
ls.Add("May");
|
||||
ls.Add("June");
|
||||
ls.Add("July");
|
||||
ls.Add("August");
|
||||
ls.Add("September");
|
||||
ls.Add("October");
|
||||
ls.Add("November");
|
||||
ls.Add("December");
|
||||
ViewBag.dropdown = ls;
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,575 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
|
||||
namespace samplebrowser.Areas.ExpenseAnalysis.Models
|
||||
{
|
||||
public class ExpenseData
|
||||
{
|
||||
public DateTime DateTime { get; set; }
|
||||
public string CategoryName { get; set; }
|
||||
public string SubCategory { get; set; }
|
||||
public double Amount { get; set; }
|
||||
public AccountType AccountType { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public List<ExpenseData> GenerateExpenseData(DateTime start, DateTime end, int recordCount)
|
||||
{
|
||||
var expenses = new List<ExpenseData>();
|
||||
var categories = new ExpenseCategory().GetCategories();
|
||||
var totCategory = categories.Count;
|
||||
var catCount = 0;
|
||||
int incomeMonth = 0;
|
||||
while (start < end)
|
||||
{
|
||||
var count = 0;
|
||||
while (count < recordCount)
|
||||
{
|
||||
if (catCount > totCategory - 1)
|
||||
catCount = 0;
|
||||
var category = categories[catCount];
|
||||
var expense = new ExpenseData
|
||||
{
|
||||
DateTime = start,
|
||||
AccountType = category.AccountType,
|
||||
Amount = (new Random(catCount + start.Month).Next(category.Start, category.End)),
|
||||
CategoryName = category.Name,
|
||||
SubCategory = category.SubCategory,
|
||||
Description = category.Description
|
||||
};
|
||||
if (expense.AccountType == AccountType.Positve && CheckIncome(expenses, expense.CategoryName))
|
||||
{
|
||||
incomeMonth = expense.DateTime.Month;
|
||||
}
|
||||
if (expense.AccountType == AccountType.Positve &&
|
||||
CheckDataExists(expenses, expense.CategoryName, expense.SubCategory, expense.AccountType, incomeMonth))
|
||||
{
|
||||
catCount++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (expense.AccountType == AccountType.Negative &&
|
||||
expense.SubCategory == "Mortgage/rent" && CheckNegativeDataExists(expenses, "Home", "Mortgage/rent", expense.AccountType))
|
||||
{
|
||||
|
||||
catCount++;
|
||||
continue;
|
||||
}
|
||||
|
||||
expenses.Add(expense);
|
||||
count++;
|
||||
catCount++;
|
||||
|
||||
}
|
||||
start = start.AddDays(1);
|
||||
|
||||
}
|
||||
|
||||
return expenses;
|
||||
}
|
||||
|
||||
public bool CheckDataExists(List<ExpenseData> expenses, string category, string subCategory, AccountType type, int incomeMonth)
|
||||
{
|
||||
|
||||
return expenses.Any(expense => expense.CategoryName == category && expense.SubCategory == subCategory && incomeMonth == expense.DateTime.Month);
|
||||
}
|
||||
public bool CheckNegativeDataExists(List<ExpenseData> expenses, string category, string subCategory, AccountType type)
|
||||
{
|
||||
|
||||
return expenses.Any(expense => expense.CategoryName == category && expense.SubCategory == subCategory);
|
||||
}
|
||||
public bool CheckIncome(List<ExpenseData> expenses, string category)
|
||||
{
|
||||
return expenses.Any(expense => expense.CategoryName == category);
|
||||
}
|
||||
}
|
||||
|
||||
public enum AccountType
|
||||
{
|
||||
Positve,
|
||||
Negative
|
||||
}
|
||||
class ExpenseCategory
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string SubCategory { get; set; }
|
||||
public int Start { get; set; }
|
||||
public int End { get; set; }
|
||||
public AccountType AccountType { get; set; }
|
||||
public string Description { get; set; }
|
||||
public List<ExpenseCategory> GetCategories()
|
||||
{
|
||||
var categories = new List<ExpenseCategory>
|
||||
{
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Mortgage/rent",
|
||||
Start = 350,
|
||||
End = 700,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Bank of America"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Home repairs",
|
||||
Start = 50,
|
||||
End = 300,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Lowes"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Mobile telephone",
|
||||
Start = 400,
|
||||
End = 600,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Verizon Wireless"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Utilities",
|
||||
Start = 100,
|
||||
End = 200,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Duke energy"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Home improvement",
|
||||
Start = 1000,
|
||||
End = 2000,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Home depot"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Home",
|
||||
SubCategory = "Home security",
|
||||
Start = 220,
|
||||
End = 300,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "ADT"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Daily Living",
|
||||
SubCategory = "Dry cleaning",
|
||||
Start = 200,
|
||||
End = 300,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "ABC Cleaners"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Daily Living",
|
||||
SubCategory = "Dining out",
|
||||
Start = 50,
|
||||
End = 100,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Olive Garden"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Daily Living",
|
||||
SubCategory = "Groceries",
|
||||
Start = 120,
|
||||
End = 200,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Kroger"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Dues/subscriptions",
|
||||
SubCategory = "Internet connection",
|
||||
Start = 300,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Time warner cable"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Dues/subscriptions",
|
||||
SubCategory = "Newspapers",
|
||||
Start = 12,
|
||||
End = 20,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Wall Street Journal"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Entertainment",
|
||||
SubCategory = "Movies/plays",
|
||||
Start = 5,
|
||||
End = 10,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Weekend Movies"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Entertainment",
|
||||
SubCategory = "Concerts/clubs",
|
||||
Start = 1000,
|
||||
End = 2000,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Comedy drama show"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Financial obligations",
|
||||
SubCategory = "Retirement (401k, Roth IRA)",
|
||||
Start = 200,
|
||||
End = 400,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Retirement"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Financial obligations",
|
||||
SubCategory = "Income tax (additional)",
|
||||
Start = 200,
|
||||
End = 300,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Income tax"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Health",
|
||||
SubCategory = "Insurance (H)",
|
||||
Start = 300,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "United Healthcare"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Health",
|
||||
SubCategory = "Prescriptions",
|
||||
Start = 300,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Rite Aid"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Personal",
|
||||
SubCategory = "Clothing",
|
||||
Start = 300,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Kohls"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Personal",
|
||||
SubCategory = "Gifts",
|
||||
Start = 100,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Amazon.com"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Personal",
|
||||
SubCategory = "Books",
|
||||
Start = 100,
|
||||
End = 500,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "Purchased novels and technology books"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Transportation",
|
||||
SubCategory = "Gas/fuel",
|
||||
Start = 200,
|
||||
End = 400,
|
||||
AccountType = AccountType.Negative
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Transportation",
|
||||
SubCategory = "Repairs",
|
||||
Start = 50,
|
||||
End = 100,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "AAA"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Transportation",
|
||||
SubCategory = "Parking",
|
||||
Start = 10,
|
||||
End = 50,
|
||||
AccountType = AccountType.Negative,
|
||||
Description = "1 hr parking charge"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Income",
|
||||
SubCategory = "Salary",
|
||||
Start = 15000,
|
||||
End = 20000,
|
||||
AccountType = AccountType.Positve,
|
||||
Description = "Salary credited"
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Income",
|
||||
SubCategory = "Interest/dividends",
|
||||
Start = 500,
|
||||
End = 700,
|
||||
AccountType = AccountType.Positve
|
||||
},
|
||||
new ExpenseCategory
|
||||
{
|
||||
Name = "Income",
|
||||
SubCategory = "Miscellaneous",
|
||||
Start = 4000,
|
||||
End = 5000,
|
||||
AccountType = AccountType.Positve
|
||||
}
|
||||
};
|
||||
|
||||
return categories;
|
||||
}
|
||||
}
|
||||
|
||||
class ProcessedExpenseData
|
||||
{
|
||||
private double _homeAmount;
|
||||
private double _securityAmount;
|
||||
private double _entertainmentAmount;
|
||||
private double _healthAmount;
|
||||
private double _transportAmount;
|
||||
private double _mortgage;
|
||||
private double _homerepair;
|
||||
private double _utilities;
|
||||
private double _homeImprovement;
|
||||
private double _mobileTelephone;
|
||||
private double _drycleaing;
|
||||
private double _dininout;
|
||||
private double _groceries;
|
||||
private double _movies;
|
||||
private double _clubs;
|
||||
private double _insurance;
|
||||
private double _prescriptions;
|
||||
private double _gas;
|
||||
private double _repairs;
|
||||
private double _parking;
|
||||
private double _clothing;
|
||||
private double _gifts;
|
||||
private double _books;
|
||||
|
||||
public string MonthName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public ProcessedExpenseData(string months)
|
||||
{
|
||||
this.MonthName = months;
|
||||
TotalExpenses = (new ExpenseData()).GenerateExpenseData(new DateTime(2013, 1, 1), new DateTime(2013, 12, 31),
|
||||
2);
|
||||
this.Update();
|
||||
}
|
||||
|
||||
|
||||
private void Update()
|
||||
{
|
||||
var month = this.MonthName;
|
||||
if (month.Equals("All"))
|
||||
{
|
||||
Expenses = TotalExpenses;
|
||||
|
||||
var max = TotalExpenses.Where(x => x.AccountType == AccountType.Negative).Max(x => x.Amount);
|
||||
var maxExpense = TotalExpenses.First(x => x.Amount.Equals(max));
|
||||
MostSpent = max.ToString("c") + " in " +
|
||||
CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(maxExpense.DateTime.Month) + " " +
|
||||
maxExpense.DateTime.Year;
|
||||
|
||||
var min = TotalExpenses.Where(x => x.AccountType == AccountType.Negative).Min(x => x.Amount);
|
||||
var minExpense = TotalExpenses.First(x => x.Amount.Equals(min));
|
||||
LeastSpent = min.ToString("c") + " in " +
|
||||
CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(minExpense.DateTime.Month) + " " +
|
||||
minExpense.DateTime.Year;
|
||||
|
||||
var avg = TotalExpenses.Where(x => x.AccountType == AccountType.Negative).Average(x => x.Amount);
|
||||
AverageSpent = avg.ToString("c") + "/month";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Expenses = TotalExpenses.Where(ed =>
|
||||
{
|
||||
var m = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(ed.DateTime.Month);
|
||||
return m.ToLower().Equals(month.ToString().ToLower());
|
||||
}).ToList();
|
||||
if (Expenses.Count > 0)
|
||||
{
|
||||
var max = Expenses.Where(x => x.AccountType == AccountType.Negative).Max(x => x.Amount);
|
||||
var maxExpense = Expenses.First(x => x.Amount.Equals(max));
|
||||
MostSpent = max.ToString("c") + " on " +
|
||||
CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(maxExpense.DateTime.Month) + " " +
|
||||
maxExpense.DateTime.Day;
|
||||
|
||||
var min = Expenses.Where(x => x.AccountType == AccountType.Negative).Min(x => x.Amount);
|
||||
var minExpense = Expenses.First(x => x.Amount.Equals(max));
|
||||
LeastSpent = min.ToString("c") + " on " +
|
||||
CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(minExpense.DateTime.Month) + " " +
|
||||
minExpense.DateTime.Day;
|
||||
|
||||
var avg = Expenses.Where(x => x.AccountType == AccountType.Negative).Average(x => x.Amount);
|
||||
AverageSpent = avg.ToString("c") + "/month";
|
||||
}
|
||||
}
|
||||
if (Expenses.Count > 0)
|
||||
{
|
||||
PositiveAmount = Expenses.Where(x => x.AccountType == AccountType.Positve).Sum(x => x.Amount);
|
||||
NegativeAmount = Expenses.Where(x => x.AccountType == AccountType.Negative).Sum(x => x.Amount);
|
||||
BalanceAmount = PositiveAmount - NegativeAmount;
|
||||
|
||||
NoPositiveTransactions = Expenses.Count(x => x.AccountType == AccountType.Positve);
|
||||
NoNegativeTransactions = Expenses.Count(x => x.AccountType == AccountType.Negative);
|
||||
NoTotalTransactions = NoPositiveTransactions + NoNegativeTransactions;
|
||||
}
|
||||
#region PieData
|
||||
|
||||
_homeAmount = Expenses.Where(x => x.CategoryName == "Home").Sum(x => x.Amount);
|
||||
_securityAmount = Expenses.Where(x => x.CategoryName == "Daily Living").Sum(x => x.Amount);
|
||||
_entertainmentAmount = Expenses.Where(x => x.CategoryName == "Entertainment").Sum(x => x.Amount);
|
||||
_healthAmount = Expenses.Where(x => x.CategoryName == "Health").Sum(x => x.Amount);
|
||||
_transportAmount = Expenses.Where(x => x.CategoryName == "Transportation").Sum(x => x.Amount);
|
||||
_mortgage = Expenses.Where(x => x.SubCategory == "Mortgage/rent").Sum(x => x.Amount);
|
||||
_homerepair = Expenses.Where(x => x.SubCategory == "Home repairs").Sum(x => x.Amount);
|
||||
_utilities = Expenses.Where(x => x.SubCategory == "Utilities").Sum(x => x.Amount);
|
||||
_homeImprovement = Expenses.Where(x => x.SubCategory == "Home improvement").Sum(x => x.Amount);
|
||||
_mobileTelephone = Expenses.Where(x => x.SubCategory == "Mobile telephone").Sum(x => x.Amount);
|
||||
_drycleaing = Expenses.Where(x => x.SubCategory == "Dry cleaning").Sum(x => x.Amount);
|
||||
_dininout = Expenses.Where(x => x.SubCategory == "Dining out").Sum(x => x.Amount);
|
||||
_groceries = Expenses.Where(x => x.SubCategory == "Groceries").Sum(x => x.Amount);
|
||||
_movies = Expenses.Where(x => x.SubCategory == "Movies/plays").Sum(x => x.Amount);
|
||||
_clubs = Expenses.Where(x => x.SubCategory == "Concerts/clubs").Sum(x => x.Amount);
|
||||
_insurance = Expenses.Where(x => x.SubCategory == "Insurance (H)").Sum(x => x.Amount);
|
||||
_prescriptions = Expenses.Where(x => x.SubCategory == "Prescriptions").Sum(x => x.Amount);
|
||||
_gas = Expenses.Where(x => x.SubCategory == "Gas/fuel").Sum(x => x.Amount);
|
||||
_repairs = Expenses.Where(x => x.SubCategory == "Repairs").Sum(x => x.Amount);
|
||||
_parking = Expenses.Where(x => x.SubCategory == "Parking").Sum(x => x.Amount);
|
||||
_clothing = Expenses.Where(x => x.SubCategory == "Clothing").Sum(x => x.Amount);
|
||||
_gifts = Expenses.Where(x => x.SubCategory == "Gifts").Sum(x => x.Amount);
|
||||
_books = Expenses.Where(x => x.SubCategory == "Books").Sum(x => x.Amount);
|
||||
|
||||
PieExpense = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Home", Amount = _homeAmount},
|
||||
new CompanyExpense {ExpenseCategory = "Daily Living", Amount = _securityAmount},
|
||||
new CompanyExpense {ExpenseCategory = "Entertainment", Amount = _entertainmentAmount},
|
||||
new CompanyExpense {ExpenseCategory = "Health", Amount = _healthAmount},
|
||||
new CompanyExpense {ExpenseCategory = "Transportation", Amount = _transportAmount},
|
||||
new CompanyExpense {ExpenseCategory = "Personal", Amount = _transportAmount}
|
||||
};
|
||||
|
||||
Home = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Mortgage/rent", Amount = _mortgage},
|
||||
new CompanyExpense {ExpenseCategory = "Home repairs", Amount = _homerepair},
|
||||
new CompanyExpense {ExpenseCategory = "Utilities", Amount = _utilities},
|
||||
new CompanyExpense {ExpenseCategory = "Home improvement", Amount = _homeImprovement},
|
||||
new CompanyExpense {ExpenseCategory = "Mobile telephone", Amount = _mobileTelephone}
|
||||
};
|
||||
|
||||
DailyLiving = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Dry cleaning", Amount = _drycleaing},
|
||||
new CompanyExpense {ExpenseCategory = "Dining out", Amount = _dininout},
|
||||
new CompanyExpense {ExpenseCategory = "Groceries", Amount = _groceries}
|
||||
};
|
||||
|
||||
Entertainment = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Movies/plays", Amount = _movies},
|
||||
new CompanyExpense {ExpenseCategory = "Concerts/clubs", Amount = _clubs}
|
||||
};
|
||||
|
||||
Health = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Insurance (H)", Amount = _insurance},
|
||||
new CompanyExpense {ExpenseCategory = "Prescriptions", Amount = _prescriptions}
|
||||
};
|
||||
|
||||
Transportation = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Gas/fuel", Amount = _gas},
|
||||
new CompanyExpense {ExpenseCategory = "Repairs", Amount = _repairs},
|
||||
new CompanyExpense {ExpenseCategory = "Parking", Amount = _parking}
|
||||
};
|
||||
|
||||
Personal = new List<CompanyExpense>
|
||||
{
|
||||
new CompanyExpense {ExpenseCategory = "Clothing", Amount = _clothing},
|
||||
new CompanyExpense {ExpenseCategory = "Gifts", Amount = _gifts},
|
||||
new CompanyExpense {ExpenseCategory = "Books", Amount = _books}
|
||||
};
|
||||
|
||||
PieConverter = new List<CompanyExpense>();
|
||||
PieConverter = PieExpense;
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
public string MostSpent { get; set; }
|
||||
|
||||
public string LeastSpent { get; set; }
|
||||
|
||||
public string AverageSpent { get; set; }
|
||||
|
||||
public List<CompanyExpense> Personal { get; set; }
|
||||
|
||||
public List<CompanyExpense> Transportation { get; set; }
|
||||
|
||||
public List<CompanyExpense> Health { get; set; }
|
||||
|
||||
public List<CompanyExpense> Entertainment { get; set; }
|
||||
|
||||
public List<CompanyExpense> DailyLiving { get; set; }
|
||||
|
||||
public List<CompanyExpense> Home { get; set; }
|
||||
|
||||
public List<CompanyExpense> PieExpense { get; set; }
|
||||
|
||||
public List<CompanyExpense> PieConverter { get; set; }
|
||||
|
||||
public List<ExpenseData> TotalExpenses { get; set; }
|
||||
|
||||
public List<ExpenseData> Expenses { get; set; }
|
||||
|
||||
public double PositiveAmount { get; set; }
|
||||
|
||||
public double NegativeAmount { get; set; }
|
||||
|
||||
public double BalanceAmount { get; set; }
|
||||
|
||||
public int NoPositiveTransactions { get; set; }
|
||||
|
||||
public int NoNegativeTransactions { get; set; }
|
||||
|
||||
public int NoTotalTransactions { get; set; }
|
||||
}
|
||||
|
||||
public class CompanyExpense
|
||||
{
|
||||
public string ExpenseCategory { get; set; }
|
||||
public double Amount { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,218 @@
|
|||
@using Syncfusion.JavaScript;
|
||||
@using Syncfusion.JavaScript.DataVisualization;
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
@{
|
||||
Layout = "~/Areas/ExpenseAnalysis/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Essential Studio for ASP.NET Core : Expense Analysis";
|
||||
}
|
||||
<script src="@Url.Content("~/scripts/expenseanalysis/expense.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.unobtrusive.js")"></script>
|
||||
<link href="@Url.Content("~/css/expense/theme.css")" rel="stylesheet" />
|
||||
<div class="sample-title">
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="sample-container">
|
||||
<div id="control-container">
|
||||
<div class="text-title">
|
||||
<h1 style=" color: transparent; user-select: none; ">Expense Analysis</h1>
|
||||
</div>
|
||||
<div class="row imagetile">
|
||||
<div class="col-md-5">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="left-image">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div style="horz-align: right;">
|
||||
<div class="e-exptitle">
|
||||
<label class="e-name">
|
||||
David Carter
|
||||
</label><br />
|
||||
<label class="e-phone">
|
||||
Phone : +1 919.494.1974
|
||||
</label>
|
||||
<br />
|
||||
<label class="e-mail">
|
||||
email : davidc@syncfusion.com
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-7 e-values-td">
|
||||
<div class="initborder">
|
||||
<table class="e-values">
|
||||
<tr>
|
||||
<td class="pos-amt-td sideborder">
|
||||
<p class="pos-amt"></p>
|
||||
<p class="pos-text">
|
||||
Positive
|
||||
</p>
|
||||
<p class="pos-transc">
|
||||
</p>
|
||||
</td>
|
||||
<td class="neg-amt-td sideborder">
|
||||
<p class="neg-amt"></p>
|
||||
<p class="neg-text">
|
||||
Negative
|
||||
</p>
|
||||
<p class="neg-transc"></p>
|
||||
</td>
|
||||
<td class="bal-amt-td">
|
||||
<p class="bal-amt"></p>
|
||||
<p class="bal-text">
|
||||
Balance
|
||||
</p>
|
||||
<p class="bal-empty" style="visibility: hidden">
|
||||
Transaction
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chartgridtable">
|
||||
<div id="control-panel" class="add-filter-panel">
|
||||
<div class="row">
|
||||
<div class="col-md-1" style="DISPLAY: inline">
|
||||
<label class="sample-t">
|
||||
Transactions
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-8" style="DISPLAY: inline"></div>
|
||||
<div class="col-md-3" style="DISPLAY: inline">
|
||||
<table style="float: left;">
|
||||
<tr>
|
||||
<td>
|
||||
<div>
|
||||
<ej-drop-down-list id="selectMonth" width="150px" height="30px" select="changeMonth" datasource="(IEnumerable<string>)ViewBag.dropdown">
|
||||
</ej-drop-down-list>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="add-image" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="expensegridborder">
|
||||
<div class="col-xs-13 grid-container">
|
||||
<div id="ExpenseGrid">
|
||||
<ej-grid id="grid" allow-sorting="true" allow-paging="true" enable-row-hover="true" allow-keyboard-navigation="true" is-responsive="true" enable-responsive-row="false" css-class="metroblue">
|
||||
<e-edit-settings allow-editing="false" allow-adding="true" edit-mode="@EditMode.Dialog">
|
||||
</e-edit-settings>
|
||||
<e-page-settings page-count="4">
|
||||
</e-page-settings>
|
||||
<e-columns>
|
||||
<e-column field="DateTime" header-text="Date" text-align="Right" width="40" edit-type="Datepicker" format="{0:MMM dd yyyy}">
|
||||
</e-column>
|
||||
<e-column field="Description" header-text="Customer ID" width="100">
|
||||
</e-column>
|
||||
<e-column field="CategoryName" header-text="CategoryName" text-align="Left" width="100" visible="true">
|
||||
</e-column>
|
||||
<e-column field="Amount" header-text="Amount" width="50" edit-type="NumericEdit" format="{0:C}" priority="4">
|
||||
</e-column>
|
||||
</e-columns>
|
||||
</ej-grid>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chart-container">
|
||||
<div class="col-xs-13 chart-inner">
|
||||
<div class="samplesec">
|
||||
<div>
|
||||
<div class="samplename">
|
||||
<span>Expense Analysis Chart </span>
|
||||
</div>
|
||||
<div class="samplebody">
|
||||
<div class="samplecontent">
|
||||
<div class="chart-back-button">
|
||||
<ej-button id="btnBack" size="@ButtonSize.Mini" create="hidebutton" click="btnClick" text="Back" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div id="ExpenseChart">
|
||||
<ej-chart id="chart" is-responsive="true" back-ground="transparent" pre-render="seriesRender" animation-complete="completeAnimation" point-region-click="onClick">
|
||||
<e-common-series-options type="@SeriesType.Pie">
|
||||
</e-common-series-options>
|
||||
<e-chart-series>
|
||||
<e-series name="ExpenseChart" enable-animation="true" label-position="@ChartLabelPosition.Outside" explode="true" x-name="ExpenseCategory" y-name="Amount">
|
||||
<e-marker visible="true">
|
||||
<e-data-label visible="true"></e-data-label>
|
||||
</e-marker>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-legend visible="false"></e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="spend-div">
|
||||
<table cellspacing="10">
|
||||
<tr>
|
||||
<td class="most-spent">
|
||||
<p class="most-spent-text">
|
||||
Most Spent
|
||||
</p>
|
||||
<p class="most-spent-amt">
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="least-spent">
|
||||
<p class="least-spent-text">
|
||||
Least Spent
|
||||
</p>
|
||||
<p class="least-spent-amt">
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="avg-spent">
|
||||
<p class="avg-spent-text">
|
||||
Average Spent
|
||||
</p>
|
||||
<p class="avg-spent-amt">
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div class="bottom-links">
|
||||
<div class="left">
|
||||
<div class="sync-text">
|
||||
Copyright © 2001-2019 Syncfusion Inc.
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="https://www.syncfusion.com">
|
||||
<div class="syncfusion-image"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,36 @@
|
|||
@using Syncfusion.JavaScript
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>ASP.NET Core | Showcase Sample | Expense Analysis</title>
|
||||
<meta name="description" content="The ASP.NET Core Expense Analysis application is used to categorize and analyze the expenses details against budget.">
|
||||
<link href="@Url.Content("~/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/default-theme/ej.web.all.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ej.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ejgrid.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="@Url.Content("~/scripts/jquery-1.11.3.min.js")"></script>
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]><!-->
|
||||
<script src="@Url.Content("~/scripts/jquery-3.4.1.min.js")"></script>
|
||||
<!--<![endif]-->
|
||||
<script src="@Url.Content("~/scripts/jsrender.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/respond.js")" type="text/javascript"></script>
|
||||
|
||||
<script src="@Url.Content("~/scripts/ej.web.all.min.js")"></script>
|
||||
</head>
|
||||
<body>
|
||||
@RenderBody()
|
||||
|
||||
<ej-script-manager></ej-script-manager>
|
||||
|
||||
@if (IsSectionDefined("ScriptSection"))
|
||||
{
|
||||
@RenderSection("ScriptSection", required: false)
|
||||
}
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
||||
namespace samplebrowser.Areas.HealthTracker.Controllers
|
||||
{
|
||||
[Area("HealthTracker")]
|
||||
public class HealthController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,501 @@
|
|||
@using Syncfusion.JavaScript;
|
||||
@using Syncfusion.JavaScript.DataVisualization;
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
@{
|
||||
Layout = "~/Areas/HealthTracker/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Essential Studio for ASP.NET Core : HealthTracker";
|
||||
}
|
||||
<div class="trackerheader">
|
||||
<div class="sampleheader container">
|
||||
<div class="col-xs-12">
|
||||
<div class="title">
|
||||
<img class="heartsym" src="@Url.Content("~/css/health-tracker/images/heart-img.png")" alt="Heart" />
|
||||
<h1 class="healthtext">Health Tracker</h1>
|
||||
</div>
|
||||
<div>
|
||||
<div class="boardpicdiv">
|
||||
<div class="dashboardpic">
|
||||
<b>Dashboard</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nopicdiv">
|
||||
<div class="nopic">
|
||||
<b>4</b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="samplecontainer container">
|
||||
<div class="row"></div>
|
||||
<div id="heading row">
|
||||
<div class="col-xs-6">
|
||||
<img class="personpic" src="@Url.Content("~/css/health-tracker/images/person.png")" alt="Person" />
|
||||
<p class="persondet">
|
||||
<br />
|
||||
<b>Andrew Fuller</b><br />
|
||||
34 years / 175 cm
|
||||
</p>
|
||||
<img class="personsym" src="@Url.Content("~/css/health-tracker/images/personimg.png")" alt="Person Symbol" />
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="bmiwight">
|
||||
<div class="bmidiv">
|
||||
<label>BMI</label>
|
||||
<div class="bmi">
|
||||
<b>21.7</b><br />
|
||||
<label>Kg/m2</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="weightdiv">
|
||||
<label>Weight</label>
|
||||
<div class="weight">
|
||||
<b>72.3</b><br />
|
||||
<label>Kg</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row"></div>
|
||||
<div class="row topspace">
|
||||
<div class="col-md-12 titlecss">Today</div>
|
||||
</div>
|
||||
<div id="stepAnnotation" style="display:none">
|
||||
<img style="width:130px; height:130px" src="~/css/health-tracker/images/step.png" alt="Step" />
|
||||
</div>
|
||||
<div id="floorAnnotation" style="display:none">
|
||||
<img style="width:130px; height:130px" src="~/css/health-tracker/images/floor.png" alt="Floor" />
|
||||
</div>
|
||||
<div class="row" id="todayDetails">
|
||||
<div class="col-md-6 ptiles">
|
||||
<div class="col-sm-6 gauge1">
|
||||
<ej-circular-gauge id="GaugeRDI" distance-from-corner="-5" gauge-position="@GaugePosition.BottomCenter" width="230" height="155">
|
||||
<e-frame frame-type="@Frame.HalfCircle">
|
||||
</e-frame>
|
||||
<e-circular-scale-collections>
|
||||
<e-circular-scales start-angle="182" sweep-angle="176" show-labels="false" radius="140" minimum="0" maximum="2200" major-interval-value="200" show-ranges="true">
|
||||
<e-pointer-cap background-color="#3AB54B" border-color="#3AB54B"></e-pointer-cap>
|
||||
<e-pointer-collections>
|
||||
<e-pointers value="450" length="90" width="1" needle-type="@NeedleType.Rectangle">
|
||||
<e-border color="#3AB54B"></e-border>
|
||||
</e-pointers>
|
||||
</e-pointer-collections>
|
||||
<e-tick-collections>
|
||||
<e-ticks color="#FFFFFF" height="16" width="3"></e-ticks>
|
||||
<e-ticks color="#FFFFFF" height="7" width="1"></e-ticks>
|
||||
</e-tick-collections>
|
||||
<e-circular-range-collections>
|
||||
<e-circular-ranges size="10" start-value="0" end-value="449" background-color="#3AB54B">
|
||||
<e-border color="#3AB54B"></e-border>
|
||||
</e-circular-ranges>
|
||||
<e-circular-ranges size="10" start-value="449" end-value="2200" background-color="#B0D2C8">
|
||||
<e-border color="#B0D2C8"></e-border>
|
||||
</e-circular-ranges>
|
||||
</e-circular-range-collections>
|
||||
</e-circular-scales>
|
||||
</e-circular-scale-collections>
|
||||
</ej-circular-gauge>
|
||||
<br />
|
||||
<label class="todaylabel rdilabel">Calories Intake - 450/2200</label>
|
||||
<br />
|
||||
<label class="pending todaylabel rdipenlabel">1750 calories pending</label>
|
||||
</div>
|
||||
<div class="col-sm-6 gauge2">
|
||||
<ej-circular-gauge id="GaugeBurnt" distance-from-corner="-5" gauge-position="@GaugePosition.BottomCenter" width="230" height="155">
|
||||
<e-frame frame-type="@Frame.HalfCircle">
|
||||
</e-frame>
|
||||
<e-circular-scale-collections>
|
||||
<e-circular-scales start-angle="182" sweep-angle="176" show-labels="false" radius="140" minimum="0" maximum="1000" major-interval-value="200" show-ranges="true">
|
||||
<e-pointer-cap background-color="#b24848" border-color="#b24848"></e-pointer-cap>
|
||||
<e-pointer-collections>
|
||||
<e-pointers value="650" length="90" width="1" needle-type="@NeedleType.Rectangle">
|
||||
<e-border color="#b24848"></e-border>
|
||||
</e-pointers>
|
||||
</e-pointer-collections>
|
||||
<e-tick-collections>
|
||||
<e-ticks color="#FFFFFF" height="16" width="3"></e-ticks>
|
||||
<e-ticks color="#FFFFFF" height="7" width="1"></e-ticks>
|
||||
</e-tick-collections>
|
||||
<e-circular-range-collections>
|
||||
<e-circular-ranges size="10" start-value="0" end-value="649" background-color="#b24848">
|
||||
<e-border color="#b24848"></e-border>
|
||||
</e-circular-ranges>
|
||||
<e-circular-ranges size="10" start-value="649" end-value="1000" background-color="#C9A5A6">
|
||||
<e-border color="#C9A5A6"></e-border>
|
||||
</e-circular-ranges>
|
||||
</e-circular-range-collections>
|
||||
</e-circular-scales>
|
||||
</e-circular-scale-collections>
|
||||
</ej-circular-gauge>
|
||||
<br />
|
||||
<label class="todaylabel">Calories burnt - 650/1000</label>
|
||||
<br />
|
||||
<label class="todaylabel pending">350 calories pending</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 ptiles">
|
||||
<div class="col-sm-6 chart1">
|
||||
<div class="chartimage" id="StepChartDiv">
|
||||
<ej-chart id="ChartStep">
|
||||
<e-chart-series>
|
||||
<e-series name="Newyork" type="@SeriesType.Doughnut" label-position="@ChartLabelPosition.Inside" doughnut-size="0.9f" doughnut-coefficient="0.7f" enable-animation="false" opacity="0.8f">
|
||||
<e-border color="#D3C1D4"></e-border>
|
||||
<e-points>
|
||||
<e-point x="Carbohydrate" y="10" fill="#D3C1D4" visible="true"></e-point>
|
||||
<e-point x="Fat" y="90" fill="#B26CAB" visible="true"></e-point>
|
||||
</e-points>
|
||||
<e-marker opacity="0.8f">
|
||||
<e-border color="#D3C1D4"></e-border>
|
||||
</e-marker>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-margin top="0" bottom="0" left="10" right="10">
|
||||
</e-margin>
|
||||
<e-size height="170" width="200"></e-size>
|
||||
<e-legend visible="false" position="@LegendPosition.Bottom">
|
||||
</e-legend>
|
||||
<e-annotations>
|
||||
<e-annotation content="stepAnnotation" visible="true" region="@Region.Series"></e-annotation>
|
||||
</e-annotations>
|
||||
</ej-chart>
|
||||
<br />
|
||||
<label class="todaylabel">Step - 90/100</label>
|
||||
<br />
|
||||
<label class="pending todaylabel">10 steps pending</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6 chart2">
|
||||
<div class="chartimage" id="FloorChartDiv">
|
||||
<ej-chart id="ChartFloor">
|
||||
<e-chart-series>
|
||||
<e-series name="NewYork" type="@SeriesType.Doughnut" label-position="@ChartLabelPosition.Inside" doughnut-size="0.9f" doughnut-coefficient="0.7f" enable-animation="false" opacity="0.8f">
|
||||
<e-border color="#D3C1D4"></e-border>
|
||||
<e-points>
|
||||
<e-point x="Carbohydrate" y="6" fill="#7D70B3" visible="true"></e-point>
|
||||
<e-point x="Fat" y="4" fill="#BFBED9" visible="true"></e-point>
|
||||
</e-points>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-common-series-options>
|
||||
<e-chart-tooltip visible="false"></e-chart-tooltip>
|
||||
</e-common-series-options>
|
||||
<e-margin top="0" bottom="0" left="10" right="10">
|
||||
</e-margin>
|
||||
<e-size height="170" width="200"></e-size>
|
||||
<e-legend visible="false" position="@LegendPosition.Bottom">
|
||||
<e-font color="Black"></e-font>
|
||||
</e-legend>
|
||||
<e-annotations>
|
||||
<e-annotation content="floorAnnotation" visible="true" region="@Region.Series"></e-annotation>
|
||||
</e-annotations>
|
||||
</ej-chart>
|
||||
<br />
|
||||
<label class="todaylabel">Floor - 4/10</label>
|
||||
<br />
|
||||
<label class="pending todaylabel">6 floors pending</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topspace row">
|
||||
<div class="col-xs-6">
|
||||
<label class="titlecss">
|
||||
Meal Summary
|
||||
</label>
|
||||
</div>
|
||||
<div class="addbutton col-xs-6">
|
||||
<label class="addlabel">Add Meal</label>
|
||||
<img class="add" src="@Url.Content("~/css/health-tracker/images/Add.png")" alt="Add" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" id="MealSummary">
|
||||
<div class="col-md-6 ptiles">
|
||||
<div class="chartimage1">
|
||||
<ej-chart id="Chart" is-responsive="true" background="transparent">
|
||||
<e-chart-series>
|
||||
<e-series name="Newyork" type="@SeriesType.Doughnut" label-position="@ChartLabelPosition.Outside" doughnut-size="0.9f">
|
||||
<e-marker>
|
||||
<e-data-label visible="true">
|
||||
<e-font color="#707070" font-size="15px" opacity="1" font-weight="@ChartFontWeight.Lighter"></e-font>
|
||||
</e-data-label>
|
||||
</e-marker>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-common-series-options>
|
||||
<e-chart-tooltip visible="false"></e-chart-tooltip>
|
||||
</e-common-series-options>
|
||||
<e-margin left="10" top="0" right="0" bottom="0">
|
||||
</e-margin>
|
||||
<e-size height="276"></e-size>
|
||||
<e-legend visible="false">
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 ptiles">
|
||||
<ej-grid id="Grid" show-summary="true" enable-alt-row="false" allow-keyboard-navigation="true" is-responsive="true" enable-responsive-row="false" grid-lines="@GridLines.Horizontal" action-complete="actionComplete">
|
||||
<e-edit-settings allow-editing="true" allow-adding="true" allow-deleting="true" edit-mode="@EditMode.DialogTemplate" dialog-editor-template-id="#healthAddTemplate"></e-edit-settings>
|
||||
<e-columns>
|
||||
<e-column field="Time" header-text="TIME" text-align="@TextAlign.Center" width="80"></e-column>
|
||||
<e-column field="FoodName" header-text="FOOD" text-align="@TextAlign.Center" width="120"></e-column>
|
||||
<e-column field="Fat" header-text="FAT" text-align="@TextAlign.Center" format="{0:N0}g" width="60"></e-column>
|
||||
<e-column field="Carbohydrate" header-text="CARB" format="{0:N0}g" priority="3" text-align="@TextAlign.Center" width="70"></e-column>
|
||||
<e-column field="Protein" header-text="PROTEIN" format="{0:N0}g" priority="4" text-align="@TextAlign.Center" width="70"></e-column>
|
||||
<e-column field="Calorie" header-text="CALORIES" format="{0:N0}cal" priority="5" width="70" text-align="@TextAlign.Center"></e-column>
|
||||
<e-column field="FoodId" header-text="FoodID" is-primary-key="true" visible="false"></e-column>
|
||||
</e-columns>
|
||||
<e-summary-rows>
|
||||
<e-summary-row title="Sum">
|
||||
<e-summary-columns>
|
||||
<e-summary-column summary-type="@SummaryType.Sum" display-column="Fat" datamember="Fat" suffix="g"></e-summary-column>
|
||||
<e-summary-column summary-type="@SummaryType.Sum" display-column="Carbohydrate" datamember="Carbohydrate" suffix="g"></e-summary-column>
|
||||
<e-summary-column summary-type="@SummaryType.Sum" display-column="Protein" datamember="Protein" suffix="g"></e-summary-column>
|
||||
<e-summary-column summary-type="@SummaryType.Sum" display-column="Calorie" datamember="Calorie" suffix="cal"></e-summary-column>
|
||||
</e-summary-columns>
|
||||
</e-summary-row>
|
||||
</e-summary-rows>
|
||||
</ej-grid>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row topspace">
|
||||
<div class="col-xs-6 titlecss loadondemand">
|
||||
This Month
|
||||
</div>
|
||||
</div>
|
||||
<div id="HistoryDetails" class="row">
|
||||
<div class="col-md-6 chart3 burntCal loadondemand ptiles">
|
||||
<ej-chart id="ChartBurnt" is-responsive="true" init-series-render="false" load="onChartBurntload" background="transparent">
|
||||
<e-chart-area>
|
||||
<e-border width="1"></e-border>
|
||||
</e-chart-area>
|
||||
<e-primary-x-axis hide-partial-labels="true" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None" column-index="0">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-title text="Days">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="31" min="0" interval="3"></e-range>
|
||||
</e-primary-x-axis>
|
||||
<e-primary-y-axis row-index="0" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None">
|
||||
<e-title text="Steps">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="1200" min="0" interval="100"></e-range>
|
||||
</e-primary-y-axis>
|
||||
<e-chart-series>
|
||||
<e-series name="Steps Moved" type="@SeriesType.Column" enable-animation="true" fill="#8CC640">
|
||||
<e-chart-tooltip visible="true" template="BurntTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-title text="TOTAL STEPS"></e-title>
|
||||
<e-size height="500"></e-size>
|
||||
<e-legend position="@LegendPosition.Bottom">
|
||||
<e-item-style width="10" height="10"></e-item-style>
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
<div class="col-md-6 chart4 ptiles">
|
||||
<ej-chart id="ChartCal" is-responsive="true" init-series-render="false" load="onChartBurntload" background="transparent">
|
||||
<e-common-series-options>
|
||||
<e-chart-tooltip visible="true"></e-chart-tooltip>
|
||||
</e-common-series-options>
|
||||
<e-primary-x-axis hide-partial-labels="true" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None" column-index="0">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-title text="Days">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="31" min="0" interval="3"></e-range>
|
||||
</e-primary-x-axis>
|
||||
<e-primary-y-axis row-index="0" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None">
|
||||
<e-title text="Calorie">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="1200" min="0" interval="100"></e-range>
|
||||
</e-primary-y-axis>
|
||||
<e-chart-series>
|
||||
<e-series name="Calories Burnt" type="@SeriesType.Spline" enable-animation="true" fill="#24B7E5">
|
||||
<e-marker shape="@ChartShape.Circle" visible="true">
|
||||
<e-Size height="10" width="10"></e-Size>
|
||||
</e-marker>
|
||||
<e-chart-tooltip visible="true" template="CalTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-title text="CALORIES BURNT"></e-title>
|
||||
<e-size height="500"></e-size>
|
||||
<e-legend position="@LegendPosition.Bottom" visible="true">
|
||||
<e-item-style width="10" height="10"></e-item-style>
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 ptiles chart5">
|
||||
<ej-chart id="MealDetails" is-responsive="true" init-series-render="false" load="onChartLoad" background="transparent">
|
||||
<e-chart-area>
|
||||
<e-border width="1"></e-border>
|
||||
</e-chart-area>
|
||||
<e-primary-x-axis hide-partial-labels="true" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None" column-index="0">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-title text="Days">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="31" min="0" interval="3"></e-range>
|
||||
</e-primary-x-axis>
|
||||
<e-primary-y-axis row-index="0" value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None">
|
||||
<e-title text="Cal">
|
||||
<e-font opacity="1" font-size="14px" font-weight="@ChartFontWeight.Regular"></e-font>
|
||||
</e-title>
|
||||
<e-range max="1200" min="0" interval="100"></e-range>
|
||||
</e-primary-y-axis>
|
||||
<e-chart-series>
|
||||
<e-series name="Carb" type="@SeriesType.Column" enable-animation="true" fill="#8CAA55">
|
||||
<e-chart-tooltip visible="true" template="HydrateTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
<e-series name="Protein" type="@SeriesType.Column" enable-animation="true" fill="#B34949">
|
||||
<e-chart-tooltip visible="true" template="ProteinTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
<e-series name="Fat" type="@SeriesType.Column" enable-animation="true" fill="#58A7C6">
|
||||
<e-chart-tooltip visible="true" template="FatTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-title text="MEAL INTAKE"></e-title>
|
||||
<e-size height="500"></e-size>
|
||||
<e-legend position="@LegendPosition.Bottom">
|
||||
<e-item-style width="10" height="10"></e-item-style>
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div class="bottom-links">
|
||||
<div class="left">
|
||||
<div class="sync-text">
|
||||
Copyright © 2001-2019 Syncfusion Inc.
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="https://www.syncfusion.com">
|
||||
<div class="syncfusion-image"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="healthAddTemplate" style="display: none">
|
||||
<table cellspacing="14">
|
||||
<tr>
|
||||
<td>
|
||||
Food time:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" class="timelist valid" id="Time" value="{{:Time}}" aria-required="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Food type:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" class="foodlist ejinputtext valid" id="FoodName" name="FoodName" value="{{:FoodName}}" aria-required="true" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing="14">
|
||||
<tr>
|
||||
<td>
|
||||
Fat:
|
||||
</td>
|
||||
<td>
|
||||
Carb:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="Fat" value="{{:Fat}}" class="diatxt valid" aria-required="true" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="Carbohydrate" value="{{:Carbohydrate}}" class="diatxt valid" aria-required="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Protein:
|
||||
</td>
|
||||
<td>
|
||||
Calorie:
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" id="Protein" value="{{:Protein}}" class="diatxt" aria-required="true" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="Calorie" value="{{:Calorie}}" class="diatxt" aria-required="true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td id="validation">* All fields are mandatory</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="BurntTooltip" class="historytooltip">
|
||||
<div id="stepTool"></div>
|
||||
<div>
|
||||
<label id="burntmonth">May #point.x#</label>
|
||||
<label id="burntday">#point.y#</label><label class="burntlabel"> steps</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="HydrateTooltip" class="historytooltip">
|
||||
<div>
|
||||
<div id="hydrateTool"></div>
|
||||
<label class="tooltiplabel">May #point.x#</label>
|
||||
</div>
|
||||
<div class="hydlabel">
|
||||
<label id="hydratemonth">Carb</label>
|
||||
<label id="hydrateday">#point.y# g</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ProteinTooltip" class="historytooltip">
|
||||
<div>
|
||||
<div id="proteinTool"></div>
|
||||
<label class="tooltiplabel">May #point.x#</label>
|
||||
</div>
|
||||
<div class="proLabel">
|
||||
<label id="proteinmonth">Protein</label><br />
|
||||
<label id="proteinday">#point.y# g</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="FatTooltip" class="historytooltip">
|
||||
<div>
|
||||
<div id="fatTool"></div>
|
||||
<label class="tooltiplabel">May #point.x#</label>
|
||||
</div>
|
||||
<div class="fatLabel">
|
||||
<label id="fatmonth">Fat</label><br />
|
||||
<label id="fatday">#point.y# g</label>
|
||||
</div>
|
||||
</div>
|
||||
<div id="CalTooltip" class="historytooltip">
|
||||
<div class="calldiv">
|
||||
<span id="calday">#point.y# </span><span>cal</span>
|
||||
</div>
|
||||
<div class="monthdiv">
|
||||
<span id="calmonth">May #point.x#</span>
|
||||
</div>
|
||||
</div>
|
||||
@section scripts {
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.min.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.unobtrusive.min.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/healthtracker.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/respond.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/excanvas.min.js")" type="text/javascript"></script>
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
@using Syncfusion.JavaScript
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Essential Studio for ASP.NET Core | Showcase Sample | Health Tracker</title>
|
||||
<meta name="description" content="The ASP.NET Core Health Tracker application is helpful used to track and visualize your health details such as food intake and, activity history.">
|
||||
<link href="@Url.Content("~/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/default-theme/ej.web.all.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ej.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ejgrid.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/health-tracker/healthtracker.css")" rel="stylesheet" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="@Url.Content("~/scripts/jquery-1.11.3.min.js")"></script>
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]><!-->
|
||||
<script src="@Url.Content("~/scripts/jquery-3.4.1.min.js")"></script>
|
||||
<!--<![endif]-->
|
||||
<script src="@Url.Content("~/scripts/jquery.globalize.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/jsrender.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/respond.js")" type="text/javascript"></script>
|
||||
|
||||
<script src="@Url.Content("~/scripts/ej.web.all.min.js")"></script>
|
||||
</head>
|
||||
<body>
|
||||
@RenderBody()
|
||||
<ej-script-manager></ej-script-manager>
|
||||
@if (IsSectionDefined("ControlsSection"))
|
||||
{
|
||||
@RenderSection("ControlsSection", required: false)
|
||||
}
|
||||
@RenderSection("Scripts", required: false)
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Areas.OutLook.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Areas.OutLook.Controllers
|
||||
{
|
||||
[Area("Outlook")]
|
||||
public class OutlookController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
ViewBag.dataSource = OutlookData.GetContactList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace samplebrowser.Areas.OutLook.Models
|
||||
{
|
||||
public class OutlookData
|
||||
{
|
||||
public string text { get; set; }
|
||||
|
||||
public static List<OutlookData> GetContactList()
|
||||
{
|
||||
List<OutlookData> contact = new List<OutlookData>();
|
||||
contact.Add(new OutlookData { text = "Nancy@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Andrew@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Janet@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Margaret@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Steven@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Robert@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Michael@syncfusion.com" });
|
||||
contact.Add(new OutlookData { text = "Laura@syncfusion.com" });
|
||||
return contact;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
|
||||
@using Syncfusion.JavaScript;
|
||||
@using Syncfusion.JavaScript.DataVisualization;
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
@{
|
||||
Layout = "~/Areas/Outlook/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Essential Studio for ASP.NET Core : Outlook Analysis";
|
||||
}
|
||||
<script src="@Url.Content("~/scripts/outlook.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.min.js")"></script>
|
||||
<script src="@Url.Content("~/scripts/jquery.validate.unobtrusive.min.js")"></script>
|
||||
<link href="@Url.Content("~/css/outlook.css")" rel="stylesheet" />
|
||||
<link href="@Url.Content("~/images/NewOutlook-Icon/Outlook Icon/style.css")" rel="stylesheet" />
|
||||
<div id="page" class="page">
|
||||
<div class="main-header clear">
|
||||
<div class="home-btn">
|
||||
<span class="ej-icon-view-small-icons-01" style="margin-top:6px;font-size: 22px"></span>
|
||||
</div>
|
||||
<div style="float: left;margin: 6px 26px;">
|
||||
<span class="text" style="font-size: 21px">Outlook Demo</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-container-fluid">
|
||||
<div class="row">
|
||||
<div class="sidebar">
|
||||
<div class="search">
|
||||
<div class="control">
|
||||
<ej-autocomplete id="searchAuto" width="100%" watermark-text="Search Mail and People" datasource="ViewBag.datasource" popup-height="200px" filter-type="Contains" open="searchAutoOpen">
|
||||
</ej-autocomplete>
|
||||
<span class="select"><span class="e-icon e-search"></span></span>
|
||||
</div>
|
||||
<div class="scrollContainer">
|
||||
<div class="treewrap">
|
||||
<div class="treeControl">
|
||||
<ej-tree-view id="treeView" template="#treeTemplate" node-click="nodeClick">
|
||||
<e-tree-view-fields id="id" parent-id="pid" text="name" has-child="haschild" expanded="expanded">
|
||||
</e-tree-view-fields>
|
||||
</ej-tree-view>
|
||||
</div>
|
||||
</div>
|
||||
<ej-menu id="treeviewMenu" open-on-click="false" menu-type="ContextMenu" context-menu-target="#treeView">
|
||||
<e-menu-items>
|
||||
<e-menu-item url="#" text="Move down in list"> </e-menu-item>
|
||||
<e-menu-item url="#" text="Remove from favorites all as read"> </e-menu-item>
|
||||
<e-menu-item url="#" text="Empty folder"> </e-menu-item>
|
||||
<e-menu-item url="#" text="Mark all as read"> </e-menu-item>
|
||||
</e-menu-items>
|
||||
</ej-menu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="position: absolute; top: 0px; right: auto; bottom: 0px; left: 214px; height: auto; width: 4px;">
|
||||
<div style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; height: auto; width: auto;border-left: 1px solid #e5e3e3;z-index: 3;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="menuwrap">
|
||||
<div class="tool">
|
||||
<div style="background-color: #F4F9FD;">
|
||||
<div class="innerTool">
|
||||
<ej-menu id="menujson" enable-separator="false" width="100%" click="menuClick">
|
||||
<e-menu-fields id="id" parent-id="parentId" text="text" sprite-css-class="sprite">
|
||||
</e-menu-fields>
|
||||
</ej-menu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="restItem">
|
||||
<div style="position: absolute;top: 0px;right: 0px;bottom: 0px;left: 0px;height: auto;width: 360px;">
|
||||
<div class="newItem">
|
||||
<div style="position: absolute;left: 29px;overflow: hidden;white-space: nowrap;">
|
||||
<span id="ItemTitle" class="ItemTitle" style="font-size: 28px;font-weight: normal;">Inbox</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="listwrap">
|
||||
<div class="listscroller">
|
||||
<div style="position: relative;height: auto;">
|
||||
<div style="position: absolute;width: 100%;bottom: auto;top: 0px;">
|
||||
<ej-list-view id="templatelist" show-header="true" header-title="Today" render-template="true" height="254" width="350" template-id="listTempData" mouse-down="onMouseDown">
|
||||
</ej-list-view>
|
||||
<ej-list-view id="templatelist1" show-header="true" header-title="Yesterday" render-template="true" width="350" template-id="listTempData" mouse-down="onMouseDown"></ej-list-view>
|
||||
<ej-menu id="listviewMenu" menu-type="ContextMenu" context-menu-target="#templatelist,#templatelist1" open-on-click="false">
|
||||
<e-menu-items>
|
||||
<e-menu-item url="#" text="Reply"></e-menu-item>
|
||||
<e-menu-item url="#" text="Reply All"></e-menu-item>
|
||||
<e-menu-item url="#" text="Forward"></e-menu-item>
|
||||
<e-menu-item url="#" text="Delete"></e-menu-item>
|
||||
<e-menu-item url="#" text="Archive"></e-menu-item>
|
||||
<e-menu-item url="#" text="Mark as unread"></e-menu-item>
|
||||
<e-menu-item url="#" text="Pin"></e-menu-item>
|
||||
<e-menu-item url="#" text="Flag"></e-menu-item>
|
||||
</e-menu-items>
|
||||
</ej-menu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="position: absolute; top: 0px; right: auto; bottom: 0px; left: 360px; height: auto; width: 4px;">
|
||||
<div style="position: absolute; top: 1px; right: 0px; bottom: 0px; left: 0px; height: auto; width: auto;border-left: 1px solid #e5e3e3;z-index: 3;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="position: absolute;top: 42px;right: 0px;bottom: 0px;left: 578px;height: auto;width: 788px;">
|
||||
<div style="position: absolute;top: 0px;right: 0px;bottom: 0px;left: 0px;height: auto;width: auto;overflow-x: hidden;overflow-y: auto;">
|
||||
<div class="paneltxt">
|
||||
<span class="contentPanel" style="width:500px;height:200px;font-size: 13px">Select an item to view.</span>
|
||||
</div>
|
||||
<div id="iconAccordion">
|
||||
<div style="height:14px;">
|
||||
<div class="logos"></div>
|
||||
<div class="messageHeader">
|
||||
<div id="sub"></div><br />
|
||||
<div id="headDate">05/05/2016</div><div id="date"></div><br />
|
||||
<div id="to"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="accContent">
|
||||
<div style="margin: 24px 12px;">
|
||||
<div style="float:left;">Hi</div> <div id="accTo" style="margin-left: 20px;"></div><br />
|
||||
<div id="accCont"></div><br />
|
||||
<div id="accGreet">Thanks,</div>
|
||||
<div id="accFrom"></div>
|
||||
<div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ej-accordion id="iconAccordion" enable-multiple-open="true" events="click" before-in-activate="onbeforeInActivate" in-activate="onInActivate" before-activate="beforeActivate" activate="InActivate">
|
||||
<e-custom-icon header="ej-icon-expander-down---01" selected-header="ej-icon-up-arrow---01" />
|
||||
</ej-accordion>
|
||||
<form id="textform">
|
||||
<div id="messageData">
|
||||
<div id="mailarea" style="margin: 16px 45px 0px 28px;" class="hidden">
|
||||
<ej-button id="toButton" width="55px" text="To" /><br /><br />
|
||||
<ej-autocomplete id="autoTo" datasource="ViewBag.datasource" filter-type="Contains" width="593px" popup-width="230px" popup-height="250px" multi-select-mode="VisualMode">
|
||||
</ej-autocomplete>
|
||||
<hr class="compose" />
|
||||
<br />
|
||||
<ej-button id="ccButton" width="55px" text="Cc" />
|
||||
<ej-autocomplete id="autoCc" datasource="ViewBag.datasource" filter-type="Contains" width="593px" popup-width="230px" popup-height="250px" multi-select-mode="VisualMode"></ej-autocomplete>
|
||||
<hr class="compose" />
|
||||
<ej-mask-edit id="mailsubject" input-mode="Text" watermark-text="Enter subject here" width="695" />
|
||||
<hr class="compose">
|
||||
<br />
|
||||
@{ List<String> toolsList = new List<string>() { "formatStyle", "font", "style", "effects", "alignment", "lists", "indenting", "clipboard", "doAction", "clear", "casing", "print" };
|
||||
List<String> font = new List<string>() { "fontName", "fontSize", "fontColor", "backgroundColor" };
|
||||
List<String> style = new List<string>() { "bold", "italic", "underline", "strikethrough" };
|
||||
List<String> alignment = new List<string>() { "justifyLeft", "justifyCenter", "justifyRight", "justifyFull" };
|
||||
List<String> lists = new List<string>() { "unorderedList", "orderedList" };
|
||||
List<String> indenting = new List<string> { "outdent", "indent" };
|
||||
List<String> clipboard = new List<string>() { "cut", "copy", "paste" };
|
||||
List<String> doAction = new List<string>() { "undo", "redo" };
|
||||
List<String> clear = new List<string>() { "clearFormat", "clearAll" };
|
||||
List<String> effects = new List<string>() { "superscript", "subscript" };
|
||||
List<String> casing = new List<string>() { "upperCase", "lowerCase" };
|
||||
List<String> formatStyle = new List<string>() { "format" };
|
||||
List<String> print = new List<string>() { "print" };
|
||||
}
|
||||
<ej-rte id="rteSample" width="710px" height="350px" tools-list="toolsList"></ej-rte>
|
||||
<ej-button id="sendButton" width="65px" type="Submit" click="Click" text="Send" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script id="treeTemplate" type="text/x-jsrender">
|
||||
{{if hasChild}}
|
||||
<div>{{>name}}</div>
|
||||
{{else}}
|
||||
<div class="treeitem" style="float:left;margin-right: 8px;">{{>name}}</div>
|
||||
<div id="count" class="count" style="height: 20px;width: 100%;">{{>count}}</div>
|
||||
{{/if}}
|
||||
</script>
|
||||
<script id="listTempData" type="text/x-jsrender">
|
||||
<div class="{{>Class}}">
|
||||
</div>
|
||||
<div class="listrightdiv">
|
||||
<span class="templatetext">{{>ContactName}}</span> <span class="designationstyle">{{>Time}}</span>
|
||||
<div class="subjectstyle">
|
||||
{{>ContactTitle}}
|
||||
</div>
|
||||
<div class="descriptionstyle">
|
||||
{{>Message}}
|
||||
</div>
|
||||
<div class="receiver" style="display:none">
|
||||
{{>To}}
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
@using Syncfusion.JavaScript
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>@ViewBag.Title</title>
|
||||
<meta name="description" content="Outlook-like user interface with Office 365 theme. It can replicate the UI for Microsoft Outlook for your web mail application.">
|
||||
<link href="@Url.Content("~/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/default-theme/ej.web.all.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ej.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="@Url.Content("~/scripts/jquery-1.11.3.min.js")"></script>
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]><!-->
|
||||
<script src="@Url.Content("~/scripts/jquery-3.4.1.min.js")"></script>
|
||||
<!--<![endif]-->
|
||||
<script src="@Url.Content("~/scripts/jsrender.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/respond.js")" type="text/javascript"></script>
|
||||
|
||||
<script src="@Url.Content("~/scripts/ej.web.all.min.js")"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@RenderBody()
|
||||
|
||||
<ej-script-manager></ej-script-manager>
|
||||
|
||||
@if (IsSectionDefined("ScriptSection"))
|
||||
{
|
||||
@RenderSection("ScriptSection", required: false)
|
||||
}
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,480 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Areas.Projecttracker.Controllers
|
||||
{
|
||||
[Area("Projecttracker")]
|
||||
public class Projecttracker: Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
var DataSource = GetTaskData();
|
||||
ViewBag.datasource = DataSource;
|
||||
var resources = ResourceDataContext.GetResourceData();
|
||||
ViewBag.resources = resources;
|
||||
return View();
|
||||
}
|
||||
public class TaskDetails
|
||||
{
|
||||
public int TaskID { get; set; }
|
||||
public string TaskName { get; set; }
|
||||
public string StartDate { get; set; }
|
||||
public string EndDate { get; set; }
|
||||
public int Duration { get; set; }
|
||||
public string Progress { get; set; }
|
||||
public List<TaskDetails> SubTasks { get; set; }
|
||||
public List<object> ResourceID { get; set; }
|
||||
public string Predecessors { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public string isCritical { get; set; }
|
||||
}
|
||||
|
||||
public List<TaskDetails> GetTaskData()
|
||||
{
|
||||
List<TaskDetails> tasks = new List<TaskDetails>();
|
||||
|
||||
tasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 1,
|
||||
TaskName = "Project Schedule",
|
||||
StartDate = "02/06/2017",
|
||||
EndDate = "03/10/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 2,
|
||||
TaskName = "Planning",
|
||||
StartDate = "02/06/2017",
|
||||
EndDate = "02/10/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
|
||||
tasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 3,
|
||||
TaskName = "Plan timeline",
|
||||
StartDate = "02/06/2017",
|
||||
EndDate = "02/10/2017",
|
||||
Duration = 5,
|
||||
Progress = "100",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 4,
|
||||
TaskName = "Plan budget",
|
||||
StartDate = "02/06/2017",
|
||||
EndDate = "02/10/2017",
|
||||
Duration = 5,
|
||||
Progress = "100",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 5,
|
||||
TaskName = "Allocate resources",
|
||||
StartDate = "02/06/2017",
|
||||
EndDate = "02/10/2017",
|
||||
Duration = 5,
|
||||
Progress = "100",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 6,
|
||||
TaskName = "Planning complete",
|
||||
StartDate = "02/10/2017",
|
||||
EndDate = "02/10/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "3FS,4FS,5FS"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 7,
|
||||
TaskName = "Design",
|
||||
StartDate = "02/13/2017",
|
||||
EndDate = "02/17/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[1].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[1].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 8,
|
||||
TaskName = "Software Specification",
|
||||
StartDate = "02/13/2017",
|
||||
EndDate = "02/15/2017",
|
||||
Duration = 3,
|
||||
Progress = "60",
|
||||
Predecessors = "6FS",
|
||||
ResourceID = new List<object>() { 2 }
|
||||
});
|
||||
tasks[0].SubTasks[1].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 9,
|
||||
TaskName = "Develop prototype",
|
||||
StartDate = "02/13/2017",
|
||||
EndDate = "02/15/2017",
|
||||
Duration = 3,
|
||||
Progress = "100",
|
||||
Predecessors = "6FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[1].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 10,
|
||||
TaskName = "Get approval from customer",
|
||||
StartDate = "02/16/2017",
|
||||
EndDate = "02/17/2017",
|
||||
Duration = 2,
|
||||
Progress = "100",
|
||||
Predecessors = "9FS",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[1].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 11,
|
||||
TaskName = "Design complete",
|
||||
StartDate = "02/17/2017",
|
||||
EndDate = "02/17/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "10FS"
|
||||
});
|
||||
|
||||
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 12,
|
||||
TaskName = "Implementation Phase",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/02/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 13,
|
||||
TaskName = "Phase 1",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/02/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 14,
|
||||
TaskName = "Implementation Module 1",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/05/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 15,
|
||||
TaskName = "Development Task 1",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/22/2017",
|
||||
Duration = 3,
|
||||
Progress = "50",
|
||||
Predecessors = "11FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 16,
|
||||
TaskName = "Development Task 2",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/22/2017",
|
||||
Duration = 3,
|
||||
Progress = "50",
|
||||
Predecessors = "11FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 17,
|
||||
TaskName = "Testing",
|
||||
StartDate = "02/23/2017",
|
||||
EndDate = "02/24/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "15FS,16FS",
|
||||
ResourceID = new List<object>() { 4 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 18,
|
||||
TaskName = "Bug fix",
|
||||
StartDate = "02/27/2017",
|
||||
EndDate = "02/28/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "17FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 19,
|
||||
TaskName = "Customer review meeting",
|
||||
StartDate = "03/01/2017",
|
||||
EndDate = "03/02/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "18FS",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[0].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 20,
|
||||
TaskName = "Phase 1 complete",
|
||||
StartDate = "03/02/2017",
|
||||
EndDate = "03/02/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "19FS"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 21,
|
||||
TaskName = "Phase 2",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/03/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 22,
|
||||
TaskName = "Implementation Module 2",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/03/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 23,
|
||||
TaskName = "Development Task 1",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/23/2017",
|
||||
Duration = 4,
|
||||
Progress = "50",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 24,
|
||||
TaskName = "Development Task 2",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/23/2017",
|
||||
Duration = 4,
|
||||
Progress = "50",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 25,
|
||||
TaskName = "Testing",
|
||||
StartDate = "02/24/2017",
|
||||
EndDate = "02/27/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "23FS,24FS",
|
||||
ResourceID = new List<object>() { 4 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 26,
|
||||
TaskName = "Bug fix",
|
||||
StartDate = "02/28/2017",
|
||||
EndDate = "03/01/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "25FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 27,
|
||||
TaskName = "Customer review meeting",
|
||||
StartDate = "03/02/2017",
|
||||
EndDate = "03/03/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "26FS",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[1].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 28,
|
||||
TaskName = "Phase 2 complete",
|
||||
StartDate = "03/03/2017",
|
||||
EndDate = "03/03/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "27FS"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 29,
|
||||
TaskName = "Phase 3",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/02/2017"
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 30,
|
||||
TaskName = "Implementation Module 3",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "03/05/2017"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks = new List<TaskDetails>();
|
||||
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 31,
|
||||
TaskName = "Development Task 1",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/22/2017",
|
||||
Duration = 3,
|
||||
Progress = "50",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 32,
|
||||
TaskName = "Development Task 2",
|
||||
StartDate = "02/20/2017",
|
||||
EndDate = "02/22/2017",
|
||||
Duration = 3,
|
||||
Progress = "50",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 33,
|
||||
TaskName = "Testing",
|
||||
StartDate = "02/23/2017",
|
||||
EndDate = "02/24/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "31FS,32FS",
|
||||
ResourceID = new List<object>() { 4 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 34,
|
||||
TaskName = "Bug fix",
|
||||
StartDate = "02/27/2017",
|
||||
EndDate = "03/03/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "33FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 35,
|
||||
TaskName = "Customer review meeting",
|
||||
StartDate = "03/01/2017",
|
||||
EndDate = "03/02/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "34FS",
|
||||
ResourceID = new List<object>() { 1 }
|
||||
});
|
||||
tasks[0].SubTasks[2].SubTasks[2].SubTasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 36,
|
||||
TaskName = "Phase 3 complete",
|
||||
StartDate = "03/02/2017",
|
||||
EndDate = "03/02/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "35FS"
|
||||
});
|
||||
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 37,
|
||||
TaskName = "Integration",
|
||||
StartDate = "03/07/2017",
|
||||
EndDate = "03/08/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "20FS,28FS,36FS",
|
||||
ResourceID = new List<object>() { 3 }
|
||||
});
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 38,
|
||||
TaskName = "Final Testing",
|
||||
StartDate = "03/09/2017",
|
||||
EndDate = "03/10/2017",
|
||||
Duration = 2,
|
||||
Progress = "0",
|
||||
Predecessors = "37FS",
|
||||
ResourceID = new List<object>() { 4 }
|
||||
});
|
||||
tasks[0].SubTasks.Add(new TaskDetails()
|
||||
{
|
||||
TaskID = 39,
|
||||
TaskName = "Final Delivery",
|
||||
StartDate = "03/10/2017",
|
||||
EndDate = "03/10/2017",
|
||||
Duration = 0,
|
||||
Predecessors = "38FS"
|
||||
});
|
||||
|
||||
return tasks;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class ResourceDataContext
|
||||
{
|
||||
public class Resources
|
||||
{
|
||||
public int ResourceID { get; set; }
|
||||
public string ResourceName { get; set; }
|
||||
}
|
||||
|
||||
public static List<Resources> GetResourceData()
|
||||
{
|
||||
List<Resources> resourceDetails = new List<Resources>();
|
||||
|
||||
resourceDetails.Add(new Resources() { ResourceID = 1, ResourceName = "Project Manager" });
|
||||
resourceDetails.Add(new Resources() { ResourceID = 2, ResourceName = "Software Analyst" });
|
||||
resourceDetails.Add(new Resources() { ResourceID = 3, ResourceName = "Developer" });
|
||||
resourceDetails.Add(new Resources() { ResourceID = 4, ResourceName = "Testing Engineer" });
|
||||
|
||||
return resourceDetails;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
@{
|
||||
ViewBag.Title = "Essential Studio for ASP.NET Core : Project Tracker";
|
||||
}
|
||||
@{
|
||||
Layout = "~/Areas/Projecttracker/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
<div>
|
||||
<ej-gantt id="ganttSample"
|
||||
task-id-mapping="TaskID"
|
||||
task-name-mapping="TaskName"
|
||||
start-date-mapping="StartDate"
|
||||
end-date-mapping="EndDate"
|
||||
duration-mapping="Duration"
|
||||
child-mapping="SubTasks"
|
||||
progress-mapping="Progress"
|
||||
schedule-start-date="02/01/2017"
|
||||
schedule-end-date="03/14/2017"
|
||||
date-format="MM/dd/yyyy"
|
||||
allow-drag-and-drop="true"
|
||||
show-column-chooser="true"
|
||||
show-column-options="true"
|
||||
highlight-weekends="true"
|
||||
tree-column-index="1"
|
||||
show-grid-cell-tooltip="true"
|
||||
allow-selection="true"
|
||||
allow-gantt-chart-editing="true"
|
||||
predecessor-mapping="Predecessors"
|
||||
allow-column-resize="true"
|
||||
allow-sorting="true"
|
||||
include-weekend="false"
|
||||
resource-id-mapping="ResourceID"
|
||||
resource-info-mapping="ResourceID"
|
||||
resource-name-mapping="ResourceName"
|
||||
show-resource-names="true"
|
||||
enable-context-menu="true"
|
||||
notes-mapping="Notes"
|
||||
is-responsive="true"
|
||||
enable-virtualization="false"
|
||||
resources="ViewBag.resources"
|
||||
datasource="ViewBag.datasource">
|
||||
<e-gantt-edit-settings allow-adding="true" allow-deleting="true" allow-editing="true" allow-indent="true" edit-mode="cellEditing">
|
||||
</e-gantt-edit-settings>
|
||||
<e-strip-lines>
|
||||
<e-gantt-strip-line day="02/06/2017" label="Project Start" line-width=2 line-color="Darkblue" line-style="dotted"></e-gantt-strip-line>
|
||||
</e-strip-lines>
|
||||
<e-gantt-drag-tooltip show-tooltip="true"></e-gantt-drag-tooltip>
|
||||
<e-gantt-toolbar-settings show-toolbar="true" toolbar-items="@(new List<string>() { "add", "edit", "delete", "update", "cancel", "indent", "outdent", "expandAll", "collapseAll", "search", "criticalPath", "prevTimeSpan", "nextTimeSpan" })"></e-gantt-toolbar-settings>
|
||||
<e-gantt-size-settings width="100%" height="100%"></e-gantt-size-settings>
|
||||
</ej-gantt>
|
||||
<div id="footer">
|
||||
<div class="bottom-links">
|
||||
<div class="left">
|
||||
<div class="sync-text">
|
||||
Copyright © 2001-2019 Syncfusion Inc.
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="https://www.syncfusion.com">
|
||||
<div class="syncfusion-image"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,93 @@
|
|||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Essential Studio for ASP.NET Core | Showcase Sample | Project Tracker</title>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="description" content="The Gantt control in ASP.Net Core is a project management tool used for visualizing and tracking the projects and schedules. Using the editing support available in ASP.NET Core Gantt, you can edit, manage and organize the projects dynamically." />
|
||||
<link rel="shortcut icon" href="@Url.Content("~/css/images/favicon.ico")">
|
||||
<link href="@Url.Content("~/css/ejthemes/gradient-lime/ej.web.all.min.css")" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="@Url.Content("~/scripts/jquery-1.11.3.min.js")"></script>
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]><!-->
|
||||
<script src="@Url.Content("~/scripts/jquery-3.4.1.min.js")"></script>
|
||||
<!--<![endif]-->
|
||||
<script src="@Url.Content("~/scripts/jsrender.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/ej.web.all.min.js")"></script>
|
||||
<style>
|
||||
body, html {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#ganttSample {
|
||||
position: absolute;
|
||||
}
|
||||
/* Footerdiv CSS */
|
||||
#footer
|
||||
{
|
||||
display: none;
|
||||
background-color: #4F4F4C;
|
||||
color: GrayText;
|
||||
height: 45px;
|
||||
min-width: 300px;
|
||||
width:100%;
|
||||
float: left;
|
||||
bottom: 0;
|
||||
position: absolute;
|
||||
z-index:0;
|
||||
}
|
||||
|
||||
.bottom-links
|
||||
{
|
||||
bottom: 0;
|
||||
margin: 0 auto;
|
||||
padding-top: 9px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.left
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
|
||||
.right
|
||||
{
|
||||
float: right;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
.syncfusion-image
|
||||
{
|
||||
background-image: url('../../css/images/footer.png');
|
||||
float: left;
|
||||
height: 30px;
|
||||
margin-top: 2px;
|
||||
width: 125px;
|
||||
background-position: -5px -50px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
#footer .right .left, #footer .left .sync-text
|
||||
{
|
||||
margin: 4px 25px 0;
|
||||
}
|
||||
|
||||
.sync-text
|
||||
{
|
||||
color: #A4A09B;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@RenderBody()
|
||||
<ej-script-manager></ej-script-manager>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,31 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Areas.WeatherAnalysis.Models;
|
||||
|
||||
namespace samplebrowser.Areas.WeatherAnalysis.Controllers
|
||||
{
|
||||
[Area("WeatherAnalysis")]
|
||||
public class WeatherController : Controller
|
||||
{
|
||||
public ActionResult Index()
|
||||
{
|
||||
var DataSource = new WeatherData().GetWeatherData;
|
||||
ViewBag.datasource = DataSource;
|
||||
|
||||
var AverageWeatherData = new WeatherData().AverageWeatherData;
|
||||
ViewBag.datasource1 = AverageWeatherData;
|
||||
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,130 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
|
||||
namespace samplebrowser.Areas.WeatherAnalysis.Models
|
||||
{
|
||||
public class WeatherData
|
||||
{
|
||||
public class WeatherDetails
|
||||
{
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
public string SkyCondition { get; set; }
|
||||
public double Humidity { get; set; }
|
||||
public double Wind { get; set; }
|
||||
public double Pressure { get; set; }
|
||||
public double Temperature { get; set; }
|
||||
public double FeelsLike { get; set; }
|
||||
public string Average { get; set; }
|
||||
public double Jan { get; set; }
|
||||
public double Feb { get; set; }
|
||||
public double Mar { get; set; }
|
||||
public double Apl { get; set; }
|
||||
public double May { get; set; }
|
||||
public double Jun { get; set; }
|
||||
public double Jul { get; set; }
|
||||
public double Aug { get; set; }
|
||||
public double Sep { get; set; }
|
||||
public double Oct { get; set; }
|
||||
public double Nov { get; set; }
|
||||
public double Dec { get; set; }
|
||||
}
|
||||
public List<WeatherDetails> GetWeatherData
|
||||
{
|
||||
|
||||
get
|
||||
{
|
||||
string[] skyCondition = { "Snow", "Rain Storm", "Thunder", "Rainy", "Cloudy", "Partly Cloudy", "Sunny", "Partly Sunny" };
|
||||
|
||||
List<WeatherDetails> details = new List<WeatherDetails>();
|
||||
Random rand = new Random();
|
||||
for (var i = 0; i < 7; i++)
|
||||
{
|
||||
|
||||
double val1 = rand.Next(0, 30);
|
||||
var val = rand.Next(0, 8);
|
||||
details.Add(new WeatherDetails()
|
||||
{
|
||||
Date = DateTime.Now.AddHours(DateTime.Now.Hour + i),
|
||||
SkyCondition = skyCondition[val],
|
||||
Humidity = Math.Floor(val1 + 40),
|
||||
Wind = Math.Floor(val1 * 10 + 1),
|
||||
Pressure = Math.Floor(val1 + 70),
|
||||
Temperature = Math.Floor(val1 + 5),
|
||||
FeelsLike = val * 5
|
||||
});
|
||||
|
||||
}
|
||||
return details;
|
||||
}
|
||||
}
|
||||
|
||||
public double calculateRandom(string average)
|
||||
{
|
||||
double value = 0;
|
||||
Random rand = new Random();
|
||||
double random = rand.Next(0, 1);
|
||||
if (average == "Precipitation")
|
||||
value = Math.Floor(random * 100 + 20);
|
||||
else if (average == "Sunlight")
|
||||
value = Math.Floor(random * 12 + 2);
|
||||
else if (average == "Minimum Temperature")
|
||||
value = Math.Floor(random * 20 + 25);
|
||||
else if (average == "Maximum Temperature")
|
||||
value = Math.Floor(random * 30 + 25);
|
||||
else if (average == "Wind")
|
||||
value = Math.Floor(random * 15 + 5);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
public List<WeatherDetails> AverageWeatherData
|
||||
{
|
||||
|
||||
get
|
||||
{
|
||||
string[] Average = { "Precipitation", "Sunlight", "Minimum Temperature", "Maximum Temperature", "Wind" };
|
||||
List<WeatherDetails> details1 = new List<WeatherDetails>();
|
||||
WeatherDetails[] data = new WeatherDetails[6];
|
||||
|
||||
|
||||
|
||||
for (var i = 0; i < 5; i++)
|
||||
{
|
||||
var monthValue = DateTime.Now.Month + i;
|
||||
string average = Average[i];
|
||||
data[i] = (new WeatherDetails()
|
||||
{
|
||||
Average = average,
|
||||
Jan = calculateRandom(average),
|
||||
Feb = calculateRandom(average) + 2
|
||||
,
|
||||
Mar = calculateRandom(average) + 5,
|
||||
Apl = calculateRandom(average) - 1,
|
||||
May = calculateRandom(average) + 1,
|
||||
Jun = calculateRandom(average) - 3
|
||||
,
|
||||
Jul = calculateRandom(average) - 5,
|
||||
Aug = calculateRandom(average) + 4,
|
||||
Sep = calculateRandom(average) + 2,
|
||||
Oct = calculateRandom(average) + 5
|
||||
,
|
||||
Nov = calculateRandom(average) - 3,
|
||||
Dec = calculateRandom(average) + 6
|
||||
});
|
||||
details1.Add(data[i]);
|
||||
}
|
||||
return details1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
@using Syncfusion.JavaScript
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Essential Studio for ASP.NET Core | Showcase Sample | Weather Analysis</title>
|
||||
<meta name="description" content="Analyze weather data using charts and grids. It displays the Temperature, Humidity, Precipitation and Sunlight | ASP.NET Core">
|
||||
<link href="@Url.Content("~/css/bootstrap.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/weatheranalysis.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/default-theme/ej.web.all.min.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ej.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<link href="@Url.Content("~/css/ejthemes/responsive-css/ejgrid.responsive.css")" rel="stylesheet" type="text/css" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="@Url.Content("~/scripts/jquery-1.11.3.min.js")"></script>
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]><!-->
|
||||
<script src="@Url.Content("~/scripts/jquery-3.4.1.min.js")"></script>
|
||||
<!--<![endif]-->
|
||||
<script src="@Url.Content("~/scripts/jsrender.min.js")" type="text/javascript"></script>
|
||||
<script src="@Url.Content("~/scripts/respond.js")" type="text/javascript"></script>
|
||||
|
||||
<script src="@Url.Content("~/scripts/ej.web.all.min.js")"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@RenderBody()
|
||||
|
||||
@if (IsSectionDefined("ControlsSection"))
|
||||
{
|
||||
@RenderSection("ControlsSection", required: false)
|
||||
}
|
||||
<ej-script-manager></ej-script-manager>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,568 @@
|
|||
@using Syncfusion.JavaScript;
|
||||
@using Syncfusion.JavaScript.DataVisualization;
|
||||
@using Syncfusion.JavaScript.Models
|
||||
@addTagHelper *, Syncfusion.EJ
|
||||
|
||||
@{
|
||||
Layout = "~/Areas/WeatherAnalysis/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Essential Studio for ASP.NET Core : Weather Analysis";
|
||||
}
|
||||
<div class="top-section">
|
||||
<div class="topbox"></div>
|
||||
<img src="@Url.Content("~/images/WeatherAnalysis/WeatherIcon.png")" id="WeatherIcon" alt="Weather" />
|
||||
<div class="top-inner-section container">
|
||||
<div class="row boxcompress">
|
||||
<div id="Circle1" class="col-sm-4">
|
||||
<div id="Circle_Temperature">
|
||||
</div>
|
||||
<div id="Circle_SkyCondition">
|
||||
</div>
|
||||
</div>
|
||||
<div id="Circle2" class="col-sm-4">
|
||||
<div id="Circle_City">
|
||||
New York
|
||||
</div>
|
||||
<div id="Circle_Time">
|
||||
</div>
|
||||
<div id="Circle_Day">
|
||||
</div>
|
||||
</div>
|
||||
<div id="Circle3" class="col-sm-4">
|
||||
<div id="tophalf">
|
||||
<div id="Circle_Humidity">
|
||||
</div>
|
||||
<div id="HumidityCaption">
|
||||
Humidity
|
||||
</div>
|
||||
</div>
|
||||
<div id="bottomhalf">
|
||||
<div id="Circle_DewPoint">
|
||||
</div>
|
||||
<div id="DewPointCaption">
|
||||
Dew Point
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="weather-samples container">
|
||||
<div id="ScreenLeft" class="row">
|
||||
<div id="HeaderBar1">
|
||||
<div>
|
||||
<label id="CurrentDay"></label>
|
||||
<div class="buttons">
|
||||
<a class="signal inactive" id="ChartHour"></a>
|
||||
<a class="square active" id="GridHour"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="HourData">
|
||||
<ej-grid id="HourGrid" datasource="@ViewBag.datasource">
|
||||
<e-columns>
|
||||
<e-column field="Date" header-text="Time" text-align="@TextAlign.Center" width="125" format="{0:hh:mm tt}">
|
||||
</e-column>
|
||||
<e-column field="SkyCondition" header-text="Sky Condition" text-align="@TextAlign.Center" width="120" format="<div class= {SkyCondition}> </div>">
|
||||
</e-column>
|
||||
<e-column field="Temperature" header-text="Temperature" text-align="@TextAlign.Center" width="100" format="<label>{Temperature}°c</label>">
|
||||
</e-column>
|
||||
<e-column field="SkyCondition" header-text="Weather Description" text-align="@TextAlign.Center" width="150">
|
||||
</e-column>
|
||||
</e-columns>
|
||||
</ej-grid>
|
||||
<ej-chart id="HourChart" is-responsive="true" load="hourChartLoad" series-rendering="renderSeries" background="white">
|
||||
<e-row-definitions>
|
||||
<e-row-definition row-height="25" line-color="transparent" unit="percentage"></e-row-definition>
|
||||
<e-row-definition row-height="25" line-color="transparent" unit="percentage"></e-row-definition>
|
||||
<e-row-definition row-height="25" line-color="transparent" unit="percentage"></e-row-definition>
|
||||
<e-row-definition row-height="25" line-color="transparent" unit="percentage"></e-row-definition>
|
||||
</e-row-definitions>
|
||||
<e-primary-x-axis value-type="@AxisValueType.Datetime" label-format="hh:mm tt" interval-type="@ChartIntervalType.Hours">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-minor-grid-lines visible="false"></e-minor-grid-lines>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-range interval="6"></e-range>
|
||||
</e-primary-x-axis>
|
||||
<e-primary-y-axis label-format="{value}" range-padding="@ChartRangePadding.None" hide-partial-labels="true">
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-range min="-10" max="45" interval="15"></e-range>
|
||||
<e-font color="transparent"></e-font>
|
||||
</e-primary-y-axis>
|
||||
<e-axes>
|
||||
<e-axis orientation="vertical" row-index="1" opposed-position="false" name="yAxis1" hide-partial-labels="true">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-minor-tick-lines visible="false"></e-minor-tick-lines>
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
<e-minor-grid-lines visible="false"></e-minor-grid-lines>
|
||||
<e-range min="-10" max="50" interval="15"></e-range>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-font color="transparent"></e-font>
|
||||
</e-axis>
|
||||
<e-axis orientation="vertical" row-index="2" opposed-position="false" name="yAxis2" hide-partial-labels="true">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-minor-tick-lines visible="false"></e-minor-tick-lines>
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
<e-minor-grid-lines visible="false"></e-minor-grid-lines>
|
||||
<e-range min="-10" max="80" interval="15"></e-range>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-font color="transparent"></e-font>
|
||||
</e-axis>
|
||||
<e-axis orientation="vertical" row-index="2" opposed-position="false" name="yAxis3" hide-partial-labels="true">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-minor-tick-lines visible="false"></e-minor-tick-lines>
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
<e-minor-grid-lines visible="false"></e-minor-grid-lines>
|
||||
<e-range min="-10" max="50" interval="5"></e-range>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-font color="transparent"></e-font>
|
||||
</e-axis>
|
||||
<e-axis orientation="vertical" row-index="2" opposed-position="false" name="yAxis4" hide-partial-labels="true">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-minor-tick-lines visible="false"></e-minor-tick-lines>
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
<e-minor-grid-lines visible="false"></e-minor-grid-lines>
|
||||
<e-range min="-10" max="50" interval="5"></e-range>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-font color="transparent"></e-font>
|
||||
</e-axis>
|
||||
</e-axes>
|
||||
<e-common-series-options type="@SeriesType.Line" enable-animation="true">
|
||||
<e-marker shape="@ChartShape.Circle">
|
||||
<e-border color="white" width="3"></e-border>
|
||||
<e-Size height="6" width="6"></e-Size>
|
||||
</e-marker>
|
||||
</e-common-series-options>
|
||||
<e-chart-series>
|
||||
<e-series name="Temperature" fill="#A0C037">
|
||||
<e-chart-tooltip visible="true" format="#series.name#: #point.y# c"></e-chart-tooltip>
|
||||
<e-marker visible="true"></e-marker>
|
||||
</e-series>
|
||||
<e-series name="FeelsLike" fill="#369E45" y-axis-name="yAxis1">
|
||||
<e-chart-tooltip visible="true" format="#series.name#: #point.y# c"></e-chart-tooltip>
|
||||
<e-marker visible="true"></e-marker>
|
||||
</e-series>
|
||||
<e-series name="Humidity" fill="#9F5123" y-axis-name="yAxis2">
|
||||
<e-chart-tooltip visible="true" format="#series.name#: #point.y# %"></e-chart-tooltip>
|
||||
<e-marker visible="true"></e-marker>
|
||||
</e-series>
|
||||
<e-series name="Wind" fill="#2DA2D8" y-axis-name="yAxis3">
|
||||
<e-chart-tooltip visible="true" format="#series.name#: #point.y# mph"></e-chart-tooltip>
|
||||
<e-marker visible="true"></e-marker>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-crosshair visible="true" type="@CrosshairType.Trackball">
|
||||
<e-line width="2" color="#F4B16D"></e-line>
|
||||
<e-marker shape="@ChartShape.Circle" visible="true">
|
||||
<e-Size height="9" width="9"></e-Size>
|
||||
</e-marker>
|
||||
</e-crosshair>
|
||||
<e-size height="500"></e-size>
|
||||
<e-chart-area>
|
||||
<e-border color="transparent"></e-border>
|
||||
</e-chart-area>
|
||||
<e-margin left="20" top="20"></e-margin>
|
||||
<e-legend visible="true" shape="@ChartShape.Circle" position="@LegendPosition.Bottom">
|
||||
<e-item-style width="10" height="10"></e-item-style>
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ScreenRight" class="row">
|
||||
<div id="HeaderBar2">
|
||||
<div>
|
||||
Average Conditions
|
||||
<div class="buttons">
|
||||
<a class="signal active" id="ChartAverage"></a>
|
||||
<a class="square inactive" id="GridAverage"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="AverageData">
|
||||
<ej-chart id="AverageChart" is-responsive="true" load="averageChartLoad" background="white">
|
||||
<e-primary-x-axis opposed-position="true" value-type="AxisValueType.Category" >
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-major-tick-lines visible="false"></e-major-tick-lines>
|
||||
</e-primary-x-axis>
|
||||
<e-primary-y-axis value-type="AxisValueType.Double" range-padding="@ChartRangePadding.None" label-format="{value} mm">
|
||||
<e-range min="0" max="150" interval="25"></e-range>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
</e-primary-y-axis>
|
||||
<e-axes>
|
||||
<e-axis orientation="vertical" value-type="AxisValueType.Double" row-index="0" opposed-position="true" range-padding="@ChartRangePadding.None" name="yAxis" label-format="{value} hrs">
|
||||
<e-major-grid-lines visible="false"></e-major-grid-lines>
|
||||
<e-axis-line visible="false"></e-axis-line>
|
||||
<e-range min="0" max="15" interval="2.5"></e-range>
|
||||
</e-axis>
|
||||
</e-axes>
|
||||
<e-chart-series>
|
||||
<e-series name="Average Precipitation" type="@SeriesType.Column" enable-animation="true" fill="#84c865">
|
||||
<e-chart-tooltip visible="true" template="precipitationTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
<e-series name="Average Sunlight" type="@SeriesType.Column" enable-animation="true" fill="#E94649">
|
||||
<e-chart-tooltip visible="true" template="sunlightTooltip"></e-chart-tooltip>
|
||||
</e-series>
|
||||
</e-chart-series>
|
||||
<e-size height="500"></e-size>
|
||||
<e-legend visible="true" shape="@ChartShape.Circle" position="@LegendPosition.Bottom">
|
||||
<e-item-style height="10" width="10"></e-item-style>
|
||||
</e-legend>
|
||||
</ej-chart>
|
||||
<div class="averagegridwrapper">
|
||||
<ej-grid id="AverageGrid" datasource="@ViewBag.datasource1" enable-alt-row="false" allow-grouping="true">
|
||||
<e-columns>
|
||||
<e-column field="Average" header-text="Average" text-align="@TextAlign.Center" width="200"></e-column>
|
||||
<e-column field="Jan" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Feb" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Mar" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Apl" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Mar" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Jun" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Jul" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Aug" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Sep" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Oct" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Nov" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
<e-column field="Dec" text-align="@TextAlign.Center" width="50"></e-column>
|
||||
</e-columns>
|
||||
</ej-grid>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="precipitationTooltip" style="display: none;">
|
||||
<div class="value">
|
||||
<div>
|
||||
<label class="month">#point.x#</label><br />
|
||||
<label class="precipitation">Avg Precipitation (mm) : <b>#point.y#</b></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sunlightTooltip" style="display: none;">
|
||||
<div class="value">
|
||||
<div>
|
||||
<label class="month">#point.x#</label><br />
|
||||
<label class="sunlight">Avg Sunlight (Hrs): <b>#point.y#</b></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div class="bottom-links">
|
||||
<div class="left">
|
||||
<div class="sync-text">
|
||||
Copyright © 2001-2019 Syncfusion Inc.
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<a href="https://www.syncfusion.com">
|
||||
<div class="syncfusion-image"></div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="frame">
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var flag = false;
|
||||
var currentDate = new Date();
|
||||
var skyCondition = ["Snow", "Rain Storm", "Thunder", "Rainy", "Cloudy", "Partly Cloudy", "Sunny", "Partly Sunny"];
|
||||
var currentSkyCondition = Math.floor((Math.random() * 7));
|
||||
var WeatherData = [];
|
||||
WeatherData.push({
|
||||
"Date": new Date(currentDate.setHours(currentDate.getHours())),
|
||||
"SkyCondition": skyCondition[currentSkyCondition],
|
||||
"Humidity": Math.floor(Math.random() * 40 + 35),
|
||||
"Wind": Math.floor(Math.random() * 10 + 1),
|
||||
"Pressure": Math.floor(Math.random() * 30 + 70),
|
||||
"Temperature": currentSkyCondition * 5 + Math.floor(Math.random() * 5),
|
||||
"FeelsLike": currentSkyCondition * 5 + Math.floor(Math.random() * 15)
|
||||
});
|
||||
$("#CurrentDay").text(ej.format(currentDate, "dddd"));
|
||||
$("#Circle_Temperature").html(WeatherData[0].Temperature + "°c");
|
||||
$("#Circle_SkyCondition").html(WeatherData[0].SkyCondition);
|
||||
$("#Circle_Time").html(ej.format(WeatherData[0].Date, "hh:mm tt"));
|
||||
$("#Circle_Day").html(ej.format(WeatherData[0].Date, "dddd"));
|
||||
$("#Circle_Humidity").html(WeatherData[0].Humidity + "%");
|
||||
$("#Circle_DewPoint").html(Math.floor((Math.random() * 10 + 10)) + "°c");
|
||||
for (var i = 1; i < 24; i++) {
|
||||
var skyRandom = Math.floor((Math.random() * 7));
|
||||
WeatherData.push({
|
||||
"Date": new Date(currentDate.setHours(currentDate.getHours() + 1)),
|
||||
"SkyCondition": skyCondition[skyRandom],
|
||||
"Humidity": Math.floor(Math.random() * 40 + 35),
|
||||
"Wind": Math.floor(Math.random() * 10 + 1),
|
||||
"Pressure": Math.floor(Math.random() * 30 + 70),
|
||||
"Temperature": skyRandom * 5 + Math.floor(Math.random() * 5),
|
||||
"FeelsLike": skyRandom * 5 + Math.floor(Math.random() * 15)
|
||||
});
|
||||
}
|
||||
window.WeatherDataObject = WeatherData;
|
||||
var data = ej.DataManager(window.WeatherDataObject).executeLocal(ej.Query());
|
||||
$("#AverageGrid").find(".groupdroparea").hide();
|
||||
$("#AverageGrid").hide();
|
||||
$('.buttons > a').bind('click', function () { weatherSelection(this) });
|
||||
function renderSeries(sender) {
|
||||
if (!flag) {
|
||||
$("#HourChart").hide();
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
|
||||
//It is used to perform navigation between Chart and Grid
|
||||
function weatherSelection(target) {
|
||||
switch (target.id) {
|
||||
case "ChartHour":
|
||||
if ($(target).hasClass("inactive")) {
|
||||
$(target).removeClass("inactive").addClass("active");
|
||||
$("#GridHour").removeClass("active").addClass("inactive");
|
||||
$("#HourGrid").hide();
|
||||
$("#HourChart").show();
|
||||
var chartobj = $("#HourChart").data("ejChart");
|
||||
chartobj.chartResize();
|
||||
}
|
||||
break;
|
||||
case "GridHour":
|
||||
if ($(target).hasClass("inactive")) {
|
||||
$(target).removeClass("inactive").addClass("active");
|
||||
$("#ChartHour").removeClass("active").addClass("inactive");
|
||||
$("#HourChart").hide();
|
||||
$("#HourGrid").show();
|
||||
}
|
||||
break;
|
||||
case "ChartAverage":
|
||||
if ($(target).hasClass("inactive")) {
|
||||
$(target).removeClass("inactive").addClass("active");
|
||||
$("#GridAverage").removeClass("active").addClass("inactive");
|
||||
$("#AverageGrid").hide();
|
||||
$("#AverageChart").show();
|
||||
var chartobj = $("#AverageChart").data("ejChart");
|
||||
chartobj.chartResize();
|
||||
}
|
||||
break;
|
||||
case "GridAverage":
|
||||
if ($(target).hasClass("inactive")) {
|
||||
$(target).removeClass("inactive").addClass("active");
|
||||
$("#ChartAverage").removeClass("active").addClass("inactive");
|
||||
$("#AverageChart").hide();
|
||||
$("#AverageGrid").show();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//It is used to set data source for the chart to series in model
|
||||
function hourChartLoad(sender) {
|
||||
var data = getHourData();
|
||||
sender.model.primaryXAxis.range.min = window.WeatherData[0].Date;
|
||||
sender.model.primaryXAxis.range.max = window.WeatherData[window.WeatherData.length - 1].Date;
|
||||
sender.model.series[0].dataSource = data.Temperature;
|
||||
sender.model.series[0].xName = "XValue";
|
||||
sender.model.series[0].yName = "YValue";
|
||||
sender.model.series[1].dataSource = data.FeelsLike;
|
||||
sender.model.series[1].xName = "XValue";
|
||||
sender.model.series[1].yName = "YValue";
|
||||
sender.model.series[2].dataSource = data.Humidity;
|
||||
sender.model.series[2].xName = "XValue";
|
||||
sender.model.series[2].yName = "YValue";
|
||||
sender.model.series[3].dataSource = data.Wind;
|
||||
sender.model.series[3].xName = "XValue";
|
||||
sender.model.series[3].yName = "YValue";
|
||||
}
|
||||
|
||||
//It is used to retrieve data for binding chart to display hour details for the day
|
||||
function getHourData() {
|
||||
var series1 = [];
|
||||
var series2 = [];
|
||||
var series3 = [];
|
||||
var series4 = [];
|
||||
$.each(window.WeatherDataObject, function (index, value) {
|
||||
var point1 = { XValue: value.Date, YValue: value.Temperature };
|
||||
var point2 = { XValue: value.Date, YValue: value.FeelsLike };
|
||||
var point3 = { XValue: value.Date, YValue: value.Humidity };
|
||||
var point4 = { XValue: value.Date, YValue: value.Wind };
|
||||
series1.push(point1);
|
||||
series2.push(point2);
|
||||
series3.push(point3);
|
||||
series4.push(point4);
|
||||
});
|
||||
var data = { Temperature: series1, FeelsLike: series2, Humidity: series3, Wind: series4 };
|
||||
return data;
|
||||
}
|
||||
|
||||
//It is used to set data source for the chart to series in model
|
||||
function averageChartLoad(sender) {
|
||||
var data = getAverageData();
|
||||
sender.model.series[0].dataSource = data.Precipitation;
|
||||
sender.model.series[0].xName = "XValue";
|
||||
sender.model.series[0].yName = "YValue";
|
||||
sender.model.series[1].dataSource = data.Sunlight;
|
||||
sender.model.series[1].xName = "XValue";
|
||||
sender.model.series[1].yName = "YValue";
|
||||
}
|
||||
|
||||
//It is used to retrieve data for binding chart to display average record details for the year
|
||||
function onchartload(sender) {
|
||||
var data = getData(5);
|
||||
sender.model.series[0].dataSource = data.Open;
|
||||
sender.model.series[0].xName = "XValue";
|
||||
sender.model.series[0].yName = "YValue";
|
||||
sender.model.series[1].dataSource = data.Close;
|
||||
sender.model.series[1].xName = "XValue";
|
||||
sender.model.series[1].yName = "YValue";
|
||||
}
|
||||
var Average = ["Average Precipitation", "Average Sunlight", "Average Minimum Temperature", "Average Maximum Temperature", "Average Wind"];
|
||||
var AverageData = [];
|
||||
var months = ["Jan", "Feb", "Mar", "Apl", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||||
var d = {};
|
||||
d["Average"] = "Precipitation";
|
||||
for (var i = 0; i < 12; i++) {
|
||||
var date = new Date();
|
||||
var monthValue = date.getMonth() + i;
|
||||
if (monthValue < 12)
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 100 + 20));
|
||||
else {
|
||||
monthValue = monthValue - 12;
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 100 + 20));
|
||||
}
|
||||
}
|
||||
AverageData.push(d);
|
||||
|
||||
var d = {};
|
||||
d["Average"] = "Sunlight";
|
||||
for (var i = 0; i < 12; i++) {
|
||||
var date = new Date();
|
||||
var monthValue = date.getMonth() + i;
|
||||
if (monthValue < 12)
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 12 + 2));
|
||||
else {
|
||||
monthValue = monthValue - 12;
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 12 + 2));
|
||||
}
|
||||
}
|
||||
AverageData.push(d);
|
||||
|
||||
var d = {};
|
||||
d["Average"] = "Minimum Temperature";
|
||||
for (var i = 0; i < 12; i++) {
|
||||
var date = new Date();
|
||||
var monthValue = date.getMonth() + i;
|
||||
if (monthValue < 12)
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 15 - 5));
|
||||
else {
|
||||
monthValue = monthValue - 12;
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 15 - 5));
|
||||
}
|
||||
}
|
||||
AverageData.push(d);
|
||||
|
||||
var d = {};
|
||||
d["Average"] = "Maximum Temperature";
|
||||
for (var i = 0; i < 12; i++) {
|
||||
var date = new Date();
|
||||
var monthValue = date.getMonth() + i;
|
||||
if (monthValue < 12)
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 20 + 25));
|
||||
else {
|
||||
monthValue = monthValue - 12;
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 20 + 25));
|
||||
}
|
||||
}
|
||||
AverageData.push(d);
|
||||
|
||||
var d = {};
|
||||
d["Average"] = "Wind";
|
||||
for (var i = 0; i < 12; i++) {
|
||||
var date = new Date();
|
||||
var monthValue = date.getMonth() + i;
|
||||
if (monthValue < 12)
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 15));
|
||||
else {
|
||||
monthValue = monthValue - 12;
|
||||
d[months[new Date(date.setMonth(monthValue)).getMonth()]] = Math.floor((Math.random() * 15));
|
||||
}
|
||||
}
|
||||
AverageData.push(d);
|
||||
window.AverageData = AverageData;
|
||||
|
||||
var averageData = ej.DataManager(window.AverageData).executeLocal(ej.Query());
|
||||
var columnNames = [];
|
||||
$.each(averageData[0], function (index, value) {
|
||||
if (index == "Average") {
|
||||
var column = { field: index, textAlign: ej.TextAlign.Center }
|
||||
columnNames.push(column);
|
||||
}
|
||||
else {
|
||||
var column = { field: index, textAlign: ej.TextAlign.Center, width: 50, customAttributes: { "class": "e-rowcell average" } }
|
||||
columnNames.push(column);
|
||||
}
|
||||
});
|
||||
|
||||
//Set Data entry for Column chart
|
||||
function getData(year) {
|
||||
var series1 = [];
|
||||
var series2 = [];
|
||||
var value = 100;
|
||||
var value1 = 150;
|
||||
|
||||
for (var i = 1; i <= 64; i++) {
|
||||
if (Math.random() > 5) {
|
||||
value = getRandomNum(700, 800);
|
||||
} else {
|
||||
value = getRandomNum(350, 700);
|
||||
}
|
||||
var point = { XValue: new Date(2008, 01 + i, 15), YValue: value };
|
||||
series1.push(point);
|
||||
if (value > 400)
|
||||
value1 = value - 100;
|
||||
else
|
||||
value1 = value + 200;
|
||||
var point1 = { XValue: new Date(2008, 01 + i, 15), YValue: value1 };
|
||||
series2.push(point1);
|
||||
}
|
||||
var data = { Open: series1, Close: series2 };
|
||||
return data;
|
||||
}
|
||||
function getRandomNum(ubound, lbound) {
|
||||
|
||||
return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
|
||||
}
|
||||
function getAverageData() {
|
||||
var series1 = [];
|
||||
var series2 = [];
|
||||
$.each(window.AverageData[0], function (index, value) {
|
||||
if (index != "Average") {
|
||||
var point1 = { XValue: index, YValue: value };
|
||||
series1.push(point1);
|
||||
}
|
||||
});
|
||||
$.each(window.AverageData[1], function (index, value) {
|
||||
if (index != "Average") {
|
||||
var point1 = { XValue: index, YValue: value };
|
||||
series2.push(point1);
|
||||
}
|
||||
});
|
||||
var data = { Precipitation: series1, Sunlight: series2 };
|
||||
return data;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ajaxContent/
|
||||
|
||||
public ActionResult AjaxContent()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionDefault/
|
||||
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Events/
|
||||
|
||||
public ActionResult Events()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionIcons/
|
||||
|
||||
public ActionResult Icons()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionKeybordNavigation/
|
||||
|
||||
public ActionResult KeyboardNavigation()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionMethods/
|
||||
|
||||
public ActionResult Methods()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionMultipleOpen/
|
||||
|
||||
public ActionResult MultipleOpen()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionNestedAccordion/
|
||||
|
||||
public ActionResult NestedAccordion()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionOpenOnHover/
|
||||
|
||||
public ActionResult OpenOnHover()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AccordionController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AccordionRtl/
|
||||
|
||||
public ActionResult Rtl()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteAutofill/
|
||||
public ActionResult Autofill()
|
||||
{
|
||||
ViewBag.datasource = Flowers.GetFlowers();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteDataBindingJson/
|
||||
public ActionResult DatabindingJson()
|
||||
{
|
||||
ViewBag.datasource = States.GetStates();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteDataIndingRemote/
|
||||
public ActionResult Databindingremote()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteDefault/
|
||||
public ActionResult Default()
|
||||
{
|
||||
ViewBag.datasource = CarsList.GetCarList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteEvents/
|
||||
public ActionResult Events()
|
||||
{
|
||||
ViewBag.datasource = Colors.GetColors();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteGrouping/
|
||||
public ActionResult Grouping()
|
||||
{
|
||||
ViewBag.datasource = Countries.GetCountries();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteKeyboard/
|
||||
public ActionResult Keyboard()
|
||||
{
|
||||
ViewBag.datasource = Languages.GetLanguages();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteMethods/
|
||||
public ActionResult Methods()
|
||||
{
|
||||
ViewBag.datasource = Flags.GetFlags();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteMultipleValues/
|
||||
public ActionResult MultipleValues()
|
||||
{
|
||||
ViewBag.datasource = Languages.GetLanguages();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteRtl/
|
||||
public ActionResult Rtl()
|
||||
{
|
||||
ViewBag.datasource = CarsList.GetCarList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class AutocompleteController : Controller
|
||||
{
|
||||
// GET: /AutocompleteTemplate/
|
||||
public ActionResult Template()
|
||||
{
|
||||
ViewBag.datasource = Flags.GetFlags();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Codabar()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code11()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code128A()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code128B()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code128C()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code32()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code39()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code39Extended()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code93()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Code93Extended()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Datamatrix()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BarcodeController : Controller
|
||||
{
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class BulletGraphController : Controller
|
||||
{
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonCheckboxes/
|
||||
|
||||
public ActionResult Checkboxes()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
public class checkModel
|
||||
{
|
||||
public Boolean isChecked
|
||||
{
|
||||
get;set;
|
||||
}
|
||||
}
|
||||
// GET: /CheckboxesFor/
|
||||
|
||||
public ActionResult CheckboxesFor()
|
||||
{
|
||||
checkModel checkbox = new checkModel();
|
||||
checkbox.isChecked = true;
|
||||
return View(checkbox);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonDefault/
|
||||
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonEvents/
|
||||
|
||||
public ActionResult Events()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonGroupButtons/
|
||||
|
||||
public ActionResult GroupButtons()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonMethods/
|
||||
|
||||
public ActionResult Methods()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonRadioButton/
|
||||
|
||||
public ActionResult RadioButton()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
public class radioModel
|
||||
{
|
||||
public Boolean isChecked
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
|
||||
// GET: /RadioButtonFor/
|
||||
|
||||
public ActionResult RadioButtonFor()
|
||||
{
|
||||
radioModel radio = new radioModel();
|
||||
radio.isChecked = true;
|
||||
return View(radio);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonRepeatButton/
|
||||
|
||||
public ActionResult RepeatButton()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonRtl/
|
||||
|
||||
public ActionResult Rtl()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonSplitButtons/
|
||||
|
||||
public ActionResult SplitButtons()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ButtonController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ButtonToggleButtons/
|
||||
|
||||
public ActionResult ToggleButtons()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Chart/
|
||||
|
||||
public ActionResult Area()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Column3d/
|
||||
|
||||
public ActionResult Column3d()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Column/
|
||||
|
||||
public ActionResult Column()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Line/
|
||||
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Pie3d/
|
||||
|
||||
public ActionResult Pie3d()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Pie/
|
||||
|
||||
public ActionResult Pie()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Pyramid/
|
||||
|
||||
public ActionResult Pyramid()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /StackingColumn3d/
|
||||
|
||||
public ActionResult StackingColumn3d()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /StackingColumn/
|
||||
|
||||
public ActionResult StackingColumn()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /TrackBall/
|
||||
|
||||
public ActionResult TrackBall()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ChartController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /ZoomingAnd Panning/
|
||||
|
||||
public ActionResult ZoomingAndPanning()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class CircularGaugeController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Default/
|
||||
|
||||
public ActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /AngularSupport/
|
||||
|
||||
public ActionResult CustomPalette()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Default/
|
||||
|
||||
public IActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /DisplayInline/
|
||||
|
||||
public ActionResult DisplayInline()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Events/
|
||||
|
||||
public ActionResult Events()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Keyboard/
|
||||
|
||||
public ActionResult Keyboard()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Methods/
|
||||
|
||||
public ActionResult Methods()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /DisplayInline/
|
||||
|
||||
public ActionResult PaletteModel()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ColorPickerController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Presets/
|
||||
|
||||
public ActionResult Presets()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Cascading/
|
||||
List<groups> group = new List<groups>();
|
||||
List<Countries> country = new List<Countries>();
|
||||
public ActionResult Cascading()
|
||||
{
|
||||
group.Add(new groups { parentId = "a", text = "Group A" });
|
||||
group.Add(new groups { parentId = "b", text = "Group B" });
|
||||
group.Add(new groups { parentId = "c", text = "Group C" });
|
||||
group.Add(new groups { parentId = "d", text = "Group D" });
|
||||
group.Add(new groups { parentId = "e", text = "Group E" });
|
||||
ViewBag.datasource = group;
|
||||
country.Add(new Countries { value = 11, parentId = "a", text = "Algeria", sprite = "flag-dz" });
|
||||
country.Add(new Countries { value = 12, parentId = "a", text = "Armenia", sprite = "flag-am" });
|
||||
country.Add(new Countries { value = 13, parentId = "a", text = "Bangladesh", sprite = "flag-bd" });
|
||||
country.Add(new Countries { value = 14, parentId = "a", text = "Cuba", sprite = "flag-cu" });
|
||||
country.Add(new Countries { value = 15, parentId = "b", text = "Denmark", sprite = "flag-dk" });
|
||||
country.Add(new Countries { value = 16, parentId = "b", text = "Egypt", sprite = "flag-eg" });
|
||||
country.Add(new Countries { value = 17, parentId = "c", text = "Finland", sprite = "flag-fi" });
|
||||
country.Add(new Countries { value = 18, parentId = "c", text = "India", sprite = "flag-in" });
|
||||
country.Add(new Countries { value = 19, parentId = "c", text = "Malaysia", sprite = "flag-my" });
|
||||
country.Add(new Countries { value = 20, parentId = "d", text = "New Zealand", sprite = "flag-nz" });
|
||||
country.Add(new Countries { value = 21, parentId = "d", text = "Norway", sprite = "flag-no" });
|
||||
country.Add(new Countries { value = 22, parentId = "d", text = "Romania", sprite = "flag-ro" });
|
||||
country.Add(new Countries { value = 23, parentId = "e", text = "Singapore", sprite = "flag-sg" });
|
||||
country.Add(new Countries { value = 24, parentId = "e", text = "Thailand", sprite = "flag-th" });
|
||||
country.Add(new Countries { value = 25, parentId = "e", text = "Ukraine", sprite = "flag-ua" });
|
||||
ViewBag.datasource1 = country;
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /DataBindingJson/
|
||||
public ActionResult DatabindingJson()
|
||||
{
|
||||
ViewBag.datasource = States.GetStates();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /DataIndingRemote/
|
||||
public ActionResult Databindingremote()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /Default/
|
||||
public ActionResult Default()
|
||||
{
|
||||
ViewBag.datasource = CarsList.GetCarList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /Events/
|
||||
public ActionResult Events()
|
||||
{
|
||||
ViewBag.datasource = Colors.GetColors();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Filtering/
|
||||
|
||||
public ActionResult Filtering()
|
||||
{
|
||||
ViewBag.datasource = Countries.GetCountries();
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /Grouping/
|
||||
public ActionResult Grouping()
|
||||
{
|
||||
ViewBag.datasource = Countries.GetCountries();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Icons/
|
||||
|
||||
public ActionResult Icons()
|
||||
{
|
||||
ViewBag.datasource = IconCss.GetIconList();
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: //
|
||||
public ActionResult Methods()
|
||||
{
|
||||
ViewBag.datasource = Flowers.GetFlowers();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /Rtl/
|
||||
public ActionResult Rtl()
|
||||
{
|
||||
ViewBag.datasource = CarsList.GetCarList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /Sorting/
|
||||
|
||||
public ActionResult Sorting()
|
||||
{
|
||||
ViewBag.datasource = Flowers.GetFlowers();
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2021.
|
||||
// Copyright Syncfusion Inc. 2001-2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using samplebrowser.Models;
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
// GET: /Template/
|
||||
public ActionResult Template()
|
||||
{
|
||||
ViewBag.datasource = empList.GetEmpList();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2021
|
||||
// Copyright Syncfusion Inc. 2001 - 2021. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace samplebrowser.Controllers
|
||||
{
|
||||
public partial class DatePickerController : Controller
|
||||
{
|
||||
public class datemodel
|
||||
{
|
||||
public object Value
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
// GET: /DatePickerFor/
|
||||
public ActionResult DatePickerFor()
|
||||
{
|
||||
datemodel date = new datemodel();
|
||||
date.Value = DateTime.Now;
|
||||
return View(date);
|
||||
}
|
||||
[HttpPost]
|
||||
public ActionResult DatePickerFor(datemodel model)
|
||||
{
|
||||
datemodel date = new datemodel();
|
||||
date.Value = DateTime.Now;
|
||||
return View(date);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче