#pragma checksum "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Home\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2f58f72eb901c0fca86c2776eb48c4a6bdb862fd"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Home_Index), @"mvc.1.0.view", @"/Views/Home/Index.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\_ViewImports.cshtml"
using Scheduler_CustomEditor;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\_ViewImports.cshtml"
using Kendo.Mvc.UI;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"2f58f72eb901c0fca86c2776eb48c4a6bdb862fd", @"/Views/Home/Index.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6074915f48de0774e17ee5cc45460ef25ce9a0cf", @"/Views/_ViewImports.cshtml")]
    public class Views_Home_Index : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#nullable restore
#line 1 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Home\Index.cshtml"
  
    ViewData["Title"] = "Home Page";

#line default
#line hidden
#nullable disable
            WriteLiteral("\r\n");
#nullable restore
#line 5 "C:\Users\aevangel\source\repos\Scheduler_CustomEditor_Core\Scheduler_CustomEditor\Scheduler_CustomEditor\Views\Home\Index.cshtml"
Write(Html.Kendo().Scheduler<Scheduler_CustomEditor.Models.MeetingViewModel>()
            .Name("scheduler")
            .Date(new DateTime(2013, 6, 13))
            .Height(600)
            .Editable(e => e.TemplateName("CustomEditorTemplate"))
            .Events(ev => ev.Edit("onEdit"))
            .Views(views =>
            {
                views.DayView();
                views.WeekView(weekView => weekView.Selected(true));
                views.MonthView();
                views.AgendaView();
            })
            .Timezone("Etc/UTC")
            //.Resources(resource =>
            //{
            //    resource.Add(m => m.RoomID)
            //        .Title("Room")
            //        .DataTextField("Text")
            //        .DataValueField("Value")
            //        .DataColorField("Color")
            //        .BindTo(new[] {
            //        new { Text = "Meeting Room 101", Value = 1, Color = "#6eb3fa" },
            //        new { Text = "Meeting Room 201", Value = 2, Color = "#f58a8a" }
            //        });
            //    resource.Add(m => m.Attendees)
            //        .Title("Attendees")
            //        .Multiple(true)
            //        .DataTextField("Text")
            //        .DataValueField("Value")
            //        .DataColorField("Color")
            //        .BindTo(new[] {
            //        new { Text = "Alex", Value = 1, Color = "#f8a398" },
            //        new { Text = "Bob", Value = 2, Color = "#51a0ed" },
            //        new { Text = "Charlie", Value = 3, Color = "#56ca85" }
            //        });
            //})
            .DataSource(d => d
                    .Custom()
                    .Batch(true)
                    .Schema(schema => schema
                        .Model(m =>
                        {
                            m.Id(f => f.MeetingID);
                            m.Field("title", typeof(string)).DefaultValue("No title").From("Title");
                            m.Field("start", typeof(DateTime)).From("Start");
                            m.Field("end", typeof(DateTime)).From("End");
                            m.Field("description", typeof(string)).From("Description");
                            m.Field("recurrenceID", typeof(int)).From("RecurrenceID");
                            m.Field("recurrenceRule", typeof(string)).From("RecurrenceRule");
                            m.Field("recurrenceException", typeof(string)).From("RecurrenceException");
                            m.Field("isAllDay", typeof(bool)).From("IsAllDay");
                            m.Field("startTimezone", typeof(string)).From("StartTimezone");
                            m.Field("endTimezone", typeof(string)).From("EndTimezone");
                            m.Field("TradeId", typeof(int?)).From("TradeId");
                            m.Field("PersonId", typeof(int?)).From("PersonId");
                        }))
            .Transport(transport => transport
                .Read(read => read.Action("Read", "Scheduler"))
                .Create(create => create.Action("Create", "Scheduler").Type(HttpVerbs.Post)
                      )
                .Destroy(destroy => destroy.Action("Destroy", "Scheduler").Type(HttpVerbs.Post)
                      )
                .Update(update => update.Action("Update", "Scheduler").Type(HttpVerbs.Post)
                     )
                .ParameterMap("parameterMap")
               )
    )
);

#line default
#line hidden
#nullable disable
            WriteLiteral(@"
<script>
    function parameterMap(options, operation) {
        if (operation !== ""read"" && options.models) {
            return JSON.parse(kendo.stringify({
                models: options.models
            }));
        }
    }

    function onEdit(e) {
        var timezone = e.container.find(""[name=timezone]"");
        timezone.on(""click"", function () {
            e.sender._editor._initTimezoneEditor(e.event);
        });
    }
</script>
<script>
    function additionalData() {
        return {
            tradeId: $(""#TradeId"").val()
        }
    }
</script>");
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; }
    }
}
#pragma warning restore 1591
