// GET: DragAndDropWithInGrid public ActionResult DragAndDropWithInGrid() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult DefaultExporting() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult AddPartial([FromBody] CRUDModel <DialogTemplateModel> value) { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(PartialView("_DialogAddPartial")); }
public IActionResult ColumnMenu() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
// GET: DefaultFunctionalities public ActionResult DefaultFunctionalities() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult RowDragAndDrop() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order.Take(24).ToList(); return(View()); }
public IActionResult FrozenAPI() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; List <object> dd = new List <object>(); dd.Add(new { name = "Order ID", id = "OrderID" }); dd.Add(new { name = "Freight", id = "Freight" }); dd.Add(new { name = "Customer ID", id = "CustomerID" }); dd.Add(new { name = "Order Date", id = "OrderDate" }); dd.Add(new { name = "Ship Name", id = "ShipName" }); dd.Add(new { name = "Ship Address", id = "ShipAddress" }); dd.Add(new { name = "Ship City", id = "ShipCity" }); dd.Add(new { name = "Ship Country", id = "ShipCountry" }); ViewBag.columns = dd; List <object> direction = new List <object>(); direction.Add(new { name = "Left", id = "Left" }); direction.Add(new { name = "Right", id = "Right" }); direction.Add(new { name = "Center", id = "Center" }); ViewBag.direction = direction; ViewBag.DefaultButtons = new { content = "OK", isPrimary = true }; return(View()); }
// GET: DefaultAggregate public ActionResult DefaultAggregate() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult UrlDatasource([FromBody] DataManagerRequest dm) { IEnumerable DataSource = OrdersDetails.GetAllRecords(); DataOperations operation = new DataOperations(); if (dm.Search != null && dm.Search.Count > 0) { DataSource = operation.PerformSearching(DataSource, dm.Search); //Search } if (dm.Sorted != null && dm.Sorted.Count > 0) //Sorting { DataSource = operation.PerformSorting(DataSource, dm.Sorted); } if (dm.Where != null && dm.Where.Count > 0) //Filtering { DataSource = operation.PerformFiltering(DataSource, dm.Where, dm.Where[0].Operator); } int count = DataSource.Cast <OrdersDetails>().Count(); if (dm.Skip != 0) { DataSource = operation.PerformSkip(DataSource, dm.Skip); //Paging } if (dm.Take != 0) { DataSource = operation.PerformTake(DataSource, dm.Take); } return(dm.RequiresCounts ? Json(new { result = DataSource, count = count }) : Json(DataSource)); }
// GET: StackedHeader public ActionResult StackedHeader() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult FrozenRows() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public ActionResult Index() { var Order = OrdersDetails.GetAllRecords(); ViewBag.DataSource = Order; return(View()); }
// GET: RowHeight public ActionResult RowHeight() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
// GET: InlineEditing public ActionResult InlineEditing() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public ActionResult AddPartial() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(PartialView("_DialogAddpartial")); }
public ActionResult Editpartial(DialogTemplateModel value) { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(PartialView("_DialogEditpartial", value)); }
// GET: DialogTemplateEdit public ActionResult DialogTemplateEdit() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; return(View()); }
public IActionResult FilterMenu() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; ViewBag.filtertype = new string[] { "Menu", "Excel", "CheckBox" }; return(View()); }
public object PostTest([FromBody] OrdersDetails value) { OrdersDetails.GetAllRecords().Add(value); var Data = OrdersDetails.GetAllRecords().ToList(); int count = Data.Count(); return(Json(new { result = Data, count = count })); }
public object Get(string id) { var queryString = Request.Query; var dataa = Convert.ToString(queryString["id"]); var data = OrdersDetails.GetAllRecords().Where(user => user.CustomerID == dataa).ToList(); return(new { Items = data, Count = data.Count() }); }
public object Post([FromBody] Data dm) { var order = OrdersDetails.GetAllRecords(); var Data = order.ToList(); int count = order.Count(); return(dm.requiresCounts ? Json(new { result = Data.Skip(dm.skip).Take(dm.take), count = count }) : Json(Data)); }
public object Get() { int skip = Convert.ToInt32(HttpContext.Request.Query["$skip"].ToString()); int take = Convert.ToInt32(HttpContext.Request.Query["$top"].ToString()); var data = OrdersDetails.GetAllRecords().ToList(); return(new { Items = data.Skip(skip).Take(take).ToList(), Count = data.Count() }); }
public IActionResult InlineEditing() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; ViewBag.ddDataSource = new string[] { "Top", "Bottom" }; return(View()); }
public object GetTest() { var queryString = Request.Query; int skip = Convert.ToInt32(queryString["$skip"]); int take = Convert.ToInt32(queryString["$top"]); var data = OrdersDetails.GetAllRecords().ToList(); return(Json(new { Items = data.Skip(skip).Take(take), Count = data.Count() })); }
// GET: MasterDetailsExport public ActionResult MasterDetailsExport() { var order = OrdersDetails.GetAllRecords(); ViewBag.Datasource = order; ViewBag.EmpDataSource = EmployeeView.GetAllRecords(); ViewBag.CustomerDataSource = Customer.GetAllRecords(); return(View()); }
// GET: ForeignKey public ActionResult ForeignKey() { var order = OrdersDetails.GetAllRecords(); ViewBag.datasource = order; var ForeignData = Customer.GetAllRecords(); ViewBag.dataSource2 = ForeignData; return(View()); }
public ActionResult Index() { var DataSource = TagData.GetData(); ViewBag.datasource = DataSource; var Order = OrdersDetails.GetAllRecords(); ViewBag.gridData = Order; return(View()); }
public object Get() { var data = OrdersDetails.GetAllRecords().ToList(); var query = HttpContext.Request.Query; StringValues skip; StringValues take; query.TryGetValue("$skip", out skip); query.TryGetValue("$top", out take); return(new { Items = data.Skip(Convert.ToInt32(skip)).Take(Convert.ToInt32(take)), Count = data.Count() }); }
// GET: DefaultFunctionalities public ActionResult ComponentsDialog() { List <DialogDialogButton> buttons = new List <DialogDialogButton>() { }; buttons.Add(new DialogDialogButton() { Click = "dlgButtonClick", ButtonModel = new DefaultButtonModels() { content = "OK", isPrimary = true } }); buttons.Add(new DialogDialogButton() { Click = "dlgButtonClick", ButtonModel = new DefaultButtonModels() { content = "CANCEL" } }); ViewBag.DefaultButtons = buttons; var order = OrdersDetails.GetAllRecords(); ViewBag.Datasource = order; List <LineChartData> chartData = new List <LineChartData> { new LineChartData { xValue = new DateTime(2005, 01, 01), yValue = 21, yValue1 = 28 }, new LineChartData { xValue = new DateTime(2006, 01, 01), yValue = 24, yValue1 = 44 }, new LineChartData { xValue = new DateTime(2007, 01, 01), yValue = 36, yValue1 = 48 }, new LineChartData { xValue = new DateTime(2008, 01, 01), yValue = 38, yValue1 = 50 }, new LineChartData { xValue = new DateTime(2009, 01, 01), yValue = 54, yValue1 = 66 }, new LineChartData { xValue = new DateTime(2010, 01, 01), yValue = 57, yValue1 = 78 }, new LineChartData { xValue = new DateTime(2011, 01, 01), yValue = 70, yValue1 = 84 }, }; ViewBag.ChartData = chartData; ViewBag.ScheduleData = new ScheduleEvents().GetAppointmentData(); return(View()); }
public object Update([FromBody] CRUDModel <OrdersDetails> value) { var ord = value.Value; OrdersDetails val = OrdersDetails.GetAllRecords().Where(or => or.OrderID == ord.OrderID).FirstOrDefault(); val.OrderID = ord.OrderID; val.EmployeeID = ord.EmployeeID; val.CustomerID = ord.CustomerID; val.Freight = ord.Freight; val.ShipCity = ord.ShipCity; return(value.Value); }