Leverandører indenfor Tekstiler

Se alle leverandører

Nyeste leverandører indenfor Tekstiler

Error executing template "Designs/exhibition_site/QueryPublisher/partials/mch365-exhibitor-item.cshtml"
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Co3.MCH.Website.Frontend.Repositories.BaseRepository.GetAssetIds(Profile profile, String type, String cacheKey, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Repositories\BaseRepository.cs:line 56
at Co3.MCH.Website.Frontend.Repositories.ContactPersonRepository.GetContactPersons(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Repositories\ContactPersonRepository.cs:line 38
at Co3.MCH.Website.Frontend.Services.MCH365.ContactPersonService.GetContactPersons(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Services\MCH365\ContactPersonService.cs:line 148
at Co3.MCH.Website.Frontend.Services.MCH365.ContactPersonService.GetContactPersonProducts(Profile profile, MCH365ViewType viewType) in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Services\MCH365\ContactPersonService.cs:line 440
at Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce.PresentationProduct.get_ContactPersons() in C:\Data\Development\git\mch-master\Co3.MCH.Website.Frontend\Models\Frontend\Ecommerce\PresentationProduct.cs:line 81
at CompiledRazorTemplates.Dynamic.RazorEngine_45ce43c1066544e9a135e84e087c536b.Execute() in E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\QueryPublisher\partials\mch365-exhibitor-item.cshtml:line 20
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 @using Co3.MCH.Data.Models.MCH365 2 @using Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce 3 @using Co3.MCH.Website.Frontend.Services.Ecommerce 4 @using Dynamicweb 5 @inherits Dynamicweb.Rendering.ViewModelTemplate< Co3.MCH.Website.Frontend.Models.Frontend.Ecommerce.ProfileProduct > 6 7 @{ 8 bool hasPresentation = Model.HasPresentation; 9 bool companyBookMeeting = Model.Contact.BookMeeting; 10 bool companyDirectContact = Model.Contact.DirectContact; 11 string companyEmail = Model.Company.Email; 12 13 List< ContactPersonProduct > contactPersons; 14 15 string profileText; 16 17 18 if ( hasPresentation ) 19 { 20 contactPersons = Model.Presentation.ContactPersons.Products.Select( p => ( ContactPersonProduct )p ).ToList(); 21 profileText = ProductService.Instance.GetTruncatedFormattedString( Model.Presentation.DescriptionFormatted, 650 ); 22 } 23 else 24 { 25 contactPersons = Model.ContactPersons.Products.Select( p => ( ContactPersonProduct )p ).ToList(); 26 profileText = ProductService.Instance.GetTruncatedFormattedString( Model.Company.DescriptionFormatted, 650 ); 27 } 28 29 string listViewMode = string.IsNullOrEmpty( Context.Current.Session[ "ListViewMode" ]?.ToString() ) ? "expanded" : Context.Current.Session[ "ListViewMode" ]?.ToString(); 30 if ( listViewMode == "condensed" ) 31 { 32 <div data-listViewMode="@listViewMode" class="w-100 bg-ultralight border-radius mt-half e-block-link e-productlist-item js-e-block-link js-e-productlist-item js-e-productlist-item-@Model.Id" data-product-id="@Model.Id" data-variant-id="@Model.VariantId"> 33 <div class="e-productlist-item-container container-fluid h-100"> 34 <div class="row h-100"> 35 <div class="col-12 p-1 mch365-productlist-item-content-wrapper item-condensed flex-row"> 36 <div class="item-condensed-title"> 37 <div class="d-flex mr-3"> 38 <div class="condensed-list-logo mr-1"> 39 @if ( Model?.Company?.Logo != null ) 40 { 41 string logoImage = Model.Company.Logo; 42 string companyBackgroundColor = Model.Company.BrandColor; 43 string noCompanyInfo = ""; 44 string textLight = "e-text-light"; 45 if ( string.IsNullOrEmpty( logoImage ) && string.IsNullOrEmpty( companyBackgroundColor ) ) 46 { 47 noCompanyInfo = "bg-light"; 48 textLight = "text-muted"; 49 } 50 51 string noLogoBackground = ""; 52 if ( string.IsNullOrEmpty( logoImage ) && !string.IsNullOrEmpty( companyBackgroundColor ) ) 53 { 54 noLogoBackground = "style=\"background:" + companyBackgroundColor + ";\""; 55 } 56 57 <div class="e-productlist-item-image-container @noCompanyInfo mb-0" @noLogoBackground> 58 <a class="e-productlist-item-image-wrapper justify-content-center align-items-center d-flex @textLight" href="@Model.Link"> 59 @{ 60 if ( string.IsNullOrEmpty( logoImage ) ) 61 { 62 <span class="h1 mb-0">@Model.Company.Name.Substring( 0, 1 ).ToLower()</span> 63 } 64 else 65 { 66 <img alt="@Model.Company.Name" class="e-productlist-item-image w-100 p-1" src="@logoImage"/> 67 } 68 } 69 70 </a> 71 </div> 72 } 73 </div> 74 <div> 75 <h4 class="mb-0 font-weight-extrabold line-clamp-1">@Model.Company.Name</h4> 76 <p class="small line-height-sm mb-0 mt-1 line-clamp-2"> 77 @profileText 78 </p> 79 </div> 80 </div> 81 </div> 82 <div class="item-condensed-booth"> 83 84 85 @*DB: SKAL SLETTES 86 <h4 class="mt-half text-muted mb-0 font-weight-extrabold mr-xl-2" style="white-space: nowrap"> 87 K <span class="text-downsize-notched">8118</span> 88 </h4> 89 DB: SKAL SLETTES - END *@ 90 91 @if ( hasPresentation ) 92 { 93 if ( Model.Presentation.Booths != null ) 94 { 95 int boothCount = Model.Presentation.Booths.Count(); 96 if ( boothCount == 1 ) 97 { 98 foreach ( BoothInfo booth in Model.Presentation.Booths ) 99 { 100 if ( booth.Hall != null && booth.Booth != null ) 101 { 102 <p class="small mb-0"> 103 <small>Stand</small> 104 </p> 105 <h4 class="mt-half text-muted mb-0 font-weight-extrabold mr-xl-2" style="white-space: nowrap"> 106 @booth.Hall.Name <span class="text-downsize-notched">@booth.Booth.Number </span> 107 </h4> 108 } 109 } 110 } 111 else 112 { 113 <div class="d-inline-flex flex-wrap mb-1"> 114 <p class="small mb-0"> 115 <small>Stand</small> 116 </p> 117 @foreach ( BoothInfo booth in Model.Presentation.Booths ) 118 { 119 if ( booth.Hall != null && booth.Booth != null ) 120 { 121 <h4 class="mt-half text-muted mb-0 font-weight-extrabold mr-xl-2" style="white-space: nowrap"> 122 @booth.Hall.Name <span class="text-downsize-notched">@booth.Booth.Number</span> 123 </h4> 124 } 125 } 126 </div> 127 } 128 } 129 } 130 </div> 131 <div class="item-condensed-subasset"> 132 @if ( Model.SubAssetInfo.Count > 0 ) 133 { 134 <p class="mb-0 font-weight-bold"> 135 <small>@Model.SubAssetInfo.Count @Translate( "MCH365 - Profile listItem SubAssetInfo - Text", "opslag" )</small> 136 </p> 137 <p class="text-muted small mb-0 mt-half font-weight-normal d-none d-md-block">@Translate( "MCH365 - Profile listItem latestUpdate - Text", "seneste fra" ) @Model.SubAssetInfo.LatestDate.ToString( "d. MMMM yyyy" )</p> 138 } 139 </div> 140 <div class="item-condensed-contacts"> 141 @if ( contactPersons.Any() ) 142 { 143 <div class="mt-auto"> 144 <p class="d-block mb-0 text-right"> 145 <small>@contactPersons.Count() @Translate( "MCH365 - Profile listItem contactPersons - Text", "kontakt&shy;personer" )</small> 146 </p> 147 </div> 148 } 149 </div> 150 <div class="item-condensed-options"> 151 @if ( !string.IsNullOrEmpty( companyEmail ) ) 152 { 153 <div class="d-flex small align-items-center justify-content-end mch365-custom-productlist-cta"> 154 @if ( companyDirectContact ) 155 { 156 <span class="mch365-custom-productlist-cta-icon"> 157 <img src="/Files/Templates/Designs/exhibition_site/_assets/img/streamline/streamline-icon-email-action-edit@48x48.svg" title="@Translate( "MCH365 - Profile listItem contactDirect - Text", "Direkte kontakt" )"/> 158 </span> 159 } 160 @if ( companyBookMeeting ) 161 { 162 <span class="mch365-custom-productlist-cta-icon"> 163 <img src="/Files/Templates/Designs/exhibition_site/_assets/img/streamline/streamline-icon-calendar-edit@48x48.svg" title="@Translate( "MCH365 - Profile listItem bookMeeting - Text", "Møde&shy;booking" )"/> 164 </span> 165 } 166 </div> 167 } 168 </div> 169 </div> 170 </div> 171 </div> 172 </div> 173 } 174 else 175 { 176 <div class="w-100 bg-ultralight border-radius my-1 e-block-link e-productlist-item js-e-block-link js-e-productlist-item js-e-productlist-item-@Model.Id" data-product-id="@Model.Id" data-variant-id="@Model.VariantId"> 177 <div class="e-productlist-item-container container-fluid h-100"> 178 <div class="row h-100"> 179 <div class="col-9 col-lg-7 col-xl-8 p-1 p-lg-2 mch365-productlist-item-content-wrapper"> 180 <h3 class="mb-0 font-weight-extrabold">@Model.Company.Name</h3> 181182 @if ( hasPresentation ) 183 { 184 if ( Model.Presentation.Booths != null ) 185 { 186 int boothCount = Model.Presentation.Booths.Count(); 187 if ( boothCount == 1 ) 188 { 189 foreach ( BoothInfo booth in Model.Presentation.Booths ) 190 { 191 if ( booth.Hall != null && booth.Booth != null ) 192 { 193 <h3 class="text-muted mt-0 mb-1 font-weight-extrabold"> 194 @booth.Hall.Name <span class="text-downsize-notched">@booth.Booth.Number </span> 195 </h3> 196 } 197 } 198 } 199 else 200 { 201 <div class="d-inline-flex flex-wrap mb-1"> 202 @foreach ( BoothInfo booth in Model.Presentation.Booths ) 203 { 204 if ( booth.Hall != null && booth.Booth != null ) 205 { 206 <h3 class="text-muted mt-0 mb-0 font-weight-extrabold mr-2" style="white-space: nowrap"> 207 @booth.Hall.Name <span class="text-downsize-notched">@booth.Booth.Number</span> 208 </h3> 209 } 210 } 211 </div> 212 } 213 } 214 } 215216 <p class="small line-height-sm mb-2 mt-1 line-clamp-10"> 217 @profileText 218 </p> 219220221 @if ( Model.SubAssetInfo.Count > 0 ) 222 { 223 <span class="mch365-productlist-item-bulletin-wrapper mt-auto"> 224 <h4 class="mb-0">@Model.SubAssetInfo.Count @Translate( "MCH365 - Profile listItem SubAssetInfo - Text", "opslag" )</h4> 225 <p class="text-muted small mb-0 mt-half font-weight-normal">@Translate( "MCH365 - Profile listItem latestUpdate - Text", "seneste fra" ) @Model.SubAssetInfo.LatestDate.ToString( "d. MMMM yyyy" )</p> 226 </span> 227 } 228229 </div> 230 <div class="col-3 col-lg-5 col-xl-4 bg-light p-1 p-lg-2 mch365-productlist-item-sidebar-wrapper"> 231232 @if ( Model?.Company?.Logo != null ) 233 { 234 string logoImage = Model.Company.Logo; 235 string companyBackgroundColor = Model.Company.BrandColor; 236237 string noCompanyInfo = ""; 238 string textLight = "e-text-light"; 239240 if ( string.IsNullOrEmpty( logoImage ) && string.IsNullOrEmpty( companyBackgroundColor ) ) 241 { 242 noCompanyInfo = "bg-light"; 243 textLight = "text-muted"; 244 } 245246 string noLogoBackground = ""; 247 if ( string.IsNullOrEmpty( logoImage ) && !string.IsNullOrEmpty( companyBackgroundColor ) ) 248 { 249 noLogoBackground = "style=\"background:" + companyBackgroundColor + ";\""; 250 } 251252 <div class="e-productlist-item-image-container @noCompanyInfo" @noLogoBackground> 253 <a class="e-productlist-item-image-wrapper justify-content-center align-items-center d-flex @textLight" href="@Model.Link"> 254 @{ 255 if ( string.IsNullOrEmpty( logoImage ) ) 256 { 257 <span class="h1 mb-0">@Model.Company.Name.Substring( 0, 1 ).ToLower()</span> 258 } 259 else 260 { 261 <img alt="@Model.Company.Name" class="e-productlist-item-image w-100 p-1" src="@logoImage"/> 262 } 263 } 264265 </a> 266 </div> 267 } 268269 @if ( !string.IsNullOrEmpty( companyEmail ) ) 270 { 271 <div class="small flex-column mb-2"> 272 @if ( companyDirectContact ) 273 { 274 <span class="d-flex small font-weight-normal mb-1 align-items-center text-center mch365-custom-productlist-cta"> 275 <span class="mch365-custom-productlist-cta-icon"> 276 <img src="/Files/Templates/Designs/exhibition_site/_assets/img/streamline/streamline-icon-email-action-edit@48x48.svg"/> 277 </span><span class="text-muted">@Translate( "MCH365 - Profile listItem contactDirect - Text", "Direkte kontakt" )</span> 278 </span> 279 } 280 @if ( companyBookMeeting ) 281 { 282 <span class="d-flex small font-weight-normal mb-1 align-items-center text-center mch365-custom-productlist-cta"> 283 <span class="mch365-custom-productlist-cta-icon"> 284 <img src="/Files/Templates/Designs/exhibition_site/_assets/img/streamline/streamline-icon-calendar-edit@48x48.svg"/> 285 </span><span class="text-muted">@Translate( "MCH365 - Profile listItem bookMeeting - Text", "Møde&shy;booking" )</span> 286 </span> 287 } 288 </div> 289 } 290 @if ( contactPersons.Any() ) 291 { 292 <div class="mt-auto"> 293 <ul class="mch365-productlist-custom-contact-persons"> 294295 @foreach ( ContactPersonProduct contactPerson in contactPersons.OrderBy( cp => cp.Sort ).Take( 3 ) ) 296 { 297 string noImageClasses = ""; 298 string contactPersonImage = contactPerson.Image; 299 if ( string.IsNullOrEmpty( contactPersonImage ) ) 300 { 301 contactPersonImage = "/Files/Templates/Designs/mch365_admin/_assets/img/mch365-noimage.svg"; 302 noImageClasses = "bg-white"; 303 } 304305 <li class="animate animate-triggered fadeIn animate-show @noImageClasses" style="background-image: url('/admin/public/getimage.ashx?Image=@contactPersonImage&amp;Width=100&amp;Height=100&amp;Format=webp&amp;Quality=75&amp;Crop=0');" title="@contactPerson.Name"></li> 306 } 307308 @if ( contactPersons.Count() > 3 ) 309 { 310 <li class="mch365-productlist-custom-contact-persons-add">&nbsp;</li> 311 } 312313 </ul> 314 <p class="d-block mb-0 mt-1 small text-center"> 315 <small>@contactPersons.Count() @Translate( "MCH365 - Profile listItem contactPersons - Text", "kontakt&shy;personer" )</small> 316 </p> 317 </div> 318 } 319 </div> 320 </div> 321 </div> 322 </div> 323 } 324 } 325

Cases fra Tekstiler

Ingen resultater fundet.

Nyeste produkter indenfor Tekstiler

Ingen resultater fundet.

Artikler og inspiration indenfor Tekstiler

Ingen resultater fundet.
keyboard_arrow_up