示例#1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 217, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how to specify the predefined custom date ranges (presets range) like last month, last year and current week in the dropdown popup in a ASP.NET Core\">\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(261, 57, true);
                WriteLiteral("<span class=\"sampleName\">DateRangePicker / Ranges</span> ");
                EndContext();
            }
                          );
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
            DateTime Today = DateTime.Now;

#line default
#line hidden
            DefineSection("ControlsSection", async() => {
                BeginContext(382, 65, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n       ");
                EndContext();
                BeginContext(447, 507, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-range-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "4411f7e43b234de5878cc0e08460ec58", async() => {
                    BeginContext(497, 12, true);
                    WriteLiteral("\r\n          ");
                    EndContext();
                    BeginContext(509, 413, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-ranges", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "6f702c1278bf421aa5d769d61b80c9e9", async() => {
                        BeginContext(519, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(535, 112, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "e3985b4782ed4eebac1970a04e335232", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_0.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddMonths(-1).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(647, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(663, 113, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d273d6e4e9904235a521535638f2b6eb", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_1.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddMonths(-2).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(776, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(792, 107, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "b602fca1cb9f4456b146cc35471475e3", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_2.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddDays(-7).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(899, 12, true);
                        WriteLiteral("\r\n          ");
                        EndContext();
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_DateRangepicker = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRangepicker>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRangepicker);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(922, 9, true);
                    WriteLiteral("\r\n       ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateRangePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRangePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRangePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_DateRangePickerProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(954, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1009, 248, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 100%;\r\n        }\r\n\r\n        .frame {\r\n            width: 75%;\r\n        }\r\n\r\n        .control .e-daterangewidget {\r\n            width: 225px;\r\n            margin: auto;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            DefineSection("MetaTags", async() => {
                BeginContext(18, 217, true);
                WriteLiteral("\r\n   <meta name=\"description\" content=\"This example demonstrates how to specify the predefined custom date ranges (presets range) like last month, last year and current week in the dropdown popup in a ASP.NET Core\">\r\n");
                EndContext();
            }
                          );
            DefineSection("SampleHeading", async() => {
                BeginContext(261, 57, true);
                WriteLiteral("<span class=\"sampleName\">DateRangePicker / Ranges</span> ");
                EndContext();
            }
                          );
#line 5 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
            DateTime Today = DateTime.Now;

#line default
#line hidden
            DefineSection("ControlsSection", async() => {
                BeginContext(382, 65, true);
                WriteLiteral("\r\n    <div class=\"frame\">\r\n        <div class=\"control\">\r\n       ");
                EndContext();
                BeginContext(447, 507, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("ej-date-range-picker", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "0c782d2366d7474facbadb7485314c42", async() => {
                    BeginContext(497, 12, true);
                    WriteLiteral("\r\n          ");
                    EndContext();
                    BeginContext(509, 413, false);
                    __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-ranges", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "f7d102ad3b8f4af29e5369c0b1a3ecdf", async() => {
                        BeginContext(519, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(535, 112, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "5adf91c72cbc4f06bbec5f99224fccd3", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_0.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#line 11 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddMonths(-1).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(647, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(663, 113, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f9f594e2b9fb4ba29893c55c57c5a0ab", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_1.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
#line 12 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddMonths(-2).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(776, 16, true);
                        WriteLiteral("\r\n              ");
                        EndContext();
                        BeginContext(792, 107, false);
                        __tagHelperExecutionContext = __tagHelperScopeManager.Begin("e-range", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "f741661f38c8404d8dca0d8036dae8f4", async() => {
                        }
                                                                                    );
                        __Syncfusion_JavaScript_Models_DateRanges = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRanges>();
                        __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRanges);
                        __Syncfusion_JavaScript_Models_DateRanges.Label = (string)__tagHelperAttribute_2.Value;
                        __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
#line 13 "D:\Samples_17.2.0.46\ASPNETCORE\samplebrowser_core_2_0\Views\DateRangePicker\Ranges.cshtml"
                        __Syncfusion_JavaScript_Models_DateRanges.Range = new List <Object>()
                        {
                            Today.AddDays(-7).ToString(), Today.ToString()
                        };

#line default
#line hidden
                        __tagHelperExecutionContext.AddTagHelperAttribute("range", __Syncfusion_JavaScript_Models_DateRanges.Range, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                        await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                        if (!__tagHelperExecutionContext.Output.IsContentModified)
                        {
                            await __tagHelperExecutionContext.SetOutputContentAsync();
                        }
                        Write(__tagHelperExecutionContext.Output);
                        __tagHelperExecutionContext = __tagHelperScopeManager.End();
                        EndContext();
                        BeginContext(899, 12, true);
                        WriteLiteral("\r\n          ");
                        EndContext();
                    }
                                                                                );
                    __Syncfusion_JavaScript_Models_DateRangepicker = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRangepicker>();
                    __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRangepicker);
                    await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                    if (!__tagHelperExecutionContext.Output.IsContentModified)
                    {
                        await __tagHelperExecutionContext.SetOutputContentAsync();
                    }
                    Write(__tagHelperExecutionContext.Output);
                    __tagHelperExecutionContext = __tagHelperScopeManager.End();
                    EndContext();
                    BeginContext(922, 9, true);
                    WriteLiteral("\r\n       ");
                    EndContext();
                }
                                                                            );
                __Syncfusion_JavaScript_Models_DateRangePickerProperties = CreateTagHelper <global::Syncfusion.JavaScript.Models.DateRangePickerProperties>();
                __tagHelperExecutionContext.Add(__Syncfusion_JavaScript_Models_DateRangePickerProperties);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                __Syncfusion_JavaScript_Models_DateRangePickerProperties.Width = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(954, 30, true);
                WriteLiteral("\r\n        </div>\r\n    </div>\r\n");
                EndContext();
            }
                          );
            DefineSection("StyleSection", async() => {
                BeginContext(1009, 248, true);
                WriteLiteral("\r\n    <style>\r\n        .control {\r\n            width: 100%;\r\n        }\r\n\r\n        .frame {\r\n            width: 75%;\r\n        }\r\n\r\n        .control .e-daterangewidget {\r\n            width: 225px;\r\n            margin: auto;\r\n        }\r\n    </style>\r\n");
                EndContext();
            }
                          );
        }