Skip to content

Instantly share code, notes, and snippets.

oMatrixHelper.LoadDatabaseDataIntoMatrix(
"OSRI",
"MTX_PLANTS",
new List<VirSci_SAP.Helpers.Matrix.MatrixColumn>() {
new VirSci_SAP.Helpers.Matrix.MatrixColumn(){ ColumnName="UniqueID", Caption="Plant ID", ColumnWidth=80, ItemType = SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON },
new VirSci_SAP.Helpers.Matrix.MatrixColumn(){ ColumnName="itemName", Caption="Name", ColumnWidth=80, ItemType = SAPbouiCOM.BoFormItemTypes.it_EDIT },
new VirSci_SAP.Helpers.Matrix.MatrixColumn(){ ColumnName="WhsCode", Caption="Warehouse ID", ColumnWidth=80, ItemType = SAPbouiCOM.BoFormItemTypes.it_EDIT },
new VirSci_SAP.Helpers.Matrix.MatrixColumn(){ ColumnName="WhsName", Caption="Warehouse", ColumnWidth=80, ItemType = SAPbouiCOM.BoFormItemTypes.it_EDIT },
new VirS
qty: this._VirSci_Helper_Form.GetControlFromForm(ItemType: Helpers.Forms.FormControlTypes.ChooseFromList,
ItemUID: "TXT_QTY",
FormToSearchIn: _SBO_Form),
var test = db.MovieShowings.Where(m => DateRangeStart < m.Showtime && m.Showtime < DateRangeEnd).Include("Movie").ToList().Select(s => new
{
id = s.MovieShowingId,
thisWorks = s.Movie.MovieId,
thisDoesntWork = s.Movie.Length,
url = "Edit/" + s.ScreenId, //update
@class = "event-important",
start = s.Showtime.ConvertToEpochFromDateTime(),
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<system.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
[HttpGet]
public IHttpActionResult Get(long from, long to)
{
DateTime DateRangeStart = from.ConvertToDateTimeFromEpoch();
DateTime DateRangeEnd = to.ConvertToDateTimeFromEpoch();
var test = db.MovieShowings.Where(m => DateRangeStart < m.Showtime && m.Showtime < DateRangeEnd).ToList().Select(s => new
{
id = s.MovieShowingId,
title = s.MovieId,
url = "Edit/" + s.ScreenId, //update
var test = db.MovieShowings.Where(m => DateRangeStart < m.Showtime && m.Showtime < DateRangeEnd).AsEnumerable().Select(s => new
{
id = s.MovieShowingId,
title = s.MovieId,
url = "Edit/" + s.ScreenId, //update
@class = "event-important",
start = s.Showtime,
end = s.Showtime,
length = s.Movie.Length
});
public static double ConvertToEpochFromDateTime(this DateTime date)
{
return (date - new DateTime(1970, 1, 1).ToLocalTime()).TotalMilliseconds;
}
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using MovieMinder.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Threading.Tasks;
using System.Web;
case 'string':
if(source.length) {
loader = function() {
var events = [];
var params = {from: self.options.position.start.getTime(), to: self.options.position.end.getTime()};
if(browser_timezone.length) {
params.browser_timezone = browser_timezone;
}
$.ajax({
url: buildEventsUrl(source, params),
public class APIScreensController : ApiController
{
private ApplicationDbContext db = new ApplicationDbContext();
// GET: api/APIScreens
public IHttpActionResult Get(DateTime from, DateTime to)
{
var test = db.Screens.Select(s => new
{
id = s.ScreenId,