many changes
parent
c7f81699a4
commit
6809e3dfe2
@ -1,44 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Yavsc;
|
|
||||||
using SalesCatalog;
|
|
||||||
using SalesCatalog.Model;
|
|
||||||
using System.Web.Routing;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Web.Http;
|
|
||||||
using System.Net.Http;
|
|
||||||
using System.Web;
|
|
||||||
using System.Linq;
|
|
||||||
using System.IO;
|
|
||||||
using System.Net;
|
|
||||||
using WorkFlowProvider;
|
|
||||||
using System.Web.Security;
|
|
||||||
using Yavsc.Model.WorkFlow;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using Yavsc.Model.RolesAndMembers;
|
|
||||||
using Yavsc.Controllers;
|
|
||||||
using Yavsc.Formatters;
|
|
||||||
using System.Text;
|
|
||||||
using System.Web.Profile;
|
|
||||||
|
|
||||||
namespace Yavsc.ApiControllers
|
|
||||||
{
|
|
||||||
|
|
||||||
public class FormInputValue: IValueProvider<T>
|
|
||||||
{
|
|
||||||
#region IValueProvider implementation
|
|
||||||
|
|
||||||
public T GetValue ()
|
|
||||||
{
|
|
||||||
throw new NotImplementedException ();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
grunt.initConfig({
|
||||||
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
meta: {
|
||||||
|
banner : '/*!\n' +
|
||||||
|
' * <%= pkg.title %> v<%= pkg.version %> - <%= pkg.description %>\n' +
|
||||||
|
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> - <%= pkg.homepage %>\n' +
|
||||||
|
' * License: <%= pkg.license %>\n' +
|
||||||
|
' */\n\n'
|
||||||
|
},
|
||||||
|
uglify: {
|
||||||
|
options : {
|
||||||
|
banner : '<%= meta.banner %>',
|
||||||
|
report: 'gzip'
|
||||||
|
},
|
||||||
|
dist: {
|
||||||
|
files: {
|
||||||
|
'jquery.timepicker.min.js': ['jquery.timepicker.js']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
|
||||||
|
grunt.registerTask('default', ['uglify']);
|
||||||
|
|
||||||
|
};
|
@ -0,0 +1,221 @@
|
|||||||
|
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
|
||||||
|
* Licensed under the MIT License (LICENSE.txt).
|
||||||
|
*
|
||||||
|
* Version: 3.1.12
|
||||||
|
*
|
||||||
|
* Requires: jQuery 1.2.2+
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function (factory) {
|
||||||
|
if ( typeof define === 'function' && define.amd ) {
|
||||||
|
// AMD. Register as an anonymous module.
|
||||||
|
define(['jquery'], factory);
|
||||||
|
} else if (typeof exports === 'object') {
|
||||||
|
// Node/CommonJS style for Browserify
|
||||||
|
module.exports = factory;
|
||||||
|
} else {
|
||||||
|
// Browser globals
|
||||||
|
factory(jQuery);
|
||||||
|
}
|
||||||
|
}(function ($) {
|
||||||
|
|
||||||
|
var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
|
||||||
|
toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
|
||||||
|
['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
|
||||||
|
slice = Array.prototype.slice,
|
||||||
|
nullLowestDeltaTimeout, lowestDelta;
|
||||||
|
|
||||||
|
if ( $.event.fixHooks ) {
|
||||||
|
for ( var i = toFix.length; i; ) {
|
||||||
|
$.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var special = $.event.special.mousewheel = {
|
||||||
|
version: '3.1.12',
|
||||||
|
|
||||||
|
setup: function() {
|
||||||
|
if ( this.addEventListener ) {
|
||||||
|
for ( var i = toBind.length; i; ) {
|
||||||
|
this.addEventListener( toBind[--i], handler, false );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.onmousewheel = handler;
|
||||||
|
}
|
||||||
|
// Store the line height and page height for this particular element
|
||||||
|
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
|
||||||
|
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
|
||||||
|
},
|
||||||
|
|
||||||
|
teardown: function() {
|
||||||
|
if ( this.removeEventListener ) {
|
||||||
|
for ( var i = toBind.length; i; ) {
|
||||||
|
this.removeEventListener( toBind[--i], handler, false );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.onmousewheel = null;
|
||||||
|
}
|
||||||
|
// Clean up the data we added to the element
|
||||||
|
$.removeData(this, 'mousewheel-line-height');
|
||||||
|
$.removeData(this, 'mousewheel-page-height');
|
||||||
|
},
|
||||||
|
|
||||||
|
getLineHeight: function(elem) {
|
||||||
|
var $elem = $(elem),
|
||||||
|
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
||||||
|
if (!$parent.length) {
|
||||||
|
$parent = $('body');
|
||||||
|
}
|
||||||
|
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
|
||||||
|
},
|
||||||
|
|
||||||
|
getPageHeight: function(elem) {
|
||||||
|
return $(elem).height();
|
||||||
|
},
|
||||||
|
|
||||||
|
settings: {
|
||||||
|
adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
|
||||||
|
normalizeOffset: true // calls getBoundingClientRect for each event
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$.fn.extend({
|
||||||
|
mousewheel: function(fn) {
|
||||||
|
return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
|
||||||
|
},
|
||||||
|
|
||||||
|
unmousewheel: function(fn) {
|
||||||
|
return this.unbind('mousewheel', fn);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function handler(event) {
|
||||||
|
var orgEvent = event || window.event,
|
||||||
|
args = slice.call(arguments, 1),
|
||||||
|
delta = 0,
|
||||||
|
deltaX = 0,
|
||||||
|
deltaY = 0,
|
||||||
|
absDelta = 0,
|
||||||
|
offsetX = 0,
|
||||||
|
offsetY = 0;
|
||||||
|
event = $.event.fix(orgEvent);
|
||||||
|
event.type = 'mousewheel';
|
||||||
|
|
||||||
|
// Old school scrollwheel delta
|
||||||
|
if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; }
|
||||||
|
if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; }
|
||||||
|
if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; }
|
||||||
|
if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
|
||||||
|
|
||||||
|
// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
|
||||||
|
if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
||||||
|
deltaX = deltaY * -1;
|
||||||
|
deltaY = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
|
||||||
|
delta = deltaY === 0 ? deltaX : deltaY;
|
||||||
|
|
||||||
|
// New school wheel delta (wheel event)
|
||||||
|
if ( 'deltaY' in orgEvent ) {
|
||||||
|
deltaY = orgEvent.deltaY * -1;
|
||||||
|
delta = deltaY;
|
||||||
|
}
|
||||||
|
if ( 'deltaX' in orgEvent ) {
|
||||||
|
deltaX = orgEvent.deltaX;
|
||||||
|
if ( deltaY === 0 ) { delta = deltaX * -1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// No change actually happened, no reason to go any further
|
||||||
|
if ( deltaY === 0 && deltaX === 0 ) { return; }
|
||||||
|
|
||||||
|
// Need to convert lines and pages to pixels if we aren't already in pixels
|
||||||
|
// There are three delta modes:
|
||||||
|
// * deltaMode 0 is by pixels, nothing to do
|
||||||
|
// * deltaMode 1 is by lines
|
||||||
|
// * deltaMode 2 is by pages
|
||||||
|
if ( orgEvent.deltaMode === 1 ) {
|
||||||
|
var lineHeight = $.data(this, 'mousewheel-line-height');
|
||||||
|
delta *= lineHeight;
|
||||||
|
deltaY *= lineHeight;
|
||||||
|
deltaX *= lineHeight;
|
||||||
|
} else if ( orgEvent.deltaMode === 2 ) {
|
||||||
|
var pageHeight = $.data(this, 'mousewheel-page-height');
|
||||||
|
delta *= pageHeight;
|
||||||
|
deltaY *= pageHeight;
|
||||||
|
deltaX *= pageHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store lowest absolute delta to normalize the delta values
|
||||||
|
absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
|
||||||
|
|
||||||
|
if ( !lowestDelta || absDelta < lowestDelta ) {
|
||||||
|
lowestDelta = absDelta;
|
||||||
|
|
||||||
|
// Adjust older deltas if necessary
|
||||||
|
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
||||||
|
lowestDelta /= 40;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adjust older deltas if necessary
|
||||||
|
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
||||||
|
// Divide all the things by 40!
|
||||||
|
delta /= 40;
|
||||||
|
deltaX /= 40;
|
||||||
|
deltaY /= 40;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get a whole, normalized value for the deltas
|
||||||
|
delta = Math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestDelta);
|
||||||
|
deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
|
||||||
|
deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
|
||||||
|
|
||||||
|
// Normalise offsetX and offsetY properties
|
||||||
|
if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
|
||||||
|
var boundingRect = this.getBoundingClientRect();
|
||||||
|
offsetX = event.clientX - boundingRect.left;
|
||||||
|
offsetY = event.clientY - boundingRect.top;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add information to the event object
|
||||||
|
event.deltaX = deltaX;
|
||||||
|
event.deltaY = deltaY;
|
||||||
|
event.deltaFactor = lowestDelta;
|
||||||
|
event.offsetX = offsetX;
|
||||||
|
event.offsetY = offsetY;
|
||||||
|
// Go ahead and set deltaMode to 0 since we converted to pixels
|
||||||
|
// Although this is a little odd since we overwrite the deltaX/Y
|
||||||
|
// properties with normalized deltas.
|
||||||
|
event.deltaMode = 0;
|
||||||
|
|
||||||
|
// Add event and delta to the front of the arguments
|
||||||
|
args.unshift(event, delta, deltaX, deltaY);
|
||||||
|
|
||||||
|
// Clearout lowestDelta after sometime to better
|
||||||
|
// handle multiple device types that give different
|
||||||
|
// a different lowestDelta
|
||||||
|
// Ex: trackpad = 3 and mouse wheel = 120
|
||||||
|
if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
|
||||||
|
nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
|
||||||
|
|
||||||
|
return ($.event.dispatch || $.event.handle).apply(this, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
function nullLowestDelta() {
|
||||||
|
lowestDelta = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function shouldAdjustOldDeltas(orgEvent, absDelta) {
|
||||||
|
// If this is an older event and the delta is divisable by 120,
|
||||||
|
// then we are assuming that the browser is treating this as an
|
||||||
|
// older mouse wheel event and that we should divide the deltas
|
||||||
|
// by 40 to try and get a more usable deltaFactor.
|
||||||
|
// Side note, this actually impacts the reported scroll distance
|
||||||
|
// in older browsers and can cause scrolling to be slower than native.
|
||||||
|
// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
|
||||||
|
return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}));
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,72 @@
|
|||||||
|
.ui-timepicker-wrapper {
|
||||||
|
overflow-y: auto;
|
||||||
|
height: 150px;
|
||||||
|
width: 6.5em;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);
|
||||||
|
-moz-box-shadow:0 5px 10px rgba(0,0,0,0.2);
|
||||||
|
box-shadow:0 5px 10px rgba(0,0,0,0.2);
|
||||||
|
outline: none;
|
||||||
|
z-index: 10001;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-wrapper.ui-timepicker-with-duration {
|
||||||
|
width: 13em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-30,
|
||||||
|
.ui-timepicker-wrapper.ui-timepicker-with-duration.ui-timepicker-step-60 {
|
||||||
|
width: 11em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-duration {
|
||||||
|
margin-left: 5px; color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list:hover .ui-timepicker-duration {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list li {
|
||||||
|
padding: 3px 0 3px 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: #000;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list:hover .ui-timepicker-selected {
|
||||||
|
background: #fff; color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.ui-timepicker-selected,
|
||||||
|
.ui-timepicker-list li:hover,
|
||||||
|
.ui-timepicker-list .ui-timepicker-selected:hover {
|
||||||
|
background: #1980EC; color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
li.ui-timepicker-selected .ui-timepicker-duration,
|
||||||
|
.ui-timepicker-list li:hover .ui-timepicker-duration {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list li.ui-timepicker-disabled,
|
||||||
|
.ui-timepicker-list li.ui-timepicker-disabled:hover,
|
||||||
|
.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
|
||||||
|
color: #888;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-timepicker-list li.ui-timepicker-disabled:hover,
|
||||||
|
.ui-timepicker-list li.ui-timepicker-selected.ui-timepicker-disabled {
|
||||||
|
background: #f2f2f2;
|
||||||
|
}
|
@ -1,6 +1,4 @@
|
|||||||
<%@ Page Title="Comptes utilisateur - Index" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
<%@ Page Title="Comptes utilisateur" Language="C#" Inherits="System.Web.Mvc.ViewPage<DataAccess>" MasterPageFile="~/Models/App.master" %>
|
||||||
<asp:Content ContentPlaceHolderID="header" ID="headerContent" runat="server">
|
|
||||||
<h2>Comptes utilisteur</h2>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||||
|
Pas de contenu :-(
|
||||||
</asp:Content>
|
</asp:Content>
|
@ -1,4 +1,18 @@
|
|||||||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
<%@ Page Title="Admin" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
|
<div class="panel">
|
||||||
|
|
||||||
|
<ul><li>
|
||||||
<%= Html.ActionLink("Backups","Backups") %>
|
<%= Html.ActionLink("Backups","Backups") %>
|
||||||
|
</li>
|
||||||
|
<li><%= Html.ActionLink("Restaurations", "Restore") %></li>
|
||||||
|
<li><%= Html.ActionLink("Create backup","CreateBackup") %></li>
|
||||||
|
<li><%= Html.ActionLink("Remove user", "RemoveUser") %></li>
|
||||||
|
<li><%= Html.ActionLink("Remove role", "RemoveRoleQuery") %></li>
|
||||||
|
<li><%= Html.ActionLink("User list", "UserList") %></li>
|
||||||
|
<li><%= Html.ActionLink("Role list", "RoleList") %></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
<%@ Page Title="Back office" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||||
|
|
||||||
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="MASContentContent" ContentPlaceHolderID="MASContent" runat="server">
|
||||||
|
<ul><li>
|
||||||
|
<%= Html.ActionLink("Catalog","Catalog","FrontOffice" ) %>
|
||||||
|
</li></ul>
|
||||||
|
</asp:Content>
|
@ -0,0 +1,11 @@
|
|||||||
|
<%@ Page Title="Front office" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||||
|
|
||||||
|
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="MASContentContent" ContentPlaceHolderID="MASContent" runat="server">
|
||||||
|
<ul><li>
|
||||||
|
<%= Html.ActionLink("Catalog","Catalog" ) %>
|
||||||
|
</li><li>
|
||||||
|
<%= Html.ActionLink("Estimates","Estimates" ) %>
|
||||||
|
</li></ul>
|
||||||
|
</asp:Content>
|
@ -1,5 +0,0 @@
|
|||||||
<%@ Page Title="Catalog" Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Models/App.master" %>
|
|
||||||
|
|
||||||
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
|
||||||
|
|
||||||
</asp:Content>
|
|
@ -0,0 +1,14 @@
|
|||||||
|
<%@ Page Title="Google calendar usage" Language="C#" Inherits="System.Web.Mvc.ViewPage<CalendarList>" MasterPageFile="~/Models/App.master" %>
|
||||||
|
|
||||||
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||||
|
|
||||||
|
<% using ( Html.BeginForm("SetCalendar","Google") ) { %>
|
||||||
|
<% foreach (CalendarListEntry e in Model.items.Where(x=>x.accessRole=="owner")) { %>
|
||||||
|
<input type="radio" name="calchoice" id="calchoice" value="<%=e.id%>" >
|
||||||
|
<%=Html.Encode(e.summary)%> <br>
|
||||||
|
<i><%=Html.Encode(e.description)%></i> <br>
|
||||||
|
<% } %>
|
||||||
|
<input type="submit">
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
</asp:Content>
|
@ -0,0 +1,91 @@
|
|||||||
|
<%@ Page Title="Date search" Language="C#" Inherits="System.Web.Mvc.ViewPage<AskForADate>" MasterPageFile="~/Models/App.master" %>
|
||||||
|
|
||||||
|
|
||||||
|
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery-2.1.1.min.js"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery.timepicker.js"></script>
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery.mousewheel.js"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/Theme/jquery.timepicker.css" />
|
||||||
|
<script type="text/javascript" src="/Scripts/jquery-ui.js"></script>
|
||||||
|
<link rel="stylesheet" href="/Theme/jquery-ui.css">
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.ui-icon .ui-icon-circle-triangle-e {
|
||||||
|
background-image: url(/images/ui-bg_flechg.png);
|
||||||
|
}
|
||||||
|
.ui-datepicker-next .ui-corner-all {
|
||||||
|
background-image: url(/images/ui-bg_flechd.png);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
$.widget( "ui.timespinner", $.ui.spinner, {
|
||||||
|
options: {
|
||||||
|
// seconds
|
||||||
|
step: 60 * 1000,
|
||||||
|
// hours
|
||||||
|
page: 60
|
||||||
|
},
|
||||||
|
_parse: function( value ) {
|
||||||
|
if ( typeof value === "string" ) {
|
||||||
|
// already a timestamp
|
||||||
|
if ( Number( value ) == value ) {
|
||||||
|
return Number( value );
|
||||||
|
}
|
||||||
|
return +Globalize.parseDate( value );
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
},
|
||||||
|
_format: function( value ) {
|
||||||
|
return Globalize.format( new Date(value), "t" );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</asp:Content>
|
||||||
|
|
||||||
|
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
|
||||||
|
|
||||||
|
|
||||||
|
<% using ( Html.BeginForm("DateQuery","Google") ) { %>
|
||||||
|
|
||||||
|
<p>Période de recherche:</p>
|
||||||
|
<p>
|
||||||
|
<%= Html.LabelFor(model=>model.MinDate) %>:<br>
|
||||||
|
Le <input type="text" id="MinDate">
|
||||||
|
à
|
||||||
|
<input type="text" id="MinTime" class="time"/>
|
||||||
|
<%= Html.ValidationMessageFor(model=>model.MinDate) %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= Html.LabelFor(model=>model.MaxDate) %>:<br>
|
||||||
|
Le <input type="text" id="MaxDate">
|
||||||
|
à
|
||||||
|
<input type="text" id="MaxTime" class="time"/>
|
||||||
|
<%= Html.ValidationMessageFor(model=>model.MaxDate) %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Durée minimale : <input type="text" id="Duration" />
|
||||||
|
</p>
|
||||||
|
<script>
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
$('#MinTime').timepicker({ 'scrollDefault': 'now' });
|
||||||
|
$('#MaxTime').timepicker({ 'scrollDefault': 'now' });
|
||||||
|
$( "#MinDate" ).datepicker();
|
||||||
|
$( "#MaxDate" ).datepicker();
|
||||||
|
$( "#Duration" ).timespinner();
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<input type="submit">
|
||||||
|
<% } %>
|
||||||
|
<pre><%= Html.Encode(ViewData["json"]) %></pre>
|
||||||
|
|
||||||
|
</asp:Content>
|
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
@ -0,0 +1,45 @@
|
|||||||
|
//
|
||||||
|
// CalendarList.cs
|
||||||
|
//
|
||||||
|
// Author:
|
||||||
|
// Paul Schneider <paulschneider@free.fr>
|
||||||
|
//
|
||||||
|
// Copyright (c) 2014 Paul Schneider
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Web.Mvc;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Text;
|
||||||
|
using System.Net;
|
||||||
|
using System.IO;
|
||||||
|
using Yavsc.Model;
|
||||||
|
|
||||||
|
namespace Yavsc.Model.Google
|
||||||
|
{
|
||||||
|
public class CalendarList {
|
||||||
|
public string kind { get; set;}
|
||||||
|
public string etag { get; set; }
|
||||||
|
public string nextSyncToken { get; set; }
|
||||||
|
public CalendarListEntry[] items { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,65 @@
|
|||||||
|
//
|
||||||
|
// CalendarListEntry.cs
|
||||||
|
//
|
||||||
|
// Author:
|
||||||
|
// Paul Schneider <paulschneider@free.fr>
|
||||||
|
//
|
||||||
|
// Copyright (c) 2014 Paul Schneider
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Web.Mvc;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Text;
|
||||||
|
using System.Net;
|
||||||
|
using System.IO;
|
||||||
|
using Yavsc.Model;
|
||||||
|
|
||||||
|
namespace Yavsc.Model.Google
|
||||||
|
{
|
||||||
|
|
||||||
|
public class CalendarListEntry {
|
||||||
|
public string kind { get; set;}
|
||||||
|
public string etag { get; set; }
|
||||||
|
public string id { get; set; }
|
||||||
|
public string summary { get; set; }
|
||||||
|
public string description { get; set; }
|
||||||
|
public string timeZone { get; set; }
|
||||||
|
public string colorId { get; set; }
|
||||||
|
public string backgroundColor { get; set; }
|
||||||
|
public string foregroundColor { get; set; }
|
||||||
|
public bool selected { get; set; }
|
||||||
|
public bool primary { get; set; }
|
||||||
|
public string accessRole { get; set; }
|
||||||
|
public class Reminder {
|
||||||
|
public string method { get; set; }
|
||||||
|
public int minutes { get; set; }
|
||||||
|
}
|
||||||
|
public Reminder[] defaultReminders { get; set; }
|
||||||
|
/* "notificationSettings": { "notifications":
|
||||||
|
[ { "type": "eventCreation", "method": "email" },
|
||||||
|
{ "type": "eventChange", "method": "email" },
|
||||||
|
{ "type": "eventCancellation", "method": "email" },
|
||||||
|
{ "type": "eventResponse", "method": "email" } ] }, "primary": true },
|
||||||
|
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue