Leverandører inden for Viden og service

Her finder du leverandørerne inden for interesseområdet Viden og service.

 

Se alle leverandører

Seneste nyt fra leverandørerne inden for Viden og service

Ingen resultater fundet.

Nyeste leverandører inden for Viden og service

Ingen resultater fundet.

Cases fra Viden og service

Nyeste produkter indenfor Viden og service

Artikler og inspiration indenfor Viden og service

Events og netværk indenfor Viden og service

Error executing template "Designs/exhibition_site/QueryPublisher/MCH365-products-with-filters.cshtml"
System.Exception: Product is not of type Co3.MCH.Website.Frontend.Models.Frontend.MCH365.Event. Check asset type of product id : AP5873b0db6899c2d13a0e3dcd6c4d.
at Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce.EventProduct.Populate(ProductSettings settings) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Models\Frontend\Ecommerce\EventProduct.cs:line 129
at Co3.MCH.Website.Frontend.Services.Ecommerce.ProductService.GetEspressoProduct(ProductSettings settings, String key) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Services\Ecommerce\ProductService.cs:line 45
at CompiledRazorTemplates.Dynamic.RazorEngine_6a55befab97b41f48b8eca806d80dd56.<>c__DisplayClass1_0.<Execute>b__0(LoopItem product) in E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\QueryPublisher\MCH365-products-with-filters.cshtml:line 83
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at CompiledRazorTemplates.Dynamic.RazorEngine_6a55befab97b41f48b8eca806d80dd56.Execute() in E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\QueryPublisher\MCH365-products-with-filters.cshtml:line 79
at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.Module 2 @using System.Web 3 @using Co3.Espresso.Website.Services 4 @using Co3.Espresso.Website.Models.FrontEnd 5 @using Co3.Espresso.Website.Models.FrontEnd.Ecommerce 6 @using Co3.Espresso.Website.Models.FrontEnd.Settings 7 @using Co3.Espresso.Website.Models.FrontEnd.Handlebars 8 @using Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce 9 @using Co3.MCH.Website.Frontend.Models.Frontend.Users 10 @using Dynamicweb.Frontend 11 12 @{ 13 bool showFilters = Espresso.Item.FiltersShow == "True"; 14 EspressoSort sort = ProductListService.Instance.GetSort(); 15 string assetType = Espresso.Item.Type; 16 string q = HttpUtility.HtmlAttributeEncode( HttpContext.Current.Request[ "q" ] ); 17 18 UserContext.Current.UpdateLatestProductListPageIds( assetType, PageView.Current().Page.ID ); 19 20 HandlebarsProductListTemplate handlebarsProductListTemplate = HandlebarsService.Instance.GetProductListTemplate( new HandlebarsProductListTemplateSettings() 21 { 22 Classes = new ClassList( "e-productlist js-e-productlist js-e-require" ), 23 HeaderClasses = new ClassList( "col-12 border-bottom" ), 24 MainClasses = new ClassList( showFilters ? "col-12 col-lg-9 col-xl-9" : "col-12" ), 25 AsideClasses = new ClassList( "col-12 col-lg-3 col-xl-3" ), 26 FooterClasses = new ClassList( "col-12 col-lg-3 col-xl-3" ), 27 PageSize = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageSize" ] ) ? GetInteger( "DwPaging.PageSize" ).ToString() : HttpContext.Current.Request[ "PageSize" ], 28 PageNumber = string.IsNullOrEmpty( HttpContext.Current.Request[ "PageNum" ] ) ? GetInteger( "DwPaging.CurrentPage" ).ToString() : HttpContext.Current.Request[ "PageNum" ], 29 SortBy = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortBy" ] ) ? sort.By : HttpContext.Current.Request[ "SortBy" ], 30 SortOrder = string.IsNullOrEmpty( HttpContext.Current.Request[ "SortOrder" ] ) ? sort.Order : HttpContext.Current.Request[ "SortOrder" ], 31 ShowFilters = showFilters, 32 ShowSorting = Espresso.Item.SortShow == "True", 33 Heading = Espresso.Item.HeadingShow == "True" ? Espresso.Item.Name : string.Empty 34 } ); 35 36 37 List< EspressoPagingPage > productListPaging = new List< EspressoPagingPage >(); 38 if ( GetLoop( "DwPaging.LoopAllPages" ).Count > 0 ) 39 { 40 foreach ( LoopItem page in GetLoop( "DwPaging.LoopAllPages" ) ) 41 { 42 productListPaging.Add( new EspressoPagingPage() 43 { 44 Url = page.GetString( "AllPages.PageLink" ), 45 Number = page.GetString( "AllPages.PageNumber" ) 46 } ); 47 } 48 } 49 50 string listKey = string.Empty; 51 switch ( assetType ) 52 { 53 case "article": 54 listKey = nameof( ArticleMergeProduct ); 55 break; 56 case "case": 57 listKey = nameof( ArticleMergeProduct ); 58 break; 59 case "articlemerge": 60 listKey = nameof( ArticleMergeProduct ); 61 break; 62 case "event": 63 listKey = nameof( EventProduct ); 64 break; 65 case "contact": 66 listKey = nameof( ContactPersonProduct ); 67 break; 68 case "product": 69 listKey = nameof( ProductProduct ); 70 break; 71 case "profile": 72 listKey = nameof( ProfileProduct ); 73 break; 74 default: 75 listKey = nameof( ProductProduct ); 76 break; 77 } 78 79 EspressoProductList espressoProductList = Co3.MCH.Website.Frontend.Services.Ecommerce.ProductListService.Instance.GetProductList( 80 new ProductListSettings() 81 { 82 Products = GetLoop( "QueryResultItem" ).Select( 83 product => Co3.MCH.Website.Frontend.Services.Ecommerce.ProductService.Instance.GetEspressoProduct( 84 new ProductSettings() 85 { 86 Id = product.GetString( "ID" ), 87 VariantId = product.GetString( "VariantID" ), 88 PrimaryVariantId = product.GetString( "DefaultVariantComboID" ), 89 EmbeddedInModelList = true 90 }, listKey 91 ) 92 ).ToList(), 93 Paging = productListPaging, 94 PageSize = Convert.ToInt32( handlebarsProductListTemplate.PageSize ), 95 CurrentPage = Convert.ToInt32( handlebarsProductListTemplate.PageNumber ) 96 }, listKey ); 97 } 98 99 <div class="@handlebarsProductListTemplate.Classes" data-current-page="@GetInteger( "Ecom:ProductList.CurrentPage" )" data-page-count="@GetLoop( "Ecom:ProductList.Pages" ).Count" data-page-size="@handlebarsProductListTemplate.PageSize" data-products-url="@Espresso.Item.ProductsUrl" data-filters-url="@Espresso.Item.ProductsUrl" data-require="productlist"> 100 <div class="row"> 101 <div class="col-12"> 102103 <form class="js-e-productlist-form js-e-require" data-require="selectMultiple"> 104105 <input name="PageNum" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.PageNumber )"> 106 <input name="SortBy" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.SortBy )"> 107 <input name="SortOrder" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.SortOrder )"> 108 <input name="PageSize" type="hidden" value="@HttpUtility.HtmlAttributeEncode( handlebarsProductListTemplate.PageSize )"> 109 <input name="ProductAssetType" type="hidden" value="@HttpUtility.HtmlAttributeEncode( assetType )"> 110111 @if ( Espresso.Item.SearchShow != "True" ) 112 { 113 <input name="q" type="hidden" class="e-productlist-filters-search-input e-search-input form-control-plaintext js-e-search-input" value="@q"> 114 } 115116 @if ( handlebarsProductListTemplate.ShowFilters ) 117 { 118 foreach ( LoopItem facetGroup in GetLoop( "FacetGroups" ) ) 119 { 120 <input name="fg" type="hidden" value="@facetGroup.GetString( "FacetGroup.Name" )"> 121 } 122 } 123124 @foreach ( LoopItem queryParameter in GetLoop( "Query.Parameters" ) ) 125 { 126 if ( string.IsNullOrEmpty( queryParameter.GetString( "Parameter.Value" ) ) == false ) 127 { 128 if ( queryParameter.GetBoolean( "Parameter.IsHandledAsFacet" ) == false && queryParameter.GetString( "Parameter.Name" ) != "q" ) 129 { 130 <input name="@queryParameter.GetString( "Parameter.Name" )" type="hidden" value="@HttpUtility.HtmlAttributeEncode( queryParameter.GetString( "Parameter.Value" ) )"> 131 } 132 } 133 } 134135 @RenderingService.Instance.PartialView( "querypublisher/partials/mch365-filters.cshtml", Espresso ) 136 </form> 137138 @RenderingService.Instance.PartialView( "querypublisher/partials/mch365-header.cshtml", handlebarsProductListTemplate ) 139140 </div> 141142 <div class="col-12"> 143 @RenderingService.Instance.PartialView( "querypublisher/partials/mch365-products.cshtml", espressoProductList ) 144 @RenderingService.Instance.PartialView( "querypublisher/partials/mch365-paging.cshtml", espressoProductList ) 145 </div> 146 </div> 147 </div> 148
keyboard_arrow_up