#pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "ul");
            __builder.AddAttribute(1, "class", "tv");
            __builder.AddMarkupContent(2, "\r\n");
#line 4 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
            foreach (var item in Dependents)
            {
                item.Depth = Depth;
                bool  hasChildren = (item.Dependents != null && item.Dependents.Any());
                var   children    = item.Dependents as IEnumerable <INodeItem <IItem> >;
                IItem contentItem = (IItem)item;
                if (hasChildren && item.State == NodeState.Expanded)
                {
#line default
#line hidden
                    __builder.AddContent(3, "            ");
                    __builder.OpenElement(4, "li");
                    __builder.AddAttribute(5, "class", "tv-node");
                    __builder.AddMarkupContent(6, "\r\n");
#line 13 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    if (OpenSelectedContent != null && (TreeSelection?.IsSelected(contentItem) ?? false))
                    {
#line default
#line hidden
                        __builder.AddContent(7,
#line 15 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                             OpenSelectedContent(contentItem)

#line default
#line hidden
                                             );
#line 15 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(8,
#line 19 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                             OpenContent(contentItem)

#line default
#line hidden
                                             );
#line 19 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(9, "                ");
                    __Blazor.BlazorTree.TreeView.TypeInference.CreateTreeView_0(__builder, 10, 11,
#line 22 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                children

#line default
#line hidden
                                                                                , 12,
#line 23 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                OpenContent

#line default
#line hidden
                                                                                , 13,
#line 24 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                OpenSelectedContent

#line default
#line hidden
                                                                                , 14,
#line 25 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                ClosedContent

#line default
#line hidden
                                                                                , 15,
#line 26 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                ClosedSelectedContent

#line default
#line hidden
                                                                                , 16,
#line 27 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                                                                (Depth + 1)

#line default
#line hidden
                                                                                );
                    __builder.AddMarkupContent(17, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(18, "\r\n");
#line 29 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(19, "            ");
                    __builder.OpenElement(20, "li");
                    __builder.AddAttribute(21, "class", "tv-node");
                    __builder.AddMarkupContent(22, "\r\n");
#line 33 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    if (ClosedSelectedContent != null && (TreeSelection?.IsSelected(contentItem) ?? false))
                    {
#line default
#line hidden
                        __builder.AddContent(23,
#line 35 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                             ClosedSelectedContent(contentItem)

#line default
#line hidden
                                             );
#line 35 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(24,
#line 39 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                                             ClosedContent(contentItem)

#line default
#line hidden
                                             );
#line 39 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(25, "            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(26, "\r\n");
#line 42 "E:\New folder\MilicaProjekat\BlazorTestProjects\BlazorTree\TreeView.razor"
                }
            }

#line default
#line hidden
            __builder.CloseElement();
        }
예제 #2
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 11 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
            if (Id == 0)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.AddMarkupContent(1, "<h1>Add new time entry</h1>\r\n");
#line 14 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(2, "    ");
                __builder.OpenElement(3, "h1");
                __builder.AddContent(4, "Edit time entry for ");
                __builder.AddContent(5,
#line 17 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                     timeEntry == null ? string.Empty : timeEntry.EntryDate.ToString("MMMM d, yyyy")

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(6, "\r\n");
#line 18 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(7, "\r\n");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Forms.EditForm>(8);
            __builder.AddAttribute(9, "Model", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Object>(
#line 20 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                       timeEntry

#line default
#line hidden
                                       ));
            __builder.AddAttribute(10, "OnValidSubmit", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <Microsoft.AspNetCore.Components.Forms.EditContext> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Forms.EditContext>(this,
#line 20 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                                                                                                                                                                                                                                                                        SaveTimeEntry

#line default
#line hidden
                                                                                                                                                                                                                                                                                                                                                        )));
            __builder.AddAttribute(11, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Forms.EditContext>)((context) => (__builder2) => {
                __builder2.AddMarkupContent(12, "\r\n    ");
                __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator>(13);
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(14, "\r\n    ");
                __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.ValidationSummary>(15);
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(16, "\r\n\r\n");
#line 24 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                if (!string.IsNullOrWhiteSpace(errorMessage))
                {
#line default
#line hidden
                    __builder2.AddContent(17, "    ");
                    __builder2.OpenElement(18, "div");
                    __builder2.AddAttribute(19, "class", "alert alert-danger");
                    __builder2.AddContent(20,
#line 26 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                          errorMessage

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(21, "\r\n");
#line 27 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                }

#line default
#line hidden
                __builder2.AddMarkupContent(22, "\r\n    ");
                __builder2.OpenElement(23, "div");
                __builder2.AddAttribute(24, "class", "form-group");
                __builder2.AddMarkupContent(25, "\r\n        ");
                __builder2.AddMarkupContent(26, "<label for=\"projectId\">Project</label>\r\n        ");
                __Blazor.TimeTracker.Client.Pages.TimeEntryEdit.TypeInference.CreateInputSelect_0(__builder2, 27, 28, "projectId", 29, "form-control", 30,
#line 31 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                  projectId

#line default
#line hidden
                                                                                                  , 31, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => projectId = __value, projectId)), 32, () => projectId, 33, (__builder3) => {
                    __builder3.AddMarkupContent(34, "\r\n            ");
                    __builder3.AddMarkupContent(35, "<option value>Select project...</option>\r\n");
#line 33 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                    foreach (var project in projects)
                    {
#line default
#line hidden
                        __builder3.AddContent(36, "                ");
                        __builder3.OpenElement(37, "option");
                        __builder3.AddAttribute(38, "value",
#line 35 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                project.Value

#line default
#line hidden
                                                );
                        __builder3.AddContent(39,
#line 35 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                              project.Name

#line default
#line hidden
                                              );
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(40, "\r\n");
#line 36 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                    }

#line default
#line hidden
                    __builder3.AddContent(41, "        ");
                }
                                                                                                  );
                __builder2.AddMarkupContent(42, "\r\n    ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(43, "\r\n\r\n    ");
                __builder2.OpenElement(44, "div");
                __builder2.AddAttribute(45, "class", "form-group");
                __builder2.AddMarkupContent(46, "\r\n        ");
                __builder2.AddMarkupContent(47, "<label for=\"year\">Date</label>\r\n        ");
                __builder2.OpenElement(48, "div");
                __builder2.AddAttribute(49, "class", "row");
                __builder2.AddMarkupContent(50, "\r\n            ");
                __builder2.OpenElement(51, "div");
                __builder2.AddAttribute(52, "class", "col");
                __builder2.AddMarkupContent(53, "\r\n                ");
                __Blazor.TimeTracker.Client.Pages.TimeEntryEdit.TypeInference.CreateInputSelect_1(__builder2, 54, 55, "year", 56, "form-control", 57,
#line 44 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                  year

#line default
#line hidden
                                                                                                  , 58, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => year = __value, year)), 59, () => year, 60, (__builder3) => {
                    __builder3.AddMarkupContent(61, "\r\n                    ");
                    __builder3.AddMarkupContent(62, "<option value>Select year...</option>\r\n                    ");
                    __builder3.AddMarkupContent(63, "<option value=\"2019\">2019</option>\r\n                    ");
                    __builder3.AddMarkupContent(64, "<option value=\"2020\">2020</option>\r\n                    ");
                    __builder3.AddMarkupContent(65, "<option value=\"2021\">2021</option>\r\n                    ");
                    __builder3.AddMarkupContent(66, "<option value=\"2022\">2022</option>\r\n                    ");
                    __builder3.AddMarkupContent(67, "<option value=\"2023\">2023</option>\r\n                    ");
                    __builder3.AddMarkupContent(68, "<option value=\"2024\">2024</option>\r\n                    ");
                    __builder3.AddMarkupContent(69, "<option value=\"2025\">2025</option>\r\n                    ");
                    __builder3.AddMarkupContent(70, "<option value=\"2026\">2026</option>\r\n                    ");
                    __builder3.AddMarkupContent(71, "<option value=\"2027\">2027</option>\r\n                    ");
                    __builder3.AddMarkupContent(72, "<option value=\"2028\">2028</option>\r\n                ");
                }
                                                                                                  );
                __builder2.AddMarkupContent(73, "\r\n            ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(74, "\r\n            ");
                __builder2.OpenElement(75, "div");
                __builder2.AddAttribute(76, "class", "col");
                __builder2.AddMarkupContent(77, "\r\n                ");
                __Blazor.TimeTracker.Client.Pages.TimeEntryEdit.TypeInference.CreateInputSelect_2(__builder2, 78, 79, "month", 80, "form-control", 81,
#line 59 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                  month

#line default
#line hidden
                                                                                                  , 82, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => month = __value, month)), 83, () => month, 84, (__builder3) => {
                    __builder3.AddMarkupContent(85, "\r\n                    ");
                    __builder3.AddMarkupContent(86, "<option value>Select month...</option>\r\n                    ");
                    __builder3.AddMarkupContent(87, "<option value=\"1\">January</option>\r\n                    ");
                    __builder3.AddMarkupContent(88, "<option value=\"2\">February</option>\r\n                    ");
                    __builder3.AddMarkupContent(89, "<option value=\"3\">March</option>\r\n                    ");
                    __builder3.AddMarkupContent(90, "<option value=\"4\">April</option>\r\n                    ");
                    __builder3.AddMarkupContent(91, "<option value=\"5\">May</option>\r\n                    ");
                    __builder3.AddMarkupContent(92, "<option value=\"6\">June</option>\r\n                    ");
                    __builder3.AddMarkupContent(93, "<option value=\"7\">July</option>\r\n                    ");
                    __builder3.AddMarkupContent(94, "<option value=\"8\">August</option>\r\n                    ");
                    __builder3.AddMarkupContent(95, "<option value=\"9\">September</option>\r\n                    ");
                    __builder3.AddMarkupContent(96, "<option value=\"10\">October</option>\r\n                    ");
                    __builder3.AddMarkupContent(97, "<option value=\"11\">November</option>\r\n                    ");
                    __builder3.AddMarkupContent(98, "<option value=\"12\">December</option>\r\n                ");
                }
                                                                                                  );
                __builder2.AddMarkupContent(99, "\r\n            ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(100, "\r\n            ");
                __builder2.OpenElement(101, "div");
                __builder2.AddAttribute(102, "class", "col");
                __builder2.AddMarkupContent(103, "\r\n                ");
                __Blazor.TimeTracker.Client.Pages.TimeEntryEdit.TypeInference.CreateInputSelect_3(__builder2, 104, 105, "day", 106, "form-control", 107,
#line 76 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                  day

#line default
#line hidden
                                                                                                  , 108, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => day = __value, day)), 109, () => day, 110, (__builder3) => {
                    __builder3.AddMarkupContent(111, "\r\n                    ");
                    __builder3.AddMarkupContent(112, "<option value>Select day...</option>\r\n                    ");
                    __builder3.AddMarkupContent(113, "<option value=\"1\">1st</option>\r\n                    ");
                    __builder3.AddMarkupContent(114, "<option value=\"2\">2nd</option>\r\n                    ");
                    __builder3.AddMarkupContent(115, "<option value=\"3\">3rd</option>\r\n                    ");
                    __builder3.AddMarkupContent(116, "<option value=\"4\">4th</option>\r\n                    ");
                    __builder3.AddMarkupContent(117, "<option value=\"5\">5th</option>\r\n                    ");
                    __builder3.AddMarkupContent(118, "<option value=\"6\">6th</option>\r\n                    ");
                    __builder3.AddMarkupContent(119, "<option value=\"7\">7th</option>\r\n                    ");
                    __builder3.AddMarkupContent(120, "<option value=\"8\">8th</option>\r\n                    ");
                    __builder3.AddMarkupContent(121, "<option value=\"9\">9th</option>\r\n                    ");
                    __builder3.AddMarkupContent(122, "<option value=\"10\">10th</option>\r\n                    ");
                    __builder3.AddMarkupContent(123, "<option value=\"11\">11th</option>\r\n                    ");
                    __builder3.AddMarkupContent(124, "<option value=\"12\">12th</option>\r\n                    ");
                    __builder3.AddMarkupContent(125, "<option value=\"13\">13th</option>\r\n                    ");
                    __builder3.AddMarkupContent(126, "<option value=\"14\">14th</option>\r\n                    ");
                    __builder3.AddMarkupContent(127, "<option value=\"15\">15th</option>\r\n                    ");
                    __builder3.AddMarkupContent(128, "<option value=\"16\">16th</option>\r\n                    ");
                    __builder3.AddMarkupContent(129, "<option value=\"17\">17th</option>\r\n                    ");
                    __builder3.AddMarkupContent(130, "<option value=\"18\">18th</option>\r\n                    ");
                    __builder3.AddMarkupContent(131, "<option value=\"19\">19th</option>\r\n                    ");
                    __builder3.AddMarkupContent(132, "<option value=\"20\">20th</option>\r\n                    ");
                    __builder3.AddMarkupContent(133, "<option value=\"21\">21st</option>\r\n                    ");
                    __builder3.AddMarkupContent(134, "<option value=\"22\">22nd</option>\r\n                    ");
                    __builder3.AddMarkupContent(135, "<option value=\"23\">23rd</option>\r\n                    ");
                    __builder3.AddMarkupContent(136, "<option value=\"24\">24th</option>\r\n                    ");
                    __builder3.AddMarkupContent(137, "<option value=\"25\">25th</option>\r\n                    ");
                    __builder3.AddMarkupContent(138, "<option value=\"26\">26th</option>\r\n                    ");
                    __builder3.AddMarkupContent(139, "<option value=\"27\">27th</option>\r\n                    ");
                    __builder3.AddMarkupContent(140, "<option value=\"28\">28th</option>\r\n                    ");
                    __builder3.AddMarkupContent(141, "<option value=\"29\">29th</option>\r\n                    ");
                    __builder3.AddMarkupContent(142, "<option value=\"30\">30th</option>\r\n                    ");
                    __builder3.AddMarkupContent(143, "<option value=\"31\">31th</option>\r\n                ");
                }
                                                                                                  );
                __builder2.AddMarkupContent(144, "\r\n            ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(145, "\r\n        ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(146, "\r\n    ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(147, "\r\n\r\n    ");
                __builder2.OpenElement(148, "div");
                __builder2.AddAttribute(149, "class", "form-group");
                __builder2.AddMarkupContent(150, "\r\n        ");
                __builder2.AddMarkupContent(151, "<label for=\"hours\">Hours</label>\r\n        ");
                __Blazor.TimeTracker.Client.Pages.TimeEntryEdit.TypeInference.CreateInputNumber_4(__builder2, 152, 153, "name", 154, "form-control", 155,
#line 116 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                                                                                  timeEntry.Hours

#line default
#line hidden
                                                                                                  , 156, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => timeEntry.Hours = __value, timeEntry.Hours)), 157, () => timeEntry.Hours);
                __builder2.AddMarkupContent(158, "\r\n    ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(159, "\r\n\r\n    ");
                __builder2.OpenElement(160, "div");
                __builder2.AddAttribute(161, "class", "form-group");
                __builder2.AddMarkupContent(162, "\r\n        ");
                __builder2.AddMarkupContent(163, "<label for=\"description\">Description</label>\r\n        ");
                __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.InputTextArea>(164);
                __builder2.AddAttribute(165, "id", "description");
                __builder2.AddAttribute(166, "class", "form-control");
                __builder2.AddAttribute(167, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 121 "C:\Users\dejan.tamamovic\Desktop\ASP.NET Core\workshop\TimeTracker\TimeTracker.Client\Pages\TimeEntryEdit.razor"
                                            timeEntry.Description

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(168, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <System.String> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <System.String>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => timeEntry.Description = __value, timeEntry.Description))));
                __builder2.AddAttribute(169, "ValueExpression", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Linq.Expressions.Expression <System.Func <System.String> > >(() => timeEntry.Description));
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(170, "\r\n    ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(171, "\r\n\r\n    ");
                __builder2.AddMarkupContent(172, "<button type=\"submit\" class=\"btn btn-primary\">Save</button>\r\n    ");
                __builder2.AddMarkupContent(173, "<a href=\"/\" class=\"btn btn-link\">Cancel</a>\r\n");
            }
                                                                                                                                                            ));
            __builder.CloseComponent();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 1 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
            if (IsVisible)
            {
#line default
#line hidden
#line 3 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                if (Result)
                {
#line default
#line hidden
                    __builder.AddContent(0, "        ");
                    __builder.OpenElement(1, "div");
                    __builder.AddAttribute(2, "id", "divValidationMessage");
                    __builder.AddAttribute(3, "class", "col-10 alert alert-danger row");
                    __builder.AddMarkupContent(4, "\r\n            ");
                    __builder.OpenElement(5, "div");
                    __builder.AddAttribute(6, "class", "col-11");
                    __builder.AddAttribute(7, "style", "text-align:left");
                    __builder.AddMarkupContent(8, "\r\n                ");
                    __builder.OpenElement(9, "span");
                    __builder.AddContent(10,
#line 7 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                                         ChildContent

#line default
#line hidden
                                         );
                    __builder.AddContent(11, " has been saved successfully");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(12, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(13, "\r\n            ");
                    __builder.OpenElement(14, "div");
                    __builder.AddAttribute(15, "class", "col-1");
                    __builder.AddAttribute(16, "style", "text-align:right");
                    __builder.AddMarkupContent(17, "\r\n                ");
                    __builder.OpenElement(18, "a");
                    __builder.AddAttribute(19, "style", "text-underline-position:below; cursor:pointer");
                    __builder.AddAttribute(20, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 10 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                                                                                                                                                                            (() => CloseValidation())

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddContent(21, "x");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(22, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(23, "\r\n        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(24, "\r\n");
#line 13 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(25, "        ");
                    __builder.OpenElement(26, "div");
                    __builder.AddAttribute(27, "id", "divValidationMessage");
                    __builder.AddAttribute(28, "class", "col-10 alert alert-danger row");
                    __builder.AddMarkupContent(29, "\r\n            ");
                    __builder.AddMarkupContent(30, "<div class=\"col-11\" style=\"text-align:left\">\r\n                <span style=\"font-style:italic; font-weight:bold\">Oops, something went wrong. Please contact system admin.</span>\r\n            </div>\r\n            ");
                    __builder.OpenElement(31, "div");
                    __builder.AddAttribute(32, "class", "col-1");
                    __builder.AddAttribute(33, "style", "text-align:right");
                    __builder.AddMarkupContent(34, "\r\n                ");
                    __builder.OpenElement(35, "a");
                    __builder.AddAttribute(36, "style", "text-underline-position:below; cursor:pointer");
                    __builder.AddAttribute(37, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 22 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                                                                                                                                                                            (() => CloseValidation())

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddContent(38, "x");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(39, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(40, "\r\n        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(41, "\r\n");
#line 25 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
                }

#line default
#line hidden
#line 25 "C:\Data\CuriousDrive\PublicProjects\CuriousDriveRazorLibrary\CuriousDriveRazorLibrary\ServerValidations.razor"
            }

#line default
#line hidden
        }
예제 #4
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "main");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ul");
            __builder.AddAttribute(4, "class", "pizza-cards");
            __builder.AddMarkupContent(5, "\r\n");
#line 6 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
            if (specials != null)
            {
#line default
#line hidden
#line 8 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                foreach (var special in specials)
                {
#line default
#line hidden
                    __builder.AddContent(6, "                ");
                    __builder.OpenElement(7, "li");
                    __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 10 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                           () => ShowConfigurePizzaDialog(special)

#line default
#line hidden
                                                                                                                                                                           ));
                    __builder.AddAttribute(9, "style", "background-image:" + " url(\'" + (
#line 10 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                               special.ImageUrl

#line default
#line hidden
                                               ) + "\')");
                    __builder.AddMarkupContent(10, "\r\n                    ");
                    __builder.OpenElement(11, "div");
                    __builder.AddAttribute(12, "class", "pizza-info");
                    __builder.AddMarkupContent(13, "\r\n                        ");
                    __builder.OpenElement(14, "span");
                    __builder.AddAttribute(15, "class", "title");
                    __builder.AddContent(16,
#line 12 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                         special.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(17, "\r\n                        ");
                    __builder.AddContent(18,
#line 13 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                         special.Description

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(19, "\r\n                        ");
                    __builder.OpenElement(20, "span");
                    __builder.AddAttribute(21, "class", "price");
                    __builder.AddContent(22,
#line 14 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                         special.GetFormattedBasePrice()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(23, "\r\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(24, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(25, "\r\n");
#line 17 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                }

#line default
#line hidden
#line 17 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
            }

#line default
#line hidden
            __builder.AddContent(26, "    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(27, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(28, "\r\n\r\n");
#line 22 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
            if (showingConfigureDialog)
            {
#line default
#line hidden
                __builder.AddContent(29, "    ");
                __builder.OpenComponent <BlazingPizza.Client.Shared.ConfigurePizzaDialog>(30);
                __builder.AddAttribute(31, "Pizza", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazingPizza.Pizza>(
#line 24 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                           configuringPizza

#line default
#line hidden
                                           ));
                __builder.AddAttribute(32, "OnCancel", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 24 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
                                                                                                                                                                                                                                              CancelConfigurePizzaDialog

#line default
#line hidden
                                                                                                                                                                                                                                              )));
                __builder.CloseComponent();
                __builder.AddMarkupContent(33, "\r\n");
#line 25 "C:\Users\andre678\source\repos\Codemash2020\blazor-workshop\save-points\00-Starting-point\BlazingPizza.Client\Pages\Index.razor"
            }

#line default
#line hidden
        }
예제 #5
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "card");
            __builder.AddAttribute(2, "id", "productInfo");
            __builder.AddMarkupContent(3, "\r\n\r\n    ");
            __builder.OpenElement(4, "img");
            __builder.AddAttribute(5, "src",
#line 5 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
                                   prod.image_src

#line default
#line hidden
                                   );
            __builder.AddAttribute(6, "alt", true);
            __builder.AddAttribute(7, "class", "card-img-top");
            __builder.AddAttribute(8, "style", "max-height:400px;");
            __builder.CloseElement();
            __builder.AddMarkupContent(9, "\r\n    ");
            __builder.OpenElement(10, "div");
            __builder.AddAttribute(11, "class", "card-body");
            __builder.AddMarkupContent(12, "\r\n        ");
            __builder.OpenElement(13, "h1");
            __builder.AddAttribute(14, "class", "card-title text-primary");
            __builder.AddContent(15,
#line 7 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
                                 prod.Title

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n\r\n        ");
            __builder.OpenElement(17, "h2");
            __builder.AddAttribute(18, "class", "card-price");
            __builder.AddMarkupContent(19, "€");
            __builder.AddContent(20,
#line 9 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
                                 prod.Price

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(21, "\r\n\r\n        ");
            __builder.OpenElement(22, "p");
            __builder.AddAttribute(23, "class", "card-text");
            __builder.AddMarkupContent(24, "\r\n            ");
            __builder.AddContent(25,
#line 12 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
                                 prod.Desc

#line default
#line hidden
                                 );
            __builder.AddMarkupContent(26, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(27, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(28, "\r\n\r\n    ");
            __builder.OpenElement(29, "div");
            __builder.AddAttribute(30, "class", "card-body");
            __builder.AddMarkupContent(31, "\r\n\r\n        ");
            __builder.OpenElement(32, "div");
            __builder.AddAttribute(33, "class", "float-left");
            __builder.AddMarkupContent(34, "\r\n");
#line 19 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"

            var nrOfStars = prod.getAverageStars();
            var maxStars  = 5;

            for (var i = 0; i < nrOfStars; i++)
            {
#line default
#line hidden
                __builder.AddMarkupContent(35, "                    <i class=\"fas fa-star fa-sm\" style=\"color:#ffd800\"></i>\r\n");
#line 26 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
            }

            if (maxStars > nrOfStars)
            {
                var starsLeft = maxStars - nrOfStars;
                for (var j = 0; j < starsLeft; j++)
                {
#line default
#line hidden
                    __builder.AddMarkupContent(36, "                        <i class=\"far fa-star fa-sm\"></i>\r\n");
#line 34 "C:\Users\Lterwingen\Desktop\switch1920\researchProject\apps\Blazor\ResearchProject-Blazor-frontend\Shared\ProductInfo.razor"
                }
            }


#line default
#line hidden
            __builder.AddContent(37, "        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(38, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(39, "\r\n");
            __builder.CloseElement();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "nav");
            __builder.AddAttribute(1, "aria-label", "breadcrumb");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ol");
            __builder.AddAttribute(4, "class", "breadcrumb");
            __builder.AddMarkupContent(5, "\r\n        ");
            __builder.OpenElement(6, "li");
            __builder.AddAttribute(7, "class", "breadcrumb-item");
            __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 13 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                   () => uri.NavigateTo("/BackOffice/Configuraciones")

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddContent(9, "Configuraciones");
            __builder.CloseElement();
            __builder.AddMarkupContent(10, "\r\n        ");
            __builder.OpenElement(11, "li");
            __builder.AddAttribute(12, "class", "breadcrumb-item active");
            __builder.AddAttribute(13, "aria-current", "page");
            __builder.AddAttribute(14, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 14 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                    () => uri.NavigateTo("/BackOffice/Configuraciones/ListaListaPrecios")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(15, "Listado Listas Precios");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(18, "\r\n");
            __builder.OpenElement(19, "div");
            __builder.AddMarkupContent(20, "\r\n    ");
            __builder.AddMarkupContent(21, "<div class=\"border-bottom border-secondary my-2\">\r\n        <h2 class>Listado Listas Precios</h2>\r\n    </div>\r\n\r\n    ");
            __builder.OpenElement(22, "div");
            __builder.AddAttribute(23, "class", "col-md-12 row mx-0 px-0 justify-content-end");
            __builder.AddMarkupContent(24, "\r\n        ");
            __builder.OpenElement(25, "div");
            __builder.AddAttribute(26, "class", "btn btn-olive btn-sm");
            __builder.AddAttribute(27, "style", "cursor:pointer");
            __builder.AddAttribute(28, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 23 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                    () => uri.NavigateTo($"/BackOffice/Configuraciones/ListaPrecios/0")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(29, "Nueva Lista");
            __builder.CloseElement();
            __builder.AddMarkupContent(30, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(31, "\r\n\r\n    ");
            __Blazor.SurcosBlazor.Client.Pages.BackOffice.Configuracion.ListaDePreciosC.ListadoListaPrecios.TypeInference.CreateListadoGenerico_0(__builder, 32, 33,
#line 26 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                  listasPrecios

#line default
#line hidden
                                                                                                                                                  , 34, (__builder2) => {
                __builder2.AddMarkupContent(35, "\r\n            ");
                __builder2.OpenElement(36, "table");
                __builder2.AddAttribute(37, "class", "table table-sm");
                __builder2.AddMarkupContent(38, "\r\n                ");
                __builder2.AddMarkupContent(39, @"<thead>
                    <tr>
                        <th>Fecha</th>
                        <th>Tipo</th>
                        <th>Mínimo de compra</th>
                        <th>Clasificación</th>
                        <th>Acciones</th>

                    </tr>
                </thead>
                ");
                __builder2.OpenElement(40, "tbody");
                __builder2.AddMarkupContent(41, "\r\n");
#line 41 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                foreach (ListaPrecios lista in listasPrecios)
                {
#line default
#line hidden
                    __builder2.AddContent(42, "                        ");
                    __builder2.OpenElement(43, "tr");
                    __builder2.AddMarkupContent(44, "\r\n                            ");
                    __builder2.OpenElement(45, "td");
                    __builder2.AddContent(46,
#line 44 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                          lista.fecha

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(47, "\r\n                            ");
                    __builder2.OpenElement(48, "td");
                    __builder2.AddContent(49,
#line 45 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                          lista.TipoListaPrecio?.nombre

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(50, "\r\n                            ");
                    __builder2.OpenElement(51, "td");
                    __builder2.AddContent(52,
#line 46 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                          lista.TipoListaPrecio?.minimoDeCompra

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(53, "\r\n                            ");
                    __builder2.OpenElement(54, "td");
                    __builder2.AddContent(55,
#line 47 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                          lista.clasificacion

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(56, "\r\n                            ");
                    __builder2.OpenElement(57, "td");
                    __builder2.AddMarkupContent(58, "\r\n                                 ");
                    __builder2.OpenElement(59, "i");
                    __builder2.AddAttribute(60, "class", "far fa-eye");
                    __builder2.AddAttribute(61, "style", "cursor:pointer");
                    __builder2.AddAttribute(62, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 49 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                             () => uri.NavigateTo($"/BackOffice/Configuraciones/DetalleListaPrecios/{lista.Id}")

#line default
#line hidden
                                                                                                                                                                             ));
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(63, "\r\n                                 ");
                    __builder2.OpenElement(64, "i");
                    __builder2.AddAttribute(65, "class", "fas fa-edit text-warning");
                    __builder2.AddAttribute(66, "style", "cursor:pointer");
                    __builder2.AddAttribute(67, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 50 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                             () => uri.NavigateTo($"/BackOffice/Configuraciones/ListaPrecios/{lista.Id}")

#line default
#line hidden
                                                                                                                                                                             ));
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(68, "\r\n                                                             \r\n                                ");
                    __builder2.OpenElement(69, "button");
                    __builder2.AddAttribute(70, "class", "btn btn-sm p-1");
                    __builder2.AddAttribute(71, "title", "Eliminar");
                    __builder2.AddAttribute(72, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 52 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                             (async() => { listaPrecios = lista; await ModalToggle("eliminarConfirm"); this.StateHasChanged(); })

#line default
#line hidden
                                                                                                                                                                             ));
                    __builder2.AddMarkupContent(73, "\r\n                                    <i class=\"far fa-trash-alt text-danger\"></i>\r\n                                ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(74, "\r\n                            ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(75, "\r\n                        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(76, "\r\n");
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                }

#line default
#line hidden
                __builder2.AddContent(77, "                ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(78, "\r\n            ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(79, "\r\n\r\n        ");
            }
                                                                                                                                                  );
            __builder.AddMarkupContent(80, "\r\n    \r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(81, "\r\n");
            __builder.OpenComponent <SurcosBlazor.Client.Shared.ModalConfirm>(82);
            __builder.AddAttribute(83, "confirmFunc", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 65 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ListaDePreciosC\ListadoListaPrecios.razor"
                                                                                                                                                                                                                                             async() => await EliminarListaDePrecios(listaPrecios)

#line default
#line hidden
                                                                                                                                                                                                                                             )));
            __builder.AddAttribute(84, "modalId", "eliminarConfirm");
            __builder.AddAttribute(85, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(86, "\r\n    ");
                __builder2.AddMarkupContent(87, "<p>¿Esta seguro que desea eliminar esta lista precios?</p>\r\n");
            }
                                                                                                        ));
            __builder.CloseComponent();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "nav");
            __builder.AddAttribute(1, "aria-label", "breadcrumb");
            __builder.AddMarkupContent(2, "\r\n        ");
            __builder.OpenElement(3, "ol");
            __builder.AddAttribute(4, "class", "breadcrumb");
            __builder.AddMarkupContent(5, "\r\n            ");
            __builder.OpenElement(6, "li");
            __builder.AddAttribute(7, "class", "breadcrumb-item");
            __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 11 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                                                                                                                                                   () => uri.NavigateTo("/BackOffice/Inventario")

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddContent(9, "Invetario");
            __builder.CloseElement();
            __builder.AddMarkupContent(10, "\r\n            ");
            __builder.OpenElement(11, "li");
            __builder.AddAttribute(12, "class", "breadcrumb-item active");
            __builder.AddAttribute(13, "aria-current", "page");
            __builder.AddAttribute(14, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 12 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                                                                                                                                                    () => uri.NavigateTo("/BackOffice/Inventario/Listado")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(15, "Listado Inventarios");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(18, "\r\n");
            __builder.AddMarkupContent(19, "<h3>Listado Inventario</h3>\r\n\r\n");
            __builder.OpenElement(20, "div");
            __builder.AddAttribute(21, "class", "mt-2 d-flex row col-md-12 mx-0 p-3 my-3 align-items-center justify-content-between");
            __builder.AddAttribute(22, "style", "box-shadow:1px 1px 3px #323232");
            __builder.AddMarkupContent(23, "\r\n    ");
            __builder.OpenElement(24, "div");
            __builder.AddAttribute(25, "class", "col-md-3");
            __builder.AddMarkupContent(26, "\r\n        ");
            __builder.OpenComponent <SurcosBlazor.Client.Shared.SelectGenerico <Deposito> >(27);
            __builder.AddAttribute(28, "TList", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Collections.Generic.List <Deposito> >(
#line 19 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                       depositos

#line default
#line hidden
                                       ));
            __builder.AddAttribute(29, "Label", "Deposito");
            __builder.AddAttribute(30, "TItemActual", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Deposito>(
#line 19 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                       deposito

#line default
#line hidden
                                       ));
            __builder.AddAttribute(31, "SelectItem", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <Deposito> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Deposito>(this,
#line 20 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                                                                                                                                                                                                                                                   async(Deposito deposito) => { this.deposito = deposito; await ListarInventarios(1); }

#line default
#line hidden
                                                                                                                                                                                                                                                                   )));
            __builder.AddAttribute(32, "TTemplate", (Microsoft.AspNetCore.Components.RenderFragment <Deposito>)((Deposito) => (__builder2) => {
                __builder2.AddContent(33,
#line 21 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                      Deposito.nombre

#line default
#line hidden
                                      );
            }
                                                                                                                ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(34, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(35, "\r\n    ");
            __builder.OpenElement(36, "div");
            __builder.AddAttribute(37, "class", "col-md-3");
            __builder.AddMarkupContent(38, "\r\n        ");
            __builder.AddMarkupContent(39, "<label class=\"col-md-12 mx-0 px-0\"><strong>Nombre Producto</strong></label>\r\n        ");
            __builder.OpenElement(40, "input");
            __builder.AddAttribute(41, "class", "form-control");
            __builder.AddAttribute(42, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 26 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                       filtro

#line default
#line hidden
                                       ));
            __builder.AddAttribute(43, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => filtro = __value, filtro));
            __builder.SetUpdatesAttributeName("value");
            __builder.CloseElement();
            __builder.AddMarkupContent(44, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(45, "\r\n    ");
            __builder.OpenElement(46, "div");
            __builder.AddAttribute(47, "class", "col-md-2 mx-0 px-0");
            __builder.AddMarkupContent(48, "\r\n        ");
            __builder.OpenElement(49, "div");
            __builder.AddAttribute(50, "class", "btn btn-sm btn-info");
            __builder.AddAttribute(51, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 29 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                                                                                                                                                    async() => await ListarInventarios(1)

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddMarkupContent(52, "\r\n            ");
            __builder.AddMarkupContent(53, "<span><i class=\"fas fa-search mr-1\"></i>BUSCAR</span>\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(54, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(55, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(56, "\r\n\r\n");
#line 35 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
            if (deposito != null)
            {
#line default
#line hidden
                __builder.AddContent(57, "    ");
                __builder.OpenElement(58, "table");
                __builder.AddAttribute(59, "class", "table table-sm");
                __builder.AddMarkupContent(60, "\r\n        ");
                __builder.AddMarkupContent(61, "<thead>\r\n            <tr>\r\n                <td>Producto</td>\r\n                <td>En existencia</td>\r\n                <td>Ver Movimientos</td>\r\n            </tr>\r\n\r\n\r\n        </thead>\r\n        ");
                __builder.OpenElement(62, "tbody");
                __builder.AddMarkupContent(63, "\r\n");
#line 48 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                foreach (Inventario inventario in inventarios)
                {
#line default
#line hidden
                    __builder.AddContent(64, "                ");
                    __builder.OpenElement(65, "tr");
                    __builder.AddMarkupContent(66, "\r\n                    ");
                    __builder.OpenElement(67, "td");
                    __builder.AddMarkupContent(68, "\r\n\r\n                        ");
                    __builder.AddContent(69,
#line 53 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                         inventario.ProductoPresentacion?.Producto?.nombre

#line default
#line hidden
                                         );
                    __builder.AddContent(70, ", ");
                    __builder.AddContent(71,
#line 53 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                         inventario.ProductoPresentacion?.PresentacionProducto?.nombre

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(72, "\r\n");
#line 54 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                    if (inventario.cantidadUnidadesEnExistencia < inventario.ProductoPresentacion.cantidadStockMinima)
                    {
#line default
#line hidden
                        __builder.AddContent(73, "                            ");
                        __builder.OpenElement(74, "div");
                        __builder.AddAttribute(75, "class", "badge badge-danger");
                        __builder.AddContent(76, "[ALERTA] Stock menor a ");
                        __builder.AddContent(77,
#line 56 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                             inventario.ProductoPresentacion.cantidadStockMinima

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(78, "\r\n");
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(79, "                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(80, "\r\n                    ");
                    __builder.OpenElement(81, "td");
                    __builder.AddContent(82,
#line 59 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                         inventario.cantidadUnidadesEnExistencia

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(83, "\r\n                    ");
                    __builder.OpenElement(84, "td");
                    __builder.AddMarkupContent(85, "\r\n                        ");
                    __builder.OpenElement(86, "a");
                    __builder.AddAttribute(87, "class", "btn");
                    __builder.AddAttribute(88, "href",
#line 61 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                           $"/BackOffice/Inventario/MovimientoInventario/{inventario.Id}"

#line default
#line hidden
                                           );
                    __builder.AddMarkupContent(89, " <i class=\"far fa-eye\"></i>");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(90, "\r\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(91, "\r\n\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(92, "\r\n");
#line 65 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                }

#line default
#line hidden
                __builder.AddContent(93, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(94, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(95, "\r\n    ");
                __builder.OpenComponent <SurcosBlazor.Client.Shared.PaginacionComp>(96);
                __builder.AddAttribute(97, "PaginaActual", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Int32>(
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                           paginaActual

#line default
#line hidden
                                           ));
                __builder.AddAttribute(98, "PaginaSeleccionada", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <System.Int32> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <System.Int32>(this,
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                                                                                                                                                                                                                                                                       paginaSeleccionada

#line default
#line hidden
                                                                                                                                                                                                                                                                                       )));
                __builder.AddAttribute(99, "PaginasTotales", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Int32>(
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
                                           paginasTotales

#line default
#line hidden
                                           ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(100, "\r\n");
#line 69 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Inventario\ListadoInventario.razor"
            }

#line default
#line hidden
        }
예제 #8
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "main");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ul");
            __builder.AddAttribute(4, "class", "pizza-cards");
            __builder.AddMarkupContent(5, "\r\n");
#line 8 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            if (specials != null)
            {
#line default
#line hidden
#line 10 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                foreach (var special in specials)
                {
#line default
#line hidden
                    __builder.AddContent(6, "                ");
                    __builder.OpenElement(7, "li");
                    __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 12 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                                                                                                                                                           () => OrderState.ShowConfigurePizzaDialog(special)

#line default
#line hidden
                                                                                                                                                                           ));
                    __builder.AddAttribute(9, "style", "background-image:" + " url(\'" + (
#line 12 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                               special.ImageUrl

#line default
#line hidden
                                               ) + "\')");
                    __builder.AddMarkupContent(10, "\r\n                    ");
                    __builder.OpenElement(11, "div");
                    __builder.AddAttribute(12, "class", "pizza-info");
                    __builder.AddMarkupContent(13, "\r\n                        ");
                    __builder.OpenElement(14, "span");
                    __builder.AddAttribute(15, "class", "title");
                    __builder.AddContent(16,
#line 14 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                         special.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(17, "\r\n                        ");
                    __builder.AddContent(18,
#line 15 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                         special.Description

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(19, "\r\n                        ");
                    __builder.OpenElement(20, "span");
                    __builder.AddAttribute(21, "class", "price");
                    __builder.AddContent(22,
#line 16 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                         special.GetFormattedBasePrice()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(23, "\r\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(24, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(25, "\r\n");
#line 19 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                }

#line default
#line hidden
#line 19 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            }

#line default
#line hidden
            __builder.AddContent(26, "    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(27, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(28, "\r\n\r\n");
            __builder.OpenElement(29, "div");
            __builder.AddAttribute(30, "class", "sidebar");
            __builder.AddMarkupContent(31, "\r\n");
#line 25 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            if (OrderState.Order.Pizzas.Any())
            {
#line default
#line hidden
                __builder.AddContent(32, "        ");
                __builder.OpenElement(33, "div");
                __builder.AddAttribute(34, "class", "order-contents");
                __builder.AddMarkupContent(35, "\r\n            ");
                __builder.AddMarkupContent(36, "<h2>Your order</h2>\r\n\r\n");
#line 30 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                foreach (var configuredPizza in OrderState.Order.Pizzas)
                {
#line default
#line hidden
                    __builder.AddContent(37, "                ");
                    __builder.OpenComponent <BlazingPizza.Client.Shared.ConfiguredPizzaItem>(38);
                    __builder.AddAttribute(39, "Pizza", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazingPizza.Pizza>(
#line 32 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                               configuredPizza

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(40, "OnRemoved", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 32 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                                                                                                                                                                                                                                   () => OrderState.RemoveConfiguredPizza(configuredPizza)

#line default
#line hidden
                                                                                                                                                                                                                                                   )));
                    __builder.CloseComponent();
                    __builder.AddMarkupContent(41, "\r\n");
#line 33 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                }

#line default
#line hidden
                __builder.AddContent(42, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(43, "\r\n");
#line 35 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(44, "        ");
                __builder.AddMarkupContent(45, "<div class=\"empty-cart\">Choose a pizza<br>to get started</div>\r\n");
#line 39 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(46, "\r\n    ");
            __builder.OpenElement(47, "div");
            __builder.AddAttribute(48, "class", "order-total" + " " + (
#line 41 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                       OrderState.Order.Pizzas.Any() ? "" : "hidden"

#line default
#line hidden
                                       ));
            __builder.AddMarkupContent(49, "\r\n        Total:\r\n        ");
            __builder.OpenElement(50, "span");
            __builder.AddAttribute(51, "class", "total-price");
            __builder.AddContent(52,
#line 43 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                 OrderState.Order.GetFormattedTotalPrice()

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(53, "\r\n        ");
            __builder.OpenElement(54, "a");
            __builder.AddAttribute(55, "href", "checkout");
            __builder.AddAttribute(56, "class", "btn btn-warning");
            __builder.AddAttribute(57, "disabled",
#line 44 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                   OrderState.Order.Pizzas.Count == 0

#line default
#line hidden
                                   );
            __builder.AddMarkupContent(58, "\r\n            Order >\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(59, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(60, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(61, "\r\n\r\n");
#line 50 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            if (OrderState.ShowingConfigureDialog)
            {
#line default
#line hidden
                __builder.AddContent(62, "    ");
                __builder.OpenComponent <BlazingPizza.Client.Shared.ConfigurePizzaDialog>(63);
                __builder.AddAttribute(64, "Pizza", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazingPizza.Pizza>(
#line 52 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                           OrderState.ConfiguringPizza

#line default
#line hidden
                                           ));
                __builder.AddAttribute(65, "OnCancel", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 53 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                                                                                                                                                                                                                              OrderState.CancelConfigurePizzaDialog

#line default
#line hidden
                                                                                                                                                                                                                                              )));
                __builder.AddAttribute(66, "OnConfirm", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 54 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
                                                                                                                                                                                                                                               OrderState.ConfirmConfigurePizzaDialog

#line default
#line hidden
                                                                                                                                                                                                                                               )));
                __builder.CloseComponent();
                __builder.AddMarkupContent(67, "\r\n");
#line 55 "/Users/kp/Development/blazor-workshop/save-points/00-Starting-point/BlazingPizza.Client/Pages/Index.razor"
            }

#line default
#line hidden
        }
예제 #9
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "nav");
            __builder.AddAttribute(1, "aria-label", "breadcrumb");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ol");
            __builder.AddAttribute(4, "class", "breadcrumb");
            __builder.AddMarkupContent(5, "\r\n        ");
            __builder.OpenElement(6, "li");
            __builder.AddAttribute(7, "class", "breadcrumb-item");
            __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 11 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                                                                                                                                                   () => uri.NavigateTo("BackOffice/Ventas")

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddContent(9, "Ventas");
            __builder.CloseElement();
            __builder.AddMarkupContent(10, "\r\n        ");
            __builder.OpenElement(11, "li");
            __builder.AddAttribute(12, "class", "breadcrumb-item ");
            __builder.AddAttribute(13, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 12 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo("BackOffice/Ventas/ListadoPedidos")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(14, "Pedidos");
            __builder.CloseElement();
            __builder.AddMarkupContent(15, "\r\n\r\n        ");
            __builder.OpenElement(16, "li");
            __builder.AddAttribute(17, "class", "breadcrumb-item active");
            __builder.AddAttribute(18, "aria-current", "page");
            __builder.AddAttribute(19, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 14 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo($"BackOffice/Ventas/DetallePedido/{@pedido.Id}")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(20, "Detalle Pedido ");
            __builder.CloseElement();
            __builder.AddMarkupContent(21, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(22, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(23, "\r\n");
            __builder.OpenElement(24, "div");
            __builder.AddAttribute(25, "class", "pedido  mx-0 px-0");
            __builder.AddMarkupContent(26, "\r\n    ");
            __builder.OpenElement(27, "div");
            __builder.AddAttribute(28, "class", "d-flex justify-content-between border-bottom border-secondary");
            __builder.AddMarkupContent(29, "\r\n        ");
            __builder.AddMarkupContent(30, "<h2 class>Pedido</h2>\r\n        ");
            __builder.OpenElement(31, "div");
            __builder.AddMarkupContent(32, "\r\n            ");
            __builder.OpenElement(33, "div");
            __builder.AddAttribute(34, "class", "btnEditar btn btn-sm btn-warning ");
            __builder.AddAttribute(35, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 21 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo($"/BackOffice/Ventas/Pedido/{pedido.Id}")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddMarkupContent(36, "\r\n                <i class=\"fas fa-edit\"></i> ");
            __builder.AddMarkupContent(37, "<span>Editar</span>\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(38, "\r\n            ");
            __builder.OpenElement(39, "div");
            __builder.AddAttribute(40, "class", "btnEditar btn btn-sm btn-info ");
            __builder.AddAttribute(41, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 24 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo($"/BackOffice/Ventas/ComprobanteDesdePedido/{pedido.Id}")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddMarkupContent(42, "\r\n                ");
            __builder.AddMarkupContent(43, "<span>Facturar</span>\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(44, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(45, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(46, "\r\n\r\n    ");
            __builder.OpenElement(47, "div");
            __builder.AddAttribute(48, "class", "cabeceraPedido  mx-0 px-0");
            __builder.AddMarkupContent(49, "\r\n        ");
            __builder.OpenElement(50, "div");
            __builder.AddAttribute(51, "class", "col-md-12 row mx-0 px-0");
            __builder.AddMarkupContent(52, "\r\n            ");
            __builder.OpenElement(53, "div");
            __builder.AddAttribute(54, "class", "col-md-12  mx-0 px-0");
            __builder.AddMarkupContent(55, "\r\n                ");
            __builder.AddMarkupContent(56, @"<ul class=""nav nav-tabs mt-2"" id=""myTab"" role=""tablist"">
                    <li class=""nav-item"">
                        <a class=""nav-link active"" id=""home-tab"" data-toggle=""tab"" href=""#home"" role=""tab"" aria-controls=""home"" aria-selected=""true"">Datos Generales</a>
                    </li>
                    <li class=""nav-item"">
                        <a class=""nav-link"" id=""profile-tab"" data-toggle=""tab"" href=""#profile"" role=""tab"" aria-controls=""profile"" aria-selected=""false"">Direccion de entrega</a>
                    </li>

                </ul>
                ");
            __builder.OpenElement(57, "div");
            __builder.AddAttribute(58, "class", "tab-content p-4");
            __builder.AddAttribute(59, "id", "myTabContent");
            __builder.AddAttribute(60, "style", "box-shadow:1px 1px 4px #213154; border-radius:5px;");
            __builder.AddMarkupContent(61, "\r\n                    ");
            __builder.OpenElement(62, "div");
            __builder.AddAttribute(63, "class", "tab-pane fade show active");
            __builder.AddAttribute(64, "id", "home");
            __builder.AddAttribute(65, "role", "tabpanel");
            __builder.AddAttribute(66, "aria-labelledby", "home-tab");
            __builder.AddMarkupContent(67, "\r\n                        ");
            __builder.OpenElement(68, "div");
            __builder.AddAttribute(69, "class", "col-md-12");
            __builder.AddMarkupContent(70, "<strong>Id:</strong> ");
            __builder.AddContent(71,
#line 44 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Id

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(72, "\r\n                        ");
            __builder.OpenElement(73, "div");
            __builder.AddAttribute(74, "class", "d-flex justify-content-between my-1 p-1");
            __builder.AddMarkupContent(75, "\r\n                            ");
            __builder.OpenElement(76, "div");
            __builder.AddAttribute(77, "class", "col-md-4");
            __builder.AddMarkupContent(78, "<strong>Fecha:</strong> ");
            __builder.AddContent(79,
#line 46 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.fecha.ToString("dddd, dd/MM")

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(80, "\r\n                            ");
            __builder.OpenElement(81, "div");
            __builder.AddAttribute(82, "class", "col-md-4");
            __builder.AddMarkupContent(83, "<strong>Lista:</strong> ");
            __builder.AddContent(84,
#line 47 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.ListaPrecios?.TipoListaPrecio?.nombre

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(85, "\r\n                            ");
            __builder.OpenElement(86, "div");
            __builder.AddAttribute(87, "class", "col-md-4");
            __builder.AddMarkupContent(88, "<strong>Estado:</strong> ");
            __builder.AddContent(89,
#line 48 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.EstadoPedido?.nombre

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(90, "\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(91, "\r\n                        ");
            __builder.OpenElement(92, "div");
            __builder.AddAttribute(93, "class", "d-flex justify-content-between my-1 p-1");
            __builder.AddMarkupContent(94, "\r\n                            ");
            __builder.OpenElement(95, "div");
            __builder.AddAttribute(96, "class", "col-md-4");
            __builder.AddMarkupContent(97, "<strong>Cliente:</strong> ");
            __builder.AddContent(98,
#line 51 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.nombreCliente

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(99, "\r\n                            ");
            __builder.OpenElement(100, "div");
            __builder.AddAttribute(101, "class", "col-md-4");
            __builder.OpenElement(102, "strong");
            __builder.AddContent(103, "Email:");
            __builder.OpenElement(104, "a");
            __builder.AddAttribute(105, "href",
#line 52 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                   $"mailto:{@pedido.emailCliente}?subject=Pedido%20Surcos%20&body={mensajeWsp}"

#line default
#line hidden
                                   );
            __builder.AddContent(106, " ");
            __builder.AddContent(107,
#line 52 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.emailCliente

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(108, "\r\n                            ");
            __builder.OpenElement(109, "div");
            __builder.AddAttribute(110, "class", "col-md-4");
            __builder.OpenElement(111, "a");
            __builder.AddAttribute(112, "href",
#line 53 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                   $"https://wa.me/54{pedido.celularCliente}/?text={mensajeWsp}"

#line default
#line hidden
                                   );
            __builder.AddAttribute(113, "target", "_blank");
            __builder.AddMarkupContent(114, "<strong>Cel:</strong> <img src=\"/img/whatsapp.svg\" height=\"20\">");
            __builder.AddContent(115,
#line 53 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.celularCliente

#line default
#line hidden
                                 );
            __builder.AddContent(116, " ");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(117, "\r\n\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(118, "\r\n                        ");
            __builder.OpenElement(119, "div");
            __builder.AddAttribute(120, "class", "d-flex justify-content-between my-1 p-1");
            __builder.AddMarkupContent(121, "\r\n                            ");
            __builder.OpenElement(122, "div");
            __builder.AddAttribute(123, "class", "col-md-4");
            __builder.AddMarkupContent(124, "<strong>Vendedor:</strong> ");
            __builder.OpenElement(125, "img");
            __builder.AddAttribute(126, "src",
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                   pedido.Vendedor?.Foto

#line default
#line hidden
                                   );
            __builder.AddAttribute(127, "class", "mr-1");
            __builder.AddAttribute(128, "style", "width:25px; height:25px; border-radius:50%;");
            __builder.CloseElement();
            __builder.AddContent(129,
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Vendedor?.nombre

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(130, "\r\n                            ");
            __builder.OpenElement(131, "div");
            __builder.AddAttribute(132, "class", "col-md-4");
            __builder.AddMarkupContent(133, "<strong>Email:</strong>    ");
            __builder.AddContent(134,
#line 58 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Vendedor?.email

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(135, "\r\n                            ");
            __builder.OpenElement(136, "div");
            __builder.AddAttribute(137, "class", "col-md-4");
            __builder.AddMarkupContent(138, "<strong>Celular:</strong>    ");
            __builder.AddContent(139,
#line 59 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Vendedor?.numeroCelular

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(140, "\r\n\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(141, "\r\n\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(142, "\r\n                    ");
            __builder.OpenElement(143, "div");
            __builder.AddAttribute(144, "class", "tab-pane fade");
            __builder.AddAttribute(145, "id", "profile");
            __builder.AddAttribute(146, "role", "tabpanel");
            __builder.AddAttribute(147, "aria-labelledby", "profile-tab");
            __builder.AddMarkupContent(148, "\r\n                        ");
            __builder.OpenElement(149, "div");
            __builder.AddAttribute(150, "class", "entrega my-2 col-md-12");
            __builder.AddMarkupContent(151, "\r\n                            ");
            __builder.OpenElement(152, "fieldset");
            __builder.AddMarkupContent(153, "\r\n                                ");
            __builder.OpenElement(154, "legend");
            __builder.AddAttribute(155, "class", "bg-light rounded p-2");
            __builder.AddMarkupContent(156, " <i class=\"fas fa-map-marker-alt text-danger mr-1 border\" style></i>Entrega -  ");
            __builder.AddContent(157,
#line 67 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.fechaEntrega.ToString("dddd, dd/MM")

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(158, "\r\n                                ");
            __builder.OpenElement(159, "div");
            __builder.AddAttribute(160, "class", "my-2 pl-2");
            __builder.AddMarkupContent(161, "<strong>Domicilio:</strong> ");
            __builder.AddContent(162,
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Domicilio?.calle

#line default
#line hidden
                                 );
            __builder.AddContent(163, " ");
            __builder.AddContent(164,
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Domicilio?.numero

#line default
#line hidden
                                 );
            __builder.AddContent(165, " - ");
            __builder.AddContent(166,
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Domicilio?.Provincia?.nombre

#line default
#line hidden
                                 );
            __builder.AddContent(167, ", ");
            __builder.AddContent(168,
#line 68 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.Domicilio?.Departamento?.nombre

#line default
#line hidden
                                 );
            __builder.AddContent(169, " ");
            __builder.CloseElement();
            __builder.AddMarkupContent(170, "\r\n\r\n                                ");
            __builder.OpenElement(171, "div");
            __builder.AddAttribute(172, "class", "col-md-12 mx-0 px-0");
            __builder.AddContent(173,
#line 70 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.observaciones

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(174, "\r\n                                ");
            __builder.AddMarkupContent(175, "<div class=\"col-md-12 mt-2 bg-secondary\" id=\"mapaPedidoForm\" style=\"height:200px\">      </div>\r\n                            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(176, "\r\n                        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(177, "\r\n                    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(178, "\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(179, "\r\n\r\n\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(180, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(181, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(182, "\r\n    ");
            __builder.OpenElement(183, "div");
            __builder.AddAttribute(184, "class", "detallesPedido my-3");
            __builder.AddMarkupContent(185, "\r\n        ");
            __builder.OpenElement(186, "div");
            __builder.AddAttribute(187, "class", "col-md-12 row mx-0 p-2 d-flex justify-content-between align-items-center my-2");
            __builder.AddAttribute(188, "style", "background: linear-gradient(90deg, #262626, #213154);color:white;border-radius:5px;");
            __builder.AddMarkupContent(189, "\r\n\r\n            ");
            __builder.OpenElement(190, "h3");
            __builder.AddContent(191, "Productos (");
            __builder.AddContent(192,
#line 84 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.detallePedido.Count()

#line default
#line hidden
                                 );
            __builder.AddContent(193, ")");
            __builder.CloseElement();
            __builder.AddMarkupContent(194, "\r\n            ");
            __builder.OpenElement(195, "div");
            __builder.AddAttribute(196, "class", "mx-3");
            __builder.OpenElement(197, "strong");
            __builder.AddContent(198, "Lista de precios: ");
            __builder.AddContent(199,
#line 85 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.ListaPrecios?.TipoListaPrecio?.nombre

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(200, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(201, "\r\n        ");
            __builder.OpenElement(202, "table");
            __builder.AddAttribute(203, "class", "table table-sm d-xs-block");
            __builder.AddAttribute(204, "style", "overflow-x:auto;");
            __builder.AddMarkupContent(205, "\r\n            ");
            __builder.AddMarkupContent(206, @"<thead>
                <tr class=""bg-dark text-white p-1 rounded"">
                    <th>Producto</th>
                    <th>Presentacion</th>
                    <th>Cantidad</th>
                    <th>Precio Unitario</th>
                    <th>Total</th>
                </tr>
            </thead>
            ");
            __builder.OpenElement(207, "tbody");
            __builder.AddMarkupContent(208, "\r\n\r\n");
#line 99 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
            foreach (DetallePedido detallePedido in pedido.detallePedido)
            {
#line default
#line hidden
                __builder.AddContent(209, "                    ");
                __builder.OpenElement(210, "tr");
                __builder.AddAttribute(211, "class", "trSeleccionable");
                __builder.AddMarkupContent(212, "\r\n                        ");
                __builder.OpenElement(213, "td");
                __builder.AddMarkupContent(214, "\r\n                            ");
                __builder.OpenElement(215, "div");
                __builder.OpenElement(216, "img");
                __builder.AddAttribute(217, "class", "mx-2");
                __builder.AddAttribute(218, "src",
#line 103 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                       detallePedido.ProductoPresentacion.Producto.Foto

#line default
#line hidden
                                       );
                __builder.AddAttribute(219, "style", "height:20px; width:20px;border-radius:50%;");
                __builder.CloseElement();
                __builder.AddContent(220,
#line 103 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                     detallePedido.ProductoPresentacion.Producto.nombre.ToUpper()

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(221, "\r\n                        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(222, "\r\n\r\n                        ");
                __builder.OpenElement(223, "td");
                __builder.AddContent(224,
#line 106 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                     detallePedido.ProductoPresentacion.PresentacionProducto.nombre

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(225, "\r\n\r\n                        ");
                __builder.OpenElement(226, "td");
                __builder.AddContent(227,
#line 108 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                     detallePedido.cantidad

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(228, "\r\n\r\n                        ");
                __builder.OpenElement(229, "td");
                __builder.AddContent(230, "$");
                __builder.AddContent(231,
#line 110 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                     detallePedido.precioUnitario

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(232, "\r\n\r\n                        ");
                __builder.OpenElement(233, "td");
                __builder.AddContent(234, "$");
                __builder.AddContent(235,
#line 112 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                     detallePedido.precioUnitario * detallePedido.cantidad

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(236, "\r\n                    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(237, "\r\n");
#line 114 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
            }

#line default
#line hidden
            __builder.AddContent(238, "                ");
            __builder.OpenElement(239, "tr");
            __builder.AddAttribute(240, "class", "bg-dark text-white rounded");
            __builder.AddMarkupContent(241, "\r\n                    <th colspan=\"4\"></th>\r\n\r\n                    ");
            __builder.OpenElement(242, "th");
            __builder.AddAttribute(243, "class", true);
            __builder.AddMarkupContent(244, "<strong>Total:</strong> $");
            __builder.AddContent(245,
#line 118 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Ventas\Pedido\PedidoDetalle.razor"
                                 pedido.total

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(246, "\r\n                ");
            __builder.CloseElement();
            __builder.AddMarkupContent(247, "\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(248, "\r\n\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(249, "\r\n\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(250, "\r\n\r\n\r\n");
            __builder.CloseElement();
        }
예제 #10
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 6 "C:\Users\smj\source\repos\lms\Pages\License.razor"
            if (license != null)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenElement(1, "h3");
                __builder.AddAttribute(2, "class", "heading");
                __builder.AddContent(3, "License #");
                __builder.AddContent(4,
#line 8 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                     license.Title

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(5, "\r\n    ");
                __builder.OpenElement(6, "fieldset");
                __builder.AddAttribute(7, "class", "fieldset");
                __builder.AddMarkupContent(8, "\r\n        ");
                __builder.AddMarkupContent(9, "<legend>License Information</legend>\r\n        ");
                __builder.OpenElement(10, "div");
                __builder.AddAttribute(11, "class", "form-row");
                __builder.AddMarkupContent(12, "\r\n            ");
                __builder.OpenElement(13, "div");
                __builder.AddAttribute(14, "class", "form-group col-lg-6 col-md-6 col-sm-12");
                __builder.AddMarkupContent(15, "\r\n                ");
                __builder.AddMarkupContent(16, "<label>System Name</label>\r\n                ");
                __builder.OpenElement(17, "input");
                __builder.AddAttribute(18, "class", "form-control");
                __builder.AddAttribute(19, "value",
#line 14 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.SystemName

#line default
#line hidden
                                       );
                __builder.AddAttribute(20, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(21, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(22, "\r\n            ");
                __builder.OpenElement(23, "div");
                __builder.AddAttribute(24, "class", "form-group col-lg-6 col-md-6 col-sm-12");
                __builder.AddMarkupContent(25, "\r\n                ");
                __builder.AddMarkupContent(26, "<label>License Name</label>\r\n                ");
                __builder.OpenElement(27, "input");
                __builder.AddAttribute(28, "class", "form-control");
                __builder.AddAttribute(29, "value",
#line 18 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.LicenseName

#line default
#line hidden
                                       );
                __builder.AddAttribute(30, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(31, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(32, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(33, "\r\n        ");
                __builder.OpenElement(34, "div");
                __builder.AddAttribute(35, "class", "form-row");
                __builder.AddMarkupContent(36, "\r\n            ");
                __builder.OpenElement(37, "div");
                __builder.AddAttribute(38, "class", "form-group col-lg-8 col-md-8 col-sm-12");
                __builder.AddMarkupContent(39, "\r\n                ");
                __builder.AddMarkupContent(40, "<label>Description</label>\r\n                ");
                __builder.OpenElement(41, "textarea");
                __builder.AddAttribute(42, "class", "form-control");
                __builder.AddAttribute(43, "readonly", true);
                __builder.AddContent(44,
#line 24 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                     license.Description

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(45, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(46, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(47, "\r\n        ");
                __builder.OpenElement(48, "div");
                __builder.AddAttribute(49, "class", "form-row");
                __builder.AddMarkupContent(50, "\r\n            ");
                __builder.OpenElement(51, "div");
                __builder.AddAttribute(52, "class", "form-group col-lg-8 col-md-8 col-sm-12");
                __builder.AddMarkupContent(53, "\r\n                ");
                __builder.AddMarkupContent(54, "<label>License Key</label>\r\n                ");
                __builder.OpenElement(55, "input");
                __builder.AddAttribute(56, "class", "form-control");
                __builder.AddAttribute(57, "value",
#line 30 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.LicenseKey

#line default
#line hidden
                                       );
                __builder.AddAttribute(58, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(59, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(60, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(61, "\r\n        ");
                __builder.OpenElement(62, "div");
                __builder.AddAttribute(63, "class", "form-row");
                __builder.AddMarkupContent(64, "\r\n            ");
                __builder.OpenElement(65, "div");
                __builder.AddAttribute(66, "class", "form-group col-lg-6 col-md-6 col-sm-12");
                __builder.AddMarkupContent(67, "\r\n                ");
                __builder.AddMarkupContent(68, "<label>Contract Number</label>\r\n                ");
                __builder.OpenElement(69, "input");
                __builder.AddAttribute(70, "class", "form-control");
                __builder.AddAttribute(71, "value",
#line 36 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.ContractNumber

#line default
#line hidden
                                       );
                __builder.AddAttribute(72, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(73, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(74, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(75, "\r\n        ");
                __builder.OpenElement(76, "div");
                __builder.AddAttribute(77, "class", "form-row");
                __builder.AddMarkupContent(78, "\r\n            ");
                __builder.OpenElement(79, "div");
                __builder.AddAttribute(80, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(81, "\r\n                ");
                __builder.AddMarkupContent(82, "<label>Start Date</label>\r\n                ");
                __builder.OpenElement(83, "input");
                __builder.AddAttribute(84, "class", "form-control");
                __builder.AddAttribute(85, "value",
#line 42 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.StartDate.ToShortDateString()

#line default
#line hidden
                                       );
                __builder.AddAttribute(86, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(87, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(88, "\r\n            ");
                __builder.OpenElement(89, "div");
                __builder.AddAttribute(90, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(91, "\r\n                ");
                __builder.AddMarkupContent(92, "<label>End Date</label>\r\n                ");
                __builder.OpenElement(93, "input");
                __builder.AddAttribute(94, "class", "form-control");
                __builder.AddAttribute(95, "value",
#line 46 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.EndDate.ToShortDateString()

#line default
#line hidden
                                       );
                __builder.AddAttribute(96, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(97, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(98, "\r\n            ");
                __builder.OpenElement(99, "div");
                __builder.AddAttribute(100, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(101, "\r\n                ");
                __builder.AddMarkupContent(102, "<label>Issued Date</label>\r\n                ");
                __builder.OpenElement(103, "input");
                __builder.AddAttribute(104, "class", "form-control");
                __builder.AddAttribute(105, "value",
#line 50 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.IssuedDate.ToShortDateString()

#line default
#line hidden
                                       );
                __builder.AddAttribute(106, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(107, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(108, "\r\n            ");
                __builder.OpenElement(109, "div");
                __builder.AddAttribute(110, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(111, "\r\n                ");
                __builder.AddMarkupContent(112, "<label>Planned Renewal Date</label>\r\n                ");
                __builder.OpenElement(113, "input");
                __builder.AddAttribute(114, "class", "form-control");
                __builder.AddAttribute(115, "value",
#line 54 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.PlannedRenewal.ToShortDateString()

#line default
#line hidden
                                       );
                __builder.AddAttribute(116, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(117, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(118, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(119, "\r\n        ");
                __builder.OpenElement(120, "div");
                __builder.AddAttribute(121, "class", "form-row");
                __builder.AddMarkupContent(122, "\r\n            ");
                __builder.OpenElement(123, "div");
                __builder.AddAttribute(124, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(125, "\r\n                ");
                __builder.AddMarkupContent(126, "<label>Quantity</label>\r\n                ");
                __builder.OpenElement(127, "input");
                __builder.AddAttribute(128, "class", "form-control");
                __builder.AddAttribute(129, "value",
#line 60 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.Quantity

#line default
#line hidden
                                       );
                __builder.AddAttribute(130, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(131, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(132, "\r\n            ");
                __builder.OpenElement(133, "div");
                __builder.AddAttribute(134, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(135, "\r\n                ");
                __builder.AddMarkupContent(136, "<label>Utilized</label>\r\n                ");
                __builder.OpenElement(137, "input");
                __builder.AddAttribute(138, "class", "form-control");
                __builder.AddAttribute(139, "value",
#line 64 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.Utilized

#line default
#line hidden
                                       );
                __builder.AddAttribute(140, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(141, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(142, "\r\n            ");
                __builder.OpenElement(143, "div");
                __builder.AddAttribute(144, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(145, "\r\n                ");
                __builder.AddMarkupContent(146, "<label>Cost</label>\r\n                ");
                __builder.OpenElement(147, "input");
                __builder.AddAttribute(148, "class", "form-control");
                __builder.AddAttribute(149, "value",
#line 68 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.Cost

#line default
#line hidden
                                       );
                __builder.AddAttribute(150, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(151, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(152, "\r\n            ");
                __builder.OpenElement(153, "div");
                __builder.AddAttribute(154, "class", "form-group col-lg-3 col-md-3 col-sm-12");
                __builder.AddMarkupContent(155, "\r\n                ");
                __builder.AddMarkupContent(156, "<label>Type Of Cost</label>\r\n                ");
                __builder.OpenElement(157, "input");
                __builder.AddAttribute(158, "class", "form-control");
                __builder.AddAttribute(159, "value",
#line 72 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.TypeOfCost

#line default
#line hidden
                                       );
                __builder.AddAttribute(160, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(161, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(162, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(163, "\r\n        ");
                __builder.OpenElement(164, "fieldset");
                __builder.AddAttribute(165, "class", "fieldset");
                __builder.AddMarkupContent(166, "\r\n            ");
                __builder.AddMarkupContent(167, "<legend>Owner Information</legend>\r\n            ");
                __builder.OpenElement(168, "div");
                __builder.AddAttribute(169, "class", "form-row");
                __builder.AddMarkupContent(170, "\r\n                ");
                __builder.OpenElement(171, "div");
                __builder.AddAttribute(172, "class", "form-group col-lg-4 col-md-4 col-sm-12");
                __builder.AddMarkupContent(173, "\r\n                    ");
                __builder.AddMarkupContent(174, "<label>Name</label>\r\n                    ");
                __builder.OpenElement(175, "input");
                __builder.AddAttribute(176, "class", "form-control");
                __builder.AddAttribute(177, "value",
#line 80 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                       license.Owner.Title

#line default
#line hidden
                                       );
                __builder.AddAttribute(178, "readonly", true);
                __builder.CloseElement();
                __builder.AddMarkupContent(179, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(180, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(181, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(182, "\r\n");
#line 106 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                if (license.Attachments)
                {
#line default
#line hidden
                    __builder.AddContent(183, "            ");
                    __builder.OpenElement(184, "fieldset");
                    __builder.AddAttribute(185, "class", "fieldset noprint");
                    __builder.AddAttribute(186, "id", "attachments");
                    __builder.AddMarkupContent(187, "\r\n                ");
                    __builder.AddMarkupContent(188, "<legend>Attachments</legend>\r\n                ");
                    __builder.OpenElement(189, "table");
                    __builder.AddAttribute(190, "id", "allAttachments");
                    __builder.AddMarkupContent(191, "\r\n                    ");
                    __builder.OpenElement(192, "tbody");
                    __builder.AddMarkupContent(193, "\r\n");
#line 112 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                    foreach (AttachmentFiles itemFile in license.AttachmentFiles)
                    {
#line default
#line hidden
                        __builder.AddContent(194, "                            ");
                        __builder.OpenElement(195, "tr");
                        __builder.OpenElement(196, "td");
                        __builder.OpenElement(197, "a");
                        __builder.AddAttribute(198, "class", "btn btn-link");
                        __builder.AddAttribute(199, "href",
#line 114 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                               Navigator.BaseUri + Settings.AttachmentURL + itemFile.ServerRelativeUrl

#line default
#line hidden
                                               );
                        __builder.AddAttribute(200, "target", "_blank");
                        __builder.AddContent(201,
#line 114 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                                             itemFile.FileName

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.CloseElement();
                        __builder.CloseElement();
                        __builder.AddMarkupContent(202, "\r\n");
#line 115 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(203, "                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(204, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(205, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(206, "\r\n");
#line 119 "C:\Users\smj\source\repos\lms\Pages\License.razor"
                }

#line default
#line hidden
                __builder.AddContent(207, "    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(208, "\r\n");
#line 121 "C:\Users\smj\source\repos\lms\Pages\License.razor"
            }

#line default
#line hidden
        }
예제 #11
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "nav");
            __builder.AddAttribute(1, "aria-label", "breadcrumb");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ol");
            __builder.AddAttribute(4, "class", "breadcrumb");
            __builder.AddMarkupContent(5, "\r\n        ");
            __builder.OpenElement(6, "li");
            __builder.AddAttribute(7, "class", "breadcrumb-item");
            __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 13 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                   () => uri.NavigateTo("BackOffice/Configuraciones")

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddContent(9, "Configuraciones");
            __builder.CloseElement();
            __builder.AddMarkupContent(10, "\r\n        ");
            __builder.OpenElement(11, "li");
            __builder.AddAttribute(12, "class", "breadcrumb-item active");
            __builder.AddAttribute(13, "aria-current", "page");
            __builder.AddAttribute(14, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 14 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                    () => uri.NavigateTo("BackOffice/Configuraciones/ListadoProvincias")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(15, "Listado Provincias");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(17, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(18, "\r\n");
            __builder.OpenElement(19, "div");
            __builder.AddMarkupContent(20, "\r\n    ");
            __builder.AddMarkupContent(21, "<div class=\"border-bottom border-secondary my-2\">\r\n        <h2 class>Provincias</h2>\r\n    </div>\r\n    ");
            __Blazor.SurcosBlazor.Client.Pages.BackOffice.Configuracion.Provincia.ListadoProvincias.TypeInference.CreateBotoneraAcciones_0(__builder, 22, 23,
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                           provincia

#line default
#line hidden
                                                                                                                                           , 24,
#line 23 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                           true

#line default
#line hidden
                                                                                                                                           , 25, (__builder2) => {
                __builder2.AddMarkupContent(26, "\r\n            ");
                __builder2.OpenComponent <SurcosBlazor.Client.Pages.BackOffice.Configuracion.Provincia.ProvinciaForm>(27);
                __builder2.AddAttribute(28, "accion", "Crear");
                __builder2.AddAttribute(29, "provincia", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <SurcosBlazor.Shared.Entidades.Provincia>(
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                            new Provincia()

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(30, "callback", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                                                                                               (async() => { await tablaGenerica.ListarItemsApi(); })

#line default
#line hidden
                                                                                                                                                                                                                                               )));
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(31, "\r\n        ");
            }
                                                                                                                                           );
            __builder.AddMarkupContent(32, "\r\n\r\n    ");
            __Blazor.SurcosBlazor.Client.Pages.BackOffice.Configuracion.Provincia.ListadoProvincias.TypeInference.CreateTablaGenerica_1(__builder, 33, 34,
#line 32 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        new List <string[]> {
                new string[3] {
                    "Id", "Id", "Texto"
                }, new string[3] {
                    "Nombre", "nombre", "Text"
                }, new string[3] {
                    "E-Commerce", "eCommerce", "Checkbox"
                }
            }

#line default
#line hidden
                                                                                                                                        , 35,
#line 33 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        new TablaGenerica <Provincia> .ConsultarApi {
                consultaApi = true, baseUrl = "api/provincia?", paginacion = true, cantidadDeRegistrosAMostrar = 10
            }

#line default
#line hidden
                                                                                                                                        , 36,
#line 34 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        true

#line default
#line hidden
                                                                                                                                        , 37,
#line 35 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        true

#line default
#line hidden
                                                                                                                                        , 38,
#line 36 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        true

#line default
#line hidden
                                                                                                                                        , 39, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 37 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                                                           ((Provincia provincia) => ElementoSeleccionado(provincia))

#line default
#line hidden
                                                                                                                                                                                                           ), 40, "BackOffice/Configuraciones/Provincia", 41,
#line 39 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                        true

#line default
#line hidden
                                                                                                                                        , 42, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 40 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                                                           (async() => { await EliminarProvincia(provincia); this.StateHasChanged(); })

#line default
#line hidden
                                                                                                                                                                                                           ), 43, (__builder2) => {
                __builder2.AddMarkupContent(44, "\r\n            ");
                __builder2.OpenComponent <SurcosBlazor.Client.Pages.BackOffice.Configuracion.Provincia.ProvinciaForm>(45);
                __builder2.AddAttribute(46, "provincia", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <SurcosBlazor.Shared.Entidades.Provincia>(
#line 43 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                            provincia

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(47, "callback", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 43 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                                                                                                                                                                                                                                               (() => this.StateHasChanged())

#line default
#line hidden
                                                                                                                                                                                                                                               )));
                __builder2.AddAttribute(48, "accion", "Editar");
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(49, "\r\n        ");
            }
                                                                                                                                        , 50, (__value) => {
#line 31 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\Provincia\ListadoProvincias.razor"
                tablaGenerica = __value;

#line default
#line hidden
            }
                                                                                                                                        );
            __builder.AddMarkupContent(51, "\r\n\r\n");
            __builder.CloseElement();
        }
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenComponent <BlazorScopedCss.ScopedStyle>(0);
            __builder.AddAttribute(1, "EmbeddedStylePath", "FetchData.razor.css");
            __builder.AddAttribute(2, "Parent", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.ComponentBase>(
#line 5 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                       this

#line default
#line hidden
                                       ));
            __builder.AddAttribute(3, "AfterInit", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
#line 6 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                                                                                                                                                                                                                          StateHasChanged

#line default
#line hidden
                                                                                                                                                                                                                                          )));
            __builder.AddComponentReferenceCapture(4, (__value) => {
#line 7 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                scopedStyle = (BlazorScopedCss.ScopedStyle)__value;

#line default
#line hidden
            }
                                                   );
            __builder.CloseComponent();
            __builder.AddMarkupContent(5, "\r\n\r\n");
#line 9 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
            if (scopedStyle?.IsComplete ?? false)
            {
#line default
#line hidden
                __builder.AddContent(6, "    ");
                __builder.OpenElement(7, "h1");
                __builder.AddAttribute(8, "class",
#line 11 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                       scopedStyle.CssScopedClasses(scopedCssClasses: "myFirstScopedComponent")

#line default
#line hidden
                                       );
                __builder.AddContent(9, "Weather forecast");
                __builder.CloseElement();
                __builder.AddMarkupContent(10, "\r\n");
                __builder.AddContent(11, "    ");
                __builder.OpenElement(12, "p");
                __builder.AddAttribute(13, "class",
#line 13 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                       scopedStyle.CssClassesMixed(nonScopedCssClasses: "display-1", scopedCssClasses: "mySecondScopedComponent")

#line default
#line hidden
                                       );
                __builder.AddContent(14, "This component demonstrates fetching data from a service.");
                __builder.CloseElement();
                __builder.AddMarkupContent(15, "\r\n");
#line 15 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                if (forecasts == null)
                {
#line default
#line hidden
                    __builder.AddContent(16, "        ");
                    __builder.AddMarkupContent(17, "<p><em>Loading...</em></p>\r\n");
#line 18 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                }
                else
                {
#line default
#line hidden
                    __builder.AddContent(18, "        ");
                    __builder.OpenElement(19, "table");
                    __builder.AddAttribute(20, "class", "table");
                    __builder.AddMarkupContent(21, "\r\n            ");
                    __builder.AddMarkupContent(22, "<thead>\r\n                <tr>\r\n                    <th>Date</th>\r\n                    <th>Temp. (C)</th>\r\n                    <th>Temp. (F)</th>\r\n                    <th>Summary</th>\r\n                </tr>\r\n            </thead>\r\n            ");
                    __builder.OpenElement(23, "tbody");
                    __builder.AddMarkupContent(24, "\r\n");
#line 31 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                    foreach (var forecast in forecasts)
                    {
#line default
#line hidden
                        __builder.AddContent(25, "                    ");
                        __builder.OpenElement(26, "tr");
                        __builder.AddMarkupContent(27, "\r\n                        ");
                        __builder.OpenElement(28, "td");
                        __builder.AddContent(29,
#line 34 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                             forecast.Date.ToShortDateString()

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(30, "\r\n                        ");
                        __builder.OpenElement(31, "td");
                        __builder.AddContent(32,
#line 35 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                             forecast.TemperatureC

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(33, "\r\n                        ");
                        __builder.OpenElement(34, "td");
                        __builder.AddContent(35,
#line 36 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                             forecast.TemperatureF

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(36, "\r\n                        ");
                        __builder.OpenElement(37, "td");
                        __builder.AddContent(38,
#line 37 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                                             forecast.Summary

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(39, "\r\n                    ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(40, "\r\n");
#line 39 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(41, "            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(42, "\r\n        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(43, "\r\n");
#line 42 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
                }

#line default
#line hidden
#line 42 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(44, "    ");
                __builder.AddMarkupContent(45, "<p><em>loading</em></p>\r\n");
#line 47 "C:\Dev\BlazorScopedCss\SampleAppWebAssembly\Pages\FetchData.razor"
            }

#line default
#line hidden
        }
예제 #13
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h3>Clients</h3>\r\n\r\n");
            __builder.AddMarkupContent(1, "<a class=\"btn btn-success\" href=\"maintenance/clients/create\">Create New</a>\r\n");
#line 7 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
            if (clients == null)
            {
#line default
#line hidden
                __builder.AddContent(2, "    ");
                __builder.AddMarkupContent(3, "<p><em>Loading...</em></p>\r\n");
#line 10 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(4, "    ");
                __builder.OpenElement(5, "table");
                __builder.AddAttribute(6, "class", "table");
                __builder.AddMarkupContent(7, "\r\n        ");
                __builder.AddMarkupContent(8, "<thead>\r\n            <tr>\r\n                <th></th>\r\n\r\n                <th>S/N</th>\r\n                <th>Business Name</th>\r\n                <th>Shortname</th>\r\n               \r\n\r\n\r\n            </tr>\r\n        </thead>\r\n        ");
                __builder.OpenElement(9, "tbody");
                __builder.AddMarkupContent(10, "\r\n");
#line 28 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                foreach (var client in clients)
                {
#line default
#line hidden
                    __builder.AddContent(11, "            ");
                    __builder.OpenElement(12, "tr");
                    __builder.AddMarkupContent(13, "\r\n                ");
                    __builder.OpenElement(14, "td");
                    __builder.AddMarkupContent(15, "\r\n                    ");
                    __builder.OpenElement(16, "a");
                    __builder.AddAttribute(17, "class", "btn btn-info");
                    __builder.AddAttribute(18, "href", "/maintenance/clients/edit/" + (
#line 32 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                                               client.Id

#line default
#line hidden
                                               ));
                    __builder.AddContent(19, "Edit");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(20, "\r\n                    ");
                    __builder.OpenElement(21, "a");
                    __builder.AddAttribute(22, "class", "btn btn-danger");
                    __builder.AddAttribute(23, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 33 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                                                                                                                                                                            () => DeleteClient(client.Id)

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddContent(24, "Delete");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(25, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(26, "\r\n\r\n                ");
                    __builder.OpenElement(27, "td");
                    __builder.AddContent(28,
#line 36 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                                         client.Id

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(29, "\r\n                ");
                    __builder.OpenElement(30, "td");
                    __builder.AddContent(31,
#line 37 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                                         client.BusinessName

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(32, "\r\n                ");
                    __builder.OpenElement(33, "td");
                    __builder.AddContent(34,
#line 38 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                                         client.Shortname

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(35, "\r\n              \r\n\r\n\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(36, "\r\n");
#line 43 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
                }

#line default
#line hidden
                __builder.AddContent(37, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(38, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(39, "\r\n");
#line 46 "D:\Users\semdhong\source\repos\SEMDEVWEB\BlazorCableReel\Client\Pages\Maintenance\Clients\Index.razor"
            }

#line default
#line hidden
        }
예제 #14
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 3 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
            if (ShowConfirmation)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenElement(1, "div");
                __builder.AddAttribute(2, "class", "modal fade show d-block");
                __builder.AddAttribute(3, "id", "exampleModal");
                __builder.AddAttribute(4, "tabindex", "-1");
                __builder.AddAttribute(5, "role", "dialog");
                __builder.AddAttribute(6, "aria-labelledby", "exampleModalLabel");
                __builder.AddAttribute(7, "aria-hidden", "true");
                __builder.AddMarkupContent(8, "\r\n        ");
                __builder.OpenElement(9, "div");
                __builder.AddAttribute(10, "class", "modal-dialog");
                __builder.AddMarkupContent(11, "\r\n            ");
                __builder.OpenElement(12, "div");
                __builder.AddAttribute(13, "class", "modal-content");
                __builder.AddMarkupContent(14, "\r\n                ");
                __builder.OpenElement(15, "div");
                __builder.AddAttribute(16, "class", "modal-header");
                __builder.AddMarkupContent(17, "\r\n                    ");
                __builder.OpenElement(18, "h5");
                __builder.AddAttribute(19, "class", "modal-title");
                __builder.AddAttribute(20, "id", "exampleModalLabel");
                __builder.AddContent(21,
#line 9 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                     ConfirmationTitle

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(22, "\r\n                    ");
                __builder.OpenElement(23, "button");
                __builder.AddAttribute(24, "type", "button");
                __builder.AddAttribute(25, "class", "close");
                __builder.AddAttribute(26, "data-dismiss", "modal");
                __builder.AddAttribute(27, "aria-label", "Close");
                __builder.AddAttribute(28, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 11 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                                                                                                                                                        () => OnConfirmationChange(false)

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddMarkupContent(29, "\r\n                        ");
                __builder.AddMarkupContent(30, "<span aria-hidden=\"true\">&times;</span>\r\n                    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(31, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(32, "\r\n                ");
                __builder.OpenElement(33, "div");
                __builder.AddAttribute(34, "class", "modal-body");
                __builder.AddMarkupContent(35, "\r\n                    ");
                __builder.AddContent(36,
#line 16 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                     ConfirmationMessage

#line default
#line hidden
                                     );
                __builder.AddMarkupContent(37, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(38, "\r\n                ");
                __builder.OpenElement(39, "div");
                __builder.AddAttribute(40, "class", "modal-footer");
                __builder.AddMarkupContent(41, "\r\n                    ");
                __builder.OpenElement(42, "button");
                __builder.AddAttribute(43, "type", "button");
                __builder.AddAttribute(44, "class", "btn btn-secondary");
                __builder.AddAttribute(45, "data-dismiss", "modal");
                __builder.AddAttribute(46, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 20 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                                                                                                                                                        () => OnConfirmationChange(false)

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddContent(47,
#line 20 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                     ConfirmationButtonCancel

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(48, "\r\n                    ");
                __builder.OpenElement(49, "button");
                __builder.AddAttribute(50, "type", "button");
                __builder.AddAttribute(51, "class", "btn btn-primary");
                __builder.AddAttribute(52, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 22 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                                                                                                                                                        () => OnConfirmationChange(true)

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddContent(53,
#line 22 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
                                     ConfirmationButtonConfirm

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(54, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(55, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(56, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(57, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(58, "\r\n");
#line 27 "C:\MyJavaProjects\Blazor\BlazorTutorial\Venci.Components\Confirm.razor"
            }

#line default
#line hidden
        }
예제 #15
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h3>PizzaItem</h3>\r\n");
            __builder.OpenElement(1, "div");
            __builder.AddAttribute(2, "class", "row");
            __builder.AddMarkupContent(3, "\r\n    ");
            __builder.OpenElement(4, "div");
            __builder.AddAttribute(5, "class", "col");
            __builder.AddMarkupContent(6, "\r\n        ");
            __builder.AddContent(7,
#line 5 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                 Pizza.Name

#line default
#line hidden
                                 );
            __builder.AddMarkupContent(8, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(9, "\r\n    ");
            __builder.OpenElement(10, "div");
            __builder.AddAttribute(11, "class", "col");
            __builder.AddMarkupContent(12, "\r\n        ");
            __builder.AddContent(13,
#line 8 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                 Pizza.Price

#line default
#line hidden
                                 );
            __builder.AddMarkupContent(14, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(15, "\r\n    ");
            __builder.OpenElement(16, "div");
            __builder.AddAttribute(17, "class", "col");
            __builder.AddMarkupContent(18, "\r\n        ");
            __builder.OpenElement(19, "img");
            __builder.AddAttribute(20, "class", "spicy-img");
            __builder.AddAttribute(21, "src",
#line 11 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                   SpicinessImage(Pizza.Spiciness)

#line default
#line hidden
                                   );
            __builder.AddAttribute(22, "alt",
#line 11 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                   Pizza.Spiciness

#line default
#line hidden
                                   );
            __builder.CloseElement();
            __builder.AddMarkupContent(23, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(24, "\r\n    ");
            __builder.OpenElement(25, "div");
            __builder.AddAttribute(26, "class", "col");
            __builder.AddContent(27, " ");
            __builder.OpenElement(28, "button");
            __builder.AddAttribute(29, "class",
#line 13 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                   ButtonClass

#line default
#line hidden
                                   );
            __builder.AddAttribute(30, "title", "Order");
            __builder.AddAttribute(31, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 13 "C:\Users\Leah\source\repos\PizzaParty\PizzaParty\Client\Pages\PizzaItem.razor"
                                                                                                                                                                    () => Selected(Pizza)

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(32, " ");
            __builder.CloseElement();
            __builder.CloseElement();
            __builder.AddMarkupContent(33, "\r\n");
            __builder.CloseElement();
        }
예제 #16
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "ul");
            __builder.AddAttribute(1, "class", "breadcrumb blazorforum-breadcrumb");
            __builder.AddMarkupContent(2, "\n        ");
            __builder.AddMarkupContent(3, "<li class=\"breadcrumb-item\">\n            <a href=\"/forums/\">Forums</a>\n        </li>\n        ");
            __builder.OpenElement(4, "li");
            __builder.AddAttribute(5, "class", "breadcrumb-item");
            __builder.AddMarkupContent(6, "\n");
#line 22 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"

            var bc = _category != null && _category.Title != null?
                     String.Format("<a href=\"/category/{0}/{1}\">{2}</a>", _category.ForumCategoryId,
                                   Domain.Utilities.Formatting.UrlFormatting.PrepareUrlText(_category.ForumCategoryUrl), _category.Title) : "";


#line default
#line hidden
            __builder.AddContent(7,
#line 26 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                 (MarkupString)bc

#line default
#line hidden
                                 );
            __builder.AddContent(8, "        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(9, "\n        ");
            __builder.OpenElement(10, "li");
            __builder.AddAttribute(11, "class", "breadcrumb-item");
            __builder.AddMarkupContent(12, "\n            ");
            __builder.AddContent(13,
#line 30 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                 _topic != null && _topic.Title != null ? _topic.Title : ""

#line default
#line hidden
                                 );
            __builder.AddMarkupContent(14, "\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(15, "\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\n\n");
#line 34 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
            if (_topic == null)
            {
#line default
#line hidden
                __builder.AddContent(17, "    ");
                __builder.OpenElement(18, "div");
                __builder.AddAttribute(19, "class", "mb-2 loading-div");
                __builder.AddMarkupContent(20, "\n        ");
                __builder.OpenElement(21, "em");
                __builder.AddMarkupContent(22, "<i class=\"oi oi-cog se-spin-icon\"></i> ");
                __builder.AddContent(23,
#line 37 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                     GeneralResources.Loading

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(24, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(25, "\n");
#line 39 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
            }
            else
            {
#line default
#line hidden
                __builder.OpenElement(26, "div");
                __builder.AddAttribute(27, "class", "text-right");
                __builder.AddMarkupContent(28, "\n");
#line 43 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                if (CurrentUserId != null)
                {
                    if (_userIsSubscribedToTopic)
                    {
#line default
#line hidden
                        __builder.AddContent(29, "            ");
                        __builder.OpenElement(30, "button");
                        __builder.AddAttribute(31, "class", "btn btn-sm btn-blazorforum mb-1");
                        __builder.AddAttribute(32, "type", "button");
                        __builder.AddAttribute(33, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 47 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                                                                                                                                                (() => UnsubscribeUserFromTopic())

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddAttribute(34, "title", "退订话题");
                        __builder.AddMarkupContent(35, "退订");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(36, "\n");
#line 48 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(37, "            ");
                        __builder.OpenElement(38, "button");
                        __builder.AddAttribute(39, "class", "btn btn-sm btn-blazorforum mb-1");
                        __builder.AddAttribute(40, "type", "button");
                        __builder.AddAttribute(41, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 51 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                                                                                                                                                (() => SubscribeUserToTopic())

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddAttribute(42, "title", "订阅话题");
                        __builder.AddMarkupContent(43, "订阅");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(44, "\n");
#line 52 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                    }
                }

#line default
#line hidden
                __builder.CloseElement();
                __builder.AddMarkupContent(45, "\n    ");
                __builder.OpenElement(46, "header");
                __builder.AddAttribute(47, "class", "forum-topic-header");
                __builder.AddMarkupContent(48, "\n        ");
                __builder.OpenElement(49, "h3");
                __builder.AddContent(50,
#line 56 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                     _topic.Title

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(51, "\n        ");
                __builder.OpenElement(52, "div");
                __builder.AddAttribute(53, "class", "forum-post-time d-inline-block");
                __builder.AddMarkupContent(54, "\n            Posted ");
                __builder.AddContent(55,
#line 58 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                     Domain.Utilities.Formatting.DateTimeFormatting.RelativeDateAgo(_topic.PostedDate)

#line default
#line hidden
                                     );
                __builder.AddMarkupContent(56, "\n            by ");
                __builder.AddContent(57,
#line 59 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                     _topic.UserName

#line default
#line hidden
                                     );
                __builder.AddMarkupContent(58, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(59, "\n");
#line 61 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                if (_topic.EditedDate != null)
                {
#line default
#line hidden
                    __builder.AddContent(60, "            ");
                    __builder.OpenElement(61, "div");
                    __builder.AddAttribute(62, "class", "forum-post-time ml-3 d-inline-block");
                    __builder.AddMarkupContent(63, "\n                Edited ");
                    __builder.AddContent(64,
#line 64 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                         DateTimeFormatting.RelativeDateAgo(Convert.ToDateTime(_topic.EditedDate))

#line default
#line hidden
                                         );
                    __builder.AddMarkupContent(65, "\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(66, "\n");
#line 66 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                }

#line default
#line hidden
                __builder.AddContent(67, "    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(68, "\n    ");
                __builder.OpenElement(69, "section");
                __builder.AddAttribute(70, "class", "forum-topic-text-section");
                __builder.AddMarkupContent(71, "\n        ");
                __builder.OpenComponent <BlazorForum.Pages.Components.Forums.SubComponents.Topic>(72);
                __builder.AddAttribute(73, "ThisTopic", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazorForum.Models.ForumTopic>(
#line 69 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                           _topic

#line default
#line hidden
                                           ));
                __builder.AddAttribute(74, "ForumUpDownVoteEnabled", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Boolean>(
#line 69 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                           _forumUpDownVoteEnabled

#line default
#line hidden
                                           ));
                __builder.AddAttribute(75, "CurrentUserId", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 69 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                           CurrentUserId

#line default
#line hidden
                                           ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(76, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(77, "\n");
#line 71 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"

                if (_posts != null && _posts.Count > 0)
                {
#line default
#line hidden
                    __builder.AddContent(78, "    ");
                    __builder.OpenElement(79, "ul");
                    __builder.AddAttribute(80, "class", "forum-post-ul");
                    __builder.AddMarkupContent(81, "\n");
#line 75 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                    for (var i = 0; i < (_posts.Count); i++)
                    {
#line default
#line hidden
                        __builder.AddContent(82, "            ");
                        __builder.OpenElement(83, "li");
                        __builder.AddMarkupContent(84, "\n                ");
                        __builder.OpenComponent <BlazorForum.Pages.Components.Forums.SubComponents.Post>(85);
                        __builder.AddAttribute(86, "CurrentUserId", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 78 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                   CurrentUserId

#line default
#line hidden
                                                   ));
                        __builder.AddAttribute(87, "ForumUpDownVoteEnabled", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Boolean>(
#line 78 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                   _forumUpDownVoteEnabled

#line default
#line hidden
                                                   ));
                        __builder.AddAttribute(88, "ThisPost", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <BlazorForum.Models.ForumPost>(
#line 78 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                   _posts[i]

#line default
#line hidden
                                                   ));
                        __builder.AddAttribute(89, "ForumId", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Int32>(
#line 78 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                   _category.ForumCategoryId

#line default
#line hidden
                                                   ));
                        __builder.CloseComponent();
                        __builder.AddMarkupContent(90, "\n            ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(91, "\n");
#line 80 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(92, "    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(93, "\n");
#line 82 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                }


#line default
#line hidden
                __builder.AddContent(94, "    ");
                __builder.OpenElement(95, "div");
                __builder.AddAttribute(96, "class", "text-center");
                __builder.AddMarkupContent(97, "\n        ");
                __builder.OpenElement(98, "button");
                __builder.AddAttribute(99, "class", "btn" + " btn-blazorforum" + " " + (
#line 85 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                           loadMoreVisibility

#line default
#line hidden
                                           ));
                __builder.AddAttribute(100, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 85 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                                                                                                                                                         LoadMorePostsAsync

#line default
#line hidden
                                                                                                                                                                         ));
                __builder.AddContent(101,
#line 85 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                     GeneralResources.LoadMore

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(102, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(103, "\n");
#line 87 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(104, "\n");
            __builder.OpenElement(105, "section");
            __builder.AddAttribute(106, "class", "mt-4 mb-3");
            __builder.AddMarkupContent(107, "\n    ");
            __builder.OpenElement(108, "h4");
            __builder.AddContent(109,
#line 90 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                 GeneralResources.PostReply

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(110, "\n    ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Authorization.AuthorizeView>(111);
            __builder.AddAttribute(112, "Authorized", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Authorization.AuthenticationState>)((context) => (__builder2) => {
                __builder2.AddMarkupContent(113, "\n            ");
                __builder2.OpenComponent <BlazorForum.Pages.Components.Forums.PostForm>(114);
                __builder2.AddAttribute(115, "OnPostAdded", new System.Action(
#line 93 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                            UpdatePostsAsync

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(116, "TopicId", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Int32>(
#line 93 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                            id

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(117, "CurrentUserId", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 93 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                            CurrentUserId

#line default
#line hidden
                                            ));
                __builder2.AddAttribute(118, "TopicSlug", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 93 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                            slug

#line default
#line hidden
                                            ));
                __builder2.CloseComponent();
                __builder2.AddMarkupContent(119, "\n        ");
            }
                                                                                                                                                                           ));
            __builder.AddAttribute(120, "NotAuthorized", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Authorization.AuthenticationState>)((context) => (__builder2) => {
                __builder2.AddMarkupContent(121, "\n            ");
                __builder2.OpenElement(122, "div");
                __builder2.AddAttribute(123, "class", "alert alert-secondary");
                __builder2.AddMarkupContent(124, "\n                ");
                __builder2.OpenElement(125, "span");
                __builder2.AddAttribute(126, "class", "text-secondary");
                __builder2.AddContent(127,
#line 97 "D:\CLASS\软件工程\大程\论坛\TeachingForum\BlazorForum\Pages\Components\Forums\ForumTopic.razor"
                                      GeneralResources.MustLoginToPost

#line default
#line hidden
                                      );
                __builder2.CloseElement();
                __builder2.AddMarkupContent(128, "\n            ");
                __builder2.CloseElement();
                __builder2.AddMarkupContent(129, "\n        ");
            }
                                                                                                                                                                              ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(130, "\n");
            __builder.CloseElement();
        }
예제 #17
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "main");
            __builder.AddMarkupContent(2, "\r\n");
#line 5 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
            if (ordersWithStatus == null)
            {
#line default
#line hidden
                __builder.AddContent(3, "Loading...");
#line 7 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
            }
            else if (!ordersWithStatus.Any())
            {
#line default
#line hidden
                __builder.AddContent(4, "        ");
                __builder.AddMarkupContent(5, "<h2>No orders placed</h2>\r\n        ");
                __builder.AddMarkupContent(6, "<a class=\"btn btn-success\" href>Order some pizza</a>\r\n");
#line 13 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
            }
            else
            {
#line default
#line hidden
#line 16 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                foreach (var item in ordersWithStatus)
                {
#line default
#line hidden
                    __builder.AddContent(7, "            ");
                    __builder.OpenElement(8, "div");
                    __builder.AddAttribute(9, "class", "list-group-item");
                    __builder.AddMarkupContent(10, "\r\n                ");
                    __builder.OpenElement(11, "div");
                    __builder.AddAttribute(12, "class", "col");
                    __builder.AddMarkupContent(13, "\r\n                    ");
                    __builder.OpenElement(14, "h5");
                    __builder.AddContent(15,
#line 20 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                                         item.Order.CreatedTime.ToLongDateString()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(16, "\r\n                    Items:\r\n                    ");
                    __builder.OpenElement(17, "strong");
                    __builder.AddContent(18,
#line 22 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                                         item.Order.Pizzas.Count

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(19, "\r\n                    Total price:\r\n                    ");
                    __builder.OpenElement(20, "strong");
                    __builder.AddContent(21, "$ ");
                    __builder.AddContent(22,
#line 24 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                                         item.Order.GetFormattedTotalPrice()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(23, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(24, "\r\n                ");
                    __builder.OpenElement(25, "div");
                    __builder.AddAttribute(26, "class", "col");
                    __builder.AddMarkupContent(27, "\r\n                    Status: ");
                    __builder.OpenElement(28, "strong");
                    __builder.AddContent(29,
#line 27 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                                         item.StatusText

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(30, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(31, "\r\n                ");
                    __builder.OpenElement(32, "div");
                    __builder.AddAttribute(33, "class", "col flex-grow-0");
                    __builder.AddMarkupContent(34, "\r\n                    ");
                    __builder.OpenElement(35, "a");
                    __builder.AddAttribute(36, "href", "myorders/" + (
#line 30 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                                               item.Order.OrderId

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(37, "class", "btn btn-success");
                    __builder.AddContent(38, "Track >");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(39, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(40, "\r\n            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(41, "\r\n");
#line 33 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
                }

#line default
#line hidden
#line 33 "D:\Source\Repos\BlazzinPizza\BlazingPizza.Client\Pages\MyOrders.razor"
            }

#line default
#line hidden
            __builder.CloseElement();
        }
예제 #18
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "top-row pl-4 navbar navbar-dark");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "button");
            __builder.AddAttribute(4, "class", "navbar-toggler");
            __builder.AddAttribute(5, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 6 "C:\Users\smj\source\repos\lms\Shared\NavMenu.razor"
                                                                                                                                                                   ToggleNavMenu

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddMarkupContent(6, "\r\n        <span class=\"navbar-toggler-icon\"></span>\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(7, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(8, "\r\n");
            __builder.AddMarkupContent(9, "<div class=\"col text-center\">\r\n    <img src=\"img/logo.png\" alt=\"logo\">\r\n</div>\r\n<br>\r\n<br>\r\n");
            __builder.AddMarkupContent(10, "<div class=\"col text-center\">\r\n    <p class=\"h5\" style=\"color:white\">License Management System</p>\r\n</div>\r\n");
            __builder.OpenElement(11, "div");
            __builder.AddAttribute(12, "class", "userInfo");
            __builder.AddMarkupContent(13, "\r\n    ");
            __builder.AddMarkupContent(14, "<div class=\"userAvatar\">\r\n        <img src=\"img/user.png\">\r\n    </div>\r\n    ");
            __builder.OpenElement(15, "div");
            __builder.AddAttribute(16, "class", "username");
            __builder.AddMarkupContent(17, "\r\n        ");
            __builder.OpenElement(18, "h3");
            __builder.AddContent(19,
#line 23 "C:\Users\smj\source\repos\lms\Shared\NavMenu.razor"
                                 username

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(20, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(21, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(22, "\r\n<br>\r\n\r\n");
            __builder.OpenElement(23, "div");
            __builder.AddAttribute(24, "class",
#line 28 "C:\Users\smj\source\repos\lms\Shared\NavMenu.razor"
                                   NavMenuCssClass

#line default
#line hidden
                                   );
            __builder.AddAttribute(25, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 28 "C:\Users\smj\source\repos\lms\Shared\NavMenu.razor"
                                                                                                                                                                    ToggleNavMenu

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddMarkupContent(26, "\r\n    ");
            __builder.OpenElement(27, "ul");
            __builder.AddAttribute(28, "class", "nav flex-column");
            __builder.AddMarkupContent(29, "\r\n        ");
            __builder.OpenElement(30, "li");
            __builder.AddAttribute(31, "class", "nav-item px-3");
            __builder.AddMarkupContent(32, "\r\n            ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(33);
            __builder.AddAttribute(34, "class", "nav-link");
            __builder.AddAttribute(35, "href", "");
            __builder.AddAttribute(36, "Match", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.Routing.NavLinkMatch>(
#line 31 "C:\Users\smj\source\repos\lms\Shared\NavMenu.razor"
                                       NavLinkMatch.All

#line default
#line hidden
                                       ));
            __builder.AddAttribute(37, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(38, "\r\n                <img src=\"img/sideMenu04.png\"> &nbsp; Home\r\n            ");
            }
                                                                                                        ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(39, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(40, "\r\n        ");
            __builder.OpenElement(41, "li");
            __builder.AddAttribute(42, "class", "nav-item px-3");
            __builder.AddMarkupContent(43, "\r\n            ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(44);
            __builder.AddAttribute(45, "class", "nav-link");
            __builder.AddAttribute(46, "href", "default.aspx/licenses");
            __builder.AddAttribute(47, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(48, "\r\n                <img src=\"img/sideMenu02.png\"> &nbsp; Licenses\r\n            ");
            }
                                                                                                        ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(49, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(50, "\r\n        ");
            __builder.OpenElement(51, "li");
            __builder.AddAttribute(52, "class", "nav-item px-3");
            __builder.AddMarkupContent(53, "\r\n            ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(54);
            __builder.AddAttribute(55, "class", "nav-link");
            __builder.AddAttribute(56, "href", "default.aspx/tasks/Not Started");
            __builder.AddAttribute(57, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(58, "\r\n                <img src=\"img/sideMenu01.png\"> &nbsp; Tasks\r\n            ");
            }
                                                                                                        ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(59, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(60, "\r\n        ");
            __builder.OpenElement(61, "li");
            __builder.AddAttribute(62, "class", "nav-item px-3");
            __builder.AddMarkupContent(63, "\r\n            ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(64);
            __builder.AddAttribute(65, "class", "nav-link");
            __builder.AddAttribute(66, "href", "../SitePages/Home.aspx");
            __builder.AddAttribute(67, "target", "_blank");
            __builder.AddAttribute(68, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(69, "\r\n                <img src=\"img/sideMenu03.png\"> &nbsp; Admin Portal\r\n            ");
            }
                                                                                                        ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(70, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(71, "\r\n        ");
            __builder.OpenElement(72, "li");
            __builder.AddAttribute(73, "class", "nav-item px-3");
            __builder.AddMarkupContent(74, "\r\n            ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(75);
            __builder.AddAttribute(76, "class", "nav-link");
            __builder.AddAttribute(77, "href", "../_layouts/closeConnection.aspx?loginasanotheruser=true");
            __builder.AddAttribute(78, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                __builder2.AddMarkupContent(79, "\r\n                <img src=\"img/logout.png\"> &nbsp; Logout\r\n            ");
            }
                                                                                                        ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(80, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(81, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(82, "\r\n");
            __builder.CloseElement();
        }
예제 #19
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 4 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
            if (BreadCrumbPages.Any())
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenElement(1, "span");
                __builder.AddAttribute(2, "class", "app-breadcrumbs");
                __builder.AddMarkupContent(3, "\n        ");
                __builder.OpenElement(4, "ol");
                __builder.AddAttribute(5, "class", "breadcrumb");
                __builder.AddMarkupContent(6, "\n");
#line 8 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                foreach (var p in BreadCrumbPages)
                {
                    if (p.PageId == PageState.Page.PageId)
                    {
#line default
#line hidden
                        __builder.AddContent(7, "                    ");
                        __builder.OpenElement(8, "li");
                        __builder.AddAttribute(9, "class", "breadcrumb-item active");
                        __builder.AddMarkupContent(10, "\n                        ");
                        __builder.OpenElement(11, "a");
                        __builder.AddAttribute(12, "href",
#line 13 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                                               NavigateUrl(p.Path)

#line default
#line hidden
                                               );
                        __builder.AddContent(13,
#line 13 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                                             p.Name

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(14, "\n                    ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(15, "\n");
#line 15 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                    }
                    else
                    {
#line default
#line hidden
                        __builder.AddContent(16, "                    ");
                        __builder.OpenElement(17, "li");
                        __builder.AddAttribute(18, "class", "breadcrumb-item");
                        __builder.AddMarkupContent(19, "\n                        ");
                        __builder.OpenElement(20, "a");
                        __builder.AddAttribute(21, "href",
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                                               NavigateUrl(p.Path)

#line default
#line hidden
                                               );
                        __builder.AddContent(22,
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                                             p.Name

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(23, "\n                    ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(24, "\n");
#line 21 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
                    }
                }

#line default
#line hidden
                __builder.AddContent(25, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(26, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(27, "\n");
#line 25 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Themes/Controls/Breadcrumbs.razor"
            }

#line default
#line hidden
        }
예제 #20
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 6 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
            if (cargando)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenComponent <SurcosBlazor.Client.Shared.Loading>(1);
                __builder.CloseComponent();
                __builder.AddMarkupContent(2, "\r\n");
#line 9 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
            }

#line default
#line hidden
#line 10 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
            if (formulaProducto != null)
            {
#line default
#line hidden
                __builder.AddContent(3, "    ");
                __builder.OpenComponent <Microsoft.AspNetCore.Components.Forms.EditForm>(4);
                __builder.AddAttribute(5, "Model", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Object>(
#line 13 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                           formulaProducto

#line default
#line hidden
                                           ));
                __builder.AddAttribute(6, "OnValidSubmit", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <Microsoft.AspNetCore.Components.Forms.EditContext> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Forms.EditContext>(this,
#line 13 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                                                                                                                                                                                                                                                                                                                           async() => { cargando = true; await Confirmar(); }

#line default
#line hidden
                                                                                                                                                                                                                                                                                                                                                           )));
                __builder.AddAttribute(7, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Forms.EditContext>)((context) => (__builder2) => {
                    __builder2.AddMarkupContent(8, "\r\n\r\n        ");
                    __builder2.OpenElement(9, "h3");
                    __builder2.AddContent(10,
#line 15 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                          $"{this.productoPresentacion?.Producto.nombre}, {this.productoPresentacion?.PresentacionProducto.nombre}"

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(11, "\r\n\r\n\r\n        ");
                    __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator>(12);
                    __builder2.CloseComponent();
                    __builder2.AddMarkupContent(13, "\r\n       \r\n\r\n        ");
                    __builder2.OpenElement(14, "div");
                    __builder2.AddMarkupContent(15, "\r\n            Cantidad de KG/LT a producir: ");
                    __builder2.AddContent(16,
#line 22 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                          this.productoPresentacion?.PresentacionProducto.cantidad

#line default
#line hidden
                                          );
                    __builder2.AddMarkupContent(17, "\r\n        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(18, "\r\n\r\n\r\n        ");
                    __builder2.OpenElement(19, "div");
                    __builder2.AddAttribute(20, "class", "border-bottom border-secondary my-4 d-flex justify-content-between");
                    __builder2.AddMarkupContent(21, "\r\n            ");
                    __builder2.AddMarkupContent(22, "<h3 class>\r\n                <strong>Ingredientes</strong>\r\n            </h3>\r\n            ");
                    __builder2.OpenElement(23, "div");
                    __builder2.AddAttribute(24, "class", "btn btn-sm btn-light my-1 border border-dark");
                    __builder2.AddAttribute(25, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 31 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                                                                                                                                             agregarDetalleFormula

#line default
#line hidden
                                                                                                                                                                             ));
                    __builder2.AddAttribute(26, "style", "cursor:pointer");
                    __builder2.AddContent(27, "Agregar elemento");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(28, "\r\n        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(29, "\r\n        ");
                    __Blazor.SurcosBlazor.Client.Pages.BackOffice.Configuracion.ProductoC.FormulaProductoC.FormulaProductoForm.TypeInference.CreateListadoGenerico_0(__builder2, 30, 31,
#line 33 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                                                                                                                                     formulaProducto.DetallesFormula

#line default
#line hidden
                                                                                                                                                                     , 32, (__builder3) => {
                        __builder3.AddMarkupContent(33, "\r\n                ");
                        __builder3.OpenElement(34, "table");
                        __builder3.AddAttribute(35, "class", "table table-sm");
                        __builder3.AddMarkupContent(36, "\r\n                    ");
                        __builder3.AddMarkupContent(37, @"<thead>
                        <tr class=""bg-dark text-white"">
                            <th>Producto</th>
                            <th>Costo</th>

                            <th>Cantidad KG/LT/UNI</th>

                            <th>$</th>
                            <th></th>

                        </tr>
                    </thead>
                    ");
                        __builder3.OpenElement(38, "tbody");
                        __builder3.AddMarkupContent(39, "\r\n");
#line 49 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                        foreach (DetalleFormula detalle in formulaProducto.DetallesFormula)
                        {
#line default
#line hidden
                            __builder3.AddContent(40, "                            ");
                            __builder3.OpenElement(41, "tr");
                            __builder3.AddMarkupContent(42, "\r\n                                ");
                            __builder3.OpenElement(43, "td");
                            __builder3.AddMarkupContent(44, "\r\n");
#line 53 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                            if (detalle.ProductoPresentacion?.Id != 0)
                            {
#line default
#line hidden
                                __builder3.AddContent(45, "                                        ");
                                __builder3.OpenElement(46, "div");
                                __builder3.AddAttribute(47, "class", "d-flex");
                                __builder3.AddMarkupContent(48, "\r\n                                            ");
                                __builder3.OpenElement(49, "img");
                                __builder3.AddAttribute(50, "src",
#line 56 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                        detalle.ProductoPresentacion?.Producto?.Foto

#line default
#line hidden
                                                        );
                                __builder3.AddAttribute(51, "style", "width:30px; height:30px;border-radius:50%");
                                __builder3.CloseElement();
                                __builder3.AddMarkupContent(52, "\r\n                                            ");
                                __builder3.OpenElement(53, "span");
                                __builder3.AddAttribute(54, "class", "badge");
                                __builder3.AddContent(55,
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                      detalle.ProductoPresentacion?.Producto?.nombre

#line default
#line hidden
                                                      );
                                __builder3.AddContent(56, ", ");
                                __builder3.AddContent(57,
#line 57 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                      detalle.ProductoPresentacion?.PresentacionProducto?.nombre

#line default
#line hidden
                                                      );
                                __builder3.CloseElement();
                                __builder3.AddMarkupContent(58, "\r\n                                        ");
                                __builder3.CloseElement();
                                __builder3.AddMarkupContent(59, "\r\n");
#line 59 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                            }
                            else
                            {
#line default
#line hidden
                                __builder3.AddContent(60, "                                        ");
                                __builder3.OpenElement(61, "div");
                                __builder3.AddMarkupContent(62, "\r\n\r\n                                            ");
                                __builder3.OpenComponent <SurcosBlazor.Client.Shared.InputBuscaTypeahead <ProductoPresentacion> >(63);
                                __builder3.AddAttribute(64, "SearchMethod", new System.Func <System.String, System.Threading.Tasks.Task <System.Collections.Generic.IEnumerable <ProductoPresentacion> > >(
#line 65 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                            (async(string filtro) => await BuscarProductos(filtro))

#line default
#line hidden
                                                            ));
                                __builder3.AddAttribute(65, "ElementoSeleccionado", new System.Func <ProductoPresentacion, ProductoPresentacion>(
#line 66 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                            ((ProductoPresentacion prod) => {
                                    detalle.ProductoPresentacion = prod;
                                    detalle.ProductoPresentacionId = prod.Id;
                                    this.StateHasChanged();
                                    return(prod);
                                })

#line default
#line hidden
                                                            ));
                                __builder3.AddAttribute(66, "MyResultTemplate", (Microsoft.AspNetCore.Components.RenderFragment <ProductoPresentacion>)((productoPresentacion) => (__builder4) => {
                                    __builder4.AddMarkupContent(67, "\r\n                                                    ");
                                    __builder4.OpenElement(68, "img");
                                    __builder4.AddAttribute(69, "src",
#line 73 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                            productoPresentacion.Producto.Foto

#line default
#line hidden
                                                            );
                                    __builder4.AddAttribute(70, "style", "width:30px; height:30px;border-radius:50%");
                                    __builder4.CloseElement();
                                    __builder4.AddMarkupContent(71, "\r\n                                                    ");
                                    __builder4.AddContent(72,
#line 74 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                          productoPresentacion.Producto.nombre

#line default
#line hidden
                                                          );
                                    __builder4.AddContent(73, ", ");
                                    __builder4.AddContent(74,
#line 74 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                          productoPresentacion.PresentacionProducto.nombre

#line default
#line hidden
                                                          );
                                    __builder4.AddMarkupContent(75, "\r\n                                                ");
                                }
                                                                                                                                                        ));
                                __builder3.CloseComponent();
                                __builder3.AddMarkupContent(76, "\r\n                                        ");
                                __builder3.CloseElement();
                                __builder3.AddMarkupContent(77, "\r\n");
#line 78 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                            }

#line default
#line hidden
                            __builder3.AddMarkupContent(78, "\r\n\r\n\r\n\r\n                                ");
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(79, "\r\n\r\n                                ");
                            __builder3.OpenElement(80, "td");
                            __builder3.OpenElement(81, "strong");
                            __builder3.AddContent(82, "$ ");
                            __builder3.AddContent(83,
#line 86 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                  (detalle.ProductoPresentacion?.costo)?.ToString("0.00")

#line default
#line hidden
                                                  );
                            __builder3.CloseElement();
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(84, "\r\n\r\n                                ");
                            __builder3.OpenElement(85, "td");
                            __builder3.OpenElement(86, "input");
                            __builder3.AddAttribute(87, "class", "form-control");
                            __builder3.AddAttribute(88, "type", "number");
                            __builder3.AddAttribute(89, "name", "cantidad");
                            __builder3.AddAttribute(90, "step", "0.0001");
                            __builder3.AddAttribute(91, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 88 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                        detalle.cantidad

#line default
#line hidden
                                                        , culture: global::System.Globalization.CultureInfo.InvariantCulture));
                            __builder3.AddAttribute(92, "oninput", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => detalle.cantidad = __value, detalle.cantidad, culture: global::System.Globalization.CultureInfo.InvariantCulture));
                            __builder3.SetUpdatesAttributeName("value");
                            __builder3.CloseElement();
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(93, "\r\n\r\n\r\n                                ");
                            __builder3.OpenElement(94, "td");
                            __builder3.OpenElement(95, "strong");
                            __builder3.AddContent(96, "$ ");
                            __builder3.AddContent(97,
#line 91 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                  (detalle.ProductoPresentacion?.costo * (detalle.cantidad / detalle.ProductoPresentacion?.PresentacionProducto?.cantidad))?.ToString("0.00")

#line default
#line hidden
                                                  );
                            __builder3.CloseElement();
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(98, "\r\n\r\n                                ");
                            __builder3.OpenElement(99, "td");
                            __builder3.AddMarkupContent(100, "\r\n                                    ");
                            __builder3.OpenElement(101, "strong");
                            __builder3.AddMarkupContent(102, "\r\n                                        ");
                            __builder3.OpenElement(103, "i");
                            __builder3.AddAttribute(104, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 95 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                                                                                                                                                                      (() => formulaProducto.DetallesFormula.Remove(detalle))

#line default
#line hidden
                                                                                                                                                                                      ));
                            __builder3.AddAttribute(105, "class", "far fa-trash-alt text-danger mr-1");
                            __builder3.AddAttribute(106, "style", "cursor:pointer");
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(107, "\r\n                                    ");
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(108, "\r\n                                ");
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(109, "\r\n\r\n                            ");
                            __builder3.CloseElement();
                            __builder3.AddMarkupContent(110, "\r\n");
#line 100 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                        }

#line default
#line hidden
                        __builder3.AddContent(111, "                        ");
                        __builder3.OpenElement(112, "tr");
                        __builder3.AddAttribute(113, "class", "bg-dark text-white");
                        __builder3.AddMarkupContent(114, "\r\n                            <th></th>\r\n                            <th></th>\r\n                            <th></th>\r\n                            <th></th>\r\n\r\n                            ");
                        __builder3.OpenElement(115, "th");
                        __builder3.AddContent(116, "$ ");
                        __builder3.AddContent(117,
#line 108 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                              formulaProducto.total.ToString("0.00")

#line default
#line hidden
                                              );
                        __builder3.AddContent(118, " ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(119, "\r\n\r\n                        ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(120, "\r\n                    ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(121, "\r\n                ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(122, "\r\n\r\n            ");
                    }
                                                                                                                                                                     );
                    __builder2.AddMarkupContent(123, "\r\n\r\n        ");
                    __builder2.OpenElement(124, "button");
                    __builder2.AddAttribute(125, "class", "btn-outline-olive btn-block");
                    __builder2.AddAttribute(126, "type", "submit");
                    __builder2.AddContent(127,
#line 117 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
                                          accion

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(128, "\r\n    ");
                }
                                                                                                                                                               ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(129, "\r\n");
#line 119 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Configuracion\ProductoC\FormulaProductoC\FormulaProductoForm.razor"
            }

#line default
#line hidden
        }
예제 #21
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 8 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
            if (_packages != null)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenComponent <Oqtane.Modules.Controls.TabStrip>(1);
                __builder.AddAttribute(2, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddMarkupContent(3, "\n");
#line 11 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                    if (_packages.Count > 0)
                    {
#line default
#line hidden
                        __builder2.AddContent(4, "            ");
                        __builder2.OpenComponent <Oqtane.Modules.Controls.TabPanel>(5);
                        __builder2.AddAttribute(6, "Name", "Download");
                        __builder2.AddAttribute(7, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
                            __builder3.AddMarkupContent(8, "\n                ");
                            __builder3.OpenComponent <Oqtane.Modules.Controls.ModuleMessage>(9);
                            __builder3.AddAttribute(10, "Type", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Oqtane.Modules.MessageType>(
#line 14 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                        MessageType.Info

#line default
#line hidden
                                                        ));
                            __builder3.AddAttribute(11, "Message", "Download one or more themes from the list below. Once you are ready click Install to complete the installation.");
                            __builder3.CloseComponent();
                            __builder3.AddMarkupContent(12, "\n                ");
                            __Blazor.Oqtane.Modules.Admin.Themes.Add.TypeInference.CreatePager_0(__builder3, 13, 14,
#line 15 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                                                                 _packages

#line default
#line hidden
                                                                                                 , 15, (__builder4) => {
                                __builder4.AddMarkupContent(16, "\n                        ");
                                __builder4.AddMarkupContent(17, "<th>Name</th>\n                        ");
                                __builder4.AddMarkupContent(18, "<th>Version</th>\n                        <th style=\"width: 1px;\"></th>\n                    ");
                            }
                                                                                                 , 19, (context) => (__builder4) => {
                                __builder4.AddMarkupContent(20, "\n                        ");
                                __builder4.OpenElement(21, "td");
                                __builder4.AddContent(22,
#line 22 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                      context.Name

#line default
#line hidden
                                                      );
                                __builder4.CloseElement();
                                __builder4.AddMarkupContent(23, "\n                        ");
                                __builder4.OpenElement(24, "td");
                                __builder4.AddContent(25,
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                      context.Version

#line default
#line hidden
                                                      );
                                __builder4.CloseElement();
                                __builder4.AddMarkupContent(26, "\n                        ");
                                __builder4.OpenElement(27, "td");
                                __builder4.AddMarkupContent(28, "\n                            ");
                                __builder4.OpenElement(29, "button");
                                __builder4.AddAttribute(30, "type", "button");
                                __builder4.AddAttribute(31, "class", "btn btn-primary");
                                __builder4.AddAttribute(32, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 25 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                                                                                                                                                         async() => await DownloadTheme(context.PackageId, context.Version)

#line default
#line hidden
                                                                                                                                                                                         ));
                                __builder4.AddContent(33, "Download");
                                __builder4.CloseElement();
                                __builder4.AddMarkupContent(34, "\n                        ");
                                __builder4.CloseElement();
                                __builder4.AddMarkupContent(35, "\n                    ");
                            }
                                                                                                 );
                            __builder3.AddMarkupContent(36, "\n            ");
                        }
                                                                                                                    ));
                        __builder2.CloseComponent();
                        __builder2.AddMarkupContent(37, "\n");
#line 30 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                    }

#line default
#line hidden
                    __builder2.AddContent(38, "        ");
                    __builder2.OpenComponent <Oqtane.Modules.Controls.TabPanel>(39);
                    __builder2.AddAttribute(40, "Name", "Upload");
                    __builder2.AddAttribute(41, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
                        __builder3.AddMarkupContent(42, "\n            ");
                        __builder3.OpenElement(43, "table");
                        __builder3.AddAttribute(44, "class", "table table-borderless");
                        __builder3.AddMarkupContent(45, "\n                ");
                        __builder3.OpenElement(46, "tr");
                        __builder3.AddMarkupContent(47, "\n                    ");
                        __builder3.OpenElement(48, "td");
                        __builder3.AddMarkupContent(49, "\n                        ");
                        __builder3.OpenComponent <Oqtane.Modules.Controls.Label>(50);
                        __builder3.AddAttribute(51, "HelpText", "Upload one or more theme packages. Once they are uploaded click Install to complete the installation.");
                        __builder3.AddAttribute(52, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
                            __builder4.AddContent(53, "Theme: ");
                        }
                                                                                                                     ));
                        __builder3.CloseComponent();
                        __builder3.AddMarkupContent(54, "\n                    ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(55, "\n                    ");
                        __builder3.OpenElement(56, "td");
                        __builder3.AddMarkupContent(57, "\n                        ");
                        __builder3.OpenComponent <Oqtane.Modules.Controls.FileManager>(58);
                        __builder3.AddAttribute(59, "Filter", "nupkg");
                        __builder3.AddAttribute(60, "ShowFiles", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Boolean>(
#line 38 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                    false

#line default
#line hidden
                                                    ));
                        __builder3.AddAttribute(61, "Folder", "Themes");
                        __builder3.AddAttribute(62, "UploadMultiple", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Boolean>(
#line 38 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                    true

#line default
#line hidden
                                                    ));
                        __builder3.CloseComponent();
                        __builder3.AddMarkupContent(63, "\n                    ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(64, "\n                ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(65, "\n            ");
                        __builder3.CloseElement();
                        __builder3.AddMarkupContent(66, "\n        ");
                    }
                                                                                                                 ));
                    __builder2.CloseComponent();
                    __builder2.AddMarkupContent(67, "\n    ");
                }
                                                                                                           ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(68, "\n");
                __builder.AddContent(69, "    ");
                __builder.OpenElement(70, "button");
                __builder.AddAttribute(71, "type", "button");
                __builder.AddAttribute(72, "class", "btn btn-success");
                __builder.AddAttribute(73, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 45 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                                                                                                                                                        InstallThemes

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddContent(74, "Install");
                __builder.CloseElement();
                __builder.AddMarkupContent(75, "\n    ");
                __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(76);
                __builder.AddAttribute(77, "class", "btn btn-secondary");
                __builder.AddAttribute(78, "href",
#line 46 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
                                       NavigateUrl()

#line default
#line hidden
                                       );
                __builder.AddAttribute(79, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddContent(80, "Cancel");
                }
                                                                                                            ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(81, "\n");
#line 47 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Themes/Add.razor"
            }

#line default
#line hidden
        }
예제 #22
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 11 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
            if (product != null)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenElement(1, "h3");
                __builder.AddContent(2, "ProductDetail for ");
                __builder.AddContent(3,
#line 13 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                     product.ProductName

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(4, "\r\n    ");
                __builder.OpenComponent <Microsoft.AspNetCore.Components.Forms.EditForm>(5);
                __builder.AddAttribute(6, "Model", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Object>(
#line 14 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                           product

#line default
#line hidden
                                           ));
                __builder.AddAttribute(7, "OnValidSubmit", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <Microsoft.AspNetCore.Components.Forms.EditContext> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Forms.EditContext>(this,
#line 14 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                                                                                                                                                                                                                                                                                                                           HandleSave

#line default
#line hidden
                                                                                                                                                                                                                                                                                                                                                           )));
                __builder.AddAttribute(8, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment <Microsoft.AspNetCore.Components.Forms.EditContext>)((context) => (__builder2) => {
                    __builder2.AddMarkupContent(9, "\r\n        ");
                    __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator>(10);
                    __builder2.CloseComponent();
                    __builder2.AddMarkupContent(11, "\r\n        ");
                    __builder2.OpenElement(12, "div");
                    __builder2.AddAttribute(13, "class", "form-group");
                    __builder2.AddMarkupContent(14, "\r\n            ");
                    __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.InputText>(15);
                    __builder2.AddAttribute(16, "Placeholder", "Ürün adı");
                    __builder2.AddAttribute(17, "Class", "form-control");
                    __builder2.AddAttribute(18, "Id", "productName");
                    __builder2.AddAttribute(19, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 18 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                product.ProductName

#line default
#line hidden
                                                ));
                    __builder2.AddAttribute(20, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <System.String> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <System.String>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => product.ProductName = __value, product.ProductName))));
                    __builder2.AddAttribute(21, "ValueExpression", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Linq.Expressions.Expression <System.Func <System.String> > >(() => product.ProductName));
                    __builder2.CloseComponent();
                    __builder2.AddMarkupContent(22, "\r\n            ");
                    __Blazor.DemoBlazor.Pages.ProductDetail.TypeInference.CreateValidationMessage_0(__builder2, 23, 24,
#line 19 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                                                                    () => product.ProductName

#line default
#line hidden
                                                                                                    );
                    __builder2.AddMarkupContent(25, "\r\n        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(26, "\r\n\r\n        ");
                    __builder2.OpenElement(27, "div");
                    __builder2.AddAttribute(28, "class", "form-group");
                    __builder2.AddMarkupContent(29, "\r\n            ");
                    __builder2.OpenComponent <Microsoft.AspNetCore.Components.Forms.InputTextArea>(30);
                    __builder2.AddAttribute(31, "Placeholder", "Ürün açıklaması");
                    __builder2.AddAttribute(32, "Class", "form-control");
                    __builder2.AddAttribute(33, "Id", "description");
                    __builder2.AddAttribute(34, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 23 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                product.QuantityPerUnit

#line default
#line hidden
                                                ));
                    __builder2.AddAttribute(35, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <System.String> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <System.String>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => product.QuantityPerUnit = __value, product.QuantityPerUnit))));
                    __builder2.AddAttribute(36, "ValueExpression", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Linq.Expressions.Expression <System.Func <System.String> > >(() => product.QuantityPerUnit));
                    __builder2.CloseComponent();
                    __builder2.AddMarkupContent(37, "\r\n            ");
                    __Blazor.DemoBlazor.Pages.ProductDetail.TypeInference.CreateValidationMessage_1(__builder2, 38, 39,
#line 24 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                                                                    () => product.QuantityPerUnit

#line default
#line hidden
                                                                                                    );
                    __builder2.AddMarkupContent(40, "\r\n        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(41, "\r\n\r\n        ");
                    __builder2.OpenElement(42, "div");
                    __builder2.AddAttribute(43, "class", "form-group");
                    __builder2.AddMarkupContent(44, "\r\n");
#line 28 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                    if (categories != null)
                    {
#line default
#line hidden
                        __builder2.AddContent(45, "                ");
                        __Blazor.DemoBlazor.Pages.ProductDetail.TypeInference.CreateInputSelectNumber_2(__builder2, 46, 47, "form-control", 48, "categoryId", 49,
#line 30 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                                                                        product.CategoryId

#line default
#line hidden
                                                                                                        , 50, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => product.CategoryId = __value, product.CategoryId)), 51, () => product.CategoryId, 52, (__builder3) => {
                            __builder3.AddMarkupContent(53, "\r\n");
#line 31 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                            foreach (var category in categories)
                            {
#line default
#line hidden
                                __builder3.AddContent(54, "                        ");
                                __builder3.OpenElement(55, "option");
                                __builder3.AddAttribute(56, "value",
#line 33 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                        category.CategoryId

#line default
#line hidden
                                                        );
                                __builder3.AddContent(57,
#line 33 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                      category.CategoryName

#line default
#line hidden
                                                      );
                                __builder3.CloseElement();
                                __builder3.AddMarkupContent(58, "\r\n");
#line 34 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                            }

#line default
#line hidden
                            __builder3.AddMarkupContent(59, "                    /**/\r\n                    /**/\r\n                ");
                        }
                                                                                                        );
                        __builder2.AddMarkupContent(60, "\r\n");
#line 38 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                    }

#line default
#line hidden
                    __builder2.AddMarkupContent(61, "\r\n            ");
                    __Blazor.DemoBlazor.Pages.ProductDetail.TypeInference.CreateValidationMessage_3(__builder2, 62, 63,
#line 40 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
                                                                                                    () => product.CategoryId

#line default
#line hidden
                                                                                                    );
                    __builder2.AddMarkupContent(64, "\r\n        ");
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(65, "\r\n\r\n        ");
                    __builder2.AddMarkupContent(66, "<button class=\"btn btn-primary\" type=\"submit\">Kaydet</button>\r\n\r\n    ");
                }
                                                                                                                                                               ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(67, "\r\n");
#line 46 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(68, "    ");
                __builder.AddMarkupContent(69, "<h4>Geliyor...</h4>\r\n");
#line 50 "C:\Users\Lenovo\source\repos\DemoBlazor\DemoBlazor\Pages\ProductDetail.razor"
            }

#line default
#line hidden
        }
예제 #23
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 6 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
            if (_folders != null)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.OpenElement(1, "table");
                __builder.AddAttribute(2, "class", "table table-borderless");
                __builder.AddMarkupContent(3, "\n        ");
                __builder.OpenElement(4, "tr");
                __builder.AddMarkupContent(5, "\n            ");
                __builder.OpenElement(6, "td");
                __builder.AddMarkupContent(7, "\n                ");
                __builder.OpenComponent <Oqtane.Modules.Controls.Label>(8);
                __builder.AddAttribute(9, "For", "parent");
                __builder.AddAttribute(10, "HelpText", "Select the parent folder");
                __builder.AddAttribute(11, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddContent(12, "Parent: ");
                }
                                                                                                            ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(13, "\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(14, "\n            ");
                __builder.OpenElement(15, "td");
                __builder.AddMarkupContent(16, "\n                ");
                __builder.OpenElement(17, "select");
                __builder.AddAttribute(18, "id", "parent");
                __builder.AddAttribute(19, "class", "form-control");
                __builder.AddAttribute(20, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 14 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                           _parentId

#line default
#line hidden
                                           ));
                __builder.AddAttribute(21, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => _parentId = __value, _parentId));
                __builder.SetUpdatesAttributeName("value");
                __builder.AddMarkupContent(22, "\n");
#line 15 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                if (PageState.QueryString.ContainsKey("id"))
                {
#line default
#line hidden
                    __builder.AddContent(23, "                        ");
                    __builder.OpenElement(24, "option");
                    __builder.AddAttribute(25, "value", "-1");
                    __builder.AddContent(26, "<No Parent>");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(27, "\n");
#line 18 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                }

#line default
#line hidden
#line 19 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                foreach (Folder folder in _folders)
                {
#line default
#line hidden
                    __builder.AddContent(28, "                        ");
                    __builder.OpenElement(29, "option");
                    __builder.AddAttribute(30, "value",
#line 21 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                           folder.FolderId

#line default
#line hidden
                                           );
                    __builder.AddContent(31,
#line 21 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                         new string('-', folder.Level * 2)

#line default
#line hidden
                                         );
                    __builder.AddContent(32,
#line 21 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                         folder.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(33, "\n");
#line 22 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                }

#line default
#line hidden
                __builder.AddContent(34, "                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(35, "\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(36, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(37, "\n        ");
                __builder.OpenElement(38, "tr");
                __builder.AddMarkupContent(39, "\n            ");
                __builder.OpenElement(40, "td");
                __builder.AddMarkupContent(41, "\n                ");
                __builder.OpenComponent <Oqtane.Modules.Controls.Label>(42);
                __builder.AddAttribute(43, "for", "name");
                __builder.AddAttribute(44, "HelpText", "Enter the folder name");
                __builder.AddAttribute(45, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddContent(46, "Name: ");
                }
                                                                                                            ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(47, "\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(48, "\n            ");
                __builder.OpenElement(49, "td");
                __builder.AddMarkupContent(50, "\n                ");
                __builder.OpenElement(51, "input");
                __builder.AddAttribute(52, "id", "name");
                __builder.AddAttribute(53, "class", "form-control");
                __builder.AddAttribute(54, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 31 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                           _name

#line default
#line hidden
                                           ));
                __builder.AddAttribute(55, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => _name = __value, _name));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(56, "\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(57, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(58, "\n        ");
                __builder.OpenElement(59, "tr");
                __builder.AddMarkupContent(60, "\n            ");
                __builder.OpenElement(61, "td");
                __builder.AddAttribute(62, "colspan", "2");
                __builder.AddAttribute(63, "align", "center");
                __builder.AddMarkupContent(64, "\n                ");
                __builder.OpenComponent <Oqtane.Modules.Controls.Label>(65);
                __builder.AddAttribute(66, "For", "permissions");
                __builder.AddAttribute(67, "HelpText", "Select the permissions you want for the folder");
                __builder.AddAttribute(68, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddContent(69, "Permissions: ");
                }
                                                                                                            ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(70, "\n                ");
                __builder.OpenComponent <Oqtane.Modules.Controls.PermissionGrid>(71);
                __builder.AddAttribute(72, "EntityName", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 37 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                           EntityNames.Folder

#line default
#line hidden
                                           ));
                __builder.AddAttribute(73, "PermissionNames", "Browse,View,Edit");
                __builder.AddAttribute(74, "Permissions", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 37 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                           _permissions

#line default
#line hidden
                                           ));
                __builder.AddComponentReferenceCapture(75, (__value) => {
#line 37 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                    _permissionGrid = (Oqtane.Modules.Controls.PermissionGrid)__value;

#line default
#line hidden
                }
                                                       );
                __builder.CloseComponent();
                __builder.AddMarkupContent(76, "\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(77, "\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(78, "\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(79, "\n");
#line 41 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                if (!_isSystem)
                {
#line default
#line hidden
                    __builder.AddContent(80, "        ");
                    __builder.OpenElement(81, "button");
                    __builder.AddAttribute(82, "type", "button");
                    __builder.AddAttribute(83, "class", "btn btn-success");
                    __builder.AddAttribute(84, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 43 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                                                                                                                                                            SaveFolder

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddContent(85, "Save");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(86, "\n");
#line 44 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                }

#line default
#line hidden
                __builder.AddContent(87, "    ");
                __builder.OpenComponent <Microsoft.AspNetCore.Components.Routing.NavLink>(88);
                __builder.AddAttribute(89, "class", "btn btn-secondary");
                __builder.AddAttribute(90, "href",
#line 45 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                       NavigateUrl()

#line default
#line hidden
                                       );
                __builder.AddAttribute(91, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
                    __builder2.AddContent(92, "Cancel");
                }
                                                                                                            ));
                __builder.CloseComponent();
                __builder.AddMarkupContent(93, "\n");
#line 46 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                if (!_isSystem && PageState.QueryString.ContainsKey("id"))
                {
#line default
#line hidden
                    __builder.AddContent(94, "        ");
                    __builder.OpenElement(95, "button");
                    __builder.AddAttribute(96, "type", "button");
                    __builder.AddAttribute(97, "class", "btn btn-danger");
                    __builder.AddAttribute(98, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 48 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                                                                                                                                                            DeleteFolder

#line default
#line hidden
                                                                                                                                                                            ));
                    __builder.AddContent(99, "Delete");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(100, "\n");
#line 49 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                }

#line default
#line hidden
                __builder.AddMarkupContent(101, "    <br>\n    <br>\n");
#line 52 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                if (PageState.QueryString.ContainsKey("id"))
                {
#line default
#line hidden
                    __builder.AddContent(102, "        ");
                    __builder.OpenComponent <Oqtane.Modules.Controls.AuditInfo>(103);
                    __builder.AddAttribute(104, "CreatedBy", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 54 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                               _createdBy

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(105, "CreatedOn", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.DateTime>(
#line 54 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                               _createdOn

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(106, "ModifiedBy", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 54 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                               _modifiedBy

#line default
#line hidden
                                               ));
                    __builder.AddAttribute(107, "ModifiedOn", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.DateTime>(
#line 54 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                                               _modifiedOn

#line default
#line hidden
                                               ));
                    __builder.CloseComponent();
                    __builder.AddMarkupContent(108, "\n");
#line 55 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
                }

#line default
#line hidden
#line 55 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Files/Edit.razor"
            }

#line default
#line hidden
        }
예제 #24
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h1>Weather forecast</h1>\r\n\r\n");
            __builder.AddMarkupContent(1, "<p>This component demonstrates fetching data from the server.</p>\r\n\r\n");
#line 8 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
            if (forecasts == null)
            {
#line default
#line hidden
                __builder.AddContent(2, "    ");
                __builder.AddMarkupContent(3, "<p><em>Loading...</em></p>\r\n");
#line 11 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(4, "    ");
                __builder.OpenElement(5, "table");
                __builder.AddAttribute(6, "class", "table");
                __builder.AddMarkupContent(7, "\r\n        ");
                __builder.AddMarkupContent(8, "<thead>\r\n            <tr>\r\n                <th>Date</th>\r\n                <th>Temp. (C)</th>\r\n                <th>Temp. (F)</th>\r\n                <th>Summary</th>\r\n            </tr>\r\n        </thead>\r\n        ");
                __builder.OpenElement(9, "tbody");
                __builder.AddMarkupContent(10, "\r\n");
#line 24 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                foreach (var forecast in forecasts)
                {
#line default
#line hidden
                    __builder.AddContent(11, "                ");
                    __builder.OpenElement(12, "tr");
                    __builder.AddMarkupContent(13, "\r\n                    ");
                    __builder.OpenElement(14, "td");
                    __builder.AddContent(15,
#line 27 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                                         forecast.Date.ToShortDateString()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(16, "\r\n                    ");
                    __builder.OpenElement(17, "td");
                    __builder.AddContent(18,
#line 28 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                                         forecast.TemperatureC

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(19, "\r\n                    ");
                    __builder.OpenElement(20, "td");
                    __builder.AddContent(21,
#line 29 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                                         forecast.TemperatureF

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(22, "\r\n                    ");
                    __builder.OpenElement(23, "td");
                    __builder.AddContent(24,
#line 30 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                                         forecast.Summary

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(25, "\r\n                ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(26, "\r\n");
#line 32 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
                }

#line default
#line hidden
                __builder.AddContent(27, "        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(28, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(29, "\r\n");
#line 35 "C:\Users\Henri Jaton\Documents\HEIG-VD\4eme annee\TB\Tests\Blazor\Wasm\BlazorTestBlazorise\BlazorTestBlazorise\Pages\FetchData.razor"
            }

#line default
#line hidden
        }
예제 #25
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddAttribute(1, "class", "multiple-selector");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ul");
            __builder.AddAttribute(4, "class", "selectable-ul");
            __builder.AddMarkupContent(5, "\r\n");
#line 3 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
            foreach (var item in NoSelected)
            {
#line default
#line hidden
                __builder.AddContent(6, "            ");
                __builder.OpenElement(7, "li");
                __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 5 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                                                                                                                                                       () => Select(item)

#line default
#line hidden
                                                                                                                                                                       ));
                __builder.AddContent(9,
#line 5 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                     item.Value

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(10, "\r\n");
#line 6 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
            }

#line default
#line hidden
            __builder.AddContent(11, "    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(12, "\r\n    ");
            __builder.OpenElement(13, "div");
            __builder.AddAttribute(14, "class", "multiple-selector-buttons");
            __builder.AddMarkupContent(15, "\r\n        ");
            __builder.OpenElement(16, "button");
            __builder.AddAttribute(17, "type", "button");
            __builder.AddAttribute(18, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 9 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                                                                                                                                                    SelectAll

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(19, ">>");
            __builder.CloseElement();
            __builder.AddMarkupContent(20, "\r\n        ");
            __builder.OpenElement(21, "button");
            __builder.AddAttribute(22, "type", "button");
            __builder.AddAttribute(23, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 10 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                                                                                                                                                    DeselectAll

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(24,
#line 10 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                 removeAllText

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(25, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(26, "\r\n    ");
            __builder.OpenElement(27, "ul");
            __builder.AddAttribute(28, "class", "selectable-ul");
            __builder.AddMarkupContent(29, "\r\n");
#line 13 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
            foreach (var item in Selected)
            {
#line default
#line hidden
                __builder.AddContent(30, "            ");
                __builder.OpenElement(31, "li");
                __builder.AddAttribute(32, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 15 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                                                                                                                                                        () => Deselect(item)

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddContent(33,
#line 15 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
                                     item.Value

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(34, "\r\n");
#line 16 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\MultipleSelector.razor"
            }

#line default
#line hidden
            __builder.AddContent(35, "    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(36, "\r\n");
            __builder.CloseElement();
        }
예제 #26
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 1 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
            if (ExibirConfirmacao)
            {
#line default
#line hidden
                __builder.AddMarkupContent(0, "<div class=\"modal-backdrop show\"></div>\r\n");
                __builder.OpenElement(1, "div");
                __builder.AddAttribute(2, "class", "modal");
                __builder.AddAttribute(3, "tabindex", "-1");
                __builder.AddAttribute(4, "role", "dialog");
                __builder.AddAttribute(5, "aria-hidden", "true");
                __builder.AddAttribute(6, "style", "display:block;");
                __builder.AddMarkupContent(7, "\r\n    ");
                __builder.OpenElement(8, "div");
                __builder.AddAttribute(9, "class", "modal-dialog");
                __builder.AddAttribute(10, "role", "document");
                __builder.AddMarkupContent(11, "\r\n        ");
                __builder.OpenElement(12, "div");
                __builder.AddAttribute(13, "class", "modal-content");
                __builder.AddMarkupContent(14, "\r\n            ");
                __builder.OpenElement(15, "div");
                __builder.AddAttribute(16, "class", "modal-header");
                __builder.AddMarkupContent(17, "\r\n                ");
                __builder.OpenElement(18, "h5");
                __builder.AddAttribute(19, "class", "modal-title");
                __builder.AddContent(20,
#line 10 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
                                     Titulo

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(21, "\r\n                ");
                __builder.OpenElement(22, "button");
                __builder.AddAttribute(23, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 11 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
                                                                                                                                                                        onCancela

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddAttribute(24, "type", "button");
                __builder.AddAttribute(25, "class", "close");
                __builder.AddAttribute(26, "data-dismiss", "modal");
                __builder.AddAttribute(27, "aria-label", "Fechar");
                __builder.AddMarkupContent(28, "\r\n                    ");
                __builder.AddMarkupContent(29, "<span aria-hidden=\"true\">&times;</span>\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(30, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(31, "\r\n            ");
                __builder.OpenElement(32, "div");
                __builder.AddAttribute(33, "class", "modal-body");
                __builder.AddMarkupContent(34, "\r\n                ");
                __builder.AddContent(35,
#line 17 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
                                     ChildContent

#line default
#line hidden
                                     );
                __builder.AddMarkupContent(36, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(37, "\r\n            ");
                __builder.OpenElement(38, "div");
                __builder.AddAttribute(39, "class", "modal-footer");
                __builder.AddMarkupContent(40, "\r\n                ");
                __builder.OpenElement(41, "button");
                __builder.AddAttribute(42, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 20 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
                                                                                                                                                                        onCancela

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddAttribute(43, "type", "button");
                __builder.AddAttribute(44, "class", "btn btn-secondary");
                __builder.AddAttribute(45, "data-dismiss", "modal");
                __builder.AddMarkupContent(46, "\r\n                    Cancelar\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(47, "\r\n                ");
                __builder.OpenElement(48, "button");
                __builder.AddAttribute(49, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 24 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
                                                                                                                                                                        onConfirma

#line default
#line hidden
                                                                                                                                                                        ));
                __builder.AddAttribute(50, "type", "button");
                __builder.AddAttribute(51, "class", "btn btn-primary");
                __builder.AddMarkupContent(52, "\r\n                    OK\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(53, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(54, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(55, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(56, "\r\n");
                __builder.CloseElement();
                __builder.AddMarkupContent(57, "\r\n");
#line 32 "C:\Users\samue\Documents\GitHub\Blazor - Componentes\Blazor-Componentes\22_Blazor_Tarefas_invoca_CSharp\Blazor_Tarefas\Blazor_Tarefas\Shared\Confirma.razor"
            }

#line default
#line hidden
        }
예제 #27
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
#line 7 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
            if (_sites == null)
            {
#line default
#line hidden
                __builder.AddContent(0, "    ");
                __builder.AddMarkupContent(1, "<p><em>Loading...</em></p>\n");
#line 10 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
            }
            else
            {
#line default
#line hidden
                __builder.AddContent(2, "    ");
                __builder.OpenComponent <Oqtane.Modules.Controls.ActionLink>(3);
                __builder.AddAttribute(4, "Action", "Add");
                __builder.AddAttribute(5, "Text", "Add Site");
                __builder.CloseComponent();
                __builder.AddMarkupContent(6, "\n");
                __builder.AddContent(7, "    ");
                __Blazor.Oqtane.Modules.Admin.Sites.Index.TypeInference.CreatePager_0(__builder, 8, 9,
#line 15 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                                                                      _sites

#line default
#line hidden
                                                                                      , 10, (__builder2) => {
                    __builder2.AddMarkupContent(11, "\n            ");
                    __builder2.AddMarkupContent(12, "<th style=\"width: 1px;\">&nbsp;</th>\n            ");
                    __builder2.AddMarkupContent(13, "<th style=\"width: 1px;\">&nbsp;</th>\n            ");
                    __builder2.AddMarkupContent(14, "<th>Name</th>\n        ");
                }
                                                                                      , 15, (context) => (__builder2) => {
                    __builder2.AddMarkupContent(16, "\n            ");
                    __builder2.OpenElement(17, "td");
                    __builder2.OpenComponent <Oqtane.Modules.Controls.ActionLink>(18);
                    __builder2.AddAttribute(19, "Action", "Edit");
                    __builder2.AddAttribute(20, "Parameters", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 22 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                                $"id=" + context.AliasId.ToString()

#line default
#line hidden
                                                ));
                    __builder2.CloseComponent();
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(21, "\n            ");
                    __builder2.OpenElement(22, "td");
                    __builder2.OpenComponent <Oqtane.Modules.Controls.ActionDialog>(23);
                    __builder2.AddAttribute(24, "Header", "Delete Site");
                    __builder2.AddAttribute(25, "Message", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                                "Are You Sure You Wish To Delete The " + context.Name + " Site?"

#line default
#line hidden
                                                ));
                    __builder2.AddAttribute(26, "Action", "Delete");
                    __builder2.AddAttribute(27, "Security", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Oqtane.Shared.SecurityAccessLevel?>(
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                                SecurityAccessLevel.Admin

#line default
#line hidden
                                                ));
                    __builder2.AddAttribute(28, "Class", "btn btn-danger");
                    __builder2.AddAttribute(29, "OnClick", new System.Action(
#line 23 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                                async() => await DeleteSite(context)

#line default
#line hidden
                                                ));
                    __builder2.CloseComponent();
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(30, "\n            ");
                    __builder2.OpenElement(31, "td");
                    __builder2.OpenElement(32, "a");
                    __builder2.AddAttribute(33, "href",
#line 24 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                            _scheme + context.Name

#line default
#line hidden
                                            );
                    __builder2.AddContent(34,
#line 24 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
                                          context.Name

#line default
#line hidden
                                          );
                    __builder2.CloseElement();
                    __builder2.CloseElement();
                    __builder2.AddMarkupContent(35, "\n        ");
                }
                                                                                      );
                __builder.AddMarkupContent(36, "\n");
#line 27 "/Users/cam/Desktop/oqtane/oqtane-theme-test/Oqtane.Client/Modules/Admin/Sites/Index.razor"
            }

#line default
#line hidden
        }
예제 #28
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.AddMarkupContent(0, "<h3>Sensor Manager</h3>\r\n<hr>\r\n\r\n");
#line 6 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            if (loaded)
            {
#line default
#line hidden
                __builder.AddContent(1, "    ");
                __builder.OpenElement(2, "button");
                __builder.AddAttribute(3, "type", "button");
                __builder.AddAttribute(4, "class", "btn btn-success m-1");
                __builder.AddAttribute(5, "data-toggle", "modal");
                __builder.AddAttribute(6, "data-target", "#createSensorModal");
                __builder.AddAttribute(7, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 8 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                       ClearCreateSensor

#line default
#line hidden
                                                                                                                                                                       ));
                __builder.AddContent(8, "Add new");
                __builder.CloseElement();
                __builder.AddMarkupContent(9, "\r\n");
#line 9 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"

                if (sensors != null)
                {
#line default
#line hidden
                    __builder.AddContent(10, "        ");
                    __builder.OpenElement(11, "table");
                    __builder.AddAttribute(12, "class", "table");
                    __builder.AddMarkupContent(13, "\r\n            ");
                    __builder.AddMarkupContent(14, @"<thead>
                <tr>
                    <th>Name</th>
                    <th>Ip</th>
                    <th>Mac</th>
                    <th>Water Level</th>
                    <th>Schedule Name</th>
                    <th>Switch Name</th>
                    <th>Zone Name</th>
                </tr>
            </thead>
            ");
                    __builder.OpenElement(15, "tbody");
                    __builder.AddMarkupContent(16, "\r\n");
#line 25 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                    foreach (var sensor in sensors)
                    {
#line default
#line hidden
                        __builder.AddContent(17, "                    ");
                        __builder.OpenElement(18, "tr");
                        __builder.AddMarkupContent(19, "\r\n                        ");
                        __builder.OpenElement(20, "td");
                        __builder.AddContent(21,
#line 28 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.Name

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(22, "\r\n                        ");
                        __builder.OpenElement(23, "td");
                        __builder.AddContent(24,
#line 29 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.Ip

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(25, "\r\n                        ");
                        __builder.OpenElement(26, "td");
                        __builder.AddContent(27,
#line 30 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.Mac

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(28, "\r\n                        ");
                        __builder.OpenElement(29, "td");
                        __builder.AddContent(30,
#line 31 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.Data

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(31, "\r\n                        ");
                        __builder.OpenElement(32, "td");
                        __builder.AddContent(33,
#line 32 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.ScheduleName

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(34, "\r\n                        ");
                        __builder.OpenElement(35, "td");
                        __builder.AddContent(36,
#line 33 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.SwitchName

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(37, "\r\n                        ");
                        __builder.OpenElement(38, "td");
                        __builder.AddContent(39,
#line 34 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                             sensor.ZoneName

#line default
#line hidden
                                             );
                        __builder.CloseElement();
                        __builder.AddMarkupContent(40, "\r\n                        ");
                        __builder.OpenElement(41, "td");
                        __builder.AddMarkupContent(42, "\r\n                            ");
                        __builder.OpenElement(43, "button");
                        __builder.AddAttribute(44, "type", "button");
                        __builder.AddAttribute(45, "class", "btn btn-warning m-1");
                        __builder.AddAttribute(46, "data-toggle", "modal");
                        __builder.AddAttribute(47, "data-target", "#editSensorModal");
                        __builder.AddAttribute(48, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 36 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                                () => SetEditSensor(sensor.Id)

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddContent(49, "Edit");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(50, "\r\n                            ");
                        __builder.OpenElement(51, "button");
                        __builder.AddAttribute(52, "type", "button");
                        __builder.AddAttribute(53, "class", "btn btn-danger m-1");
                        __builder.AddAttribute(54, "data-toggle", "modal");
                        __builder.AddAttribute(55, "data-target", "#deleteSensorModal");
                        __builder.AddAttribute(56, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 37 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                                () => SetDeleteSensor(sensor.Id)

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddContent(57, "Delete");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(58, "\r\n                            ");
                        __builder.OpenElement(59, "button");
                        __builder.AddAttribute(60, "type", "button");
                        __builder.AddAttribute(61, "class", "btn btn-success m-1");
                        __builder.AddAttribute(62, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 38 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                                () => RefillSensorClick(sensor.Id)

#line default
#line hidden
                                                                                                                                                                                ));
                        __builder.AddContent(63, "Refill");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(64, "\r\n                        ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(65, "\r\n                    ");
                        __builder.CloseElement();
                        __builder.AddMarkupContent(66, "\r\n");
#line 41 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                    }

#line default
#line hidden
                    __builder.AddContent(67, "            ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(68, "\r\n        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(69, "\r\n");
#line 44 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                }

                else
                {
#line default
#line hidden
                    __builder.AddContent(70, "        ");
                    __builder.AddMarkupContent(71, "<p>No sensor available!</p>\r\n");
#line 49 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                }
            }

            else
            {
#line default
#line hidden
                __builder.AddMarkupContent(72, "    <hr>\r\n    ");
                __builder.AddMarkupContent(73, "<span>Loading...</span>\r\n");
#line 56 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(74, "\r\n\r\n");
#line 59 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            if (createSensor != null)
            {
#line default
#line hidden
                __builder.AddContent(75, "    ");
                __builder.OpenElement(76, "div");
                __builder.AddAttribute(77, "class", "modal fade");
                __builder.AddAttribute(78, "id", "createSensorModal");
                __builder.AddAttribute(79, "tabindex", "-1");
                __builder.AddAttribute(80, "role", "dialog");
                __builder.AddMarkupContent(81, "\r\n        ");
                __builder.OpenElement(82, "div");
                __builder.AddAttribute(83, "class", "modal-dialog");
                __builder.AddAttribute(84, "role", "document");
                __builder.AddMarkupContent(85, "\r\n            ");
                __builder.OpenElement(86, "div");
                __builder.AddAttribute(87, "class", "modal-content");
                __builder.AddMarkupContent(88, "\r\n                ");
                __builder.AddMarkupContent(89, "<div class=\"modal-header\">\r\n                    <h5 class=\"modal-title\">Create new sensor </h5>\r\n                </div>\r\n                ");
                __builder.OpenElement(90, "div");
                __builder.AddAttribute(91, "class", "modal-body");
                __builder.AddMarkupContent(92, "\r\n                    ");
                __builder.OpenElement(93, "form");
                __builder.AddMarkupContent(94, "\r\n                        ");
                __builder.OpenElement(95, "div");
                __builder.AddAttribute(96, "class", "form-group");
                __builder.AddMarkupContent(97, "\r\n                            ");
                __builder.AddMarkupContent(98, "<label for=\"nameInput\" class=\"mt-2\">Name:</label>\r\n                            ");
                __builder.OpenElement(99, "input");
                __builder.AddAttribute(100, "type", "text");
                __builder.AddAttribute(101, "class", "form-control");
                __builder.AddAttribute(102, "id", "nameInput");
                __builder.AddAttribute(103, "placeholder", "Name");
                __builder.AddAttribute(104, "required", true);
                __builder.AddAttribute(105, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 71 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           createSensor.Name

#line default
#line hidden
                                           ));
                __builder.AddAttribute(106, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => createSensor.Name = __value, createSensor.Name));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(107, "\r\n                            ");
                __builder.AddMarkupContent(108, "<label for=\"ipInput\" class=\"mt-2\">Ip:</label>\r\n                            ");
                __builder.OpenElement(109, "input");
                __builder.AddAttribute(110, "type", "text");
                __builder.AddAttribute(111, "class", "form-control");
                __builder.AddAttribute(112, "id", "ipInput");
                __builder.AddAttribute(113, "placeholder", "IP");
                __builder.AddAttribute(114, "required", true);
                __builder.AddAttribute(115, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 73 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           createSensor.Ip

#line default
#line hidden
                                           ));
                __builder.AddAttribute(116, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => createSensor.Ip = __value, createSensor.Ip));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(117, "\r\n                            ");
                __builder.AddMarkupContent(118, "<label for=\"macInput\" class=\"mt-2\">Mac:</label>\r\n                            ");
                __builder.OpenElement(119, "input");
                __builder.AddAttribute(120, "type", "text");
                __builder.AddAttribute(121, "class", "form-control");
                __builder.AddAttribute(122, "id", "macInput");
                __builder.AddAttribute(123, "placeholder", "MAC");
                __builder.AddAttribute(124, "required", true);
                __builder.AddAttribute(125, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 75 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           createSensor.Mac

#line default
#line hidden
                                           ));
                __builder.AddAttribute(126, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => createSensor.Mac = __value, createSensor.Mac));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(127, "\r\n                        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(128, "\r\n                        ");
                __builder.OpenElement(129, "button");
                __builder.AddAttribute(130, "type", "button");
                __builder.AddAttribute(131, "class", "btn btn-success");
                __builder.AddAttribute(132, "data-dismiss", "modal");
                __builder.AddAttribute(133, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 77 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                         PostCreateSensor

#line default
#line hidden
                                                                                                                                                                         ));
                __builder.AddContent(134, "Create");
                __builder.CloseElement();
                __builder.AddMarkupContent(135, "\r\n                        ");
                __builder.AddMarkupContent(136, "<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Cancel</button>\r\n                    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(137, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(138, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(139, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(140, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(141, "\r\n");
#line 84 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            }

#line default
#line hidden
            __builder.AddMarkupContent(142, "\r\n\r\n");
            __builder.OpenElement(143, "div");
            __builder.AddAttribute(144, "class", "modal fade");
            __builder.AddAttribute(145, "id", "deleteSensorModal");
            __builder.AddAttribute(146, "tabindex", "-1");
            __builder.AddAttribute(147, "role", "dialog");
            __builder.AddMarkupContent(148, "\r\n    ");
            __builder.OpenElement(149, "div");
            __builder.AddAttribute(150, "class", "modal-dialog");
            __builder.AddAttribute(151, "role", "document");
            __builder.AddMarkupContent(152, "\r\n        ");
            __builder.OpenElement(153, "div");
            __builder.AddAttribute(154, "class", "modal-content");
            __builder.AddMarkupContent(155, "\r\n            ");
            __builder.AddMarkupContent(156, "<div class=\"modal-header\">\r\n                <h5 class=\"modal-title\">Do you want to delete this schedule? </h5>\r\n            </div>\r\n            ");
            __builder.OpenElement(157, "div");
            __builder.AddAttribute(158, "class", "modal-body");
            __builder.AddMarkupContent(159, "\r\n                ");
            __builder.OpenElement(160, "button");
            __builder.AddAttribute(161, "type", "button");
            __builder.AddAttribute(162, "class", "btn btn-danger m-1");
            __builder.AddAttribute(163, "data-dismiss", "modal");
            __builder.AddAttribute(164, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 94 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                     DeleteSelectedSensor

#line default
#line hidden
                                                                                                                                                                     ));
            __builder.AddContent(165, "Delete");
            __builder.CloseElement();
            __builder.AddMarkupContent(166, "\r\n                ");
            __builder.AddMarkupContent(167, "<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">No</button>\r\n            ");
            __builder.CloseElement();
            __builder.AddMarkupContent(168, "\r\n        ");
            __builder.CloseElement();
            __builder.AddMarkupContent(169, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(170, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(171, "\r\n\r\n\r\n");
#line 102 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            if (editSensor != null)
            {
#line default
#line hidden
                __builder.AddMarkupContent(172, "    \r\n    ");
                __builder.OpenElement(173, "div");
                __builder.AddAttribute(174, "class", "modal fade");
                __builder.AddAttribute(175, "id", "editSensorModal");
                __builder.AddAttribute(176, "tabindex", "-1");
                __builder.AddAttribute(177, "role", "dialog");
                __builder.AddMarkupContent(178, "\r\n        ");
                __builder.OpenElement(179, "div");
                __builder.AddAttribute(180, "class", "modal-dialog");
                __builder.AddAttribute(181, "role", "document");
                __builder.AddMarkupContent(182, "\r\n            ");
                __builder.OpenElement(183, "div");
                __builder.AddAttribute(184, "class", "modal-content");
                __builder.AddMarkupContent(185, "\r\n                ");
                __builder.AddMarkupContent(186, "<div class=\"modal-header\">\r\n                    <h5 class=\"modal-title\">Edit sensor</h5>\r\n                </div>\r\n                ");
                __builder.OpenElement(187, "div");
                __builder.AddAttribute(188, "class", "modal-body");
                __builder.AddMarkupContent(189, "\r\n                    ");
                __builder.OpenElement(190, "form");
                __builder.AddMarkupContent(191, "\r\n                        ");
                __builder.OpenElement(192, "div");
                __builder.AddAttribute(193, "class", "form-group");
                __builder.AddMarkupContent(194, "\r\n                            ");
                __builder.AddMarkupContent(195, "<label for=\"nameInput\" class=\"mt-2\">Name:</label>\r\n                            ");
                __builder.OpenElement(196, "input");
                __builder.AddAttribute(197, "type", "text");
                __builder.AddAttribute(198, "class", "form-control");
                __builder.AddAttribute(199, "id", "nameInput");
                __builder.AddAttribute(200, "required", true);
                __builder.AddAttribute(201, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 115 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           editSensor.Name

#line default
#line hidden
                                           ));
                __builder.AddAttribute(202, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => editSensor.Name = __value, editSensor.Name));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(203, "\r\n                            ");
                __builder.AddMarkupContent(204, "<label for=\"ipInput\" class=\"mt-2\">Ip:</label>\r\n                            ");
                __builder.OpenElement(205, "input");
                __builder.AddAttribute(206, "type", "text");
                __builder.AddAttribute(207, "class", "form-control");
                __builder.AddAttribute(208, "id", "ipInput");
                __builder.AddAttribute(209, "required", true);
                __builder.AddAttribute(210, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 117 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           editSensor.Ip

#line default
#line hidden
                                           ));
                __builder.AddAttribute(211, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => editSensor.Ip = __value, editSensor.Ip));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(212, "\r\n                            ");
                __builder.AddMarkupContent(213, "<label for=\"macInput\" class=\"mt-2\">Mac:</label>\r\n                            ");
                __builder.OpenElement(214, "input");
                __builder.AddAttribute(215, "type", "text");
                __builder.AddAttribute(216, "class", "form-control");
                __builder.AddAttribute(217, "id", "macInput");
                __builder.AddAttribute(218, "required", true);
                __builder.AddAttribute(219, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 119 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           editSensor.Mac

#line default
#line hidden
                                           ));
                __builder.AddAttribute(220, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => editSensor.Mac = __value, editSensor.Mac));
                __builder.SetUpdatesAttributeName("value");
                __builder.CloseElement();
                __builder.AddMarkupContent(221, "\r\n                            ");
                __builder.AddMarkupContent(222, "<label for=\"scheduleSelector\" class=\"mt-2\">Schedule:</label>\r\n                            ");
                __builder.OpenElement(223, "select");
                __builder.AddAttribute(224, "id", "scheduleSelector");
                __builder.AddAttribute(225, "class", "custom-select my-2");
                __builder.AddAttribute(226, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 121 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           selectedScheduleId

#line default
#line hidden
                                           ));
                __builder.AddAttribute(227, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => selectedScheduleId = __value, selectedScheduleId));
                __builder.SetUpdatesAttributeName("value");
                __builder.AddMarkupContent(228, "\r\n                                ");
                __builder.OpenElement(229, "option");
                __builder.AddAttribute(230, "value", "0");
                __builder.AddContent(231, "Not selected");
                __builder.CloseElement();
                __builder.AddMarkupContent(232, "\r\n");
#line 123 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                foreach (var sc in schedules)
                {
#line default
#line hidden
                    __builder.AddContent(233, "                                    ");
                    __builder.OpenElement(234, "option");
                    __builder.AddAttribute(235, "value",
#line 125 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           sc.Id

#line default
#line hidden
                                           );
                    __builder.AddContent(236,
#line 125 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                         sc.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(237, "\r\n");
#line 126 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                }

#line default
#line hidden
                __builder.AddMarkupContent(238, "\r\n                            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(239, "\r\n                            ");
                __builder.AddMarkupContent(240, "<label for=\"switchSelector\" class=\"mt-2\">Switch:</label>\r\n                            ");
                __builder.OpenElement(241, "select");
                __builder.AddAttribute(242, "id", "switchSelector");
                __builder.AddAttribute(243, "class", "custom-select my-2");
                __builder.AddAttribute(244, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 130 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           selectedSwitchId

#line default
#line hidden
                                           ));
                __builder.AddAttribute(245, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => selectedSwitchId = __value, selectedSwitchId));
                __builder.SetUpdatesAttributeName("value");
                __builder.AddMarkupContent(246, "\r\n                                ");
                __builder.OpenElement(247, "option");
                __builder.AddAttribute(248, "value", "0");
                __builder.AddContent(249, "Not selected");
                __builder.CloseElement();
                __builder.AddMarkupContent(250, "\r\n");
#line 132 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                foreach (var sw in switches)
                {
#line default
#line hidden
                    __builder.AddContent(251, "                                    ");
                    __builder.OpenElement(252, "option");
                    __builder.AddAttribute(253, "value",
#line 134 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           sw.Id

#line default
#line hidden
                                           );
                    __builder.AddContent(254,
#line 134 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                         sw.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(255, "\r\n");
#line 135 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                }

#line default
#line hidden
                __builder.AddMarkupContent(256, "\r\n                            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(257, "\r\n\r\n                            ");
                __builder.AddMarkupContent(258, "<label for=\"zoneSelector\" class=\"mt-2\">Zone:</label>\r\n                            ");
                __builder.OpenElement(259, "select");
                __builder.AddAttribute(260, "id", "zoneSelector");
                __builder.AddAttribute(261, "class", "custom-select my-2");
                __builder.AddAttribute(262, "value", Microsoft.AspNetCore.Components.BindConverter.FormatValue(
#line 140 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           selectedZoneId

#line default
#line hidden
                                           ));
                __builder.AddAttribute(263, "onchange", Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => selectedZoneId = __value, selectedZoneId));
                __builder.SetUpdatesAttributeName("value");
                __builder.AddMarkupContent(264, "\r\n                                ");
                __builder.OpenElement(265, "option");
                __builder.AddAttribute(266, "value", "0");
                __builder.AddContent(267, "Not selected");
                __builder.CloseElement();
                __builder.AddMarkupContent(268, "\r\n");
#line 142 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                foreach (var zone in zones)
                {
#line default
#line hidden
                    __builder.AddContent(269, "                                    ");
                    __builder.OpenElement(270, "option");
                    __builder.AddAttribute(271, "value",
#line 144 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                           zone.Id

#line default
#line hidden
                                           );
                    __builder.AddContent(272,
#line 144 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                         zone.Name

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(273, "\r\n");
#line 145 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                }

#line default
#line hidden
                __builder.AddMarkupContent(274, "\r\n                            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(275, "\r\n\r\n                        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(276, "\r\n                        ");
                __builder.OpenElement(277, "button");
                __builder.AddAttribute(278, "type", "button");
                __builder.AddAttribute(279, "class", "btn btn-success");
                __builder.AddAttribute(280, "data-dismiss", "modal");
                __builder.AddAttribute(281, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 150 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
                                                                                                                                                                         EditSelectedSensor

#line default
#line hidden
                                                                                                                                                                         ));
                __builder.AddContent(282, "Edit");
                __builder.CloseElement();
                __builder.AddMarkupContent(283, "\r\n                        ");
                __builder.AddMarkupContent(284, "<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Cancel</button>\r\n                    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(285, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(286, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(287, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(288, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(289, "\r\n");
#line 157 "D:\Work\WaterLevelController\WaterLevelController\WaterLevelControllerClient\Pages\SensorPage.razor"
            }

#line default
#line hidden
        }
예제 #29
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "div");
            __builder.AddMarkupContent(1, "\r\n    ");
            __builder.OpenElement(2, "label");
            __builder.AddContent(3,
#line 5 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\InputMarkdown.razor"
                                 Label

#line default
#line hidden
                                 );
            __builder.CloseElement();
            __builder.AddMarkupContent(4, "\r\n    ");
            __builder.OpenElement(5, "div");
            __builder.AddMarkupContent(6, "\r\n        ");
            __builder.OpenComponent <Microsoft.AspNetCore.Components.Forms.InputTextArea>(7);
            __builder.AddAttribute(8, "Value", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 7 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\InputMarkdown.razor"
                                       CurrentValue

#line default
#line hidden
                                       ));
            __builder.AddAttribute(9, "ValueChanged", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <Microsoft.AspNetCore.Components.EventCallback <System.String> >(Microsoft.AspNetCore.Components.EventCallback.Factory.Create <System.String>(this, Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => CurrentValue = __value, CurrentValue))));
            __builder.AddAttribute(10, "ValueExpression", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.Linq.Expressions.Expression <System.Func <System.String> > >(() => CurrentValue));
            __builder.CloseComponent();
            __builder.AddMarkupContent(11, "\r\n        ");
            __Blazor.Movies_Blazor.Client.Shared.InputMarkdown.TypeInference.CreateValidationMessage_0(__builder, 12, 13,
#line 8 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\InputMarkdown.razor"
                                                                                                       For

#line default
#line hidden
                                                                                                       );
            __builder.AddMarkupContent(14, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(15, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(16, "\r\n\r\n");
            __builder.OpenElement(17, "div");
            __builder.AddMarkupContent(18, "\r\n    ");
            __builder.OpenElement(19, "label");
            __builder.AddContent(20,
#line 13 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\InputMarkdown.razor"
                                 Label

#line default
#line hidden
                                 );
            __builder.AddContent(21, " (preview):");
            __builder.CloseElement();
            __builder.AddMarkupContent(22, "\r\n    ");
            __builder.OpenElement(23, "div");
            __builder.AddAttribute(24, "class", "markdown-container");
            __builder.AddMarkupContent(25, "\r\n        ");
            __builder.OpenComponent <Movies_Blazor.Client.Shared.RenderMarkdown>(26);
            __builder.AddAttribute(27, "MarkdownContent", Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck <System.String>(
#line 15 "C:\Users\Yorik\Desktop\Blazor_Movies\Movies_Blazor\Client\Shared\InputMarkdown.razor"
                                       CurrentValue

#line default
#line hidden
                                       ));
            __builder.CloseComponent();
            __builder.AddMarkupContent(28, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(29, "\r\n");
            __builder.CloseElement();
        }
예제 #30
0
        #pragma warning disable 1998
        protected override void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
        {
            __builder.OpenElement(0, "nav");
            __builder.AddAttribute(1, "aria-label", "breadcrumb");
            __builder.AddMarkupContent(2, "\r\n    ");
            __builder.OpenElement(3, "ol");
            __builder.AddAttribute(4, "class", "breadcrumb");
            __builder.AddMarkupContent(5, "\r\n        ");
            __builder.OpenElement(6, "li");
            __builder.AddAttribute(7, "class", "breadcrumb-item");
            __builder.AddAttribute(8, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 14 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                                                                                                                                                   () => uri.NavigateTo("BackOffice/Compras")

#line default
#line hidden
                                                                                                                                                                   ));
            __builder.AddContent(9, "Compras");
            __builder.CloseElement();
            __builder.AddMarkupContent(10, "\r\n        ");
            __builder.OpenElement(11, "li");
            __builder.AddAttribute(12, "class", "breadcrumb-item");
            __builder.AddAttribute(13, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 15 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo("BackOffice/Compras/ListadoComprobantes")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(14, "Listado Comprobantes");
            __builder.CloseElement();
            __builder.AddMarkupContent(15, "\r\n        ");
            __builder.OpenElement(16, "li");
            __builder.AddAttribute(17, "class", "breadcrumb-item active");
            __builder.AddAttribute(18, "aria-current", "page");
            __builder.AddAttribute(19, "onclick", Microsoft.AspNetCore.Components.EventCallback.Factory.Create <Microsoft.AspNetCore.Components.Web.MouseEventArgs>(this,
#line 16 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                                                                                                                                                    () => uri.NavigateTo($"BackOffice/Compras/ComprobanteCompras/{Id}")

#line default
#line hidden
                                                                                                                                                                    ));
            __builder.AddContent(20, "Detalle Comprobante");
            __builder.CloseElement();
            __builder.AddMarkupContent(21, "\r\n    ");
            __builder.CloseElement();
            __builder.AddMarkupContent(22, "\r\n");
            __builder.CloseElement();
            __builder.AddMarkupContent(23, "\r\n");
            __builder.AddMarkupContent(24, "<h2>Comprobante de Compra</h2>\r\n");
#line 20 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
            if (factura != null)
            {
#line default
#line hidden
                __builder.AddContent(25, "    ");
                __builder.OpenElement(26, "div");
                __builder.AddAttribute(27, "class", "row col-md-12 my-3 mx-0 p-2");
                __builder.AddAttribute(28, "style", "box-shadow:1px 1px 3px #323232");
                __builder.AddMarkupContent(29, "\r\n\r\n        ");
                __builder.OpenElement(30, "div");
                __builder.AddAttribute(31, "class", "col-md-12 mx-0 my-4 px-0 row d-flex justify-content-between");
                __builder.AddMarkupContent(32, "\r\n            ");
                __builder.OpenElement(33, "h3");
                __builder.OpenElement(34, "strong");
                __builder.AddAttribute(35, "class", "text-info");
                __builder.AddContent(36,
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.TipoComprobante.nombre

#line default
#line hidden
                                     );
                __builder.AddContent(37, " ");
                __builder.AddContent(38,
#line 25 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.codigo

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.CloseElement();
                __builder.AddMarkupContent(39, "\r\n            ");
                __builder.OpenElement(40, "div");
                __builder.AddAttribute(41, "class", "col-md-3 mx-0 px-2");
                __builder.AddMarkupContent(42, "\r\n                ");
                __builder.AddMarkupContent(43, "<strong>Estado: </strong>");
                __builder.OpenElement(44, "span");
                __builder.AddContent(45,
#line 27 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.EstadoFactura.nombre

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(46, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(47, "\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(48, "\r\n        ");
                __builder.OpenElement(49, "div");
                __builder.AddAttribute(50, "class", "col-md-12 mx-0 px-0 row my-2");
                __builder.AddMarkupContent(51, "\r\n\r\n            ");
                __builder.OpenElement(52, "div");
                __builder.AddAttribute(53, "class", "col-md-3  mx-0 px-2");
                __builder.AddMarkupContent(54, "\r\n                ");
                __builder.AddMarkupContent(55, "<strong>Depósito: </strong>");
                __builder.OpenElement(56, "span");
                __builder.AddContent(57,
#line 33 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.Deposito.nombre

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(58, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(59, "\r\n            ");
                __builder.OpenElement(60, "div");
                __builder.AddAttribute(61, "class", "col-md-3  mx-0 px-2");
                __builder.AddMarkupContent(62, "\r\n                ");
                __builder.AddMarkupContent(63, "<strong>Fecha Comprobante: </strong>");
                __builder.OpenElement(64, "span");
                __builder.AddMarkupContent(65, "\r\n                    ");
                __builder.AddContent(66,
#line 37 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.fecha.ToString("yyyy-MM-dd HH:mm")

#line default
#line hidden
                                     );
                __builder.AddMarkupContent(67, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(68, "\r\n\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(69, "\r\n\r\n\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(70, "\r\n\r\n        ");
                __builder.AddMarkupContent(71, "<h3 class=\"border-bottom mt-3 text-info\"><strong>Proveedor</strong></h3>\r\n\r\n        ");
                __builder.OpenElement(72, "div");
                __builder.AddAttribute(73, "class", "row col-md-12 mx-0 my-1 px-2 align-items-center");
                __builder.AddMarkupContent(74, "\r\n            ");
                __builder.OpenElement(75, "div");
                __builder.AddAttribute(76, "class", "col-md-5 mx-0 pl-0");
                __builder.AddMarkupContent(77, "\r\n\r\n                ");
                __builder.AddMarkupContent(78, "<strong>Razón Social: </strong>\r\n\r\n\r\n                ");
                __builder.OpenElement(79, "a");
                __builder.AddAttribute(80, "href",
#line 54 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                       $"/BackOffice/Compras/Proveedor/{factura.ProveedorId}"

#line default
#line hidden
                                       );
                __builder.AddContent(81, "#");
                __builder.AddContent(82,
#line 54 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.ProveedorId

#line default
#line hidden
                                     );
                __builder.AddContent(83, " ");
                __builder.AddContent(84,
#line 54 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.Proveedor.razonSocial

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(85, "\r\n\r\n\r\n\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(86, "\r\n\r\n\r\n\r\n\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(87, "\r\n\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(88, "\r\n");
                __builder.AddContent(89, "    ");
                __builder.OpenElement(90, "div");
                __builder.AddAttribute(91, "class", "detallesFactura my-4");
                __builder.AddMarkupContent(92, "\r\n        ");
                __builder.OpenElement(93, "div");
                __builder.AddAttribute(94, "class", "col-md-12 row mx-0 p-2 d-flex justify-content-between align-items-center my-2");
                __builder.AddAttribute(95, "style", "background: linear-gradient(90deg, #262626, #213154);color:white;border-radius:5px;");
                __builder.AddMarkupContent(96, "\r\n            ");
                __builder.OpenElement(97, "h3");
                __builder.AddContent(98, "Productos (");
                __builder.AddContent(99,
#line 72 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.detallesFactura.Count()

#line default
#line hidden
                                     );
                __builder.AddContent(100, ")");
                __builder.CloseElement();
                __builder.AddMarkupContent(101, "\r\n\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(102, "\r\n        ");
                __builder.OpenElement(103, "table");
                __builder.AddAttribute(104, "class", "table table-sm d-xs-block");
                __builder.AddAttribute(105, "style", "overflow-x:auto;");
                __builder.AddMarkupContent(106, "\r\n            ");
                __builder.AddMarkupContent(107, @"<thead>
                <tr class=""bg-dark text-white p-1 rounded"">
                    <th>Producto</th>
                    <th>Presentacion</th>
                    <th>Cantidad</th>
                    <th>Precio Unitario</th>
                    <th>Total</th>
                </tr>
            </thead>
            ");
                __builder.OpenElement(108, "tbody");
                __builder.AddMarkupContent(109, "\r\n\r\n");
#line 87 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                foreach (DetalleFacturaCompras detallesFactura in factura.detallesFactura)
                {
#line default
#line hidden
                    __builder.AddContent(110, "                    ");
                    __builder.OpenElement(111, "tr");
                    __builder.AddAttribute(112, "class", true);
                    __builder.AddMarkupContent(113, "\r\n                        ");
                    __builder.OpenElement(114, "td");
                    __builder.AddMarkupContent(115, "\r\n\r\n\r\n                            ");
                    __builder.OpenElement(116, "div");
                    __builder.OpenElement(117, "img");
                    __builder.AddAttribute(118, "class", "mx-2");
                    __builder.AddAttribute(119, "src",
#line 93 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                           detallesFactura.ProductoPresentacion.Producto.Foto

#line default
#line hidden
                                           );
                    __builder.AddAttribute(120, "style", "height:20px; width:20px;border-radius:50%;");
                    __builder.CloseElement();
                    __builder.AddContent(121,
#line 93 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                         detallesFactura.ProductoPresentacion.Producto.nombre.ToUpper()

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(122, "\r\n\r\n\r\n                        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(123, "\r\n\r\n                        ");
                    __builder.OpenElement(124, "td");
                    __builder.AddMarkupContent(125, "\r\n\r\n\r\n                            ");
                    __builder.OpenElement(126, "strong");
                    __builder.AddContent(127, " ");
                    __builder.AddContent(128,
#line 101 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                         detallesFactura.ProductoPresentacion.PresentacionProducto.nombre

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(129, "\r\n                        ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(130, "\r\n\r\n                        ");
                    __builder.OpenElement(131, "td");
                    __builder.AddContent(132,
#line 104 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                         detallesFactura.cantidad

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(133, "\r\n\r\n                        ");
                    __builder.OpenElement(134, "td");
                    __builder.AddContent(135,
#line 106 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                         detallesFactura.precioUnitario

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(136, "\r\n\r\n                        ");
                    __builder.OpenElement(137, "td");
                    __builder.AddContent(138, "$");
                    __builder.AddContent(139,
#line 108 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                         detallesFactura.precioUnitario * detallesFactura.cantidad

#line default
#line hidden
                                         );
                    __builder.CloseElement();
                    __builder.AddMarkupContent(140, "\r\n                    ");
                    __builder.CloseElement();
                    __builder.AddMarkupContent(141, "\r\n");
#line 110 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                }

#line default
#line hidden
                __builder.AddContent(142, "                ");
                __builder.OpenElement(143, "tr");
                __builder.AddAttribute(144, "class", "bg-dark text-white rounded");
                __builder.AddMarkupContent(145, "\r\n                    <th colspan=\"4\"></th>\r\n\r\n                    ");
                __builder.OpenElement(146, "th");
                __builder.AddAttribute(147, "class", true);
                __builder.AddMarkupContent(148, "<strong>Total:</strong> $");
                __builder.AddContent(149,
#line 114 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
                                     factura.totalComprobante

#line default
#line hidden
                                     );
                __builder.CloseElement();
                __builder.AddMarkupContent(150, "\r\n                ");
                __builder.CloseElement();
                __builder.AddMarkupContent(151, "\r\n            ");
                __builder.CloseElement();
                __builder.AddMarkupContent(152, "\r\n\r\n        ");
                __builder.CloseElement();
                __builder.AddMarkupContent(153, "\r\n    ");
                __builder.CloseElement();
                __builder.AddMarkupContent(154, "\r\n");
#line 120 "C:\Users\agust\source\repos\SurcosBlazor\Client\Pages\BackOffice\Compras\FacturasCompras\FacturaComprasDetalle.razor"
            }

#line default
#line hidden
        }