This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qty: this._VirSci_Helper_Form.GetControlFromForm(ItemType: Helpers.Forms.FormControlTypes.ChooseFromList, | |
ItemUID: "TXT_QTY", | |
FormToSearchIn: _SBO_Form), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static double ConvertToEpochFromDateTime(this DateTime date) | |
{ | |
return (date - new DateTime(1970, 1, 1).ToLocalTime()).TotalMilliseconds; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
NewerOlder