Error compiling template "Designs/BioLegend/eCom/Product/productPdf.cshtml"
Line 119: 'Services' est obsolète : 'Use Dynamicweb.Content.Services instead.'
Line 119: 'Services.Areas' est obsolète : 'Use Dynamicweb.Content.Services.Areas instead.'
Line 136: 'Services' est obsolète : 'Use Dynamicweb.Content.Services instead.'
Line 136: 'Services.Areas' est obsolète : 'Use Dynamicweb.Content.Services.Areas instead.'
Line 250: 'Group.GetGroupById(string)' est obsolète : 'Use Services.ProductGroups.GetGroup instead.'
Line 2118: La variable 'appNotesID' est assignée, mais sa valeur n'est jamais utilisée
Line 3620: La variable 'block' est assignée, mais sa valeur n'est jamais utilisée
Line 4072: 'User.IsExtranetUserLoggedIn()' est obsolète : 'Use IsFrontendUserLoggedIn() instead.'
Line 4076: 'User.CurrentSecondaryUser' est obsolète : 'Use GetCurrentSecondaryUser() instead.'
Line 4076: 'User.CurrentSecondaryUser' est obsolète : 'Use GetCurrentSecondaryUser() instead.'
Line 4077: 'User.CurrentSecondaryUser' est obsolète : 'Use GetCurrentSecondaryUser() instead.'
Line 4412: 'User.IsExtranetUserLoggedIn()' est obsolète : 'Use IsFrontendUserLoggedIn() instead.'
Line 4416: 'User.GetCurrentUser()' est obsolète : 'Use GetCurrentBackendUser() or GetCurrentFrontendUser() instead.'
Line 4522: 'Product.GetProductsBySql(string)' est obsolète : 'Don't use this'
Line 7468: 'CacheItemPolicy' est une référence ambiguë entre 'Dynamicweb.Caching.CacheItemPolicy' et 'System.Runtime.Caching.CacheItemPolicy'
Line 4473: La variable 'str_starClass' est assignée, mais sa valeur n'est jamais utilisée
Line 4474: La variable 'str_halfStar' est assignée, mais sa valeur n'est jamais utilisée
Line 4688: La variable 'readerPathwaysCount' est assignée, mais sa valeur n'est jamais utilisée

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 93 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 2887 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 18 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 3 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 32 using Dynamicweb.Rendering; 33 34 #line default 35 #line hidden 36 37 #line 17 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 38 using System.Collections.Specialized; 39 40 #line default 41 #line hidden 42 43 #line 5 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 44 using System.Text; 45 46 #line default 47 #line hidden 48 49 #line 6 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 50 using System.IO; 51 52 #line default 53 #line hidden 54 55 #line 7 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 56 using System.Web; 57 58 #line default 59 #line hidden 60 61 #line 16 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 62 using System.Text.RegularExpressions; 63 64 #line default 65 #line hidden 66 67 #line 9 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 68 using System.Data; 69 70 #line default 71 #line hidden 72 73 #line 10 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 74 using BioLegend.Ecommerce.LiveIntegration; 75 76 #line default 77 #line hidden 78 79 #line 11 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 80 using System.Globalization; 81 82 #line default 83 #line hidden 84 85 #line 13 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 86 using System.Collections; 87 88 #line default 89 #line hidden 90 91 #line 15 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 92 using System.Runtime.Caching; 93 94 #line default 95 #line hidden 96 97 #line 95 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 98 using System.Web.Script.Serialization; 99 100 #line default 101 #line hidden 102 103 #line 2888 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 104 using Dynamicweb.Caching; 105 106 #line default 107 #line hidden 108 109 110 public class RazorEngine_4a1d60be34b94de1a72060f7ea174dd6 : RazorTemplateBase<RazorTemplateModel<Template>> { 111 112 #line hidden 113 114 #line 19 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 115 116 117 public string LocalizeLinksHTML (string HtmlContent){ 118 int areaID = Pageview.Area.ID; 119 var area = Dynamicweb.Services.Areas.GetArea(areaID); 120 string areaCulture = area.Culture.ToLower(); 121 if(!string.IsNullOrEmpty(HtmlContent)){ 122 if(HtmlContent.IndexOf("dwcountry") > -1){ 123 return HtmlContent.Replace("dwcountry",areaCulture); 124 } else{ 125 return HtmlContent; 126 } 127 128 } else { 129 return HtmlContent; 130 } 131 132 } 133 134 public string LocalizeLinks (string HtmlContent){ 135 int areaID = Pageview.Area.ID; 136 var area = Dynamicweb.Services.Areas.GetArea(areaID); 137 string areaCulture = area.Culture.ToLower(); 138 if(!string.IsNullOrEmpty(HtmlContent)){ 139 if(HtmlContent.IndexOf("dwcountry") > -1){ 140 return HtmlContent.Replace("dwcountry",areaCulture); 141 } else if (HtmlContent.IndexOf("?ID=") > -1) { 142 //do something 143 string baseHref = String.Format("https://{0}",GetGlobalValue("Global:Request.Host")); 144 HtmlContent = HtmlContent.Contains("http") ? HtmlContent : baseHref + "/" + HtmlContent; 145 var uri = new Uri(HtmlContent,UriKind.RelativeOrAbsolute); 146 var parsedQuery = HttpUtility.ParseQueryString(uri.Query); 147 var pageID = parsedQuery.Get("ID"); 148 149 string pageVersionID = pageID; 150 string localizedLink = HtmlContent; 151 if (!string.IsNullOrEmpty(pageID)){ 152 var pageService = new Dynamicweb.Content.PageService(); 153 var linkPage = pageService.GetPagesByAreaID(areaID).FirstOrDefault(x => x.MasterPageId == int.Parse(pageID)); 154 pageVersionID = linkPage != null ? linkPage.ID.ToString() : pageID ; 155 156 localizedLink = ModifyQueryStringValue(HtmlContent,"ID",pageVersionID); 157 } 158 //return string.Join(",", parsedQuery.AllKeys); 159 //return string.Join(HtmlContent,"-",pageVersionID); 160 return localizedLink; 161 } else { 162 return HtmlContent; 163 } 164 }else { 165 return HtmlContent; 166 } 167 168 } 169 170 private string ModifyQueryStringValue(string p_query, string p_Name, string p_NewValue) 171 { 172 Uri uri = new Uri(p_query,UriKind.RelativeOrAbsolute); 173 //if(p_query.Contains("http")) 174 //{ 175 //uri = new Uri(p_query); 176 //} else { 177 //uri = new Uri(p_query, UriKind.Relative); 178 //} 179 //uri = new Uri(p_query); 180 181 182 183 var nameValues = HttpUtility.ParseQueryString(uri.Query); 184 nameValues.Set(p_Name, p_NewValue); 185 string url = uri.AbsolutePath + "?" + nameValues.ToString(); 186 return url; 187 } 188 189 #line default 190 #line hidden 191 192 193 #line 159 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 194 195 public static string GetPageFromAreaSetting(string key, dynamic pageview) 196 { 197 string pageID = pageview.Page.ID.ToString(); 198 var area = pageview.Area.Item; 199 200 if( area[key] != null && !String.IsNullOrEmpty(area[key].ToString())) 201 { 202 pageID = area[key].ToString(); 203 } 204 205 return pageID; 206 } 207 208 #line default 209 #line hidden 210 211 212 #line 177 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 213 public RazorEngine.Templating.TemplateWriter RenderParentEcomNav(Dynamicweb.Ecommerce.Products.Group group,string searchPageID) { 214 #line default 215 #line hidden 216 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 217 218 #line 177 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 219 220 221 List<string> notShowGroups = new List<string>(); 222 notShowGroups.Add("GROUP2"); //Cell Function/Viability Kits 223 notShowGroups.Add("GROUP10"); 224 notShowGroups.Add("GROUP18"); 225 notShowGroups.Add("GROUP19"); 226 notShowGroups.Add("GROUP20"); //Mouse Immunology Antibodies 227 notShowGroups.Add("GROUP21"); //ELISA MAX/LEGEND MAX 228 notShowGroups.Add("GROUP22"); //Buffers/Solutions/Chemicals 229 notShowGroups.Add("GROUP23"); //Secondary Reagents 230 notShowGroups.Add("GROUP24"); //Cytokine/Chemokine Antibodies 231 notShowGroups.Add("GROUP25"); //LEGENDplex 232 notShowGroups.Add("GROUP26"); //Cell Biology Antibodies 233 notShowGroups.Add("GROUP27"); //Rat Immunology Antibodies 234 notShowGroups.Add("GROUP28"); //Human Immunology Antibodies 235 notShowGroups.Add("GROUP29"); //Isotype Controls 236 notShowGroups.Add("GROUP30"); //Recombinant Proteins 237 notShowGroups.Add("GROUP31"); //LEGENDScreen 238 notShowGroups.Add("GROUP32"); //Neuroscience Products 239 notShowGroups.Add("GROUP33"); //Marmoset Immunology Antibodies 240 notShowGroups.Add("GROUP34"); //Virus Immunology Antibodies 241 notShowGroups.Add("GROUP35"); // 242 notShowGroups.Add("GROUP36"); //Epitope Tag Products 243 notShowGroups.Add("GROUP37"); //Flex-T 244 notShowGroups.Add("GROUP50"); //Cell Separation 245 notShowGroups.Add("GROUP51"); //Non-Antibody Chemical Probes 246 notShowGroups.Add("ImportedGROUP1"); 247 248 if (group.ParentGroupsDefaultLanguage != null && group.ParentGroupsDefaultLanguage.Any()) { 249 string parent_id = group.ParentGroupsDefaultLanguage[0].Id; 250 Dynamicweb.Ecommerce.Products.Group parent = Dynamicweb.Ecommerce.Products.Group.GetGroupById(parent_id); 251 252 if (parent != null && !notShowGroups.Contains(group.Id)) { 253 254 255 #line default 256 #line hidden 257 WriteLiteralTo(__razor_helper_writer, " "); 258 259 260 #line 211 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 261 WriteTo(__razor_helper_writer, RenderParentEcomNav(parent,searchPageID)); 262 263 264 #line default 265 #line hidden 266 WriteLiteralTo(__razor_helper_writer, "\r\n"); 267 268 269 #line 212 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 270 } 271 } 272 273 if(!notShowGroups.Contains(group.Id) && group.NavigationShowInSiteMap) 274 { 275 276 277 #line default 278 #line hidden 279 WriteLiteralTo(__razor_helper_writer, " <li"); 280 281 WriteLiteralTo(__razor_helper_writer, " data-groupID=\""); 282 283 284 #line 217 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 285 WriteTo(__razor_helper_writer, group.Id); 286 287 288 #line default 289 #line hidden 290 WriteLiteralTo(__razor_helper_writer, "\""); 291 292 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 293 294 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 9535), Tuple.Create("\"", 9590) 295 , Tuple.Create(Tuple.Create("", 9542), Tuple.Create("/Default.aspx?ID=", 9542), true) 296 297 #line 218 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 298 , Tuple.Create(Tuple.Create("", 9559), Tuple.Create<System.Object, System.Int32>(searchPageID 299 300 #line default 301 #line hidden 302 , 9559), false) 303 , Tuple.Create(Tuple.Create("", 9572), Tuple.Create("&GroupID=", 9572), true) 304 305 #line 218 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 306 , Tuple.Create(Tuple.Create("", 9581), Tuple.Create<System.Object, System.Int32>(group.Id 307 308 #line default 309 #line hidden 310 , 9581), false) 311 ); 312 313 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 314 315 WriteLiteralTo(__razor_helper_writer, " "); 316 317 318 #line 219 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 319 WriteTo(__razor_helper_writer, group.Name); 320 321 322 #line default 323 #line hidden 324 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 325 326 327 #line 222 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 328 } 329 330 331 #line default 332 #line hidden 333 }); 334 335 #line 223 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 336 } 337 #line default 338 #line hidden 339 340 341 #line 225 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 342 public RazorEngine.Templating.TemplateWriter RenderBiologyArea(string biologyArea) 343 { 344 #line default 345 #line hidden 346 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 347 348 #line 226 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 349 350 string baText = ""; 351 Dictionary<string, string> baDict = new Dictionary<string, string>(){ 352 {"adaptive_immunity","Adaptive Immunity"}, 353 {"angiogenesis","Angiogenesis"}, 354 {"apoptosis_tumor_suppressors_cell_death","Apoptosis/Tumor Suppressors/Cell Death"}, 355 {"bacterial_proteins_toxins","Bacterial proteins and Toxins"}, 356 {"cancer_biomarkers","Cancer Biomarkers"}, 357 {"cardiovascular_biology","Cardiovascular Biology"}, 358 {"cell_adhesion","Cell Adhesion"}, 359 {"cell_biology","Cell Biology"}, 360 {"cell_cycle_dna_replication","Cell Cycle/DNA Replication"}, 361 {"cell_death","Cell Death"}, 362 {"cell_motility_cytoskeleton_structure","Cell Motility/Cytoskeleton/Structure"}, 363 {"cell_proliferation_viability","Cell Proliferation and Viability"}, 364 {"cell_structure","Cell Structure"}, 365 {"chromatin_remodeling_epigenetics","Chromatin Remodeling/Epigenetics"}, 366 {"complement","Complement"}, 367 {"costimulatory_molecules","Costimulatory Molecules"}, 368 {"covid19","COVID-19"}, 369 {"dna_repair_replication","DNA Repair/Replication"}, 370 {"immuno_oncology","Immuno-Oncology"}, 371 {"immunology","Immunology"}, 372 {"inhibitory_molecules","Inhibitory Molecules"}, 373 {"innate_immunity","Innate Immunity"}, 374 {"mitochondrial_function","Mitochondrial Function"}, 375 {"neurodegeneration","Neurodegeneration"}, 376 {"neuroinflammation","Neuroinflammation"}, 377 {"neuroscience","Neuroscience"}, 378 {"neuroscience_cell_markers","Neuroscience Cell Markers"}, 379 {"protein_misfolding_aggregation","Protein Misfolding and Aggregation"}, 380 {"protein_purification","Protein Purification"}, 381 {"protein_synthesis","Protein Synthesis"}, 382 {"protein_trafficking_clearance","Protein Trafficking and Clearance"}, 383 {"signal_transduction","Signal Transduction"}, 384 {"stem_cell","Stem Cells"}, 385 {"synaptic_biology","Synaptic Biology"}, 386 {"transcription_factors","Transcription Factors"}, 387 {"ubiquitin_protein_degradation","Ubiquitin/Protein Degradation"}, 388 {"western_blot_controls","Western Blot Controls"} 389 }; 390 if(!string.IsNullOrWhiteSpace(biologyArea)) 391 { 392 string[] biologyAreas = biologyArea.Split(','); 393 foreach (string thisArea in biologyAreas) 394 { 395 baText += baDict[thisArea] + ", "; 396 } 397 398 399 baText = baText.Remove(baText.Length-2); 400 401 402 #line default 403 #line hidden 404 WriteLiteralTo(__razor_helper_writer, " <dt"); 405 406 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 407 408 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 409 410 WriteLiteralTo(__razor_helper_writer, " "); 411 412 413 #line 278 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 414 WriteTo(__razor_helper_writer, Translate("BiologyArea","Biology Area")); 415 416 417 #line default 418 #line hidden 419 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 420 421 WriteLiteralTo(__razor_helper_writer, " <dd"); 422 423 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 424 425 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 426 427 WriteLiteralTo(__razor_helper_writer, " "); 428 429 430 #line 281 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 431 WriteTo(__razor_helper_writer, baText); 432 433 434 #line default 435 #line hidden 436 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 437 438 439 #line 283 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 440 } 441 442 443 #line default 444 #line hidden 445 }); 446 447 #line 284 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 448 } 449 #line default 450 #line hidden 451 452 453 #line 286 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 454 public RazorEngine.Templating.TemplateWriter RenderMolecularFamily(string molecularFamily) 455 { 456 #line default 457 #line hidden 458 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 459 460 #line 287 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 461 462 string mfText = ""; 463 Dictionary<string, string> mfDict = new Dictionary<string, string>(){ 464 {"a_synuclein","&alpha;-Synuclein"}, 465 {"adaptor_proteins","Adaptor Proteins"}, 466 {"adhesion_molecules","Adhesion Molecules"}, 467 {"aldehyde_dehydrogenases","Aldehyde Dehydrogenases"}, 468 {"app_b_amyloid","APP/&beta;-Amyloid"}, 469 {"app_ab_degradation","APP/A&beta; Degradation"}, 470 {"apolipoproteins","Apolipoproteins"}, 471 {"autophagosome_markers","Autophagosome Markers"}, 472 {"blood_group_markers","Blood Group Markers"}, 473 {"carrier_proteins","Carrier Proteins"}, 474 {"cd_molecules","CD Molecules"}, 475 {"cytokine_chemokine_receptors","Cytokine/Chemokine Receptors"}, 476 {"cytokines_chemokines","Cytokines/Chemokines"}, 477 {"cytoskeletal_proteins","Cytoskeletal Proteins"}, 478 {"endoplasmic_reticulum_markers","Endoplasmic Reticulum Markers"}, 479 {"endosomal_markers","Endosomal Markers"}, 480 {"enzymes_regulators","Enzymes and Regulators"}, 481 {"exosome_markers","Exosome Markers"}, 482 {"fc_receptors","Fc Receptors"}, 483 {"gap_junction_proteins","Gap Junction Proteins"}, 484 {"golgi_markers","Golgi Markers"}, 485 {"gpcr","GPCR"}, 486 {"growth_factors","Growth Factors"}, 487 {"gtpases","GTPases"}, 488 {"heat_shock_proteins","Heat Shock Proteins"}, 489 {"hormones","Hormones"}, 490 {"immune_checkpoint_receptors","Immune Checkpoint Receptors"}, 491 {"innate_immune_signaling","Innate Immune Signaling"}, 492 {"intermediate_filaments","Intermediate Filaments"}, 493 {"ions_channels","Ion Channels"}, 494 {"ligases","Ligases"}, 495 {"lysosomal_markers","Lysosomal Markers"}, 496 {"mhc_antigens","MHC Antigens"}, 497 {"microfilaments","Microfilaments"}, 498 {"microtubules","Microtubules"}, 499 {"mitochondrial_markers","Mitochondrial Markers"}, 500 {"neurotransmitter_receptor_trafficking_endocytosis","Neurotransmitter Receptor Trafficking/Endocytosis"}, 501 {"neurotransmitter_receptors","Neurotransmitter Receptors"}, 502 {"neurotrophic_factors","Neurotrophic Factors"}, 503 {"nuclear_markers","Nuclear Markers"}, 504 {"organelle_markers","Organelle Markers"}, 505 {"postsynaptic_proteins","Postsynaptic proteins"}, 506 {"phospho_proteins","Phospho-Proteins"}, 507 {"presynaptic_proteins","Presynaptic proteins"}, 508 {"prion_cd230","Prion (CD230)"}, 509 {"proteases","Proteases"}, 510 {"protein_kinases_phosphatase","Protein Kinases/Phosphatase"}, 511 {"protein_modifiers","Protein Modifiers"}, 512 {"purinergic_receptors","Purinergic Receptors"}, 513 {"scaffold_proteins","Scaffold Proteins"}, 514 {"secretases","Secretases"}, 515 {"semaphorin_receptors","Semaphorin Receptors"}, 516 {"siglec_molecules","Siglec Molecules"}, 517 {"soluble_receptors","Soluble Receptors"}, 518 {"steroid_receptors_nuclear_receptors","Steroid Receptors/Nuclear Receptors"}, 519 {"synaptic_vesicle_trafficking_endocytosis","Synaptic Vesicle Trafficking/Endocytosis"}, 520 {"tau","Tau"}, 521 {"tcrs","TCRs"}, 522 {"tdp43","TDP43"}, 523 {"toll_like_receptors","Toll Like Receptors"}, 524 {"tumor_suppressors","Tumor Suppressors"} 525 }; 526 if(!string.IsNullOrWhiteSpace(molecularFamily)) 527 { 528 string[] molecularFamilies = molecularFamily.Split(','); 529 foreach (string thisArea in molecularFamilies) 530 { 531 mfText += mfDict[thisArea] + ", "; 532 } 533 534 535 mfText = mfText.Remove(mfText.Length-2); 536 537 538 #line default 539 #line hidden 540 WriteLiteralTo(__razor_helper_writer, " <dt"); 541 542 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 543 544 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 545 546 WriteLiteralTo(__razor_helper_writer, " "); 547 548 549 #line 363 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 550 WriteTo(__razor_helper_writer, Translate("MolecularFamily","Molecular Family")); 551 552 553 #line default 554 #line hidden 555 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 556 557 WriteLiteralTo(__razor_helper_writer, " <dd"); 558 559 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 560 561 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 562 563 WriteLiteralTo(__razor_helper_writer, " "); 564 565 566 #line 366 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 567 WriteTo(__razor_helper_writer, mfText); 568 569 570 #line default 571 #line hidden 572 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 573 574 575 #line 368 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 576 } 577 578 579 #line default 580 #line hidden 581 }); 582 583 #line 369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 584 } 585 #line default 586 #line hidden 587 588 589 #line 371 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 590 public RazorEngine.Templating.TemplateWriter RenderCellType(string cellType) 591 { 592 #line default 593 #line hidden 594 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 595 596 #line 372 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 597 598 string ctText = ""; 599 Dictionary<string, string> ctDict = new Dictionary<string, string>(){ 600 {"Antigenpresentingcells","Antigen-presenting cells"}, 601 {"Astrocytes","Astrocytes"}, 602 {"Bcells","B cells"}, 603 {"Basophils","Basophils"}, 604 {"Dendriticcells","Dendritic cells"}, 605 {"DopaminergicNeurons","Dopaminergic Neurons"}, 606 {"EmbryonicStemCells","Embryonic Stem Cells"}, 607 {"Endothelialcells","Endothelial cells"}, 608 {"Eosinophils","Eosinophils"}, 609 {"Epithelialcells","Epithelial cells"}, 610 {"Erythrocytes","Erythrocytes"}, 611 {"Fibroblasts","Fibroblasts"}, 612 {"GABAergicNeurons","GABAergic Neurons"}, 613 {"GlutamatergicNeurons","Glutamatergic Neurons"}, 614 {"Granulocytes","Granulocytes"}, 615 {"Hematopoieticstemandprogenitors","Hematopoietic stem and progenitors"}, 616 {"Langerhanscells","Langerhans cells"}, 617 {"Leukemia","Leukemia"}, 618 {"Leukocytes","Leukocytes"}, 619 {"Lymphocytes","Lymphocytes"}, 620 {"Macrophages","Macrophages"}, 621 {"Mastcells","Mast cells"}, 622 {"MatureNeurons","Mature Neurons"}, 623 {"Megakaryocytes","Megakaryocytes"}, 624 {"Mesenchymalcells","Mesenchymal cells"}, 625 {"MesenchymalStemCells","Mesenchymal Stem Cells"}, 626 {"Microglia","Microglia"}, 627 {"Monocytes","Monocytes"}, 628 {"NeuralStemCells","Neural Stem Cells"}, 629 {"Neurons","Neurons"}, 630 {"Neutrophils","Neutrophils"}, 631 {"NKcells","NK cells"}, 632 {"NKTcells","NKT cells"}, 633 {"Oligodendrocytes","Oligodendrocytes"}, 634 {"Osteoblasts","Osteoblasts"}, 635 {"Osteoclasts","Osteoclasts"}, 636 {"Plasmacells","Plasma cells"}, 637 {"Platelets","Platelets"}, 638 {"Schwanncells","Schwann Cells"}, 639 {"Tcells","T cells"}, 640 {"Tfh","Tfh"}, 641 {"Th1","Th1"}, 642 {"Th2","Th2"}, 643 {"Th17","Th17"}, 644 {"Thymocytes","Thymocytes"}, 645 {"Tregs","Tregs"} 646 }; 647 if(!string.IsNullOrWhiteSpace(cellType)) 648 { 649 string[] cellTypes = cellType.Split(','); 650 foreach (string thisType in cellTypes) 651 { 652 ctText += ctDict[thisType] + ", "; 653 } 654 655 656 ctText = ctText.Remove(ctText.Length-2); 657 658 659 #line default 660 #line hidden 661 WriteLiteralTo(__razor_helper_writer, " <dt"); 662 663 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 664 665 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 666 667 WriteLiteralTo(__razor_helper_writer, " "); 668 669 670 #line 433 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 671 WriteTo(__razor_helper_writer, Translate("CellType","Cell Type")); 672 673 674 #line default 675 #line hidden 676 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 677 678 WriteLiteralTo(__razor_helper_writer, " <dd"); 679 680 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 681 682 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 683 684 WriteLiteralTo(__razor_helper_writer, " "); 685 686 687 #line 436 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 688 WriteTo(__razor_helper_writer, ctText); 689 690 691 #line default 692 #line hidden 693 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 694 695 696 #line 438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 697 } 698 699 700 #line default 701 #line hidden 702 }); 703 704 #line 439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 705 } 706 #line default 707 #line hidden 708 709 710 #line 441 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 711 public RazorEngine.Templating.TemplateWriter RenderIsoype(string isotype) 712 { 713 #line default 714 #line hidden 715 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 716 717 #line 442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 718 719 string ctText = ""; 720 Dictionary<string, string> ctDict = new Dictionary<string, string>(){ 721 {"","N/A"}, 722 {"01","Armenian Hamster IgG"}, 723 {"02","Armenian Hamster IgG1"}, 724 {"03","Armenian Hamster IgG1, κ"}, 725 {"04","Armenian Hamster IgG2, κ"}, 726 {"05","Armenian Hamster IgM"}, 727 {"06","Donkey Polyclonal Ig"}, 728 {"07","Goat Ig"}, 729 {"08","Goat IgG"}, 730 {"09","Goat Polyclonal Ig"}, 731 {"09_5","Goat Polyclonal IgG"}, 732 {"10","Hamster IgG"}, 733 {"11","Mouse (A.SW) IgG2a, κ"}, 734 {"12","Mouse (BALB/c) IgE, κ"}, 735 {"13","Mouse (BALB/c) IgG1, κ"}, 736 {"14","Mouse (BALB/c) IgG2a, κ"}, 737 {"15","Mouse (BALB/c) IgG2b, κ"}, 738 {"16","Mouse (C3H.SW) IgG2a, κ"}, 739 {"17","Mouse (C3H.SW) IgG3, κ"}, 740 {"18","Mouse (C3H) IgG2a, κ"}, 741 {"19","Mouse (C57BL/6) IgE, κ"}, 742 {"20","Mouse (C57BL/6) IgG1, κ"}, 743 {"21","Mouse (CWB) IgG2a, κ"}, 744 {"22","Mouse (SJL) IgG2a, κ"}, 745 {"23","Mouse (SJL) IgG2b, κ"}, 746 {"24","Mouse IgA, κ"}, 747 {"24_1","Mouse IgA"}, 748 {"25","Mouse IgG"}, 749 {"26","Mouse IgG, κ"}, 750 {"27","Mouse IgG1"}, 751 {"28","Mouse IgG1 (all clones)"}, 752 {"29","Mouse IgG1/Mouse IgG2a"}, 753 {"29_1","Mouse IgG1, κ/Mouse IgG2a, κ/Mouse IgG2b, κ"}, 754 {"29_2","Mouse IgG1/Mouse IgM"}, 755 {"31","Mouse IgG1, κ"}, 756 {"31_1","Mouse IgG1, κ/Mouse IgG2a, κ"}, 757 {"31_2","Mouse IgG1, κ/Rat IgG2b, κ"}, 758 {"32","Mouse IgG1, κ (all clones)"}, 759 {"32_2","Mouse IgG1, λ"}, 760 {"33","Mouse IgG1/Mouse IgG2b"}, 761 {"34","Mouse IgG2a"}, 762 {"35","Mouse IgG2a, κ"}, 763 {"36","Mouse (A.TL) IgG2a, κ"}, 764 {"37","Mouse (C3H.KBR) IgG2a, κ"}, 765 {"38","Mouse IgG2a, λ"}, 766 {"39","Mouse IgG2b"}, 767 {"40","Mouse IgG2b, κ"}, 768 {"41","Mouse IgG2b, λ"}, 769 {"41_2","Mouse IgG2c"}, 770 {"41_5","Mouse IgG3"}, 771 {"42","Mouse IgG3, κ"}, 772 {"43","Mouse IgM"}, 773 {"44","Mouse IgM, κ"}, 774 {"45","Mouse IgM, λ"}, 775 {"46","Mouse (C3H/HeJ) IgG2a, κ"}, 776 {"46_5","Mouse Polyclonal"}, 777 {"47","Rabbit IgG"}, 778 {"47_1","Rabbit Ig"}, 779 {"48","Rabbit Polyclonal IgG"}, 780 {"48_5","Rabbit Polyclonal"}, 781 {"49","Rat (SD) IgG2b, λ"}, 782 {"49_5","Rat Polyclonal IgG"}, 783 {"50","Rat IgG"}, 784 {"51","Rat IgG, κ"}, 785 {"52","Rat IgG1"}, 786 {"53","Rat IgG1, κ"}, 787 {"54","Rat IgG1, λ"}, 788 {"55","Rat IgG2a"}, 789 {"56","Rat IgG2a, κ"}, 790 {"57","Rat IgG2a, λ"}, 791 {"58","Rat IgG2a/Rat IgG1"}, 792 {"59","Rat IgG2a/Rat IgG2b"}, 793 {"59_1","Rat IgG2a, κ/Rat IgG2b, κ"}, 794 {"59_2","Armenian Hamster IgG/Rat IgG2a/Rat IgG2b"}, 795 {"59_3","Rat IgG2a, κ/Rat IgG2b, κ/Rat IgG2c, κ"}, 796 {"60","Rat IgG2b"}, 797 {"61","Rat IgG2b, κ"}, 798 {"62","Rat IgG2b, λ"}, 799 {"62_5","Rat IgG2c"}, 800 {"64","Rat IgG2c, κ"}, 801 {"64_5","Rat IgM"}, 802 {"65","Rat IgM, κ"}, 803 {"66","Syrian Hamster IgG"}, 804 {"67","Armenian Hamster IgG1, λ"}, 805 {"68","Chicken Polyclonal IgY"}, 806 {"69","Sheep Polyclonal"}, 807 {"70","Guinea Pig Polyclonal"}, 808 {"81","Human IgG1"}, 809 {"81_5","Human IgG1, κ"}, 810 {"82","Human IgG2"}, 811 {"82_5","Human IgG2, κ"}, 812 {"83","Human IgG3"}, 813 {"83_5","Human IgG3, κ"}, 814 {"84","Human IgG4"}, 815 {"84_5","Human IgG4, κ"}, 816 {"99","TBD"}, 817 {"47_5","Rabbit Polyclonal Ig"}, 818 {"41_3","Mouse IgG2c, κ"}, 819 {"67_9","Chicken IgY"}, 820 {"40_1","Mouse IgG2b, κ/Mouse IgM, κ"}, 821 {"33_1","Mouse IgG1, κ/Mouse IgG2b, κ"}, 822 {"71","Llama VH Ig"} 823 }; 824 if(!string.IsNullOrWhiteSpace(isotype)) 825 { 826 string[] isotypes = isotype.Split(','); 827 foreach (string thisType in isotypes) 828 { 829 ctText += ctDict[thisType] + ", "; 830 } 831 832 833 ctText = ctText.Remove(ctText.Length-2); 834 835 836 #line default 837 #line hidden 838 WriteLiteralTo(__razor_helper_writer, " <dt"); 839 840 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 841 842 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 843 844 WriteLiteralTo(__razor_helper_writer, " "); 845 846 847 #line 559 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 848 WriteTo(__razor_helper_writer, Translate("IsotypeLabel","Isotype")); 849 850 851 #line default 852 #line hidden 853 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 854 855 WriteLiteralTo(__razor_helper_writer, " <dd"); 856 857 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 858 859 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 860 861 WriteLiteralTo(__razor_helper_writer, " "); 862 863 864 #line 562 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 865 WriteTo(__razor_helper_writer, ctText); 866 867 868 #line default 869 #line hidden 870 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 871 872 873 #line 564 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 874 } 875 876 877 #line default 878 #line hidden 879 }); 880 881 #line 565 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 882 } 883 #line default 884 #line hidden 885 886 887 #line 567 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 888 public RazorEngine.Templating.TemplateWriter RenderLaser(string laser) 889 { 890 #line default 891 #line hidden 892 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 893 894 #line 568 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 895 896 string laserText = ""; 897 string violetLaser = Translate("violetLaser","Violet Laser (405 nm)"); 898 string blueLaser = Translate("blueLaser","Blue Laser (488 nm)"); 899 string greenLaser = Translate("greenLaser","Green Laser (532 nm)/Yellow-Green Laser (561 nm)"); 900 string redLaser = Translate("redLaser","Red Laser (633 nm)"); 901 string ultravioletLaser = Translate("ultravioletLaser","Ultraviolet Laser (355 nm)"); 902 string[] lasers = laser.Split(','); 903 foreach (string thisLaser in lasers) 904 { 905 if(thisLaser == "violetLaser"){ 906 laserText += violetLaser + "<br />"; 907 } 908 if(thisLaser == "blueLaser"){ 909 laserText += blueLaser + "<br />"; 910 } 911 if(thisLaser == "greenLaser"){ 912 laserText += greenLaser + "<br />"; 913 } 914 if(thisLaser == "redLaser"){ 915 laserText += redLaser + "<br />"; 916 } 917 if(thisLaser == "ultravioletLaser"){ 918 laserText += ultravioletLaser + "<br />"; 919 } 920 } 921 922 if(!string.IsNullOrWhiteSpace(laserText)) 923 { 924 925 926 #line default 927 #line hidden 928 WriteLiteralTo(__razor_helper_writer, " <dt"); 929 930 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 931 932 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 933 934 WriteLiteralTo(__razor_helper_writer, " "); 935 936 937 #line 598 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 938 WriteTo(__razor_helper_writer, Translate("ExcitationLaser","Excitation Laser")); 939 940 941 #line default 942 #line hidden 943 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 944 945 WriteLiteralTo(__razor_helper_writer, " <dd"); 946 947 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 948 949 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 950 951 WriteLiteralTo(__razor_helper_writer, " "); 952 953 954 #line 601 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 955 WriteTo(__razor_helper_writer, laserText); 956 957 958 #line default 959 #line hidden 960 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 961 962 963 #line 603 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 964 } 965 966 967 #line default 968 #line hidden 969 }); 970 971 #line 604 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 972 } 973 #line default 974 #line hidden 975 976 977 #line 606 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 978 public RazorEngine.Templating.TemplateWriter RenderSpectralData(string format = "", string productID = "") 979 { 980 #line default 981 #line hidden 982 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 983 984 #line 607 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 985 986 string variable = ""; 987 string textAnchor = ""; 988 989 if(format == "A488") 990 { 991 variable = "AF488"; 992 textAnchor = "Alexa Fluor&reg; 488"; 993 } 994 else if(format == "A555") 995 { 996 variable = "AF555"; 997 textAnchor = "Alexa Fluor&reg; 555"; 998 } 999 else if(format == "A594") 1000 { 1001 variable = "AF594"; 1002 textAnchor = "Alexa Fluor&reg; 594"; 1003 } 1004 else if(format == "A647") 1005 { 1006 variable = "AF647"; 1007 textAnchor = "Alexa Fluor&reg; 647"; 1008 } 1009 else if(format == "A660") 1010 { 1011 variable = "AF660"; 1012 textAnchor = "Alexa Fluor&reg; 660"; 1013 } 1014 else if(format == "A700") 1015 { 1016 variable = "AF700"; 1017 textAnchor = "Alexa Fluor&reg; 700"; 1018 } 1019 else if(format == "APC") 1020 { 1021 variable = "APC"; 1022 textAnchor = "APC"; 1023 } 1024 else if(format == "APC_CY5.5") 1025 { 1026 variable = "APCCY55"; 1027 textAnchor = "APC/Cy5.5"; 1028 } 1029 else if(format == "APC_CYANINE7") 1030 { 1031 variable = "APCCYANINE7"; 1032 textAnchor = "APC/Cyanine7"; 1033 } 1034 else if(format == "APC_F750") 1035 { 1036 variable = "APCF750"; 1037 textAnchor = "APC/Fire&trade; 750"; 1038 } 1039 else if(format == "BV421") 1040 { 1041 variable = "BV421"; 1042 textAnchor = "Brilliant Violet 421&trade;"; 1043 } 1044 else if(format == "BV510") 1045 { 1046 variable = "BV510"; 1047 textAnchor = "Brilliant Violet 510&trade;"; 1048 } 1049 else if(format == "BV570") 1050 { 1051 variable = "BV570"; 1052 textAnchor = "Brilliant Violet 570&trade;"; 1053 } 1054 else if(format == "BV605") 1055 { 1056 variable = "BV605"; 1057 textAnchor = "Brilliant Violet 605&trade;"; 1058 } 1059 else if(format == "BV650") 1060 { 1061 variable = "BV650"; 1062 textAnchor = "Brilliant Violet 650&trade;"; 1063 } 1064 else if(format == "BV711") 1065 { 1066 variable = "BV711"; 1067 textAnchor = "Brilliant Violet 711&trade;"; 1068 } 1069 else if(format == "BV750") 1070 { 1071 variable = "BV750"; 1072 textAnchor = "Brilliant Violet 750&trade;"; 1073 } 1074 else if(format == "BV785") 1075 { 1076 variable = "BV785"; 1077 textAnchor = "Brilliant Violet 785&trade;"; 1078 } 1079 else if(format == "CYANINE3") 1080 { 1081 variable = "CYANINE3"; 1082 textAnchor = "Cyanine3"; 1083 } 1084 else if(format == "CYANINE5") 1085 { 1086 variable = "CYANINE5"; 1087 textAnchor = "Cyanine5"; 1088 } 1089 else if(format == "FITC") 1090 { 1091 variable = "FITC"; 1092 textAnchor = "FITC"; 1093 } 1094 else if(format == "PB") 1095 { 1096 variable = "PB"; 1097 textAnchor = "Pacific Blue&trade;"; 1098 } 1099 else if(format == "PE") 1100 { 1101 variable = "PE"; 1102 textAnchor = "PE"; 1103 } 1104 else if(format == "PE_CYANINE5") 1105 { 1106 variable = "PECYANINE5"; 1107 textAnchor = "PE/Cyanine5"; 1108 } 1109 else if(format == "PE_CY5.5") 1110 { 1111 variable = "PECY55"; 1112 textAnchor = "PE/Cy5.5"; 1113 } 1114 else if(format == "PE_CYANINE7") 1115 { 1116 variable = "PECYANINE7"; 1117 textAnchor = "PE/Cyanine7"; 1118 } 1119 else if(format == "PE_DZL594") 1120 { 1121 variable = "PEDZL594"; 1122 textAnchor = "PE/Dazzle&trade; 594"; 1123 } 1124 else if(format == "PERCP") 1125 { 1126 variable = "PERCP"; 1127 textAnchor = "PerCP"; 1128 } 1129 else if(format == "PERCP_CY55") 1130 { 1131 variable = "PERCPCYANINE55"; 1132 textAnchor = "PerCP/Cyanine5.5"; 1133 } 1134 //PerCP/Cyanine5.5 1135 else if(format == "PERCP_CYANINE5.5") 1136 { 1137 variable = "PERCPCYANINE55"; 1138 textAnchor = "PerCP/Cyanine5.5"; 1139 } 1140 //Flash Phalloidin NIR 647 1141 else if(productID == "13240") 1142 { 1143 variable = "FPNIR647"; 1144 textAnchor = "Flash Phalloidin&trade; NIR 647"; 1145 } 1146 //Flash Phalloidin Red 594 1147 else if(productID == "13203") 1148 { 1149 variable = "FPR594"; 1150 textAnchor = "Flash Phalloidin&trade; Red 594"; 1151 } 1152 //Flash Phalloidin Green 488 1153 else if(productID == "13950") 1154 { 1155 variable = "FPG488"; 1156 textAnchor = "Flash Phalloidin&trade; Green 488"; 1157 } 1158 //DAPI 1159 else if(productID == "8108") 1160 { 1161 variable = "DAPI"; 1162 textAnchor = "DAPI (4',6-Diamidino-2-Phenylindole, Dilactate)"; 1163 } 1164 //PI 1165 else if(productID == "2651") 1166 { 1167 variable = "PI"; 1168 textAnchor = "Propidium Iodide"; 1169 } 1170 //7AAD 1171 else if(productID == "1649") 1172 { 1173 variable = "7AAD"; 1174 textAnchor = "7-AAD"; 1175 } 1176 /* zombie Aqua */ 1177 else if(productID == "8444") 1178 { 1179 variable = "ZA"; 1180 textAnchor = "Zombie Aqua&trade;"; 1181 } 1182 /* zombie Green */ 1183 else if(productID == "9340") 1184 { 1185 variable = "ZG"; 1186 textAnchor = "Zombie Green&trade;"; 1187 } 1188 /* zombie NIR */ 1189 else if(productID == "8657") 1190 { 1191 variable = "ZNIR"; 1192 textAnchor = "Zombie NIR&trade;"; 1193 } 1194 /* zombie Red */ 1195 else if(productID == "9338") 1196 { 1197 variable = "ZR"; 1198 textAnchor = "Zombie Red&trade;"; 1199 } 1200 /* zombie Ultraviolet */ 1201 else if(productID == "9336") 1202 { 1203 variable = "ZUV"; 1204 textAnchor = "Zombie UV&trade;"; 1205 } 1206 /* zombie Violet */ 1207 else if(productID == "9341") 1208 { 1209 variable = "ZV"; 1210 textAnchor = "Zombie Violet&trade;"; 1211 } 1212 /* zombie Yellow */ 1213 else if(productID == "8514") 1214 { 1215 variable = "ZY"; 1216 textAnchor = "Zombie Yellow&trade;"; 1217 } 1218 /* zombie B550 */ 1219 else if(productID == "23629") 1220 { 1221 variable = "ZB550"; 1222 textAnchor = "Zombie B550&trade;"; 1223 } 1224 /* zombie Zombie YG581 */ 1225 else if(productID == "23631") 1226 { 1227 variable = "ZYG581"; 1228 textAnchor = "Zombie YG581&trade;"; 1229 } 1230 /* zombie R685 */ 1231 else if(productID == "23628") 1232 { 1233 variable = "ZR685"; 1234 textAnchor = "Zombie R685&trade;"; 1235 } 1236 /* zombie R718 */ 1237 else if(productID == "23630") 1238 { 1239 variable = "ZR718"; 1240 textAnchor = "Zombie R718&trade;"; 1241 } 1242 /* CFSE */ 1243 else if(productID == "8053") 1244 { 1245 variable = "CFSE"; 1246 textAnchor = "CFSE"; 1247 } 1248 /* DRAQ7 */ 1249 else if(productID == "9628") 1250 { 1251 variable = "DRAQ7"; 1252 textAnchor = "DRAQ7&trade;"; 1253 } 1254 /* DRAQ5 */ 1255 else if(productID == "9674") 1256 { 1257 variable = "DRAQ5"; 1258 textAnchor = "DRAQ5&trade;"; 1259 } 1260 1261 /* Helix NP NIR */ 1262 else if(productID == "13421") 1263 { 1264 variable = "HNPNIR"; 1265 textAnchor = "Helix NP&trade; NIR"; 1266 } 1267 1268 /* Cytophase Violet */ 1269 else if (productID == "13786") 1270 { 1271 variable = "CV"; 1272 textAnchor = "Cytophase&trade; Violet"; 1273 } 1274 1275 /* PE Fire 640 */ 1276 else if(format == "PE_F640") 1277 { 1278 variable = "PEFIRE640"; 1279 textAnchor = "PE/Fire&trade; 640"; 1280 } 1281 1282 /* PE Fire 700 */ 1283 else if(format == "PE_F700") 1284 { 1285 variable = "PEFIRE700"; 1286 textAnchor = "PE/Fire&trade; 700"; 1287 } 1288 1289 /* PE Fire 744 */ 1290 else if(format == "PE_F744") 1291 { 1292 variable = "PEFIRE744"; 1293 textAnchor = "PE/Fire&trade; 744"; 1294 } 1295 1296 /* PE Fire 780 */ 1297 else if(format == "PE_F780") 1298 { 1299 variable = "PEFIRE780"; 1300 textAnchor = "PE/Fire&trade; 780"; 1301 } 1302 1303 /* PE Fire 810 */ 1304 else if(format == "PE_F810") 1305 { 1306 variable = "PEFIRE810"; 1307 textAnchor = "PE/Fire&trade; 810"; 1308 } 1309 1310 /* DyLight 649 */ 1311 else if(format == "D649") 1312 { 1313 variable = "DYLIGHT649"; 1314 textAnchor = "DyLight&reg; 649"; 1315 } 1316 1317 /* Karavia 520 */ 1318 else if(format == "KB520") 1319 { 1320 variable = "KB520"; 1321 textAnchor = "KIRAVIA Blue 520&trade;"; 1322 } 1323 1324 /* Apotracker Green */ 1325 else if (productID == "18527") 1326 { 1327 variable = "APOTRACKERGREEN"; 1328 textAnchor = "Apotracker&trade; Green"; 1329 } 1330 1331 /* Calcein Red-AM */ 1332 else if (productID == "18901") 1333 { 1334 variable = "CRAM"; 1335 textAnchor = "Calcein Red-AM"; 1336 } 1337 1338 /* Spark YG 570 */ 1339 else if(format == "SPKYG_570") 1340 { 1341 variable = "SPARKYG570"; 1342 textAnchor = "Spark YG&trade; 570"; 1343 } 1344 1345 /* Spark Violet 538 */ 1346 else if(format == "SPKVL_538") 1347 { 1348 variable = "SPKV538"; 1349 textAnchor = "Spark Violet&trade; 538"; 1350 } 1351 1352 /* Spark YG 581 */ 1353 else if(format == "SPKYG_581") 1354 { 1355 variable = "SPKYG581"; 1356 textAnchor = "Spark YG&trade; 581"; 1357 } 1358 1359 /* Spark Blue 574 */ 1360 else if(format == "SPKBL_574") 1361 { 1362 variable = "SPARKB574"; 1363 textAnchor = "Spark Blue&trade; 574"; 1364 } 1365 1366 /* Spark Violet 423 */ 1367 else if(format == "SPKVL_423") 1368 { 1369 variable = "SPKV423"; 1370 textAnchor = "Spark Violet&trade; 423"; 1371 } 1372 1373 /* Spark UV 387 */ 1374 else if(format == "SPKUV_387") 1375 { 1376 variable = "SPARKUV387"; 1377 textAnchor = "Spark UV&trade; 387"; 1378 } 1379 1380 /* Spark Violet 500 */ 1381 else if(format == "SPKVL_500") 1382 { 1383 variable = "SPARKV500"; 1384 textAnchor = "Spark Violet&trade; 500"; 1385 } 1386 1387 /* PerCP/Fire 780 */ 1388 else if(format == "PERCP_F780") 1389 { 1390 variable = "PERCPF780"; 1391 textAnchor = "PerCP/Fire&trade; 780"; 1392 } 1393 1394 /* PerCP/Fire 806 */ 1395 else if(format == "PERCP_F806") 1396 { 1397 variable = "PERCPF806"; 1398 textAnchor = "PerCP/Fire&trade; 806"; 1399 } 1400 1401 /* Spark Blue 515 */ 1402 else if(format == "SPKBL_515") 1403 { 1404 variable = "SPKBL_515"; 1405 textAnchor = "Spark Blue&trade; 515"; 1406 } 1407 1408 /* Lysosome Probe Deep Red */ 1409 else if(productID == "23745") 1410 { 1411 variable = "LPDR"; 1412 textAnchor = "Lysosome Probe Deep Red"; 1413 } 1414 1415 /* Lysosome Probe Green */ 1416 else if(productID == "23741") 1417 { 1418 variable = "LPG"; 1419 textAnchor = "Lysosome Probe Green"; 1420 } 1421 1422 /* Lysosome Probe NIR */ 1423 else if(productID == "23744") 1424 { 1425 variable = "LPNIR"; 1426 textAnchor = "Lysosome Probe NIR"; 1427 } 1428 1429 /* Lysosome Probe Orange */ 1430 else if(productID == "23742") 1431 { 1432 variable = "LPO"; 1433 textAnchor = "Lysosome Probe Orange"; 1434 } 1435 1436 /* Lysosome Probe Red */ 1437 else if(productID == "23743") 1438 { 1439 variable = "LPR"; 1440 textAnchor = "Lysosome Probe Red"; 1441 } 1442 1443 /* JC-10 Mitochondrial Membrane Potential Kit */ 1444 else if(productID == "23092") 1445 { 1446 variable = "JC10MMPK"; 1447 textAnchor = "JC-10 Mitochondrial Membrane Potential Kit"; 1448 } 1449 1450 /* Spark PLUS UV 395 */ 1451 else if(format == "SPKPLUSUV_395") 1452 { 1453 variable = "SPKPLUSUV_395"; 1454 textAnchor = "Spark PLUS UV&trade; 395"; 1455 } 1456 1457 1458 1459 1460 1461 1462 /* APC/Fire 810 */ 1463 else if(format == "APC_F810") 1464 { 1465 variable = "APCF810"; 1466 textAnchor = "APC/Fire&trade; 810"; 1467 } 1468 1469 /* Spark Blue 550 */ 1470 else if(format == "SPKBL_550") 1471 { 1472 variable = "SPKB550"; 1473 textAnchor = "Spark Blue&trade; 550"; 1474 } 1475 1476 /* Spark NIR 685 */ 1477 else if(format == "SPKNIR_685") 1478 { 1479 variable = "SPKNIR685"; 1480 textAnchor = "Spark NIR&trade; 685"; 1481 } 1482 1483 /* Spark Red 718 */ 1484 else if(format == "SPKR_718") 1485 { 1486 variable = "SPKR718"; 1487 textAnchor = "Spark Red&trade; 718"; 1488 } 1489 1490 /* Spark YG 593 */ 1491 else if(format == "SPKYG_593") 1492 { 1493 variable = "SPKYG593"; 1494 textAnchor = "Spark YG&trade; 593"; 1495 } 1496 1497 /* GMP Alexa Fluor® 488 */ 1498 else if(format == "GMP_A488") 1499 { 1500 variable = "AF488"; 1501 textAnchor = "GMP Alexa Fluor&reg; 488"; 1502 } 1503 1504 /* GMP Alexa Fluor® 647 */ 1505 else if(format == "GMP_A647") 1506 { 1507 variable = "AF647"; 1508 textAnchor = "GMP Alexa Fluor&reg; 647"; 1509 } 1510 1511 /* GMP Alexa Fluor® 700 */ 1512 else if(format == "GMP_A700") 1513 { 1514 variable = "AF700"; 1515 textAnchor = "GMP Alexa Fluor&reg; 700"; 1516 } 1517 1518 /* GMP APC */ 1519 else if(format == "GMP_APC") 1520 { 1521 variable = "APC"; 1522 textAnchor = "GMP APC"; 1523 } 1524 1525 /* GMP APC/Cyanine7 */ 1526 else if(format == "GMP_APC_CYANINE7") 1527 { 1528 variable = "APCCYANINE7"; 1529 textAnchor = "GMP APC/Cyanine7"; 1530 } 1531 1532 /* GMP APC/Fire 750 */ 1533 else if(format == "GMP_APC_F750") 1534 { 1535 variable = "APCF750"; 1536 textAnchor = "GMP APC/Fire&trade; 750"; 1537 } 1538 1539 /* GMP FITC */ 1540 else if(format == "GMP_FITC") 1541 { 1542 variable = "FITC"; 1543 textAnchor = "GMP FITC"; 1544 } 1545 1546 /* GMP Pacific Blue */ 1547 else if(format == "GMP_PB") 1548 { 1549 variable = "PB"; 1550 textAnchor = "GMP Pacific Blue&trade;"; 1551 } 1552 1553 /* GMP PE */ 1554 else if(format == "GMP_PE") 1555 { 1556 variable = "PE"; 1557 textAnchor = "GMP PE"; 1558 } 1559 1560 /* GMP PE/Cyanine5 */ 1561 else if(format == "GMP_PE_CYANINE5") 1562 { 1563 variable = "PECYANINE5"; 1564 textAnchor = "GMP PE/Cyanine5"; 1565 } 1566 1567 /* GMP PE/Cyanine7 */ 1568 else if(format == "GMP_PE_CYANINE7") 1569 { 1570 variable = "PECYANINE7"; 1571 textAnchor = "GMP PE/Cyanine7"; 1572 } 1573 1574 /* GMP PE/Dazzle 594 */ 1575 else if(format == "GMP_PE_DZL594") 1576 { 1577 variable = "PEDZL594"; 1578 textAnchor = "GMP PE/Dazzle&trade; 594"; 1579 } 1580 1581 /* GMP PerCP */ 1582 else if(format == "GMP_PERCP") 1583 { 1584 variable = "PERCP"; 1585 textAnchor = "GMP PerCP"; 1586 } 1587 1588 /* GMP PerCP/Cyanine5.5 */ 1589 else if(format == "GMP_PERCP_CYANINE5.5") 1590 { 1591 variable = "PERCPCYANINE55"; 1592 textAnchor = "GMP PerCP/Cyanine5.5"; 1593 } 1594 1595 /* GMP Spark Violet 423 */ 1596 else if(format == "GMP_SPKVL_423") 1597 { 1598 variable = "SPKV423"; 1599 textAnchor = "GMP Spark Violet&trade; 423"; 1600 } 1601 1602 /* GMP Spark Violet 538 */ 1603 else if(format == "GMP_SPKVL_538") 1604 { 1605 variable = "SPKV538"; 1606 textAnchor = "GMP Spark Violet&trade; 538"; 1607 } 1608 1609 1610 if (!string.IsNullOrWhiteSpace(variable)) 1611 { 1612 string spectraImage = "/Files/Images/media_assets/fluorophore_equivalency/data/"+variable+".png"; 1613 bool fileExists = File.Exists(HttpContext.Current.Server.MapPath(spectraImage)); 1614 1615 if(fileExists) 1616 { 1617 1618 1619 #line default 1620 #line hidden 1621 WriteLiteralTo(__razor_helper_writer, " <a"); 1622 1623 WriteLiteralTo(__razor_helper_writer, " id=\"spectralDataLink\""); 1624 1625 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 1626 1627 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 34818), Tuple.Create("\'", 34861) 1628 , Tuple.Create(Tuple.Create("", 34825), Tuple.Create("javascript:loadSpectra(\"", 34825), true) 1629 1630 #line 1239 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1631 , Tuple.Create(Tuple.Create("", 34849), Tuple.Create<System.Object, System.Int32>(variable 1632 1633 #line default 1634 #line hidden 1635 , 34849), false) 1636 , Tuple.Create(Tuple.Create("", 34858), Tuple.Create("\");", 34858), true) 1637 ); 1638 1639 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 1640 1641 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-iconLink\""); 1642 1643 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 1644 1645 WriteLiteralTo(__razor_helper_writer, " "); 1646 1647 1648 #line 1241 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1649 WriteTo(__razor_helper_writer, Translate("seeSpectralData","See {{Format}} spectral data").Replace("{{Format}}", textAnchor)); 1650 1651 1652 #line default 1653 #line hidden 1654 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 1655 1656 1657 #line 1243 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1658 } 1659 } 1660 1661 1662 #line default 1663 #line hidden 1664 }); 1665 1666 #line 1245 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1667 } 1668 #line default 1669 #line hidden 1670 1671 1672 #line 1247 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1673 public RazorEngine.Templating.TemplateWriter RenderMaterialDataSheet(string MSDS_Type = "", string MSDS_File = "", string MSDS_Options = "", string Regulatory_Status = "", string productID = "", string techSupportID = "", string translateAnchor = "", string translateAnchorCommingSoon = "",string translateAnchorNATechSupport = ""){ 1674 #line default 1675 #line hidden 1676 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1677 1678 #line 1247 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1679 1680 1681 string msdsLink = ""; 1682 1683 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE 1684 1685 if(MSDS_Type.Equals("LEAF")) 1686 { 1687 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEAF_NC_EN_CLP_2015-07-01.pdf"; 1688 } 1689 else if(MSDS_Type.Equals("ELISAMAXStandard")) 1690 { 1691 msdsLink = "/dwcountry/sdsoptions-4416"; 1692 } 1693 else if(MSDS_Type.Equals("ELISAMAXDeluxe")) 1694 { 1695 msdsLink = "/dwcountry/sdsoptions-4417"; 1696 } 1697 else if(MSDS_Type.Equals("LEGENDMAX")) 1698 { 1699 msdsLink = "/dwcountry/sdsoptions-4419"; 1700 } 1701 else if(MSDS_Type.Equals("LEGENDplex")) 1702 { 1703 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEGENDplex_COMP_SDS_2015-05-07_Revised.pdf"; 1704 } 1705 else if(MSDS_Type.Equals("MojoSort")) 1706 { 1707 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/MojoSort_NC_EN_CLP2015-07-01.pdf"; 1708 } 1709 else if(MSDS_Type.Equals("Streptavidin and Avidin")) 1710 { 1711 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Streptavidin_and_Avidin_NC_EN_CLP_2015-11-20.pdf"; 1712 } 1713 else if(MSDS_Type.Equals("ASR")) 1714 { 1715 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Diagnostic_Pure_and_Conjugated_Antibodies RSD_United_States-3.pdf"; 1716 } 1717 else if(MSDS_Type.Equals("7AAD")) 1718 { 1719 msdsLink = "/dwcountry/sdsoptions-28"; 1720 } 1721 else if(MSDS_Type.Equals("IVD A")) 1722 { 1723 msdsLink = "/dwcountry/sdsoptions-4109"; 1724 } 1725 else if(MSDS_Type.Equals("IVD B")) 1726 { 1727 msdsLink = "/dwcountry/sdsoptions-4110"; 1728 } 1729 else if(MSDS_Type.Equals("Veri-Cells")){ 1730 msdsLink = "/dwcountry/sdsoptions-4000"; 1731 } 1732 else if(MSDS_Type.Equals("Flow Kit")) 1733 { 1734 msdsLink = "/dwcountry/sds"; 1735 } 1736 else if(MSDS_Type.Equals("Zombie Dye")) 1737 { 1738 msdsLink = "/dwcountry/sdsoptions-4210"; 1739 } 1740 else if(MSDS_Type.Equals("Calcein AM")) 1741 { 1742 msdsLink = "/dwcountry/sdsoptions-4209"; 1743 } 1744 else if(MSDS_Type.Equals("Mitospy")) 1745 { 1746 msdsLink = "/dwcountry/sdsoptions-4208"; 1747 } 1748 else if(MSDS_Type.Equals("LPXKit1")) 1749 { 1750 msdsLink = "/dwcountry/sdsoptions-4965"; 1751 } 1752 else if(MSDS_Type.Equals("LPXKit2")) 1753 { 1754 msdsLink = "/dwcountry/sdsoptions-4966"; 1755 } 1756 else if(MSDS_Type.Equals("LPXKit3")) 1757 { 1758 msdsLink = "/dwcountry/sdsoptions-4967"; 1759 } 1760 else if(MSDS_Type.Equals("LPXKit4")) 1761 { 1762 msdsLink = "/dwcountry/sdsoptions-4968"; 1763 } 1764 else if(MSDS_Type.Equals("LPXKit5")) 1765 { 1766 msdsLink = "/dwcountry/sdsoptions-4969"; 1767 } 1768 else if(MSDS_Type.Equals("LPXKit7")) 1769 { 1770 msdsLink = "/dwcountry/sdsoptions-4971"; 1771 } 1772 else if(MSDS_Type.Equals("LPXCaptureBead")) 1773 { 1774 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Capture_Beads.pdf"; 1775 } 1776 else if(MSDS_Type.Equals("LPXLyophStandard")) 1777 { 1778 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Lyo_Formula_B.pdf"; 1779 } 1780 else if(MSDS_Type.Equals("LPXLyophStandardSoloFormulationA")) 1781 { 1782 msdsLink = "/dwcountry/sdsoptions-4964"; 1783 } 1784 else if(MSDS_Type.Equals("LyophilizedAntibodieswithAzide")) 1785 { 1786 msdsLink = "/dwcountry/sdsoptions-4494"; 1787 } 1788 else if(MSDS_Type.Equals("RecProtein1")) 1789 { 1790 msdsLink = "/dwcountry/sdsoptions-4975"; 1791 } 1792 else if(MSDS_Type.Equals("RecProtein2")) 1793 { 1794 msdsLink = "/dwcountry/sdsoptions-4973"; 1795 } 1796 else if(MSDS_Type.Equals("RecProtein3")) 1797 { 1798 msdsLink = "/dwcountry/sdsoptions-4974"; 1799 } 1800 else if(MSDS_Type.Equals("RecProtein4")) 1801 { 1802 msdsLink = "/dwcountry/sdsoptions-4976"; 1803 } 1804 else if(MSDS_Type.Equals("RecProtein5")) 1805 { 1806 msdsLink = "/dwcountry/sdsoptions-4972"; 1807 } 1808 else if(MSDS_Type.Equals("ELISAKIT1")) 1809 { 1810 msdsLink = "/dwcountry/sdsoptions-4978"; 1811 } 1812 else if(MSDS_Type.Equals("ELISAKIT2")) 1813 { 1814 msdsLink = "/dwcountry/sdsoptions-4979"; 1815 } 1816 else if(MSDS_Type.Equals("ELISAKIT3")) 1817 { 1818 msdsLink = "/dwcountry/sdsoptions-4981"; 1819 } 1820 else if(MSDS_Type.Equals("ELISAKIT5")) 1821 { 1822 msdsLink = "/dwcountry/sdsoptions-4987"; 1823 } 1824 else if(MSDS_Type.Equals("ELISAKIT7")) 1825 { 1826 msdsLink = "/dwcountry/sdsoptions-4986"; 1827 } 1828 else if(MSDS_Type.Equals("ELISAKIT8")) 1829 { 1830 msdsLink = "/dwcountry/sdsoptions-4982"; 1831 } 1832 else if(MSDS_Type.Equals("ELISAKIT9")) 1833 { 1834 msdsLink = "/dwcountry/sdsoptions-4984"; 1835 } 1836 else if(MSDS_Type.Equals("ELISAKIT10")) 1837 { 1838 msdsLink = "/dwcountry/sdsoptions-4983"; 1839 } 1840 else if(MSDS_Type.Equals("ELISAKIT11")) 1841 { 1842 msdsLink = "/dwcountry/sdsoptions-4988"; 1843 } 1844 else if(MSDS_Type.Equals("ELISAKIT13")) 1845 { 1846 msdsLink = "/dwcountry/sdsoptions-4991"; 1847 } 1848 else if(MSDS_Type.Equals("RAPIDMAXKIT1")) 1849 { 1850 msdsLink = "/dwcountry/sdsoptions-4997"; 1851 } 1852 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_Options)) 1853 { 1854 msdsLink = "/dwcountry/sdsoptions-"+MSDS_Options; 1855 } 1856 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_File)) 1857 { 1858 msdsLink = MSDS_File; 1859 } 1860 else{ 1861 msdsLink = "/dwcountry/sdsoptions-22"; 1862 } 1863 1864 if(msdsLink.Contains("sds-options")) 1865 { 1866 1867 1868 #line default 1869 #line hidden 1870 WriteLiteralTo(__razor_helper_writer, " <a"); 1871 1872 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 40563), Tuple.Create("\'", 40598) 1873 1874 #line 1434 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1875 , Tuple.Create(Tuple.Create("", 40570), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(msdsLink) 1876 1877 #line default 1878 #line hidden 1879 , 40570), false) 1880 ); 1881 1882 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 1883 1884 WriteLiteralTo(__razor_helper_writer, " title=\"\""); 1885 1886 WriteLiteralTo(__razor_helper_writer, "><i"); 1887 1888 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-dataIcon\""); 1889 1890 WriteLiteralTo(__razor_helper_writer, "></i>"); 1891 1892 1893 #line 1434 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1894 WriteTo(__razor_helper_writer, translateAnchor); 1895 1896 1897 #line default 1898 #line hidden 1899 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1900 1901 1902 #line 1435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1903 } 1904 else 1905 { 1906 1907 1908 #line default 1909 #line hidden 1910 WriteLiteralTo(__razor_helper_writer, " <a"); 1911 1912 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 40701), Tuple.Create("\'", 40779) 1913 , Tuple.Create(Tuple.Create("", 40708), Tuple.Create("javascript:openPopup(\"", 40708), true) 1914 1915 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1916 , Tuple.Create(Tuple.Create("", 40730), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(msdsLink) 1917 1918 #line default 1919 #line hidden 1920 , 40730), false) 1921 , Tuple.Create(Tuple.Create("", 40758), Tuple.Create("\",\"", 40758), true) 1922 1923 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1924 , Tuple.Create(Tuple.Create("", 40761), Tuple.Create<System.Object, System.Int32>(translateAnchor 1925 1926 #line default 1927 #line hidden 1928 , 40761), false) 1929 , Tuple.Create(Tuple.Create("", 40777), Tuple.Create("\")", 40777), true) 1930 ); 1931 1932 WriteLiteralTo(__razor_helper_writer, "><i"); 1933 1934 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-dataIcon\""); 1935 1936 WriteLiteralTo(__razor_helper_writer, "></i>"); 1937 1938 1939 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1940 WriteTo(__razor_helper_writer, translateAnchor); 1941 1942 1943 #line default 1944 #line hidden 1945 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1946 1947 1948 #line 1439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1949 } 1950 1951 1952 #line default 1953 #line hidden 1954 }); 1955 1956 #line 1440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1957 } 1958 #line default 1959 #line hidden 1960 1961 1962 #line 1442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1963 public RazorEngine.Templating.TemplateWriter RenderCustomField( string productFieldType, string customField, string translate, LoopItem productObj = null){ 1964 #line default 1965 #line hidden 1966 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1967 1968 #line 1442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1969 1970 string productTag; 1971 if (productObj != null) 1972 { 1973 productTag = productObj.GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean"); 1974 } 1975 else 1976 { 1977 productTag = GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean"); 1978 } 1979 1980 if(!string.IsNullOrWhiteSpace(productTag)) 1981 { 1982 1983 1984 #line default 1985 #line hidden 1986 WriteLiteralTo(__razor_helper_writer, " <dt"); 1987 1988 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 1989 1990 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1991 1992 WriteLiteralTo(__razor_helper_writer, " "); 1993 1994 1995 #line 1456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 1996 WriteTo(__razor_helper_writer, translate); 1997 1998 1999 #line default 2000 #line hidden 2001 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 2002 2003 WriteLiteralTo(__razor_helper_writer, " <dd"); 2004 2005 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 2006 2007 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2008 2009 WriteLiteralTo(__razor_helper_writer, " "); 2010 2011 2012 #line 1459 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2013 WriteTo(__razor_helper_writer, productTag); 2014 2015 2016 #line default 2017 #line hidden 2018 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 2019 2020 2021 #line 1461 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2022 } 2023 2024 2025 #line default 2026 #line hidden 2027 }); 2028 2029 #line 1462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2030 } 2031 #line default 2032 #line hidden 2033 2034 2035 #line 1464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2036 public RazorEngine.Templating.TemplateWriter RenderABType( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null){ 2037 #line default 2038 #line hidden 2039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2040 2041 #line 1464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2042 2043 string productTag; 2044 if (productObj != null) 2045 { 2046 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value"); 2047 } 2048 else 2049 { 2050 productTag = GetString("Ecom:Product:Field." + productField + ".Value"); 2051 } 2052 2053 if(!string.IsNullOrWhiteSpace(productTag) && !productTag.Equals("N/A") ) 2054 { 2055 2056 2057 #line default 2058 #line hidden 2059 WriteLiteralTo(__razor_helper_writer, " <dt"); 2060 2061 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 2062 2063 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2064 2065 WriteLiteralTo(__razor_helper_writer, " "); 2066 2067 2068 #line 1478 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2069 WriteTo(__razor_helper_writer, translate); 2070 2071 2072 #line default 2073 #line hidden 2074 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 2075 2076 WriteLiteralTo(__razor_helper_writer, " <dd"); 2077 2078 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 2079 2080 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2081 2082 WriteLiteralTo(__razor_helper_writer, " "); 2083 2084 2085 #line 1481 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2086 WriteTo(__razor_helper_writer, productTag); 2087 2088 2089 #line default 2090 #line hidden 2091 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 2092 2093 2094 #line 1483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2095 } 2096 2097 2098 #line default 2099 #line hidden 2100 }); 2101 2102 #line 1484 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2103 } 2104 #line default 2105 #line hidden 2106 2107 2108 #line 1486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2109 public RazorEngine.Templating.TemplateWriter RenderProductField( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null, bool isCommaSeparatedList = false){ 2110 #line default 2111 #line hidden 2112 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2113 2114 #line 1486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2115 2116 2117 var isPdf = Convert.ToBoolean(Dynamicweb.Context.Current.Request.Params["pdf"]); 2118 string appNotesID = ""; 2119 string productTag = ""; 2120 2121 2122 if (productObj != null) 2123 { 2124 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value"); 2125 } 2126 else 2127 { 2128 productTag = GetString("Ecom:Product:Field." + productField + ".Value"); 2129 } 2130 2131 if(isCommaSeparatedList){ 2132 2133 productTag = productTag.Replace(",",", "); 2134 2135 } 2136 2137 if(productField.Equals("Reactivity") && productFieldType.Equals("RecombinantProteins")){} 2138 else if(!string.IsNullOrWhiteSpace(productTag)) 2139 { 2140 2141 2142 #line default 2143 #line hidden 2144 WriteLiteralTo(__razor_helper_writer, " <dt"); 2145 2146 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\""); 2147 2148 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2149 2150 WriteLiteralTo(__razor_helper_writer, " "); 2151 2152 2153 #line 1512 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2154 WriteTo(__razor_helper_writer, translate); 2155 2156 2157 #line default 2158 #line hidden 2159 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 2160 2161 2162 #line 1514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2163 2164 2165 2166 #line default 2167 #line hidden 2168 WriteLiteralTo(__razor_helper_writer, " <dd"); 2169 2170 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\""); 2171 2172 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2173 2174 2175 #line 1516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2176 2177 2178 #line default 2179 #line hidden 2180 2181 #line 1516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2182 if(productField.Equals("Usage") && !str_productRegulatoryStatus.Equals("ASR")){ 2183 2184 2185 #line default 2186 #line hidden 2187 2188 #line 1517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2189 WriteTo(__razor_helper_writer, UsageProductExceptions(productTag, str_productFormat, catalogFirstLetter, productFieldType, str_productName, productID)); 2190 2191 2192 #line default 2193 #line hidden 2194 2195 #line 1517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2196 2197 } 2198 else if(productField.Equals("Disclaimer") && str_productRegulatoryStatus.Equals("ASR")){ 2199 string replace = ""; 2200 if(str_productFormat.Equals("PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL")) 2201 { 2202 var termsLink = "/dwcountry/terms"; 2203 replace = "<br />Alexa Fluor&reg; and Pacific Blue&trade; are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 2204 productTag += replace; 2205 } 2206 2207 if (isPdf) 2208 { 2209 2210 2211 #line default 2212 #line hidden 2213 2214 #line 1530 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2215 WriteTo(__razor_helper_writer, productTag); 2216 2217 2218 #line default 2219 #line hidden 2220 2221 #line 1530 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2222 2223 } 2224 else 2225 { 2226 2227 2228 #line default 2229 #line hidden 2230 2231 #line 1534 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2232 WriteTo(__razor_helper_writer, LocalizeLinksHTML(productTag)); 2233 2234 2235 #line default 2236 #line hidden 2237 2238 #line 1534 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2239 2240 } 2241 } 2242 else 2243 { 2244 if (isPdf) 2245 { 2246 2247 2248 #line default 2249 #line hidden 2250 2251 #line 1541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2252 WriteTo(__razor_helper_writer, productTag); 2253 2254 2255 #line default 2256 #line hidden 2257 2258 #line 1541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2259 2260 } 2261 else 2262 { 2263 2264 2265 #line default 2266 #line hidden 2267 2268 #line 1545 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2269 WriteTo(__razor_helper_writer, LocalizeLinksHTML(productTag)); 2270 2271 2272 #line default 2273 #line hidden 2274 2275 #line 1545 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2276 2277 } 2278 } 2279 2280 #line default 2281 #line hidden 2282 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2283 2284 WriteLiteralTo(__razor_helper_writer, " "); 2285 2286 2287 #line 1548 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2288 WriteTo(__razor_helper_writer, AddShelfLifeException(productField,productID)); 2289 2290 2291 #line default 2292 #line hidden 2293 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2294 2295 WriteLiteralTo(__razor_helper_writer, " "); 2296 2297 2298 #line 1549 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2299 WriteTo(__razor_helper_writer, AddActivationBundleException(productField,productID)); 2300 2301 2302 #line default 2303 #line hidden 2304 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 2305 2306 2307 #line 1551 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2308 } 2309 2310 2311 #line default 2312 #line hidden 2313 }); 2314 2315 #line 1552 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2316 } 2317 #line default 2318 #line hidden 2319 2320 2321 #line 1554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2322 public RazorEngine.Templating.TemplateWriter RenderLongDescription(string productField, string productID = "", bool isPdf = false) 2323 { 2324 #line default 2325 #line hidden 2326 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2327 2328 #line 1555 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2329 2330 string replace = ""; 2331 2332 if (productID.Equals("8309") || productID.Equals("14141")) 2333 { 2334 replace = "<br /><br /><a href=\"/legendscreen\" title=\"LEGENDScreen™ Antibody Panels\">Learn more about LEGENDScreen™ Antibody Panels and view plate maps.</a>"; 2335 productField += replace; 2336 } 2337 2338 if (isPdf) 2339 { 2340 2341 2342 #line default 2343 #line hidden 2344 2345 #line 1566 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2346 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(productField)); 2347 2348 2349 #line default 2350 #line hidden 2351 2352 #line 1566 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2353 2354 } 2355 else 2356 { 2357 2358 2359 #line default 2360 #line hidden 2361 2362 #line 1570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2363 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(LocalizeLinksHTML(productField))); 2364 2365 2366 #line default 2367 #line hidden 2368 2369 #line 1570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2370 2371 } 2372 2373 2374 #line default 2375 #line hidden 2376 }); 2377 2378 #line 1572 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2379 } 2380 #line default 2381 #line hidden 2382 2383 2384 #line 1574 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2385 public RazorEngine.Templating.TemplateWriter RenderCustomConjugationButton( string catalogFirstTwoNumbers = "00", string catalogFirstThreeNumbers = "000", string formRequestConjugation = ""){ 2386 #line default 2387 #line hidden 2388 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2389 2390 #line 1574 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2391 2392 if(catalogFirstTwoNumbers == "42" || catalogFirstTwoNumbers == "43" || catalogFirstTwoNumbers == "44" || catalogFirstTwoNumbers == "48" || catalogFirstTwoNumbers == "55" || catalogFirstTwoNumbers == "56" || catalogFirstTwoNumbers == "57" || catalogFirstTwoNumbers == "58" || catalogFirstTwoNumbers == "59" || catalogFirstTwoNumbers == "70" || catalogFirstTwoNumbers == "71" || catalogFirstTwoNumbers == "74" || catalogFirstTwoNumbers == "75" || catalogFirstTwoNumbers == "76" || catalogFirstThreeNumbers == "401" || catalogFirstThreeNumbers == "402" || catalogFirstThreeNumbers == "403" || catalogFirstThreeNumbers == "404" || catalogFirstThreeNumbers == "842" || catalogFirstThreeNumbers == "843" ) 2393 {} 2394 else{ 2395 2396 2397 #line default 2398 #line hidden 2399 WriteLiteralTo(__razor_helper_writer, "\t<a"); 2400 2401 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-default\""); 2402 2403 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 46387), Tuple.Create("\"", 46434) 2404 , Tuple.Create(Tuple.Create("", 46394), Tuple.Create("/Default.aspx?ID=", 46394), true) 2405 2406 #line 1578 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2407 , Tuple.Create(Tuple.Create("", 46411), Tuple.Create<System.Object, System.Int32>(formRequestConjugation 2408 2409 #line default 2410 #line hidden 2411 , 46411), false) 2412 ); 2413 2414 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2415 2416 WriteLiteralTo(__razor_helper_writer, " "); 2417 2418 2419 #line 1579 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2420 WriteTo(__razor_helper_writer, Translate("requestCustomConjugation","Request Custom Conjugation")); 2421 2422 2423 #line default 2424 #line hidden 2425 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 2426 2427 2428 #line 1581 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2429 } 2430 2431 2432 #line default 2433 #line hidden 2434 }); 2435 2436 #line 1582 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2437 } 2438 #line default 2439 #line hidden 2440 2441 2442 #line 1584 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2443 public RazorEngine.Templating.TemplateWriter UsageProductExceptions(string productField, string str_productFormat, string catalogFirstLetter = "0", string productFieldType = "", string str_productName = "", string productID = "") 2444 { 2445 #line default 2446 #line hidden 2447 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2448 2449 #line 1585 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2450 2451 string str = "Each lot of this antibody is quality control tested by immunofluorescent staining with flow cytometric analysis"; 2452 string replace = ""; 2453 2454 if ( productField.Contains(str)) 2455 { 2456 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescent staining with flow cytometric analysis&lt;/a&gt;"); 2457 } 2458 2459 str = "Each lot of these antibodies is quality control tested by immunofluorescent staining with flow cytometric analysis"; 2460 if ( productField.Contains(str)) 2461 { 2462 productField = productField.Replace(str,"Each lot of these antibodies is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescent staining with flow cytometric analysis&lt;/a&gt;"); 2463 } 2464 2465 str = "Each lot of this antibody is quality control tested by cell surface immunofluorescent staining with flow cytometric analysis as negative control."; 2466 if ( productField.Contains(str)) 2467 { 2468 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;cell surface immunofluorescent staining&lt;/a&gt; with flow cytometric analysis as negative control."); 2469 } 2470 2471 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis as negative control."; 2472 if ( productField.Contains(str)) 2473 { 2474 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\"&gt;intracellular immunofluorescence staining&lt;/a&gt; with flow cytometric analysis as negative control."); 2475 } 2476 2477 str = "Each lot of this antibody is quality control tested by Western blotting."; 2478 if ( productField.Contains(str)) 2479 { 2480 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/western-blotting-protocol/4269/\" target=\"_blank\" title=\"View Protocol\"&gt;Western blotting&lt;/a&gt;."); 2481 } 2482 2483 str = "Each lot of this antibody is quality control tested by ELISA assay."; 2484 if ( productField.Contains(str)) 2485 { 2486 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\"&gt;ELISA assay&lt;/a&gt;."); 2487 } 2488 2489 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis."; 2490 if ( productField.Contains(str)) 2491 { 2492 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\"&gt;intracellular immunofluorescent staining with flow cytometric analysis&lt;/a&gt;."); 2493 } 2494 2495 str = "Each lot of this protein is quality control tested by ELISA assay."; 2496 if ( productField.Contains(str)) 2497 { 2498 productField = productField.Replace(str,"Each lot of this protein is quality control tested by &lt;a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\"&gt;ELISA assay&lt;/a&gt;."); 2499 } 2500 2501 str = "Each lot of this antibody is quality control tested by Immunofluorescence staining."; 2502 if ( productField.Contains(str)) 2503 { 2504 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/immunofluorescence-microscopy-protocol/4275/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescence staining&lt;/a&gt;."); 2505 } 2506 2507 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Cell Suspensions Protocol."; 2508 if ( productField.Contains(str)) 2509 { 2510 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our &lt;a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-cell-suspensions-protocol/4262/\" target=\"_blank\" title=\"View Protocol\"&gt;True-Phos&trade; Perm Buffer in Cell Suspensions Protocol&lt;/a&gt;."); 2511 } 2512 2513 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Whole Blood Protocol."; 2514 if ( productField.Contains(str)) 2515 { 2516 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our &lt;a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-whole-blood/4261/\" target=\"_blank\" title=\"View Protocol\"&gt;True-Phos&trade; Perm Buffer in Whole Blood Protocol&lt;/a&gt;."); 2517 } 2518 2519 2520 if(str_productFormat.Equals("PB") || str_productFormat.Equals("GMP_PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL") || str_productFormat.Equals("GMP_A488") || str_productFormat.Equals("GMP_A647") || str_productFormat.Equals("GMP_A700")) 2521 { 2522 var termsLink = "/dwcountry/terms"; 2523 replace = "<br />Alexa Fluor&reg; and Pacific Blue&trade; are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 2524 productField += replace; 2525 } 2526 2527 if (productID == "9340") 2528 { 2529 replace = "<br />This product is provided under an intellectual property license from Life Technologies Corporation.<br /><br /><a href=\"/Files/Images/media_assets/support_resource/Limited_Use_Label_License_For_Licensee_Products_Sold_in_the_Research_Field.pdf\" target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 2530 productField += replace; 2531 } 2532 2533 str = "* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and 564 nm and a maximum emission of 690 nm."; 2534 if ( productField.Contains(str)) 2535 { 2536 productField = productField.Replace(str,"* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and a maximum emission of 690 nm."); 2537 } 2538 2539 str = "* PerCP has a maximum absorption of 482 nm and 564 nm and a maximum emission of 675 nm."; 2540 if ( productField.Contains(str)) 2541 { 2542 productField = productField.Replace(str,"* PerCP has a maximum absorption of 482 nm and a maximum emission of 675 nm."); 2543 } 2544 2545 if ( str_productFormat.Equals("KB520")) 2546 { 2547 replace = "<br />KIRAVIA Blue&trade; 520 is a trademark of Sony. This product is subject to proprietary rights of Sony and is made and sold under license from Sony Corporation. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents.<br /><br />Sony and the Sony logo are registered trademarks of Sony Corporation."; 2548 productField += replace; 2549 } 2550 2551 if ( str_productFormat.Equals("APC_F810")) 2552 { 2553 var fireLink = "/dwcountry/fire-dyes"; 2554 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect APC/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page."; 2555 productField += replace; 2556 } 2557 2558 if ( str_productFormat.Equals("PE_F810")) 2559 { 2560 var fireLink = "/dwcountry/fire-dyes"; 2561 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect PE/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page."; 2562 productField += replace; 2563 } 2564 2565 if ( str_productName.Contains("Brilliant")) 2566 { 2567 var bvLink = "/dwcountry/brilliant-violet"; 2568 replace = "<br /><a href=\""+@LocalizeLinksHTML(bvLink)+"\" title=\"Brilliant Violet&trade;\">Learn more about Brilliant Violet&trade;</a>. <br /><br />This product is subject to proprietary rights of Sirigen Inc. and is made and sold under license from Sirigen Inc. The purchase of this product conveys to the buyer a non-transferable right to use the purchased product for research purposes only. This product may not be resold or incorporated in any manner into another product for resale. Any use for therapeutics or diagnostics is strictly prohibited. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents."; 2569 productField += replace; 2570 } 2571 2572 if ( str_productName.Contains("TotalSeq")) 2573 { 2574 replace = "<br />Buyer is solely responsible for determining whether Buyer has all intellectual property rights that are necessary for Buyer&apos;s intended uses of the BioLegend TotalSeq&trade; products. For example, for any technology platform Buyer uses with TotalSeq&trade;, it is Buyer&apos;s sole responsibility to determine whether it has all necessary third party intellectual property rights to use that platform and TotalSeq&trade; with that platform."; 2575 productField += replace; 2576 } 2577 2578 2579 2580 #line default 2581 #line hidden 2582 2583 #line 1713 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2584 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(productField)); 2585 2586 2587 #line default 2588 #line hidden 2589 2590 #line 1713 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2591 2592 2593 2594 #line default 2595 #line hidden 2596 }); 2597 2598 #line 1714 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2599 } 2600 #line default 2601 #line hidden 2602 2603 2604 #line 1716 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2605 public RazorEngine.Templating.TemplateWriter AddActivationBundleException(string productField, string productID = "") 2606 { 2607 #line default 2608 #line hidden 2609 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2610 2611 #line 1717 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2612 2613 if(productField.Equals("Usage") && !string.IsNullOrWhiteSpace(productID)) 2614 { 2615 Dictionary<string, string> lstNumbers = new Dictionary<string, string>(); 2616 lstNumbers.Add("24","24"); 2617 lstNumbers.Add("114","114"); 2618 lstNumbers.Add("4526","4526"); 2619 lstNumbers.Add("6479","6479"); 2620 lstNumbers.Add("892","892"); 2621 lstNumbers.Add("7236","7236"); 2622 lstNumbers.Add("5833","5833"); 2623 lstNumbers.Add("996","996"); 2624 lstNumbers.Add("5469","5469"); 2625 lstNumbers.Add("6959","6959"); 2626 2627 if(lstNumbers.ContainsKey(productID)) 2628 { 2629 2630 2631 #line default 2632 #line hidden 2633 WriteLiteralTo(__razor_helper_writer, " "); 2634 2635 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n "); 2636 2637 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2638 2639 2640 #line 1737 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2641 2642 2643 #line default 2644 #line hidden 2645 2646 #line 1737 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2647 WriteTo(__razor_helper_writer, Translate("ActivationBundle","This product is included in our Activation Bundles. <a href=\"/activation_bundles\" title=\"Activation Bundles\">Learn more...</a>")); 2648 2649 2650 #line default 2651 #line hidden 2652 2653 #line 1737 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2654 2655 } 2656 2657 } 2658 2659 2660 #line default 2661 #line hidden 2662 }); 2663 2664 #line 1741 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2665 } 2666 #line default 2667 #line hidden 2668 2669 2670 #line 1743 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2671 public RazorEngine.Templating.TemplateWriter CalculateFooterDisclaimer(string footerDisclaimer, string regulatoryStatus, string format) 2672 { 2673 #line default 2674 #line hidden 2675 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2676 2677 #line 1744 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2678 2679 2680 var licenceLink = LocalizeLinksHTML("/dwcountry/ordering#license"); 2681 var termsLink = LocalizeLinksHTML("/dwcountry/terms"); 2682 2683 var customFooterDisclaimer = footerDisclaimer + "<p>&nbsp;</p>"; 2684 2685 var ASRDisclaimer = "<p>Analyte Specific Reagent. Analytical and performance characteristic are not established.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 2686 2687 var IVDDisclaimer = "<p>For In Vitro Diagnostic Use. Not for therapeutic use.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 2688 2689 var GMPRUODisclaimer = "<p>For Research Use Only. Suitable for <em>ex vivo</em> cell processing. Not for injection or diagnostic or therapeutic use. </p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products. </p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 2690 2691 var RUODisclaimer = "<p>For Research Use Only. Not for diagnostic or therapeutic use.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a>) (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 2692 2693 if ( !String.IsNullOrEmpty(footerDisclaimer) && footerDisclaimer != "" ) 2694 { 2695 2696 2697 #line default 2698 #line hidden 2699 2700 #line 1761 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2701 WriteTo(__razor_helper_writer, customFooterDisclaimer); 2702 2703 2704 #line default 2705 #line hidden 2706 2707 #line 1761 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2708 2709 } 2710 else if( regulatoryStatus.Equals("ASR") ) 2711 { 2712 2713 2714 #line default 2715 #line hidden 2716 2717 #line 1765 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2718 WriteTo(__razor_helper_writer, LocalizeLinksHTML(ASRDisclaimer)); 2719 2720 2721 #line default 2722 #line hidden 2723 2724 #line 1765 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2725 2726 } 2727 else if( regulatoryStatus.Equals("IVD") ){ 2728 2729 2730 #line default 2731 #line hidden 2732 2733 #line 1768 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2734 WriteTo(__razor_helper_writer, LocalizeLinksHTML(IVDDisclaimer)); 2735 2736 2737 #line default 2738 #line hidden 2739 2740 #line 1768 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2741 2742 } 2743 else if ( regulatoryStatus.Equals("GMP-RUO") ) 2744 { 2745 2746 2747 #line default 2748 #line hidden 2749 2750 #line 1772 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2751 WriteTo(__razor_helper_writer, LocalizeLinksHTML(GMPRUODisclaimer)); 2752 2753 2754 #line default 2755 #line hidden 2756 2757 #line 1772 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2758 2759 } 2760 else{ 2761 2762 2763 #line default 2764 #line hidden 2765 2766 #line 1775 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2767 WriteTo(__razor_helper_writer, LocalizeLinksHTML(RUODisclaimer)); 2768 2769 2770 #line default 2771 #line hidden 2772 2773 #line 1775 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2774 2775 } 2776 2777 2778 #line default 2779 #line hidden 2780 }); 2781 2782 #line 1777 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2783 } 2784 #line default 2785 #line hidden 2786 2787 2788 #line 1779 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2789 public RazorEngine.Templating.TemplateWriter CalculateCloneString(string clone, string otherFormats, bool asrCheck, string searchID, bool isPdf = false) 2790 { 2791 #line default 2792 #line hidden 2793 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2794 2795 #line 1780 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2796 2797 if (!string.IsNullOrEmpty(clone)) 2798 { 2799 2800 2801 #line default 2802 #line hidden 2803 WriteLiteralTo(__razor_helper_writer, " "); 2804 2805 WriteLiteralTo(__razor_helper_writer, "\r\n <dt"); 2806 2807 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-sm-3 noPaddingLeft\""); 2808 2809 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2810 2811 WriteLiteralTo(__razor_helper_writer, " "); 2812 2813 2814 #line 1785 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2815 WriteTo(__razor_helper_writer, GetString("Ecom:Product:Field.Clone.Name")); 2816 2817 2818 #line default 2819 #line hidden 2820 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n "); 2821 2822 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2823 2824 2825 #line 1788 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2826 if (asrCheck) 2827 { 2828 2829 2830 #line default 2831 #line hidden 2832 WriteLiteralTo(__razor_helper_writer, " <dd>"); 2833 2834 2835 #line 1790 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2836 WriteTo(__razor_helper_writer, clone); 2837 2838 2839 #line default 2840 #line hidden 2841 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n"); 2842 2843 2844 #line 1791 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2845 } 2846 else 2847 { 2848 if (clone.Contains(";")) 2849 { 2850 if (isPdf) 2851 { 2852 2853 2854 #line default 2855 #line hidden 2856 WriteLiteralTo(__razor_helper_writer, " <dd>"); 2857 2858 2859 #line 1798 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2860 WriteTo(__razor_helper_writer, clone); 2861 2862 2863 #line default 2864 #line hidden 2865 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n"); 2866 2867 2868 #line 1799 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2869 } 2870 else{ 2871 string[] clones = (clone).Replace(" ", "").Split(';'); 2872 2873 2874 #line default 2875 #line hidden 2876 WriteLiteralTo(__razor_helper_writer, " <dd>\r\n"); 2877 2878 2879 #line 1803 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2880 2881 2882 #line default 2883 #line hidden 2884 2885 #line 1803 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2886 foreach (var x in clones) 2887 { 2888 string cloneHTML = System.Web.HttpUtility.HtmlDecode(x); 2889 string cloneTag = "; "; 2890 if (!isPdf) 2891 { 2892 2893 2894 #line default 2895 #line hidden 2896 WriteLiteralTo(__razor_helper_writer, " <a"); 2897 2898 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64002), Tuple.Create("\"", 64056) 2899 , Tuple.Create(Tuple.Create("", 64009), Tuple.Create("/Default.aspx?ID=", 64009), true) 2900 2901 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2902 , Tuple.Create(Tuple.Create("", 64026), Tuple.Create<System.Object, System.Int32>(searchID 2903 2904 #line default 2905 #line hidden 2906 , 64026), false) 2907 , Tuple.Create(Tuple.Create("", 64035), Tuple.Create("&amp;Clone=", 64035), true) 2908 2909 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2910 , Tuple.Create(Tuple.Create("", 64046), Tuple.Create<System.Object, System.Int32>(cloneHTML 2911 2912 #line default 2913 #line hidden 2914 , 64046), false) 2915 ); 2916 2917 WriteLiteralTo(__razor_helper_writer, ">"); 2918 2919 2920 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2921 WriteTo(__razor_helper_writer, x); 2922 2923 2924 #line default 2925 #line hidden 2926 WriteLiteralTo(__razor_helper_writer, "</a>"); 2927 2928 2929 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2930 2931 2932 #line default 2933 #line hidden 2934 2935 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2936 WriteTo(__razor_helper_writer, cloneTag); 2937 2938 2939 #line default 2940 #line hidden 2941 2942 #line 1809 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2943 2944 } 2945 2946 } 2947 2948 #line default 2949 #line hidden 2950 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 2951 2952 2953 #line 1814 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2954 } 2955 } 2956 else 2957 { 2958 if (isPdf) 2959 { 2960 2961 2962 #line default 2963 #line hidden 2964 WriteLiteralTo(__razor_helper_writer, " <dd>"); 2965 2966 2967 #line 1820 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2968 WriteTo(__razor_helper_writer, clone); 2969 2970 2971 #line default 2972 #line hidden 2973 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n"); 2974 2975 2976 #line 1821 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2977 } 2978 else 2979 { 2980 2981 2982 #line default 2983 #line hidden 2984 WriteLiteralTo(__razor_helper_writer, " <dd><a"); 2985 2986 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64411), Tuple.Create("\"", 64498) 2987 , Tuple.Create(Tuple.Create("", 64418), Tuple.Create("/Default.aspx?ID=", 64418), true) 2988 2989 #line 1824 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2990 , Tuple.Create(Tuple.Create("", 64435), Tuple.Create<System.Object, System.Int32>(searchID 2991 2992 #line default 2993 #line hidden 2994 , 64435), false) 2995 , Tuple.Create(Tuple.Create("", 64444), Tuple.Create("&amp;Clone=", 64444), true) 2996 2997 #line 1824 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 2998 , Tuple.Create(Tuple.Create("", 64455), Tuple.Create<System.Object, System.Int32>(System.Web.HttpUtility.HtmlDecode(clone) 2999 3000 #line default 3001 #line hidden 3002 , 64455), false) 3003 ); 3004 3005 WriteLiteralTo(__razor_helper_writer, ">"); 3006 3007 3008 #line 1824 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3009 WriteTo(__razor_helper_writer, clone); 3010 3011 3012 #line default 3013 #line hidden 3014 WriteLiteralTo(__razor_helper_writer, "</a> (<a"); 3015 3016 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64514), Tuple.Create("\"", 64534) 3017 3018 #line 1824 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3019 , Tuple.Create(Tuple.Create("", 64521), Tuple.Create<System.Object, System.Int32>(otherFormats 3020 3021 #line default 3022 #line hidden 3023 , 64521), false) 3024 ); 3025 3026 WriteLiteralTo(__razor_helper_writer, ">"); 3027 3028 3029 #line 1824 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3030 WriteTo(__razor_helper_writer, Translate("SeeOtherAvailableFormats", "See other available formats")); 3031 3032 3033 #line default 3034 #line hidden 3035 WriteLiteralTo(__razor_helper_writer, "</a>)</dd>\r\n"); 3036 3037 3038 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3039 } 3040 } 3041 } 3042 } 3043 3044 3045 #line default 3046 #line hidden 3047 }); 3048 3049 #line 1829 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3050 } 3051 #line default 3052 #line hidden 3053 3054 3055 #line 1831 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3056 public RazorEngine.Templating.TemplateWriter AddShelfLifeException(string productField, string productID = "") 3057 { 3058 #line default 3059 #line hidden 3060 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3061 3062 #line 1832 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3063 3064 if(productField.Equals("Storage") && !string.IsNullOrWhiteSpace(productID)) 3065 { 3066 Dictionary<string, string> lstNumbersUse = new Dictionary<string, string>(); 3067 lstNumbersUse.Add("1395","1395"); 3068 lstNumbersUse.Add("1396","1396"); 3069 lstNumbersUse.Add("1474","1474"); 3070 lstNumbersUse.Add("2264","2264"); 3071 lstNumbersUse.Add("2507","2507"); 3072 3073 Dictionary<string, string> lstNumbers = new Dictionary<string, string>(); 3074 lstNumbers.Add("2508","2508"); 3075 lstNumbers.Add("2915","2915"); 3076 lstNumbers.Add("2939","2939"); 3077 lstNumbers.Add("2988","2988"); 3078 lstNumbers.Add("2989","2989"); 3079 lstNumbers.Add("3071","3071"); 3080 lstNumbers.Add("3177","3177"); 3081 lstNumbers.Add("3180","3180"); 3082 lstNumbers.Add("3194","3194"); 3083 lstNumbers.Add("3195","3195"); 3084 lstNumbers.Add("3843","3843"); 3085 lstNumbers.Add("4347","4347"); 3086 lstNumbers.Add("4664","4664"); 3087 lstNumbers.Add("5654","5654"); 3088 lstNumbers.Add("5660","5660"); 3089 lstNumbers.Add("6373","6373"); 3090 lstNumbers.Add("6398","6398"); 3091 lstNumbers.Add("6646","6646"); 3092 lstNumbers.Add("8053","8053"); 3093 lstNumbers.Add("8135","8135"); 3094 lstNumbers.Add("9539","9539"); 3095 3096 if(lstNumbersUse.ContainsKey(productID)) 3097 { 3098 3099 3100 #line default 3101 #line hidden 3102 WriteLiteralTo(__razor_helper_writer, " "); 3103 3104 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <br/>\r\n "); 3105 3106 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3107 3108 3109 #line 1871 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3110 3111 3112 #line default 3113 #line hidden 3114 3115 #line 1871 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3116 WriteTo(__razor_helper_writer, Translate("LookUpConcentrationLookUpStorage","This product has a shelf-life of 12 months or less. Please use our <a href=\"/concentrationlookup\" target=\"_blank\">Expiration Lookup Tool</a> to verify the expiration date of your lot of product")); 3117 3118 3119 #line default 3120 #line hidden 3121 3122 #line 1871 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3123 3124 }else if(lstNumbers.ContainsKey(productID)) 3125 { 3126 3127 3128 #line default 3129 #line hidden 3130 WriteLiteralTo(__razor_helper_writer, " "); 3131 3132 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <br/>\r\n "); 3133 3134 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3135 3136 3137 #line 1878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3138 3139 3140 #line default 3141 #line hidden 3142 3143 #line 1878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3144 WriteTo(__razor_helper_writer, Translate("LookUpConcentrationLookUpStorageContact","This product has a shelf-life of 12 months or less. Please contact our <a href=\"/contact_technical_service\" target=\"_blank\">technical support</a> team for lot specific CoA and expiration date inquiries of this product.")); 3145 3146 3147 #line default 3148 #line hidden 3149 3150 #line 1878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3151 3152 } 3153 3154 } 3155 3156 3157 #line default 3158 #line hidden 3159 }); 3160 3161 #line 1882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3162 } 3163 #line default 3164 #line hidden 3165 3166 3167 #line 1884 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3168 public RazorEngine.Templating.TemplateWriter RenderTDS(bool htmlStructType, string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string appAbbreviation = "", string pdfUrl = "", string productUpdated = "") 3169 { 3170 #line default 3171 #line hidden 3172 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3173 3174 #line 1885 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3175 3176 TDS techinicalDataSheet = new TDS(dataSheetFile, dataSheet, printPage, productType, productID, productName, regulatoryStatus, techSupportPage, translateTechnicalSupport, Translate("ViewCurrentManual", "View Current Manual (pdf)"), Translate("InstructionsForUseA", "Instructions for Use - English (PDF)"), Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), Translate("InstrumentSoftwareManual", "Instrument and Software Manual"), appAbbreviation, pdfUrl); 3177 3178 var cdnPdfDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("DynamicallyCreated_PDFFiles", "DynamicallyCreated_PDF_Files_Domain"); //CUSTOM CODE 3179 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); // CUSTOM CODE 3180 var pdfCdn = techinicalDataSheet.link.EndsWith(".pdf") ? cdnStaticDomain : cdnPdfDomain; 3181 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated; 3182 3183 if (htmlStructType) 3184 { 3185 // Is for the product link 3186 3187 3188 #line default 3189 #line hidden 3190 WriteLiteralTo(__razor_helper_writer, " <a "); 3191 3192 3193 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3194 WriteTo(__razor_helper_writer, techinicalDataSheet.target); 3195 3196 3197 #line default 3198 #line hidden 3199 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\""); 3200 3201 3202 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3203 WriteTo(__razor_helper_writer, regulatoryStatus); 3204 3205 3206 #line default 3207 #line hidden 3208 WriteLiteralTo(__razor_helper_writer, "\" data-datasheet=\""); 3209 3210 3211 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3212 WriteTo(__razor_helper_writer, dataSheet); 3213 3214 3215 #line default 3216 #line hidden 3217 WriteLiteralTo(__razor_helper_writer, "\" data-datasheetFile=\""); 3218 3219 3220 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3221 WriteTo(__razor_helper_writer, dataSheetFile); 3222 3223 3224 #line default 3225 #line hidden 3226 WriteLiteralTo(__razor_helper_writer, "\" href=\""); 3227 3228 3229 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3230 WriteTo(__razor_helper_writer, pdfCdn); 3231 3232 3233 #line default 3234 #line hidden 3235 3236 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3237 WriteTo(__razor_helper_writer, techinicalDataSheet.link); 3238 3239 3240 #line default 3241 #line hidden 3242 3243 #line 1896 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3244 WriteTo(__razor_helper_writer, version); 3245 3246 3247 #line default 3248 #line hidden 3249 WriteLiteralTo(__razor_helper_writer, "\" class=\"btn btn-default techincalDataSheet\">\r\n <i"); 3250 3251 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\""); 3252 3253 WriteLiteralTo(__razor_helper_writer, "></i> "); 3254 3255 3256 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3257 WriteTo(__razor_helper_writer, techinicalDataSheet.text); 3258 3259 3260 #line default 3261 #line hidden 3262 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3263 3264 3265 #line 1899 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3266 } 3267 else 3268 { 3269 // Is for the product navigation 3270 3271 3272 #line default 3273 #line hidden 3274 WriteLiteralTo(__razor_helper_writer, " <a "); 3275 3276 3277 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3278 WriteTo(__razor_helper_writer, techinicalDataSheet.target); 3279 3280 3281 #line default 3282 #line hidden 3283 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\""); 3284 3285 3286 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3287 WriteTo(__razor_helper_writer, regulatoryStatus); 3288 3289 3290 #line default 3291 #line hidden 3292 WriteLiteralTo(__razor_helper_writer, "\" data-datasheet=\""); 3293 3294 3295 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3296 WriteTo(__razor_helper_writer, dataSheet); 3297 3298 3299 #line default 3300 #line hidden 3301 WriteLiteralTo(__razor_helper_writer, "\" data-datasheetFile=\""); 3302 3303 3304 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3305 WriteTo(__razor_helper_writer, dataSheetFile); 3306 3307 3308 #line default 3309 #line hidden 3310 WriteLiteralTo(__razor_helper_writer, "\" href=\""); 3311 3312 3313 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3314 WriteTo(__razor_helper_writer, pdfCdn); 3315 3316 3317 #line default 3318 #line hidden 3319 3320 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3321 WriteTo(__razor_helper_writer, techinicalDataSheet.link); 3322 3323 3324 #line default 3325 #line hidden 3326 3327 #line 1903 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3328 WriteTo(__razor_helper_writer, version); 3329 3330 3331 #line default 3332 #line hidden 3333 WriteLiteralTo(__razor_helper_writer, "\">\r\n <i"); 3334 3335 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\""); 3336 3337 WriteLiteralTo(__razor_helper_writer, "></i>"); 3338 3339 3340 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3341 WriteTo(__razor_helper_writer, techinicalDataSheet.text); 3342 3343 3344 #line default 3345 #line hidden 3346 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3347 3348 3349 #line 1906 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3350 } 3351 3352 3353 #line default 3354 #line hidden 3355 }); 3356 3357 #line 1907 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3358 } 3359 #line default 3360 #line hidden 3361 3362 3363 #line 1911 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3364 public RazorEngine.Templating.TemplateWriter RenderTDSForPreview(bool htmlStructType, string dataSheetFile, string dataSheet, string productID = "", string productName = "", string regulatoryStatus = "", string pdfUrl = "", string productUpdated = "") 3365 { 3366 #line default 3367 #line hidden 3368 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3369 3370 #line 1912 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3371 3372 previewTDS techinicalDataSheet = new previewTDS(productID, productName, Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), pdfUrl); 3373 3374 //NOTE - Customer requested for Cdn not to be applied here 3375 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated; 3376 3377 if (htmlStructType) 3378 { 3379 // Is for the product link 3380 3381 3382 #line default 3383 #line hidden 3384 WriteLiteralTo(__razor_helper_writer, " <a"); 3385 3386 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 3387 3388 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\""); 3389 3390 3391 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3392 WriteTo(__razor_helper_writer, regulatoryStatus); 3393 3394 3395 #line default 3396 #line hidden 3397 WriteLiteralTo(__razor_helper_writer, "\""); 3398 3399 WriteLiteralTo(__razor_helper_writer, " data-datasheet=\""); 3400 3401 3402 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3403 WriteTo(__razor_helper_writer, dataSheet); 3404 3405 3406 #line default 3407 #line hidden 3408 WriteLiteralTo(__razor_helper_writer, "\""); 3409 3410 WriteLiteralTo(__razor_helper_writer, " data-datasheetFile=\""); 3411 3412 3413 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3414 WriteTo(__razor_helper_writer, dataSheetFile); 3415 3416 3417 #line default 3418 #line hidden 3419 WriteLiteralTo(__razor_helper_writer, "\""); 3420 3421 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 69441), Tuple.Create("\"", 69481) 3422 3423 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3424 , Tuple.Create(Tuple.Create("", 69448), Tuple.Create<System.Object, System.Int32>(techinicalDataSheet.link 3425 3426 #line default 3427 #line hidden 3428 , 69448), false) 3429 3430 #line 1921 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3431 , Tuple.Create(Tuple.Create("", 69473), Tuple.Create<System.Object, System.Int32>(version 3432 3433 #line default 3434 #line hidden 3435 , 69473), false) 3436 ); 3437 3438 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-default techincalDataSheet\""); 3439 3440 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 3441 3442 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\""); 3443 3444 WriteLiteralTo(__razor_helper_writer, "></i> "); 3445 3446 3447 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3448 WriteTo(__razor_helper_writer, techinicalDataSheet.text); 3449 3450 3451 #line default 3452 #line hidden 3453 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3454 3455 3456 #line 1924 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3457 } 3458 else 3459 { 3460 // Is for the product navigation 3461 3462 3463 #line default 3464 #line hidden 3465 WriteLiteralTo(__razor_helper_writer, " <a"); 3466 3467 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 3468 3469 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\""); 3470 3471 3472 #line 1928 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3473 WriteTo(__razor_helper_writer, regulatoryStatus); 3474 3475 3476 #line default 3477 #line hidden 3478 WriteLiteralTo(__razor_helper_writer, "\""); 3479 3480 WriteLiteralTo(__razor_helper_writer, " data-datasheet=\""); 3481 3482 3483 #line 1928 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3484 WriteTo(__razor_helper_writer, dataSheet); 3485 3486 3487 #line default 3488 #line hidden 3489 WriteLiteralTo(__razor_helper_writer, "\""); 3490 3491 WriteLiteralTo(__razor_helper_writer, " data-datasheetFile=\""); 3492 3493 3494 #line 1928 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3495 WriteTo(__razor_helper_writer, dataSheetFile); 3496 3497 3498 #line default 3499 #line hidden 3500 WriteLiteralTo(__razor_helper_writer, "\""); 3501 3502 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 69782), Tuple.Create("\"", 69822) 3503 3504 #line 1928 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3505 , Tuple.Create(Tuple.Create("", 69789), Tuple.Create<System.Object, System.Int32>(techinicalDataSheet.link 3506 3507 #line default 3508 #line hidden 3509 , 69789), false) 3510 3511 #line 1928 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3512 , Tuple.Create(Tuple.Create("", 69814), Tuple.Create<System.Object, System.Int32>(version 3513 3514 #line default 3515 #line hidden 3516 , 69814), false) 3517 ); 3518 3519 WriteLiteralTo(__razor_helper_writer, ">\r\n <i"); 3520 3521 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\""); 3522 3523 WriteLiteralTo(__razor_helper_writer, "></i>"); 3524 3525 3526 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3527 WriteTo(__razor_helper_writer, techinicalDataSheet.text); 3528 3529 3530 #line default 3531 #line hidden 3532 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3533 3534 3535 #line 1931 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3536 } 3537 3538 3539 #line default 3540 #line hidden 3541 }); 3542 3543 #line 1932 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3544 } 3545 #line default 3546 #line hidden 3547 3548 3549 #line 1934 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3550 public RazorEngine.Templating.TemplateWriter RenderInternationalGMPQualityStatement(string country = "", string regStatus = "", string format = "") 3551 { 3552 #line default 3553 #line hidden 3554 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3555 3556 #line 1935 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3557 3558 bool b = false; 3559 if ( format.Equals("GMP_APC") || format.Equals("GMP_APC_F750") || format.Equals("GMP_FITC") || format.Equals("GMP_PB") || format.Equals("GMP_PE") || format.Equals("GMP_PE_CYANINE5") || format.Equals("GMP_PE_CYANINE7") || format.Equals("GMP_PE_DZL594") || format.Equals("GMP_PERCP") || format.Equals("GMP_PERCP_CYANINE5.5") || format.Equals("GMP_A488") || format.Equals("GMP_A647") || format.Equals("GMP_A700") || format.Equals("GMP_APC_CYANINE7") || format.Equals("GMP_SPKVL_423") || format.Equals("GMP_SPKVL_538") ){ 3560 b = true; 3561 } 3562 if(!country.Equals("en-US") && !country.Equals("ja-JP") && regStatus.Equals("GMP-RUO") && b){ 3563 3564 3565 #line default 3566 #line hidden 3567 WriteLiteralTo(__razor_helper_writer, " <div"); 3568 3569 WriteLiteralTo(__razor_helper_writer, " class=\"introDescription col-xs-12 noPaddingLeft\""); 3570 3571 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 3572 3573 WriteLiteralTo(__razor_helper_writer, " class=\"title\""); 3574 3575 WriteLiteralTo(__razor_helper_writer, @">Quality Statement</span> 3576 This BioLegend’s GMP-RUO reagent is a fluorochrome-labeled monoclonal antibody single reagent for Research Use Only. Suitable for use in laboratory-developed multicolor flow cytometry tests. Single GMP-RUO products can be used in various multicolor flow cytometry combinations. Laboratory need to establish the GMP-RUO performance characteristics in combination with other reagents in normal and pathological samples. 3577 </div> 3578 "); 3579 3580 3581 #line 1945 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3582 } 3583 3584 3585 3586 3587 #line default 3588 #line hidden 3589 }); 3590 3591 #line 1948 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3592 } 3593 #line default 3594 #line hidden 3595 3596 3597 #line 1950 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3598 3599 3600 public static string StripSpecialCharacters(string input) 3601 { 3602 return System.Text.RegularExpressions.Regex.Replace(input, "[^0-9a-zA-Z -]+", ""); 3603 } 3604 3605 public class TDS 3606 { 3607 public TDS() 3608 { 3609 3610 } 3611 3612 public string link { get; set; } 3613 public string text { get; set; } 3614 public string target { get; set; } 3615 3616 public TDS(string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string viewCurrentManual = "", string instructionsForUse = "", string technicalDataSheet = "", string instrumentSoftwareManual = "", string appAbbreviation = "", string pdfUrl = "") 3617 { 3618 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 3619 var translate = ""; 3620 var block = ""; 3621 var urlTarget = "target=\"_blank\""; 3622 3623 var p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productID, "", true); 3624 3625 if (!string.IsNullOrWhiteSpace(dataSheet) && !dataSheet.Equals("Standard") && !dataSheet.Equals("Recombinant")) 3626 { 3627 linkPrint = dataSheetFile; 3628 block = "1"; 3629 } 3630 3631 if (productType.Equals("ELISA") || productID.Equals("10801")) 3632 { 3633 linkPrint = dataSheetFile; 3634 block = "2"; 3635 } 3636 3637 if (productType.Equals("LEGENDplex") && !productName.Contains("Buffer") && !productName.Contains("Carboxyl") && !productName.Contains("SA-PE") && !productID.Equals("12677") && !productID.Equals("12678") && appAbbreviation.Contains("Multiplex - Panel")) 3638 { 3639 linkPrint = dataSheetFile; 3640 translate = viewCurrentManual; 3641 block = "3"; 3642 } 3643 else if (regulatoryStatus.Equals("IVD")) 3644 { 3645 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet)) 3646 { 3647 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage); 3648 urlTarget = string.Empty; 3649 block = "4"; 3650 } 3651 else 3652 { 3653 linkPrint = dataSheetFile; 3654 block = "5"; 3655 } 3656 3657 translate = instructionsForUse; 3658 block = "6"; 3659 } 3660 //ASR PDF Datasheet Override 3661 else if (regulatoryStatus.Equals("ASR")) 3662 { 3663 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet)) 3664 { 3665 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage); 3666 urlTarget = string.Empty; 3667 block = "7"; 3668 } 3669 else 3670 { 3671 linkPrint = dataSheetFile; 3672 block = "8"; 3673 } 3674 3675 translate = technicalDataSheet; 3676 block = "9"; 3677 } 3678 else if (!string.IsNullOrWhiteSpace(dataSheetFile)) 3679 { 3680 linkPrint = dataSheetFile; 3681 translate = technicalDataSheet; 3682 block = "10"; 3683 } 3684 else 3685 { 3686 linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 3687 translate = technicalDataSheet; 3688 block = "11"; 3689 } 3690 3691 link = linkPrint; 3692 text = translate; 3693 target = urlTarget; 3694 } 3695 } 3696 3697 public class previewTDS 3698 { 3699 public previewTDS() 3700 { 3701 3702 } 3703 3704 public string link { get; set; } 3705 public string text { get; set; } 3706 3707 public previewTDS(string productID = "", string productName = "", string technicalDataSheet = "", string pdfUrl = "") 3708 { 3709 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 3710 var translate = technicalDataSheet; 3711 3712 link = linkPrint; 3713 text = translate; 3714 } 3715 } 3716 3717 3718 #line default 3719 #line hidden 3720 3721 3722 #line 2071 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3723 3724 public static string GetImage(string str_source, int num_width, int num_height, int num_widthTablet = 0, int num_heightTablet = 0, int num_widthMobile = 0, int num_heightMobile = 0, string str_format = "jpg", int num_compression = 75, int num_crop = 5) 3725 { 3726 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 3727 string str_currDevice = obj_currentPageview.Device.ToString(); 3728 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg"; 3729 3730 string str_width = ""; 3731 string str_height = ""; 3732 int num_getImageWidth = num_width != 0 ? num_width : 0; 3733 int num_getImageHeight = num_height != 0 ? num_height : 0; 3734 string str_getImageFormat = str_format != "jpg" ? "&amp;Format=" + str_format : ""; 3735 string str_getImageCompression = num_compression != 75 ? "&amp;Compression=" + num_compression : ""; 3736 3737 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE 3738 3739 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 3740 { 3741 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth; 3742 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight; 3743 } 3744 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 3745 { 3746 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth; 3747 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight; 3748 } 3749 3750 if (num_getImageWidth != 0) 3751 { 3752 str_width = "&amp;Width=" + num_getImageWidth; 3753 } 3754 if (num_getImageHeight != 0) 3755 { 3756 str_height = "&amp;Height=" + num_getImageHeight; 3757 } 3758 3759 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&amp;altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&amp;Crop=" + num_crop; 3760 return str_output; 3761 } 3762 3763 #line default 3764 #line hidden 3765 3766 3767 #line 2341 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3768 3769 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody) 3770 { 3771 string cleanName = prodName; 3772 if(prodType.Equals("PrimaryAntibodies") && !prodName.Contains(" Antibody") && !prodName.Contains("Buffer") && !prodName.Contains("Annexin") && !prodName.Contains("Solution") && !prodName.Contains("Diluent") && !prodName.Contains("Substrate Reagent") && !prodName.Contains("ecombinant") && !prodName.Contains("Panel") && !prodName.Contains("Elisa Max") && !prodName.Contains("Cocktail") && !prodName.Contains("Isotype Control") && !prodName.Contains("Avidin") && !prodName.Contains("Normal Serum Block") && !prodName.Contains("Detection Kit") && !prodName.Contains("Affinity") && !prodName.Contains("ELISA Kit") && !prodName.Contains("Phase-Flow") && !prodName.Contains("Treg Flow") && !prodFormat.Equals("Peptide") && (!excludeAntibody)){ 3773 cleanName += " Antibody"; 3774 } 3775 3776 if(prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)){ 3777 cleanName += " Antibody"; 3778 } 3779 3780 if(prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)){ 3781 cleanName += " Antibody"; 3782 } 3783 3784 return cleanName; 3785 } 3786 3787 #line default 3788 #line hidden 3789 3790 3791 #line 2937 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3792 public RazorEngine.Templating.TemplateWriter RenderProtocols(List<KeyValuePair<string,string>> productProtocolsResults) 3793 { 3794 #line default 3795 #line hidden 3796 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3797 3798 #line 2938 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3799 3800 3801 3802 #line default 3803 #line hidden 3804 WriteLiteralTo(__razor_helper_writer, " <div"); 3805 3806 WriteLiteralTo(__razor_helper_writer, " id=\"productRelatedProtocols\""); 3807 3808 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-9 noPadding pull-right\""); 3809 3810 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2"); 3811 3812 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3813 3814 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 3815 3816 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 126919), Tuple.Create("\"", 126988) 3817 3818 #line 2941 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3819 , Tuple.Create(Tuple.Create("", 126926), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString() 3820 3821 #line default 3822 #line hidden 3823 , 126926), false) 3824 , Tuple.Create(Tuple.Create("", 126964), Tuple.Create("#productRelatedProtocols", 126964), true) 3825 ); 3826 3827 WriteLiteralTo(__razor_helper_writer, " name=\"13\""); 3828 3829 WriteLiteralTo(__razor_helper_writer, ">"); 3830 3831 3832 #line 2941 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3833 WriteTo(__razor_helper_writer, Translate("RelatedProtocols", "Related Protocols")); 3834 3835 3836 #line default 3837 #line hidden 3838 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </h2>\r\n\r\n"); 3839 3840 WriteLiteralTo(__razor_helper_writer, " "); 3841 3842 3843 #line 2944 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3844 WriteTo(__razor_helper_writer, SnippetStart("navigationAnchors")); 3845 3846 3847 #line default 3848 #line hidden 3849 WriteLiteralTo(__razor_helper_writer, "\r\n <li>\r\n <a"); 3850 3851 WriteLiteralTo(__razor_helper_writer, " class=\"anchor_13\""); 3852 3853 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127146), Tuple.Create("\"", 127215) 3854 3855 #line 2946 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3856 , Tuple.Create(Tuple.Create("", 127153), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString() 3857 3858 #line default 3859 #line hidden 3860 , 127153), false) 3861 , Tuple.Create(Tuple.Create("", 127191), Tuple.Create("#productRelatedProtocols", 127191), true) 3862 ); 3863 3864 WriteLiteralTo(__razor_helper_writer, ">"); 3865 3866 3867 #line 2946 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3868 WriteTo(__razor_helper_writer, Translate("RelatedProtocols", "Related Protocols")); 3869 3870 3871 #line default 3872 #line hidden 3873 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 3874 3875 WriteLiteralTo(__razor_helper_writer, " "); 3876 3877 3878 #line 2948 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3879 WriteTo(__razor_helper_writer, SnippetEnd("navigationAnchors")); 3880 3881 3882 #line default 3883 #line hidden 3884 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <ul"); 3885 3886 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 3887 3888 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3889 3890 3891 #line 2951 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3892 3893 3894 #line default 3895 #line hidden 3896 3897 #line 2951 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3898 foreach (var protocolPair in productProtocolsResults) 3899 { 3900 var itemName = protocolPair.Key; 3901 var itemLink = protocolPair.Value; 3902 3903 3904 3905 #line default 3906 #line hidden 3907 WriteLiteralTo(__razor_helper_writer, " <li"); 3908 3909 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 3910 3911 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 3912 3913 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 3914 3915 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127582), Tuple.Create("\"", 127598) 3916 3917 #line 2957 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3918 , Tuple.Create(Tuple.Create("", 127589), Tuple.Create<System.Object, System.Int32>(itemLink 3919 3920 #line default 3921 #line hidden 3922 , 127589), false) 3923 ); 3924 3925 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 127599), Tuple.Create("\"", 127616) 3926 3927 #line 2957 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3928 , Tuple.Create(Tuple.Create("", 127607), Tuple.Create<System.Object, System.Int32>(itemName 3929 3930 #line default 3931 #line hidden 3932 , 127607), false) 3933 ); 3934 3935 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3936 3937 WriteLiteralTo(__razor_helper_writer, " "); 3938 3939 3940 #line 2958 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3941 WriteTo(__razor_helper_writer, itemName); 3942 3943 3944 #line default 3945 #line hidden 3946 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 3947 3948 3949 #line 2961 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3950 } 3951 3952 3953 #line default 3954 #line hidden 3955 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n"); 3956 3957 3958 #line 2964 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3959 3960 3961 #line default 3962 #line hidden 3963 }); 3964 3965 #line 2964 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3966 } 3967 #line default 3968 #line hidden 3969 3970 3971 #line 3359 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 3972 3973 /* Get related pages */ 3974 public static List<Dictionary<string, string>> GetRelatedPages(List<string> pages) 3975 { 3976 List<Dictionary<string, string>> relatedPages = new List<Dictionary<string, string>>(); 3977 3978 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 3979 { 3980 using (var command = connection.CreateCommand()) 3981 { 3982 command.CommandText = string.Format("SELECT Page,LinkExt,Icon_Source,Name from itemtype_relatedPages WHERE ID IN ({0})", string.Join(", ", pages)); 3983 3984 using (var reader = command.ExecuteReader()) 3985 { 3986 if (reader != null) 3987 { 3988 while (reader.Read()) 3989 { 3990 Dictionary<string, string> relatedPagesProperties = new Dictionary<string, string>(); 3991 3992 relatedPagesProperties.Add("Page", reader["Page"].ToString()); 3993 relatedPagesProperties.Add("LinkExt", reader["LinkExt"].ToString()); 3994 relatedPagesProperties.Add("Icon_Source", reader["Icon_Source"].ToString()); 3995 relatedPagesProperties.Add("Name", reader["Name"].ToString()); 3996 relatedPages.Add(relatedPagesProperties); 3997 } 3998 } 3999 } 4000 } 4001 } 4002 4003 return relatedPages; 4004 } 4005 4006 #line default 4007 #line hidden 4008 4009 4010 #line 3518 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4011 4012 4013 public string GetApplicationsLabel(string applicationValues, Dictionary<string, string> applicationsData) 4014 { 4015 applicationValues = applicationValues.Replace("\"", "").Replace(",", ", "); 4016 return applicationValues; 4017 } 4018 4019 public Dictionary<string, string> GetFilterData(string fieldID) 4020 { 4021 //HttpContext.Current.Cache.Remove("applicationsDataCache_" + fieldID); 4022 var applicationCache = HttpContext.Current.Cache["applicationsDataCache_" + fieldID]; 4023 var applicationsData = applicationCache as Dictionary<string, string> ?? new Dictionary<string, string>(); 4024 if (applicationCache == null) 4025 { 4026 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 4027 { 4028 using (var command = connection.CreateCommand()) 4029 { 4030 command.CommandText = "SELECT FieldOptionValue,FieldOptionName FROM EcomFieldOption WHERE FieldOptionFieldID=''+@fieldID+'' ORDER BY FieldOptionValue"; 4031 command.Parameters.Add(new System.Data.SqlClient.SqlParameter() 4032 { 4033 ParameterName = "fieldID", 4034 SqlDbType = System.Data.SqlDbType.NVarChar, 4035 Value = fieldID 4036 }); 4037 using (var reader = command.ExecuteReader()) 4038 { 4039 if (reader != null) 4040 { 4041 while (reader.Read()) 4042 { 4043 applicationsData.Add(reader["FieldOptionValue"].ToString(), reader["FieldOptionName"].ToString()); 4044 } 4045 } 4046 } 4047 } 4048 } 4049 HttpContext.Current.Cache.Insert("applicationsDataCache_" + fieldID, applicationsData, null, DateTime.Now.AddMinutes(5), System.Web.Caching.Cache.NoSlidingExpiration); 4050 } 4051 return applicationsData; 4052 } 4053 4054 #line default 4055 #line hidden 4056 4057 4058 public RazorEngine_4a1d60be34b94de1a72060f7ea174dd6() { 4059 } 4060 4061 public override void Execute() { 4062 4063 #line 96 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4064 4065 4066 4067 #line default 4068 #line hidden 4069 4070 #line 97 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4071 4072 bool bol_userLogged = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 4073 int? userID = null; 4074 if(bol_userLogged){ 4075 userID = Pageview.User.ID; 4076 if(Pageview.User.CurrentSecondaryUser != null && Pageview.User.CurrentSecondaryUser.ID != 0) { 4077 userID = Pageview.User.CurrentSecondaryUser.ID; 4078 } 4079 } 4080 string str_productLanguageId = GetString("Ecom:Product.LanguageID"); 4081 string str_productID = GetString("Ecom:Product.ID"); 4082 List<LoopItem> obj_loopVariantCombinations = GetLoop("VariantCombinations"); 4083 Dictionary<string, Dictionary<string, Dictionary<string, string>>> dic_product = new Dictionary<string, Dictionary<string, Dictionary<string, string>>>(); 4084 Dictionary<string, Dictionary<string, string>> dic_variants = new Dictionary<string, Dictionary<string, string>>(); 4085 string str_productJSON = ""; 4086 string str_productFavoritesUrl = string.Format("Default.aspx?ID={0}", GetPageFromAreaSetting("FavoritesProcess", Pageview)); 4087 4088 if(obj_loopVariantCombinations.Any()){ 4089 foreach (LoopItem variant in obj_loopVariantCombinations){ 4090 string str_variantHref = "/"+ variant.GetValue("Ecom:VariantCombination.Link.Clean") + "?PID=" + Dynamicweb.Frontend.PageView.Current().CurrentParagraph.ID.ToString(); 4091 string str_articleNum = variant.GetString("Ecom:Product.Number"); 4092 string str_price = variant.GetString("Ecom:Product.Price"); 4093 string str_stock = variant.GetString("Ecom:Product.AvailableAmount"); 4094 string str_smallImage = variant.GetString("Ecom:Product.ImageSmall.Clean"); 4095 string str_id = variant.GetString("Ecom:VariantCombination.VariantID"); 4096 string str_variantName = variant.GetString("Ecom:VariantCombination.VariantText"); 4097 string str_variantShortDescription = variant.GetString("Ecom:VariantCombination.VariantText"); 4098 Dictionary<string, string> dic_variant = new Dictionary<string, string>(); 4099 4100 dic_variant.Add("name", str_variantName); 4101 dic_variant.Add("id", str_id); 4102 dic_variant.Add("number", str_articleNum); 4103 dic_variant.Add("price", str_price); 4104 dic_variant.Add("stock", str_stock); 4105 dic_variant.Add("smallImage", str_smallImage); 4106 // dic_variant.Add("productIsFavorite", variant.GetString("Ecom:Product.IsProductInFavoriteList")); 4107 4108 try{ 4109 var favoriteListProducts = Dynamicweb.Ecommerce.CustomerCenter.CustomerProductList.GetListByCustomerId(int.Parse(userID.ToString())); 4110 if (favoriteListProducts.Any()) 4111 { 4112 var favoriteProducts = favoriteListProducts.FirstOrDefault().Products; 4113 bool isFavorite = favoriteProducts.Where(x => x.ProductVariantId == str_id).Any() && favoriteProducts.Where(x => x.ProductId == str_productID).Any(); 4114 dic_variant.Add("productIsFavorite", isFavorite.ToString()); 4115 } 4116 }catch{} 4117 4118 string str_productAddToList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=add", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id); 4119 string str_productRemoveFromList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=remove", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id); 4120 dic_variant.Add("addToList", str_productAddToList); 4121 dic_variant.Add("removeFromList", str_productRemoveFromList); 4122 4123 4124 dic_variants.Add(str_id, dic_variant); 4125 4126 } 4127 dic_product.Add("product", dic_variants); 4128 } 4129 str_productJSON = new JavaScriptSerializer().Serialize(dic_product); 4130 4131 4132 4133 #line default 4134 #line hidden 4135 WriteLiteral("\r\n\r\n"); 4136 4137 WriteLiteral("\r\n\r\n"); 4138 4139 4140 #line 175 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4141 try 4142 { 4143 4144 4145 #line default 4146 #line hidden 4147 4148 #line 223 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4149 4150 4151 4152 4153 #line default 4154 #line hidden 4155 4156 #line 284 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4157 4158 4159 4160 4161 #line default 4162 #line hidden 4163 4164 #line 369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4165 4166 4167 4168 4169 #line default 4170 #line hidden 4171 4172 #line 439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4173 4174 4175 4176 4177 #line default 4178 #line hidden 4179 4180 #line 565 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4181 4182 4183 4184 4185 #line default 4186 #line hidden 4187 4188 #line 604 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4189 4190 4191 4192 4193 #line default 4194 #line hidden 4195 4196 #line 1245 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4197 4198 4199 4200 4201 #line default 4202 #line hidden 4203 4204 #line 1440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4205 4206 4207 4208 4209 #line default 4210 #line hidden 4211 4212 #line 1462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4213 4214 4215 4216 4217 #line default 4218 #line hidden 4219 4220 #line 1484 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4221 4222 4223 4224 4225 #line default 4226 #line hidden 4227 4228 #line 1552 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4229 4230 4231 4232 4233 #line default 4234 #line hidden 4235 4236 #line 1572 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4237 4238 4239 4240 4241 #line default 4242 #line hidden 4243 4244 #line 1582 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4245 4246 4247 4248 4249 #line default 4250 #line hidden 4251 4252 #line 1714 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4253 4254 4255 4256 4257 #line default 4258 #line hidden 4259 4260 #line 1741 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4261 4262 4263 4264 4265 #line default 4266 #line hidden 4267 4268 #line 1777 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4269 4270 4271 4272 4273 #line default 4274 #line hidden 4275 4276 #line 1829 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4277 4278 4279 4280 4281 #line default 4282 #line hidden 4283 4284 #line 1882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4285 4286 4287 4288 4289 #line default 4290 #line hidden 4291 4292 #line 1907 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4293 4294 4295 4296 4297 4298 4299 #line default 4300 #line hidden 4301 4302 #line 1932 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4303 4304 4305 4306 4307 #line default 4308 #line hidden 4309 4310 #line 1948 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4311 4312 4313 4314 4315 #line default 4316 #line hidden 4317 4318 #line 2069 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4319 4320 4321 4322 4323 #line default 4324 #line hidden 4325 4326 #line 2110 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4327 4328 4329 4330 4331 #line default 4332 #line hidden 4333 4334 #line 2112 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4335 4336 var str_requestPreview = System.Web.HttpContext.Current.Request.Params["preview"] ?? ""; 4337 4338 var itemArea = Pageview.Area.Item; 4339 4340 //START CUSTOM CODE 4341 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); 4342 var cdnJsCssDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("CSS_JS", "CSS_JS_Domain"); 4343 //END CUSTOM CODE 4344 4345 var productStatus = GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 4346 if (productStatus.Equals(1) && str_requestPreview!= "true") 4347 { 4348 4349 4350 #line default 4351 #line hidden 4352 4353 #line 2125 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4354 Write(itemArea["ProductDiscontinued"].ToString()); 4355 4356 4357 #line default 4358 #line hidden 4359 4360 #line 2125 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4361 4362 } 4363 else 4364 { 4365 /* Workaround due a DW bug */ 4366 var applicationsData = GetFilterData("BLFD_1"); 4367 /* END Workaround */ 4368 4369 4370 #line default 4371 #line hidden 4372 4373 #line 2132 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4374 4375 var addToCartFormAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + (itemArea["AddToCart"] ?? Pageview.Page.ID).ToString()); 4376 var searchPageID = itemArea["SearchResults"].ToString(); 4377 var formRequestConjugation = itemArea["FormRequestConjugation"].ToString(); 4378 var printPage = itemArea["PrintPage"].ToString(); 4379 var coaPage = itemArea["CertificateAnalysisPage"].ToString(); 4380 var coaRedirect = itemArea["CertificateAnalysisRedirect"].ToString(); 4381 var techSupportPageID = itemArea["FormTechSupport"].ToString(); 4382 var productListJson = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(itemArea["ProductListJson"].ToString()); 4383 var requestBulk = itemArea["RequestBulk"].ToString(); 4384 var cartDisabled = Convert.ToBoolean(itemArea["DisableAddToCart"].ToString()); 4385 var orderContext = itemArea["OrderContext"] != null ? itemArea["OrderContext"].ToString() : ""; 4386 var isWebserviceAvailable = TemplatesHelper.IsWebServiceConnectionAvailable(); 4387 4388 var navEnvironment = itemArea["NavEnvironment"] != null ? itemArea["NavEnvironment"].ToString() : ""; 4389 4390 var userAvailableStartMsg = Translate("userAvailableStartMsg", "The entered quantity of"); 4391 var userOrdersMoreThanAvailable = Translate("userOrdersMoreThanAvailable", "is unavailable. Replenishment is currently underway. You will be notified by BioLegend’s Customer Service of the ETA if we are unable to deliver the full quantity."); 4392 var userOrdersLessThanAvailable = Translate("userOrdersLessThanAvailable", "is available and will be scheduled for shipment ASAP."); 4393 4394 4395 4396 #line default 4397 #line hidden 4398 4399 #line 2152 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4400 4401 var str_requestConc = System.Web.HttpContext.Current.Request.Params["concExpLookup"] ?? ""; 4402 var str_requestLotNumber = System.Web.HttpContext.Current.Request.Params["lotNumber"] ?? ""; 4403 4404 4405 4406 #line default 4407 #line hidden 4408 4409 #line 2156 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4410 4411 var str_currentPageId = Pageview.Page.ID.ToString(); 4412 var bol_isLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 4413 var bol_isFrontEnd = Dynamicweb.Environment.ExecutingContext.IsFrontEnd(); 4414 4415 var siteCurrency = Dynamicweb.Frontend.PageView.Current().Area.EcomCurrencyId; 4416 var userCurrency = bol_userLogged ? Dynamicweb.Security.UserManagement.User.GetCurrentUser().Currency : siteCurrency; 4417 4418 var RRIDLists = new Dictionary<string, string>(); 4419 4420 4421 4422 #line default 4423 #line hidden 4424 4425 #line 2166 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4426 4427 var str_variantDefaultId = GetString("Ecom:Product.DefaultVariantComboID"); 4428 var str_variantCurrentId = GetString("Ecom:Product.VariantID"); 4429 var str_variantId = (!String.IsNullOrEmpty(str_variantCurrentId)) ? str_variantCurrentId : str_variantDefaultId; 4430 var str_variantParam = (!String.IsNullOrEmpty(str_variantId)) ? "&amp;variantid=" + str_variantId : ""; 4431 4432 var str_productId = GetString("Ecom:Product.ID"); 4433 var str_productLanguage = GetString("Ecom:Product.LanguageID"); 4434 var str_productName = GetString("Ecom:Product.Name"); 4435 var str_productIntro = GetString("Ecom:Product.ShortDescription"); 4436 var str_productDescription = GetString("Ecom:Product.LongDescription"); 4437 var str_productPrice = GetString("Ecom:Product.Price"); 4438 var str_productOtherNames = GetString("Ecom:Product:Field.OtherNames.Value"); 4439 var str_productDataSheet = GetString("Ecom:Product:Field.Datasheet.Value.Clean"); 4440 var str_productDataSheetFile = GetString("Ecom:Product:Field.DatasheetFile.Clean"); 4441 var str_productMSDSType = GetString("Ecom:Product:Field.MSDSType.Value"); 4442 var str_productMSDSCFile = GetString("Ecom:Product:Field.MSDSFile.Clean"); 4443 var str_productMSDSOptions = GetString("Ecom:Product:Field.MSDSOptions.Value"); 4444 var str_groupPrimary = GetString("Ecom:Product.PrimaryOrFirstGroupID"); 4445 var str_productImage = GetString("Ecom:Product.ImageSmall.Clean"); 4446 var str_productImageMedium = GetString("Ecom:Product.ImageMedium.Clean"); 4447 var str_productImageLarge = GetString("Ecom:Product.ImageLarge.Clean"); 4448 var str_productImage4 = GetString("Ecom:Product:Field.Image4Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 4449 var str_productGetImage = str_productImage; //GetImage(str_productImage, 180, 0, 180, 0, 180, 0,"jpg",90,5); 4450 var str_productGetImageMedium = str_productImageMedium; // GetImage(str_productImageMedium, 180, 0, 180, 0, 180, 0,"jpg",90,5); 4451 var str_productGetImageLarge = str_productImageLarge; // GetImage(str_productImageLarge, 180, 0, 180, 0, 180, 0,"jpg",90,5); 4452 var str_productGetImage4 = str_productImage4; //GetImage(str_productImage4, 180, 0, 180, 0, 180, 0,"jpg",90,5); 4453 var str_image1Description = GetString("Ecom:Product:Field.Image1Description.Value"); 4454 var str_image2Description = GetString("Ecom:Product:Field.Image2Description.Value"); 4455 var str_image3Description = GetString("Ecom:Product:Field.Image3Description.Value"); 4456 var str_image4Description = GetString("Ecom:Product:Field.Image4Description.Value"); 4457 var str_image1Title = GetString("Ecom:Product:Field.Image1Title.Value"); 4458 var str_image2Title = GetString("Ecom:Product:Field.Image2Title.Value"); 4459 var str_image3Title = GetString("Ecom:Product:Field.Image3Title.Value"); 4460 var str_image4Title = GetString("Ecom:Product:Field.Image4Title.Value"); 4461 var lst_images = new List<Tuple<string, string, string>>(); 4462 4463 var str_productImage5 = GetString("Ecom:Product:Field.Image5Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 4464 var str_productGetImage5 = str_productImage5; 4465 var str_image5Description = GetString("Ecom:Product:Field.Image5Description.Value"); 4466 var str_image5Title = GetString("Ecom:Product:Field.Image5Title.Value"); 4467 4468 var str_productImage6 = GetString("Ecom:Product:Field.Image6Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 4469 var str_productGetImage6 = str_productImage6; 4470 var str_image6Description = GetString("Ecom:Product:Field.Image6Description.Value"); 4471 var str_image6Title = GetString("Ecom:Product:Field.Image6Title.Value"); 4472 4473 var str_starClass = ""; 4474 var str_halfStar = ""; 4475 4476 var productUpdated = GetDate("Ecom:Product.Updated").ToString("yyyyMMddhhmmss"); //CUSTOM CODE 4477 4478 4479 4480 #line default 4481 #line hidden 4482 4483 #line 2218 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4484 4485 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 4486 var productSpecificity = GetString("Ecom:Product:Field.Specificity.Value"); 4487 var str_productFormat = GetString("Ecom:Product:Field.Format.Value"); 4488 var str_productLaser = GetString("Ecom:Product:Field.ExcitationLaser.Value"); 4489 var str_productRegulatoryStatus = GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 4490 var str_productAppAbrv = GetString("Ecom:Product:Field.AppAbrv.Value"); 4491 var str_moreDataTitle = GetString("Ecom:Product:Field.MoreDataTitle.Value"); 4492 var str_moreData = GetString("Ecom:Product:Field.MoreData.Clean"); 4493 var excludeAB = GetBoolean("Ecom:Product:Field.ExcludeAB"); 4494 var productClone = Regex.Replace(GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 4495 var geneList = GetString("Ecom:Product:Field.GeneID.Value").Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries); 4496 var str_biologyArea = GetString("Ecom:Product:Field.BiologyArea.Value"); 4497 var str_molecularFamily = GetString("Ecom:Product:Field.MolecularFamily.Value"); 4498 var str_cellType = GetString("Ecom:Product:Field.CellType.Value"); 4499 var productFieldType = ""; 4500 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 4501 var versionDate = GetDate("Ecom:Product:Field.VersionDate.Value.Clean"); 4502 var dateTimeVersionDate = DateTime.Now; 4503 var productIsUg = ""; 4504 var productIsUl = ""; 4505 var isASR = str_productRegulatoryStatus.Equals("ASR"); 4506 var isIVD = str_productRegulatoryStatus.Equals("IVD"); 4507 var isGMPRUO = str_productRegulatoryStatus.Equals("GMP-RUO"); 4508 var isGMPRUOException = ( str_productFormat.Equals("GMP_RECOM") || str_productFormat.Equals("SOLUTION") || str_productFormat.Equals("GMP_ULEAF") ); 4509 var isRUO = str_productRegulatoryStatus.Equals("RUO"); 4510 var str_ProductNameNormalized = GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 4511 var str_TotalseqSequence = GetString("Ecom:Product:Field.TotalseqSequence.Value"); 4512 var str_IsotypeForFilter = GetString("Ecom:Product:Field.IsotypeFilter.Value"); 4513 var str_footerDisclaimer = GetString("Ecom:Product:Field.FooterDisclaimer.Value"); 4514 var str_qualityStatement = GetString("Ecom:Product:Field.QualityStatement.Value"); 4515 4516 if(versionDate != null) 4517 { 4518 dateTimeVersionDate = versionDate; 4519 } 4520 4521 /* Other Formats */ 4522 var otherFormatsProducts = Dynamicweb.Ecommerce.Products.Product.GetProductsBySql("SELECT * FROM ecomProducts WHERE Clone != '' AND Clone = '" + productClone + "' AND ProductActive = 'True' AND (ProductStatus = '0' OR ProductStatus = '2' OR ProductStatus = '3' OR ProductStatus = '4') AND ProductLanguageID = 'LANG1'").Where(prod => prod.Id != str_productId); 4523 4524 4525 4526 #line default 4527 #line hidden 4528 4529 #line 2258 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4530 4531 var loop_variantCombinations = GetLoop("VariantCombinations").Where(x => x.GetBoolean("Ecom:Product.IsActive")); 4532 var loopAssociatedGroups = GetLoop("AssociatedGroups"); 4533 var loopComments = GetLoop("Comments.Newfirst"); 4534 var loop_variantsWithDC = loop_variantCombinations.Where(x => x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(4)); 4535 4536 if (!string.IsNullOrEmpty(str_productImage)) 4537 { 4538 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 4539 } 4540 if (!string.IsNullOrEmpty(str_productImageMedium)) 4541 { 4542 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 4543 } 4544 if (!string.IsNullOrEmpty(str_productImageLarge)) 4545 { 4546 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 4547 } 4548 if (!string.IsNullOrEmpty(str_productImage4)) 4549 { 4550 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 4551 } 4552 if (!string.IsNullOrEmpty(str_productImage5)) 4553 { 4554 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 4555 } 4556 if (!string.IsNullOrEmpty(str_productImage6)) 4557 { 4558 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 4559 } 4560 4561 var productTypes = new Dictionary<string, string>(); 4562 productTypes.Add("AncillaryProducts", "Ancillary"); 4563 productTypes.Add("BuffersSolutionsChemicals", "Ancillary"); 4564 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies"); 4565 productTypes.Add("CellSeparation", "MojoSort"); 4566 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies"); 4567 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA"); 4568 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies"); 4569 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies"); 4570 productTypes.Add("IsotypeControls", "IsotypeControls"); 4571 productTypes.Add("LEGENDplex", "LEGENDplex"); 4572 productTypes.Add("LEGENDScreen", "LEGENDScreen"); 4573 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies"); 4574 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies"); 4575 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies"); 4576 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies"); 4577 productTypes.Add("RecombinantProteins", "Recombinant"); 4578 productTypes.Add("SecondaryReagents", "SecondaryReagents"); 4579 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies"); 4580 productTypes.Add("EnzymeAssays", "EnzymeAssays"); 4581 productTypes.Add("FlexT", "FlexT"); 4582 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes"); 4583 productTypes.Add("CellFunction", "CellFunction"); 4584 productTypes.Add("PorcineImmunologyAntibodies", "PrimaryAntibodies"); 4585 productTypes.Add("FlexiFluor", "PrimaryAntibodies"); 4586 4587 if (productTypes.ContainsKey(productType)) 4588 { 4589 productFieldType = productTypes[productType]; 4590 } 4591 4592 4593 4594 #line default 4595 #line hidden 4596 4597 #line 2320 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4598 4599 var notShowCategories = new List<string>(); 4600 notShowCategories.Add("GROUP20"); 4601 notShowCategories.Add("GROUP21"); 4602 notShowCategories.Add("GROUP22"); 4603 notShowCategories.Add("GROUP23"); 4604 notShowCategories.Add("GROUP24"); 4605 notShowCategories.Add("GROUP25"); 4606 notShowCategories.Add("GROUP26"); 4607 notShowCategories.Add("GROUP27"); 4608 notShowCategories.Add("GROUP28"); 4609 notShowCategories.Add("GROUP29"); 4610 notShowCategories.Add("GROUP30"); 4611 notShowCategories.Add("GROUP31"); 4612 notShowCategories.Add("GROUP32"); 4613 notShowCategories.Add("GROUP33"); 4614 notShowCategories.Add("GROUP34"); 4615 notShowCategories.Add("GROUP35"); 4616 notShowCategories.Add("GROUP36"); 4617 notShowCategories.Add("GROUP37"); 4618 4619 4620 4621 #line default 4622 #line hidden 4623 4624 #line 2359 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4625 4626 //str_productName = CalculateProductName(str_productName,productFieldType,str_productFormat,excludeAB); 4627 str_productName = str_ProductNameNormalized; 4628 4629 4630 var productCatalogNumbers = loop_variantCombinations.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).Select(x => x.GetString("Ecom:Product.Number")); 4631 var catalogFirstLetter = "0"; 4632 var catalogSecondLetter = "0"; 4633 var catalogThirdLetter = "0"; 4634 var str_workshop = GetString("Ecom:Product.CategoryField." + productFieldType + ".Workshop.Value.Clean"); 4635 4636 if (productCatalogNumbers.Any()) 4637 { 4638 foreach (var xx in productCatalogNumbers) 4639 { 4640 catalogFirstLetter = xx.ToCharArray()[0].ToString(); 4641 catalogSecondLetter = xx.ToCharArray()[1].ToString(); 4642 catalogThirdLetter = xx.ToCharArray()[2].ToString(); 4643 } 4644 } 4645 4646 var catalogFirstTwoNumbers = catalogFirstLetter + catalogSecondLetter; 4647 var catalogFirstThreeNumbers = catalogFirstTwoNumbers + catalogThirdLetter; 4648 4649 4650 4651 #line default 4652 #line hidden 4653 4654 #line 2383 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4655 4656 var previousCompany = new Dictionary<string,string>(); 4657 var previouslyConcatName = ""; 4658 4659 var catalogOldField = Regex.Split(GetString("Ecom:Product:Field.CatalogOld.Value.Clean"), "\r\n|\r|\n"); 4660 4661 foreach (var line in catalogOldField) 4662 { 4663 var lineSplit = line.Split('|'); 4664 4665 if(lineSplit.Count() == 2 ){ 4666 if(lineSplit[0] == "Covance") 4667 { 4668 previouslyConcatName = String.Format("{0} {1}", Translate("previouslyCovanceCatalog","Previously Covance catalog#"), lineSplit[1]); 4669 } 4670 previousCompany.Add(lineSplit[1],lineSplit[0]); 4671 } 4672 } 4673 4674 4675 4676 #line default 4677 #line hidden 4678 4679 #line 2402 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4680 4681 var variantTypes = new Dictionary<string, string>(); 4682 variantTypes.Add("microg", " &micro;g"); 4683 variantTypes.Add("mug", " &mu;g"); 4684 variantTypes.Add("mul", " &mu;l"); 4685 variantTypes.Add("microl", " &micro;l"); 4686 variantTypes.Add("ug", " &mmicro;g"); 4687 4688 var readerPathwaysCount = 0; 4689 var countRelatedPages = 0; 4690 var countIVD2 = 0; 4691 4692 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 4693 { 4694 using (var countIVD = connection.CreateCommand()) 4695 { 4696 countIVD.CommandText = "SELECT Count(1) FROM ecomgroupproductrelation where GroupProductRelationGroupID = 'BLG14317' and GroupProductRelationProductID = ''+@productId+''"; 4697 countIVD.Parameters.Add(new System.Data.SqlClient.SqlParameter() 4698 { 4699 ParameterName = "productId", 4700 SqlDbType = System.Data.SqlDbType.NVarChar, 4701 Value = str_productId 4702 }); 4703 4704 countIVD2 = Convert.ToInt32(countIVD.ExecuteScalar()); 4705 } 4706 } 4707 4708 var isMixMatch = (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Buffer Set")))); 4709 var isCustomFlexT = (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")); 4710 4711 var repositoryPageID = itemArea["RepositoryPageId"] != null ? Convert.ToInt32(itemArea["RepositoryPageId"].ToString()) : 0; 4712 var applicationReferences = RenderItemList(new 4713 { 4714 ItemType = "Publications", 4715 ListSourceType = "NamedList", 4716 TargetNamedList = "Publications", 4717 NamedListPageID = repositoryPageID, 4718 ItemFieldsList = "*", 4719 ListTemplate = "eCom/Product/Includes/productRelatedPublications.cshtml", 4720 ListPageSize = 1000, 4721 // IncludeAllChildItems = true, 4722 Filter = "WebID contains 'p_" + str_productId + ",' or WebID contains 'p_" + str_productId + ":' or WebID ends with 'p_" + str_productId + "'" 4723 }).ToString(); 4724 4725 4726 if (str_currentPageId == @printPage || str_currentPageId == coaPage) 4727 { 4728 4729 4730 #line default 4731 #line hidden 4732 4733 #line 2450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4734 Write(SnippetStart("forcePrint")); 4735 4736 4737 #line default 4738 #line hidden 4739 4740 #line 2450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4741 4742 4743 4744 #line default 4745 #line hidden 4746 WriteLiteral(" <link"); 4747 4748 WriteLiteral(" rel=\"stylesheet\""); 4749 4750 WriteLiteral(" type=\"text/css\""); 4751 4752 WriteAttribute("href", Tuple.Create(" href=\"", 98999), Tuple.Create("\"", 99080) 4753 4754 #line 2451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4755 , Tuple.Create(Tuple.Create("", 99006), Tuple.Create<System.Object, System.Int32>(cdnJsCssDomain 4756 4757 #line default 4758 #line hidden 4759 , 99006), false) 4760 , Tuple.Create(Tuple.Create("", 99021), Tuple.Create("/Files/Templates/Designs/BioLegend/css/exceptions/print.css", 99021), true) 4761 ); 4762 4763 WriteLiteral("/>\r\n"); 4764 4765 WriteLiteral(" <style>\r\n .container { max-width: 700px !important; }\r" + 4766 "\n </style>\r\n"); 4767 4768 4769 #line 2455 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4770 4771 4772 #line default 4773 #line hidden 4774 4775 #line 2455 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4776 Write(SnippetEnd("forcePrint")); 4777 4778 4779 #line default 4780 #line hidden 4781 4782 #line 2455 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4783 4784 } 4785 4786 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionDate.Value.Clean")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionNumber.Value.Clean"))) 4787 { 4788 4789 4790 #line default 4791 #line hidden 4792 4793 #line 2460 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4794 Write(SnippetStart("forcePrintVersion")); 4795 4796 4797 #line default 4798 #line hidden 4799 4800 #line 2460 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4801 4802 4803 4804 #line default 4805 #line hidden 4806 WriteLiteral(" <span"); 4807 4808 WriteLiteral(" class=\"versionDatePrint hidden-sm hidden-md hidden-lg col-xs-12 col-sm-9 pull-ri" + 4809 "ght\""); 4810 4811 WriteLiteral(">\r\n"); 4812 4813 WriteLiteral(" "); 4814 4815 4816 #line 2462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4817 Write(Translate("version", "Version")); 4818 4819 4820 #line default 4821 #line hidden 4822 WriteLiteral("<text>:</text> "); 4823 4824 4825 #line 2462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4826 Write(GetString("Ecom:Product:Field.VersionNumber.Value.Clean")); 4827 4828 4829 #line default 4830 #line hidden 4831 WriteLiteral(" &nbsp;&nbsp; "); 4832 4833 4834 #line 2462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4835 Write(Translate("revisionDate", "Revision Date")); 4836 4837 4838 #line default 4839 #line hidden 4840 WriteLiteral("<text>:</text> "); 4841 4842 4843 #line 2462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4844 Write(dateTimeVersionDate.ToString("MM/dd/yyyy")); 4845 4846 4847 #line default 4848 #line hidden 4849 WriteLiteral("\r\n </span>\r\n"); 4850 4851 4852 #line 2464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4853 4854 4855 #line default 4856 #line hidden 4857 4858 #line 2464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4859 Write(SnippetEnd("forcePrintVersion")); 4860 4861 4862 #line default 4863 #line hidden 4864 4865 #line 2464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4866 4867 } 4868 4869 4870 4871 #line default 4872 #line hidden 4873 WriteLiteral(" <div"); 4874 4875 WriteLiteral(" data-productType=\""); 4876 4877 4878 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4879 Write(productType); 4880 4881 4882 #line default 4883 #line hidden 4884 WriteLiteral("\""); 4885 4886 WriteLiteral(" data-regulatoryStatus=\""); 4887 4888 4889 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4890 Write(str_productRegulatoryStatus); 4891 4892 4893 #line default 4894 #line hidden 4895 WriteLiteral("\""); 4896 4897 WriteLiteral(" data-productName=\""); 4898 4899 4900 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4901 Write(str_productName); 4902 4903 4904 #line default 4905 #line hidden 4906 WriteLiteral("\""); 4907 4908 WriteLiteral(" id=\"product-container\""); 4909 4910 WriteLiteral(" data-format=\""); 4911 4912 4913 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4914 Write(str_productFormat); 4915 4916 4917 #line default 4918 #line hidden 4919 WriteLiteral("\""); 4920 4921 WriteLiteral(" data-productSpecificity=\""); 4922 4923 4924 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4925 Write(productSpecificity); 4926 4927 4928 #line default 4929 #line hidden 4930 WriteLiteral("\""); 4931 4932 WriteLiteral(" data-ajaxPage=\""); 4933 4934 4935 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4936 Write(productListJson); 4937 4938 4939 #line default 4940 #line hidden 4941 WriteLiteral("\""); 4942 4943 WriteLiteral(" data-productType=\""); 4944 4945 4946 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4947 Write(productFieldType); 4948 4949 4950 #line default 4951 #line hidden 4952 WriteLiteral("\""); 4953 4954 WriteLiteral(" class=\"container noPadding\""); 4955 4956 WriteLiteral(" data-productClone=\""); 4957 4958 4959 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4960 Write(productClone); 4961 4962 4963 #line default 4964 #line hidden 4965 WriteLiteral("\""); 4966 4967 WriteLiteral(" data-pageId=\""); 4968 4969 4970 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4971 Write(str_currentPageId); 4972 4973 4974 #line default 4975 #line hidden 4976 WriteLiteral("\""); 4977 4978 WriteLiteral(" data-productId=\""); 4979 4980 4981 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4982 Write(str_productId); 4983 4984 4985 #line default 4986 #line hidden 4987 WriteLiteral("\""); 4988 4989 WriteLiteral(" data-variantId=\""); 4990 4991 4992 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 4993 Write(str_variantId); 4994 4995 4996 #line default 4997 #line hidden 4998 WriteLiteral("\""); 4999 5000 WriteLiteral(" data-errorCombination1=\'"); 5001 5002 5003 #line 2467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5004 Write(Translate("Combination not available")); 5005 5006 5007 #line default 5008 #line hidden 5009 WriteLiteral("\'"); 5010 5011 WriteLiteral(">\r\n <div"); 5012 5013 WriteLiteral(" id=\"product-description\""); 5014 5015 WriteLiteral(" class=\"col-xs-12 noPaddingLeft\""); 5016 5017 WriteLiteral(">\r\n <div"); 5018 5019 WriteLiteral(" id=\"productInfo\""); 5020 5021 WriteLiteral(" class=\"col-xs-12 col-sm-9\""); 5022 5023 WriteLiteral(">\r\n\r\n"); 5024 5025 5026 #line 2471 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5027 5028 5029 #line default 5030 #line hidden 5031 5032 #line 2471 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5033 if (isASR) 5034 { 5035 5036 5037 #line default 5038 #line hidden 5039 WriteLiteral(" <p"); 5040 5041 WriteLiteral(" class=\"col-xs-6 noPadding asrWarning\""); 5042 5043 WriteLiteral(">\r\n <b>"); 5044 5045 5046 #line 2474 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5047 Write(Translate("ASRwarnMessage", "Analyte Specific Reagent. Analytical and performance characteristics are not established.")); 5048 5049 5050 #line default 5051 #line hidden 5052 WriteLiteral("</b>\r\n </p>\r\n"); 5053 5054 5055 #line 2476 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5056 } 5057 5058 5059 #line default 5060 #line hidden 5061 WriteLiteral("\r\n <dl"); 5062 5063 WriteLiteral(" class=\"col-xs-12 noPaddingLeft\""); 5064 5065 WriteLiteral(">\r\n"); 5066 5067 5068 #line 2479 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5069 5070 5071 #line default 5072 #line hidden 5073 5074 #line 2479 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5075 if (loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price")).Any()) 5076 { 5077 5078 5079 #line default 5080 #line hidden 5081 WriteLiteral(" <dt"); 5082 5083 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5084 5085 WriteLiteral(">\r\n"); 5086 5087 WriteLiteral(" "); 5088 5089 5090 #line 2482 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5091 Write(Translate("Catalog#Size", "Catalog# / Size")); 5092 5093 5094 #line default 5095 #line hidden 5096 WriteLiteral("\r\n </dt>\r\n"); 5097 5098 WriteLiteral(" <dd"); 5099 5100 WriteLiteral(" class=\"col-xs-9\""); 5101 5102 WriteLiteral(">\r\n"); 5103 5104 5105 #line 2485 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5106 5107 5108 #line default 5109 #line hidden 5110 5111 #line 2485 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5112 foreach (var productVariant in loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price"))) 5113 { 5114 if (!string.IsNullOrWhiteSpace(productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean"))) 5115 { 5116 RRIDLists.Add(productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean")); 5117 } 5118 var variantName = productVariant.GetString("Ecom:VariantCombination.VariantText"); 5119 if(variantName.Contains("&micro;g")){productIsUg += "Yes";} 5120 if(variantName.Contains("&micro;l")){productIsUl += "Yes";} 5121 5122 5123 #line default 5124 #line hidden 5125 5126 #line 2494 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5127 Write(String.Format("{0} / {1}", productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:VariantCombination.VariantText"))); 5128 5129 5130 #line default 5131 #line hidden 5132 5133 #line 2494 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5134 5135 5136 5137 #line default 5138 #line hidden 5139 WriteLiteral(" <br/>\r\n"); 5140 5141 5142 #line 2496 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5143 } 5144 5145 5146 #line default 5147 #line hidden 5148 WriteLiteral(" </dd>\r\n"); 5149 5150 5151 #line 2498 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5152 } 5153 5154 5155 #line default 5156 #line hidden 5157 WriteLiteral(" "); 5158 5159 5160 #line 2499 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5161 if (!string.IsNullOrEmpty(productClone)) 5162 { 5163 5164 5165 #line default 5166 #line hidden 5167 WriteLiteral(" <dt"); 5168 5169 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5170 5171 WriteLiteral(">\r\n"); 5172 5173 WriteLiteral(" "); 5174 5175 5176 #line 2502 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5177 Write(GetString("Ecom:Product:Field.Clone.Name")); 5178 5179 5180 #line default 5181 #line hidden 5182 WriteLiteral("\r\n </dt>\r\n"); 5183 5184 WriteLiteral(" <dd"); 5185 5186 WriteLiteral(" class=\"col-xs-9\""); 5187 5188 WriteLiteral(">\r\n"); 5189 5190 WriteLiteral(" "); 5191 5192 5193 #line 2505 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5194 Write(productClone); 5195 5196 5197 #line default 5198 #line hidden 5199 WriteLiteral("\r\n </dd>\r\n"); 5200 5201 5202 #line 2507 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5203 } 5204 5205 5206 #line default 5207 #line hidden 5208 WriteLiteral(" "); 5209 5210 5211 #line 2508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5212 if (isRUO) 5213 { 5214 5215 5216 #line default 5217 #line hidden 5218 WriteLiteral(" <dt"); 5219 5220 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5221 5222 WriteLiteral(">\r\n"); 5223 5224 WriteLiteral(" "); 5225 5226 5227 #line 2511 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5228 Write(Translate("RegulatoryStatus","Regulatory Status")); 5229 5230 5231 #line default 5232 #line hidden 5233 WriteLiteral("\r\n </dt>\r\n"); 5234 5235 WriteLiteral(" <dd"); 5236 5237 WriteLiteral(" class=\"col-xs-9\""); 5238 5239 WriteLiteral(">\r\n"); 5240 5241 WriteLiteral(" "); 5242 5243 5244 #line 2514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5245 Write(str_productRegulatoryStatus); 5246 5247 5248 #line default 5249 #line hidden 5250 WriteLiteral("\r\n </dd>\r\n"); 5251 5252 5253 #line 2516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5254 } 5255 5256 5257 #line default 5258 #line hidden 5259 WriteLiteral(" "); 5260 5261 5262 #line 2517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5263 if(!string.IsNullOrEmpty(str_workshop)) 5264 { 5265 5266 5267 #line default 5268 #line hidden 5269 WriteLiteral(" <dt"); 5270 5271 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5272 5273 WriteLiteral(">\r\n"); 5274 5275 WriteLiteral(" "); 5276 5277 5278 #line 2520 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5279 Write(Translate("WorkshopName","Workshop")); 5280 5281 5282 #line default 5283 #line hidden 5284 WriteLiteral("\r\n </dt>\r\n"); 5285 5286 WriteLiteral(" <dd"); 5287 5288 WriteLiteral(" class=\"col-xs-9\""); 5289 5290 WriteLiteral(">\r\n"); 5291 5292 WriteLiteral(" "); 5293 5294 5295 #line 2523 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5296 Write(str_workshop); 5297 5298 5299 #line default 5300 #line hidden 5301 WriteLiteral("\r\n </dd>\r\n"); 5302 5303 5304 #line 2525 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5305 } 5306 5307 5308 #line default 5309 #line hidden 5310 WriteLiteral(" "); 5311 5312 5313 #line 2526 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5314 5315 var pattern = @"\<[^>]*\>"; 5316 Regex rgx = new Regex(pattern); 5317 string otherNamesValue = rgx.Replace(GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty); 5318 5319 5320 #line default 5321 #line hidden 5322 WriteLiteral("\r\n"); 5323 5324 5325 #line 2531 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5326 5327 5328 #line default 5329 #line hidden 5330 5331 #line 2531 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5332 if (!String.IsNullOrWhiteSpace(otherNamesValue) && !isIVD ) 5333 { 5334 5335 5336 #line default 5337 #line hidden 5338 WriteLiteral(" <dt"); 5339 5340 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5341 5342 WriteLiteral(">\r\n"); 5343 5344 WriteLiteral(" "); 5345 5346 5347 #line 2534 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5348 Write(GetString("Ecom:Product:Field.OtherNames.Name")); 5349 5350 5351 #line default 5352 #line hidden 5353 WriteLiteral("\r\n </dt>\r\n"); 5354 5355 WriteLiteral(" <dd"); 5356 5357 WriteLiteral(" class=\"col-xs-9\""); 5358 5359 WriteLiteral(">\r\n"); 5360 5361 WriteLiteral(" "); 5362 5363 5364 #line 2537 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5365 Write(otherNamesValue); 5366 5367 5368 #line default 5369 #line hidden 5370 WriteLiteral("\r\n </dd>\r\n"); 5371 5372 5373 #line 2539 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5374 } 5375 5376 5377 #line default 5378 #line hidden 5379 WriteLiteral("\r\n"); 5380 5381 5382 #line 2541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5383 5384 5385 #line default 5386 #line hidden 5387 5388 #line 2541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5389 if (previousCompany.Any() && !isASR && !isIVD) 5390 { 5391 5392 5393 #line default 5394 #line hidden 5395 WriteLiteral(" <dt"); 5396 5397 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 5398 5399 WriteLiteral(">\r\n"); 5400 5401 WriteLiteral(" "); 5402 5403 5404 #line 2544 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5405 Write(Translate("Previously", "Previously")); 5406 5407 5408 #line default 5409 #line hidden 5410 WriteLiteral("\r\n </dt>\r\n"); 5411 5412 WriteLiteral(" <dd"); 5413 5414 WriteLiteral(" class=\"col-xs-9\""); 5415 5416 WriteLiteral(">\r\n <div>\r\n"); 5417 5418 5419 #line 2548 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5420 5421 5422 #line default 5423 #line hidden 5424 5425 #line 2548 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5426 foreach (var x in previousCompany) 5427 { 5428 5429 5430 #line default 5431 #line hidden 5432 5433 #line 2550 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5434 Write(String.Format("{1} Catalog# {0}<br/>", x.Key.ToString(), x.Value.ToString())); 5435 5436 5437 #line default 5438 #line hidden 5439 5440 #line 2550 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5441 5442 } 5443 5444 5445 #line default 5446 #line hidden 5447 WriteLiteral(" </div>\r\n </dd>\r\n"); 5448 5449 5450 #line 2554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5451 } 5452 5453 5454 #line default 5455 #line hidden 5456 WriteLiteral("\r\n"); 5457 5458 WriteLiteral(" "); 5459 5460 5461 #line 2556 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5462 Write(RenderIsoype(str_IsotypeForFilter)); 5463 5464 5465 #line default 5466 #line hidden 5467 WriteLiteral("\r\n"); 5468 5469 5470 #line 2557 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5471 5472 5473 #line default 5474 #line hidden 5475 5476 #line 2557 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5477 if (!string.IsNullOrEmpty(str_TotalseqSequence)) 5478 { 5479 5480 5481 #line default 5482 #line hidden 5483 WriteLiteral(" <dt"); 5484 5485 WriteLiteral(" class=\"col-xs-4 col-sm-3 noPaddingLeft\""); 5486 5487 WriteLiteral(">\r\n"); 5488 5489 WriteLiteral(" "); 5490 5491 5492 #line 2560 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5493 Write(Translate("Barcode Sequence")); 5494 5495 5496 #line default 5497 #line hidden 5498 WriteLiteral("\r\n </dt>\r\n"); 5499 5500 WriteLiteral(" <dd>\r\n"); 5501 5502 WriteLiteral(" "); 5503 5504 5505 #line 2563 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5506 Write(str_TotalseqSequence); 5507 5508 5509 #line default 5510 #line hidden 5511 WriteLiteral("\r\n </dd>\r\n"); 5512 5513 5514 #line 2565 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5515 } 5516 5517 5518 #line default 5519 #line hidden 5520 WriteLiteral(" </dl>\r\n\r\n "); 5521 5522 WriteLiteral("\r\n"); 5523 5524 5525 #line 2569 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5526 5527 5528 #line default 5529 #line hidden 5530 5531 #line 2569 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5532 if (str_currentPageId != printPage && str_currentPageId == printPage && !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR) 5533 { 5534 5535 5536 #line default 5537 #line hidden 5538 WriteLiteral(" <dl"); 5539 5540 WriteLiteral(" class=\"col-xs-12 noPadding\""); 5541 5542 WriteLiteral(">\r\n"); 5543 5544 WriteLiteral(" "); 5545 5546 5547 #line 2572 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5548 Write(RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents"))); 5549 5550 5551 #line default 5552 #line hidden 5553 WriteLiteral("\r\n </dl>\r\n"); 5554 5555 5556 #line 2574 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5557 } 5558 5559 5560 5561 #line default 5562 #line hidden 5563 5564 #line 2576 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5565 5566 5567 5568 #line default 5569 #line hidden 5570 WriteLiteral(" "); 5571 5572 5573 #line 2577 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5574 if(str_productFormat.ToUpper().Contains("BV") && str_productName.ToUpper().Contains("MOUSE") && productIsUg.ToUpper().Contains("YES") && productIsUl.ToUpper().Contains("YES") && !isASR){ 5575 5576 5577 #line default 5578 #line hidden 5579 WriteLiteral(" <div"); 5580 5581 WriteLiteral(" class=\"pdfDescription col-xs-12 noPaddingLeft\""); 5582 5583 WriteLiteral(">\r\n <div"); 5584 5585 WriteLiteral(" class=\"title col-xs-3 noPaddingLeft\""); 5586 5587 WriteLiteral(">&nbsp;</div>\r\n <div"); 5588 5589 WriteLiteral(" class=\"col-xs-9\""); 5590 5591 WriteLiteral(">This product is offered in multiple sizing options (&micro;g and &micro;L/test s" + 5592 "izes). To compare these sizing options and learn which is the best choice for yo" + 5593 "u, please contact tech support.</div>\r\n </div>\r\n"); 5594 5595 5596 #line 2582 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5597 } 5598 5599 5600 #line default 5601 #line hidden 5602 WriteLiteral("\r\n"); 5603 5604 5605 #line 2584 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5606 5607 5608 #line default 5609 #line hidden 5610 5611 #line 2584 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5612 if (!String.IsNullOrEmpty(str_productDescription)) 5613 { 5614 5615 5616 #line default 5617 #line hidden 5618 WriteLiteral(" <dl"); 5619 5620 WriteLiteral(" class=\"pdfDescription col-xs-12 noPaddingLeft\""); 5621 5622 WriteLiteral(">\r\n <dt"); 5623 5624 WriteLiteral(" class=\"title col-xs-3 noPaddingLeft\""); 5625 5626 WriteLiteral("><strong>"); 5627 5628 5629 #line 2587 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5630 Write(Translate("Description", "Description")); 5631 5632 5633 #line default 5634 #line hidden 5635 WriteLiteral("</strong></dt>\r\n <dd"); 5636 5637 WriteLiteral(" class=\"col-xs-9 noPaddingLeft\""); 5638 5639 WriteLiteral(">"); 5640 5641 5642 #line 2588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5643 Write(RenderLongDescription(str_productDescription, str_productId)); 5644 5645 5646 #line default 5647 #line hidden 5648 WriteLiteral("</dd>\r\n </dl>\r\n"); 5649 5650 5651 #line 2590 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5652 } 5653 5654 5655 #line default 5656 #line hidden 5657 WriteLiteral(" "); 5658 5659 5660 #line 2591 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5661 if (!String.IsNullOrEmpty(str_qualityStatement)) 5662 { 5663 5664 5665 #line default 5666 #line hidden 5667 5668 #line 2593 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5669 Write(RenderProductField("QualityStatement",@Translate("QualityStatementNameB","Quality Statement"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName)); 5670 5671 5672 #line default 5673 #line hidden 5674 5675 #line 2593 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5676 5677 } 5678 5679 5680 #line default 5681 #line hidden 5682 WriteLiteral("\r\n\r\n"); 5683 5684 WriteLiteral(" "); 5685 5686 5687 #line 2597 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5688 Write(RenderTDS( 5689 true, 5690 str_productDataSheetFile, 5691 str_productDataSheet, 5692 printPage, 5693 productFieldType, 5694 str_productId, 5695 str_productName, 5696 str_productRegulatoryStatus, 5697 techSupportPageID, 5698 @Translate("datasheetNotAvailable", "This datasheet is currently not available online. Click 'OK' to contact technical service for more information."), 5699 "", 5700 "", 5701 productUpdated 5702 )); 5703 5704 5705 #line default 5706 #line hidden 5707 WriteLiteral("\r\n\r\n </div>\r\n\r\n "); 5708 5709 WriteLiteral("\r\n"); 5710 5711 5712 #line 2616 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5713 5714 5715 #line default 5716 #line hidden 5717 5718 #line 2616 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5719 if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR) 5720 { 5721 5722 5723 #line default 5724 #line hidden 5725 WriteLiteral(" <div"); 5726 5727 WriteLiteral(" id=\"kitContents\""); 5728 5729 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\""); 5730 5731 WriteLiteral(">\r\n\r\n <h2"); 5732 5733 WriteLiteral(" class=\"col-xs-12 noPadding\""); 5734 5735 WriteLiteral(">\r\n"); 5736 5737 WriteLiteral(" "); 5738 5739 5740 #line 2621 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5741 Write(Translate("KitContents", "Kit Contents")); 5742 5743 5744 #line default 5745 #line hidden 5746 WriteLiteral("\r\n </h2>\r\n <dl"); 5747 5748 WriteLiteral(" class=\"col-xs-12 noPadding\""); 5749 5750 WriteLiteral(">\r\n"); 5751 5752 WriteLiteral(" "); 5753 5754 5755 #line 2624 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5756 Write(RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents"))); 5757 5758 5759 #line default 5760 #line hidden 5761 WriteLiteral("\r\n </dl>\r\n </div>\r\n"); 5762 5763 5764 #line 2627 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5765 } 5766 5767 5768 #line default 5769 #line hidden 5770 WriteLiteral("\r\n <div"); 5771 5772 WriteLiteral(" id=\"productDetails\""); 5773 5774 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\""); 5775 5776 WriteLiteral(" data-isotypeControl=\'"); 5777 5778 5779 #line 2629 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5780 Write(Translate("IsotypeControl", "Isotype Control")); 5781 5782 5783 #line default 5784 #line hidden 5785 WriteLiteral("\'"); 5786 5787 WriteLiteral(">\r\n <h2"); 5788 5789 WriteLiteral(" class=\"col-xs-12 noPadding\""); 5790 5791 WriteLiteral(">\r\n"); 5792 5793 WriteLiteral(" "); 5794 5795 5796 #line 2631 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5797 Write(Translate("ProductDetails", "Product Details")); 5798 5799 5800 #line default 5801 #line hidden 5802 WriteLiteral("\r\n </h2>\r\n\r\n <dl"); 5803 5804 WriteLiteral(" class=\"col-xs-12 noPadding\""); 5805 5806 WriteLiteral(">\r\n\r\n"); 5807 5808 5809 #line 2636 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5810 5811 5812 #line default 5813 #line hidden 5814 5815 #line 2636 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5816 if(isIVD){ 5817 5818 5819 #line default 5820 #line hidden 5821 5822 #line 2637 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5823 Write(RenderProductField("ProductInfo", @Translate("ProductInformation","Product Information"))); 5824 5825 5826 #line default 5827 #line hidden 5828 5829 #line 2637 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5830 ; 5831 } 5832 5833 5834 #line default 5835 #line hidden 5836 WriteLiteral(" "); 5837 5838 5839 #line 2639 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5840 if(isRUO){ 5841 5842 5843 #line default 5844 #line hidden 5845 5846 #line 2640 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5847 Write(RenderProductField("Reactivity", @Translate("VerifiedReactivity","Verified Reactivity"), "", "", "", "", productType, "", null, true)); 5848 5849 5850 #line default 5851 #line hidden 5852 5853 #line 2640 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5854 5855 } 5856 else{ 5857 5858 5859 #line default 5860 #line hidden 5861 5862 #line 2643 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5863 Write(RenderProductField("Reactivity", @Translate("Reactivity","Reactivity"), "", "", "", "", productType, "", null, true)); 5864 5865 5866 #line default 5867 #line hidden 5868 5869 #line 2643 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5870 5871 } 5872 5873 5874 #line default 5875 #line hidden 5876 WriteLiteral(" "); 5877 5878 5879 #line 2645 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5880 Write(RenderProductField("ReportedReactivity", @Translate("ReportedReactivity","Reported Reactivity"), "", "", "", "", productType, "", null, true)); 5881 5882 5883 #line default 5884 #line hidden 5885 WriteLiteral("\r\n"); 5886 5887 5888 #line 2646 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5889 5890 5891 #line default 5892 #line hidden 5893 5894 #line 2646 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5895 if(!isASR && !isIVD){ 5896 5897 5898 #line default 5899 #line hidden 5900 5901 #line 2647 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5902 Write(RenderABType("ABType", @Translate("AntibodyType","Antibody Type"))); 5903 5904 5905 #line default 5906 #line hidden 5907 5908 #line 2647 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5909 5910 } 5911 5912 5913 #line default 5914 #line hidden 5915 WriteLiteral(" "); 5916 5917 5918 #line 2649 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5919 if(!isASR && !isIVD){ 5920 5921 5922 #line default 5923 #line hidden 5924 5925 #line 2650 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5926 Write(RenderProductField("HostSpecies", @Translate("HostSpecies","Host Species"))); 5927 5928 5929 #line default 5930 #line hidden 5931 5932 #line 2650 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5933 5934 } 5935 5936 5937 #line default 5938 #line hidden 5939 WriteLiteral(" "); 5940 5941 5942 #line 2652 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5943 if(!isASR){ 5944 5945 5946 #line default 5947 #line hidden 5948 5949 #line 2653 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5950 Write(RenderCustomField(productFieldType, "Immunogen", @Translate("Immunogen", "Immunogen"))); 5951 5952 5953 #line default 5954 #line hidden 5955 5956 #line 2653 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5957 5958 } 5959 5960 5961 #line default 5962 #line hidden 5963 WriteLiteral(" "); 5964 5965 5966 #line 2655 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5967 if(!isASR){ 5968 5969 5970 #line default 5971 #line hidden 5972 5973 #line 2656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5974 Write(RenderCustomField(productFieldType, "Derivation", @Translate("Source", "Source"))); 5975 5976 5977 #line default 5978 #line hidden 5979 5980 #line 2656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5981 5982 } 5983 5984 5985 #line default 5986 #line hidden 5987 WriteLiteral(" "); 5988 5989 5990 #line 2658 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5991 if(!isASR){ 5992 5993 5994 #line default 5995 #line hidden 5996 5997 #line 2659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 5998 Write(RenderCustomField(productFieldType, "Mass", @Translate("MolecularMass", "Molecular Mass"))); 5999 6000 6001 #line default 6002 #line hidden 6003 6004 #line 2659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6005 6006 } 6007 6008 6009 #line default 6010 #line hidden 6011 WriteLiteral(" "); 6012 6013 6014 #line 2661 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6015 Write(RenderProductField("NTerminalSequenceAnalysis",@Translate("NTerminalSequenceAnalysisNameA","N-terminal<br />Sequence Analysis"))); 6016 6017 6018 #line default 6019 #line hidden 6020 WriteLiteral("\r\n"); 6021 6022 6023 #line 2662 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6024 6025 6026 #line default 6027 #line hidden 6028 6029 #line 2662 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6030 if(!isASR){ 6031 6032 6033 #line default 6034 #line hidden 6035 6036 #line 2663 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6037 Write(RenderCustomField(productFieldType, "Purity", @Translate("Purity", "Purity"))); 6038 6039 6040 #line default 6041 #line hidden 6042 6043 #line 2663 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6044 6045 } 6046 6047 6048 #line default 6049 #line hidden 6050 WriteLiteral(" "); 6051 6052 6053 #line 2665 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6054 Write(RenderProductField("Formulation", @Translate("Formulation", "Formulation"))); 6055 6056 6057 #line default 6058 #line hidden 6059 WriteLiteral("\r\n"); 6060 6061 WriteLiteral(" "); 6062 6063 6064 #line 2666 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6065 Write(RenderProductField("EndotoxinLevel",@Translate("EndotoxinLevelName","Endotoxin Level"))); 6066 6067 6068 #line default 6069 #line hidden 6070 WriteLiteral("\r\n"); 6071 6072 WriteLiteral(" "); 6073 6074 6075 #line 2667 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6076 Write(RenderProductField("ResidualHostCellProteinContent",@Translate("ResidualHostCellProteinContentName","Residual Host Cell Protein Content"))); 6077 6078 6079 #line default 6080 #line hidden 6081 WriteLiteral("\r\n"); 6082 6083 WriteLiteral(" "); 6084 6085 6086 #line 2668 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6087 Write(RenderProductField("Specifications",@Translate("SpecificationsName","Specifications"))); 6088 6089 6090 #line default 6091 #line hidden 6092 WriteLiteral("\r\n"); 6093 6094 WriteLiteral(" "); 6095 6096 6097 #line 2669 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6098 Write(RenderCustomField(productFieldType, "Preparation", @Translate("Preparation", "Preparation"))); 6099 6100 6101 #line default 6102 #line hidden 6103 WriteLiteral("\r\n\r\n"); 6104 6105 6106 #line 2671 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6107 6108 6109 #line default 6110 #line hidden 6111 6112 #line 2671 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6113 if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean"))) 6114 { 6115 6116 6117 #line default 6118 #line hidden 6119 WriteLiteral(" <dt"); 6120 6121 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6122 6123 WriteLiteral(">\r\n"); 6124 6125 WriteLiteral(" "); 6126 6127 6128 #line 2674 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6129 Write(Translate("Concentration", "Concentration")); 6130 6131 6132 #line default 6133 #line hidden 6134 WriteLiteral("\r\n </dt>\r\n"); 6135 6136 WriteLiteral(" <dd"); 6137 6138 WriteLiteral(" class=\"col-xs-9\""); 6139 6140 WriteLiteral(">\r\n"); 6141 6142 WriteLiteral(" "); 6143 6144 6145 #line 2677 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6146 Write(LocalizeLinks(@GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean"))); 6147 6148 6149 #line default 6150 #line hidden 6151 WriteLiteral(" "); 6152 6153 6154 #line 2677 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6155 Write(GetString("Ecom:Product.CategoryField." + productFieldType + ".ConcentrationUnits.Value.Clean")); 6156 6157 6158 #line default 6159 #line hidden 6160 WriteLiteral("\r\n </dd>\r\n"); 6161 6162 6163 #line 2679 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6164 } 6165 6166 6167 #line default 6168 #line hidden 6169 WriteLiteral("\r\n"); 6170 6171 WriteLiteral(" "); 6172 6173 6174 #line 2681 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6175 Write(RenderProductField("Storage", @Translate("StorageHandling", "Storage & Handling"), str_productId)); 6176 6177 6178 #line default 6179 #line hidden 6180 WriteLiteral("\r\n"); 6181 6182 6183 #line 2682 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6184 6185 6186 #line default 6187 #line hidden 6188 6189 #line 2682 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6190 if(!isASR){ 6191 6192 6193 #line default 6194 #line hidden 6195 6196 #line 2683 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6197 Write(RenderCustomField(productFieldType, "Activity", @Translate("Activity", "Activity"))); 6198 6199 6200 #line default 6201 #line hidden 6202 6203 #line 2683 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6204 6205 } 6206 6207 6208 #line default 6209 #line hidden 6210 WriteLiteral(" "); 6211 6212 6213 #line 2685 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6214 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Applications.Value")) && !isIVD) 6215 { 6216 6217 6218 #line default 6219 #line hidden 6220 WriteLiteral(" <dt"); 6221 6222 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6223 6224 WriteLiteral(">\r\n"); 6225 6226 WriteLiteral(" "); 6227 6228 6229 #line 2688 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6230 Write(Translate("Application", "Application")); 6231 6232 6233 #line default 6234 #line hidden 6235 WriteLiteral("\r\n </dt>\r\n"); 6236 6237 WriteLiteral(" <dd"); 6238 6239 WriteLiteral(" class=\"col-xs-9\""); 6240 6241 WriteLiteral(">\r\n <span>"); 6242 6243 6244 #line 2691 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6245 Write(GetString("Ecom:Product:Field.Applications.Value")); 6246 6247 6248 #line default 6249 #line hidden 6250 WriteLiteral("</span>\r\n\r\n"); 6251 6252 6253 #line 2693 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6254 6255 6256 #line default 6257 #line hidden 6258 6259 #line 2693 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6260 if (productFieldType.Equals("LEGENDplex")) 6261 { 6262 6263 6264 #line default 6265 #line hidden 6266 WriteLiteral(" "); 6267 6268 WriteLiteral("\r\n <br/>\r\n"); 6269 6270 WriteLiteral(" "); 6271 6272 6273 #line 2697 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6274 Write(Translate("learnAboutLegendPlex", "Learn more about LEGENDplex™ at biolegend.com/legendplex.")); 6275 6276 6277 #line default 6278 #line hidden 6279 WriteLiteral("\r\n <br/><br/>\r\n"); 6280 6281 WriteLiteral(" "); 6282 6283 6284 #line 2699 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6285 Write(Translate("downloadLegendPlexSoftware", "Download the LEGENDplex™ software.")); 6286 6287 6288 #line default 6289 #line hidden 6290 WriteLiteral("\r\n "); 6291 6292 WriteLiteral("\r\n"); 6293 6294 6295 #line 2701 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6296 } 6297 6298 6299 #line default 6300 #line hidden 6301 WriteLiteral("\r\n </dd>\r\n"); 6302 6303 6304 #line 2704 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6305 } 6306 6307 6308 6309 #line default 6310 #line hidden 6311 6312 #line 2706 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6313 6314 6315 6316 #line default 6317 #line hidden 6318 WriteLiteral(" "); 6319 6320 6321 #line 2707 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6322 if (str_productFormat.Equals("ELISA") || str_productFormat.Equals("ELISA_STD") || str_productFormat.Equals("ELISA_DLX")) 6323 { 6324 6325 6326 #line default 6327 #line hidden 6328 WriteLiteral(" <dt"); 6329 6330 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6331 6332 WriteLiteral(">"); 6333 6334 6335 #line 2709 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6336 Write(Translate("spaceText", "&nbsp;")); 6337 6338 6339 #line default 6340 #line hidden 6341 WriteLiteral("</dt>\r\n"); 6342 6343 WriteLiteral(" <dd"); 6344 6345 WriteLiteral(" class=\"col-xs-9\""); 6346 6347 WriteLiteral(">\r\n"); 6348 6349 WriteLiteral(" "); 6350 6351 6352 #line 2711 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6353 Write(Translate("elisaGreenText", " As a part of BioLegend&apos;s efforts to go green, each new lot of the ELISA MAX&trade; sets will include a summarized version of its manual. ")); 6354 6355 6356 #line default 6357 #line hidden 6358 WriteLiteral(" \r\n </dd>\r\n"); 6359 6360 6361 #line 2713 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6362 } 6363 6364 6365 #line default 6366 #line hidden 6367 WriteLiteral("\r\n"); 6368 6369 WriteLiteral(" "); 6370 6371 6372 #line 2715 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6373 Write(RenderProductField("Usage", @Translate("RecommendedUsage", "Recommended Usage"), str_productId, str_productRegulatoryStatus, catalogFirstLetter, str_productFormat, productFieldType, str_productName)); 6374 6375 6376 #line default 6377 #line hidden 6378 WriteLiteral("\r\n \r\n\r\n"); 6379 6380 6381 #line 2718 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6382 6383 6384 #line default 6385 #line hidden 6386 6387 #line 2718 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6388 if(!isASR && !isIVD) 6389 { 6390 6391 6392 #line default 6393 #line hidden 6394 6395 #line 2720 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6396 Write(RenderLaser(str_productLaser)); 6397 6398 6399 #line default 6400 #line hidden 6401 6402 #line 2720 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6403 6404 6405 6406 #line default 6407 #line hidden 6408 6409 #line 2721 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6410 Write(RenderProductField("AppNotes", @Translate("ApplicationNotes", "Application Notes"))); 6411 6412 6413 #line default 6414 #line hidden 6415 6416 #line 2721 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6417 6418 6419 6420 #line default 6421 #line hidden 6422 6423 #line 2722 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6424 Write(RenderProductField("AdditionalProductNotes", @Translate("AdditionalProductNotesTitle", "Additional Product Notes"))); 6425 6426 6427 #line default 6428 #line hidden 6429 6430 #line 2722 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6431 6432 } 6433 6434 6435 #line default 6436 #line hidden 6437 WriteLiteral("\r\n"); 6438 6439 6440 #line 2725 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6441 6442 6443 #line default 6444 #line hidden 6445 6446 #line 2725 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6447 if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.AppReferences.Value")) && !isASR) 6448 { 6449 6450 6451 #line default 6452 #line hidden 6453 WriteLiteral(" <dt"); 6454 6455 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6456 6457 WriteLiteral(">\r\n"); 6458 6459 WriteLiteral(" "); 6460 6461 6462 #line 2728 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6463 Write(Translate("ApplicationReferences","Application References")); 6464 6465 6466 #line default 6467 #line hidden 6468 WriteLiteral("\r\n </dt>\r\n"); 6469 6470 WriteLiteral(" <dd"); 6471 6472 WriteLiteral(" class=\"col-xs-9\""); 6473 6474 WriteLiteral(" id=\"applicationReferences\""); 6475 6476 WriteLiteral(" data-seeLess=\""); 6477 6478 6479 #line 2730 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6480 Write(Translate("seeLess", "See Less")); 6481 6482 6483 #line default 6484 #line hidden 6485 WriteLiteral("\""); 6486 6487 WriteLiteral(" data-seeMore=\""); 6488 6489 6490 #line 2730 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6491 Write(Translate("seeMore", "See More")); 6492 6493 6494 #line default 6495 #line hidden 6496 WriteLiteral("\""); 6497 6498 WriteLiteral(">\r\n"); 6499 6500 6501 #line 2731 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6502 6503 6504 #line default 6505 #line hidden 6506 6507 #line 2731 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6508 6509 var removeAnchor = Regex.Replace(GetString("Ecom:Product:Field.AppReferences.Value"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 6510 6511 6512 #line default 6513 #line hidden 6514 WriteLiteral("\r\n"); 6515 6516 6517 #line 2734 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6518 6519 6520 #line default 6521 #line hidden 6522 6523 #line 2734 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6524 if (removeAnchor.Contains("</li>")) 6525 { 6526 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None); 6527 var count = 0; 6528 foreach (var li in positionOfCut) 6529 { 6530 count++; 6531 if (count > 12) 6532 { 6533 break; 6534 } 6535 6536 6537 #line default 6538 #line hidden 6539 6540 #line 2745 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6541 Write(li + "</li>"); 6542 6543 6544 #line default 6545 #line hidden 6546 6547 #line 2745 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6548 6549 } 6550 } 6551 else 6552 { 6553 6554 6555 #line default 6556 #line hidden 6557 6558 #line 2750 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6559 Write(removeAnchor.Substring(0, (removeAnchor.Length <= 800 ? removeAnchor.Length - 1 : 800))); 6560 6561 6562 #line default 6563 #line hidden 6564 6565 #line 2750 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6566 6567 } 6568 6569 6570 #line default 6571 #line hidden 6572 WriteLiteral("\r\n </dd>\r\n"); 6573 6574 6575 #line 2754 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6576 } 6577 6578 6579 #line default 6580 #line hidden 6581 WriteLiteral("\r\n"); 6582 6583 6584 #line 2756 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6585 6586 6587 #line default 6588 #line hidden 6589 6590 #line 2756 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6591 if( !string.IsNullOrWhiteSpace(applicationReferences) && !isASR && !isIVD) 6592 { 6593 6594 6595 #line default 6596 #line hidden 6597 WriteLiteral(" <dt"); 6598 6599 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6600 6601 WriteLiteral(">\r\n"); 6602 6603 WriteLiteral(" "); 6604 6605 6606 #line 2759 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6607 Write(Translate("ProductCitations","Product Citations")); 6608 6609 6610 #line default 6611 #line hidden 6612 WriteLiteral("\r\n </dt>\r\n"); 6613 6614 WriteLiteral(" <dd"); 6615 6616 WriteLiteral(" class=\"col-xs-9\""); 6617 6618 WriteLiteral(" id=\"productSpecificReferences\""); 6619 6620 WriteLiteral(" data-seeLess=\""); 6621 6622 6623 #line 2761 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6624 Write(Translate("seeLess", "See Less")); 6625 6626 6627 #line default 6628 #line hidden 6629 WriteLiteral("\""); 6630 6631 WriteLiteral(" data-seeMore=\""); 6632 6633 6634 #line 2761 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6635 Write(Translate("seeMore", "See More")); 6636 6637 6638 #line default 6639 #line hidden 6640 WriteLiteral("\""); 6641 6642 WriteLiteral(">\r\n"); 6643 6644 6645 #line 2762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6646 6647 6648 #line default 6649 #line hidden 6650 6651 #line 2762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6652 6653 var removeAnchor = Regex.Replace(applicationReferences, @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 6654 6655 6656 #line default 6657 #line hidden 6658 WriteLiteral("\r\n"); 6659 6660 6661 #line 2765 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6662 6663 6664 #line default 6665 #line hidden 6666 6667 #line 2765 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6668 if (removeAnchor.Contains("</li>")) 6669 { 6670 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None); 6671 var count = 0; 6672 foreach (var li in positionOfCut) 6673 { 6674 count++; 6675 if (count > 12) 6676 { 6677 break; 6678 } 6679 6680 6681 #line default 6682 #line hidden 6683 6684 #line 2776 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6685 Write(li + "</li>"); 6686 6687 6688 #line default 6689 #line hidden 6690 6691 #line 2776 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6692 6693 } 6694 } 6695 else 6696 { 6697 6698 6699 #line default 6700 #line hidden 6701 6702 #line 2781 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6703 Write(removeAnchor.Substring(0, 800)); 6704 6705 6706 #line default 6707 #line hidden 6708 6709 #line 2781 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6710 6711 } 6712 6713 6714 #line default 6715 #line hidden 6716 WriteLiteral(" </dd>\r\n"); 6717 6718 6719 #line 2784 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6720 } 6721 6722 6723 #line default 6724 #line hidden 6725 WriteLiteral("\r\n"); 6726 6727 6728 #line 2786 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6729 6730 6731 #line default 6732 #line hidden 6733 6734 #line 2786 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6735 if (RRIDLists.ToList().Any() && !isASR && !isIVD) 6736 { 6737 6738 6739 #line default 6740 #line hidden 6741 WriteLiteral(" <dt"); 6742 6743 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 6744 6745 WriteLiteral(">"); 6746 6747 6748 #line 2788 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6749 Write(Translate("RRID", "RRID")); 6750 6751 6752 #line default 6753 #line hidden 6754 WriteLiteral("</dt>\r\n"); 6755 6756 WriteLiteral(" <dd"); 6757 6758 WriteLiteral(" class=\"col-xs-9\""); 6759 6760 WriteLiteral(">\r\n "); 6761 6762 WriteLiteral("\r\n"); 6763 6764 6765 #line 2791 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6766 6767 6768 #line default 6769 #line hidden 6770 6771 #line 2791 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6772 foreach (var x in RRIDLists.ToList()) 6773 { 6774 6775 6776 #line default 6777 #line hidden 6778 6779 #line 2793 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6780 Write(x.Value); 6781 6782 6783 #line default 6784 #line hidden 6785 6786 #line 2793 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6787 6788 6789 6790 #line default 6791 #line hidden 6792 WriteLiteral(" "); 6793 6794 WriteLiteral("("); 6795 6796 6797 #line 2794 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6798 Write(Translate("biolegendCatNo", "BioLegend Cat. No.")); 6799 6800 6801 #line default 6802 #line hidden 6803 WriteLiteral(" "); 6804 6805 6806 #line 2794 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6807 Write(x.Key); 6808 6809 6810 #line default 6811 #line hidden 6812 WriteLiteral(")"); 6813 6814 WriteLiteral("\r\n"); 6815 6816 WriteLiteral(" <br/>\r\n"); 6817 6818 6819 #line 2796 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6820 } 6821 6822 6823 #line default 6824 #line hidden 6825 WriteLiteral(" </dd>\r\n"); 6826 6827 6828 #line 2798 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6829 } 6830 6831 6832 #line default 6833 #line hidden 6834 WriteLiteral(" "); 6835 6836 6837 #line 2799 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6838 if(!isASR && !isIVD){ 6839 6840 6841 #line default 6842 #line hidden 6843 6844 #line 2800 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6845 Write(RenderCustomField(productFieldType, "Sensitivity", @Translate("Sensitivity", "Sensitivity"))); 6846 6847 6848 #line default 6849 #line hidden 6850 6851 #line 2800 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6852 6853 6854 6855 #line default 6856 #line hidden 6857 6858 #line 2801 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6859 Write(RenderCustomField(productFieldType, "StandardRange", @Translate("StandardRange", "Standard Range"))); 6860 6861 6862 #line default 6863 #line hidden 6864 6865 #line 2801 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6866 6867 } 6868 6869 6870 #line default 6871 #line hidden 6872 WriteLiteral(" "); 6873 6874 6875 #line 2803 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6876 if(!isASR){ 6877 6878 6879 #line default 6880 #line hidden 6881 6882 #line 2804 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6883 Write(RenderCustomField(productFieldType, "MaterialsNotIncluded", @Translate("MaterialsNotIncluded", "Materials Not Included"))); 6884 6885 6886 #line default 6887 #line hidden 6888 6889 #line 2804 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6890 6891 } 6892 6893 6894 #line default 6895 #line hidden 6896 WriteLiteral(" "); 6897 6898 6899 #line 2806 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6900 Write(RenderProductField("Disclaimer",@Translate("Disclaimer","Disclaimer"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName)); 6901 6902 6903 #line default 6904 #line hidden 6905 WriteLiteral("\r\n </dl>\r\n </div>\r\n \r\n"); 6906 6907 6908 #line 2810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6909 6910 6911 #line default 6912 #line hidden 6913 6914 #line 2810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6915 if ((!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Structure.Value")) 6916 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Distribution.Value")) 6917 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Function.Value")) 6918 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Interaction.Value")) 6919 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Ligand.Value")) 6920 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Bioactivity.Value")) 6921 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".CellSources.Value")) 6922 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Cross.Value")) 6923 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Modification.Value")) 6924 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Receptors.Value")) 6925 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Reconstitution.Value")) 6926 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value")) 6927 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Regulation.Value")) 6928 || !string.IsNullOrWhiteSpace(str_biologyArea) 6929 || !string.IsNullOrWhiteSpace(str_molecularFamily) 6930 || !string.IsNullOrWhiteSpace(str_cellType) 6931 || geneList.Any()) && !isASR && !isIVD) 6932 { 6933 6934 6935 #line default 6936 #line hidden 6937 WriteLiteral(" <div"); 6938 6939 WriteLiteral(" id=\"antigenDetails\""); 6940 6941 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\""); 6942 6943 WriteLiteral(">\r\n\r\n <h2"); 6944 6945 WriteLiteral(" class=\"col-xs-12 noPadding\""); 6946 6947 WriteLiteral(">\r\n"); 6948 6949 WriteLiteral(" "); 6950 6951 6952 #line 2831 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6953 Write(Translate("AntigenDetails", "Antigen Details")); 6954 6955 6956 #line default 6957 #line hidden 6958 WriteLiteral("\r\n </h2>\r\n\r\n <dl"); 6959 6960 WriteLiteral(" class=\"col-xs-12 noPadding\""); 6961 6962 WriteLiteral(">\r\n"); 6963 6964 6965 #line 2835 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6966 6967 6968 #line default 6969 #line hidden 6970 6971 #line 2835 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6972 if(!isASR && !isIVD){ 6973 6974 6975 #line default 6976 #line hidden 6977 6978 #line 2836 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6979 Write(RenderCustomField(productFieldType, "Structure", @Translate("Structure", "Structure"))); 6980 6981 6982 #line default 6983 #line hidden 6984 6985 #line 2836 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6986 6987 6988 6989 #line default 6990 #line hidden 6991 6992 #line 2837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 6993 Write(RenderCustomField(productFieldType, "Distribution", @Translate("Distribution", "Distribution"))); 6994 6995 6996 #line default 6997 #line hidden 6998 6999 #line 2837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7000 7001 7002 7003 #line default 7004 #line hidden 7005 7006 #line 2838 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7007 Write(RenderCustomField(productFieldType, "Function", @Translate("Function", "Function"))); 7008 7009 7010 #line default 7011 #line hidden 7012 7013 #line 2838 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7014 7015 7016 7017 #line default 7018 #line hidden 7019 7020 #line 2839 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7021 Write(RenderCustomField(productFieldType, "Interaction", @Translate("Interaction", "Interaction"))); 7022 7023 7024 #line default 7025 #line hidden 7026 7027 #line 2839 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7028 7029 7030 7031 #line default 7032 #line hidden 7033 7034 #line 2840 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7035 Write(RenderCustomField(productFieldType, "Ligand", @Translate("LigandReceptor", "Ligand/Receptor"))); 7036 7037 7038 #line default 7039 #line hidden 7040 7041 #line 2840 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7042 7043 7044 7045 #line default 7046 #line hidden 7047 7048 #line 2841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7049 Write(RenderCustomField(productFieldType, "Bioactivity", @Translate("Bioactivity", "Bioactivity"))); 7050 7051 7052 #line default 7053 #line hidden 7054 7055 #line 2841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7056 7057 7058 7059 #line default 7060 #line hidden 7061 7062 #line 2842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7063 Write(RenderCustomField(productFieldType, "CellSources", @Translate("CellSources", "Cell Sources"))); 7064 7065 7066 #line default 7067 #line hidden 7068 7069 #line 2842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7070 7071 7072 7073 #line default 7074 #line hidden 7075 7076 #line 2843 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7077 Write(RenderCustomField(productFieldType, "CellTargets", @Translate("CellTargets", "Cell Targets"))); 7078 7079 7080 #line default 7081 #line hidden 7082 7083 #line 2843 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7084 7085 7086 7087 #line default 7088 #line hidden 7089 7090 #line 2844 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7091 Write(RenderCustomField(productFieldType, "Cross", @Translate("Cross", "Cross"))); 7092 7093 7094 #line default 7095 #line hidden 7096 7097 #line 2844 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7098 7099 7100 7101 #line default 7102 #line hidden 7103 7104 #line 2845 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7105 Write(RenderCustomField(productFieldType, "Modification", @Translate("Modification", "Modification"))); 7106 7107 7108 #line default 7109 #line hidden 7110 7111 #line 2845 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7112 7113 7114 7115 #line default 7116 #line hidden 7117 7118 #line 2846 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7119 Write(RenderCustomField(productFieldType, "Receptors", @Translate("Receptors", "Receptors"))); 7120 7121 7122 #line default 7123 #line hidden 7124 7125 #line 2846 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7126 7127 7128 7129 #line default 7130 #line hidden 7131 7132 #line 2847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7133 Write(RenderCustomField(productFieldType, "Reconstitution", @Translate("Reconstitution", "Reconstitution"))); 7134 7135 7136 #line default 7137 #line hidden 7138 7139 #line 2847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7140 7141 7142 7143 #line default 7144 #line hidden 7145 7146 #line 2848 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7147 Write(RenderCellType(str_cellType)); 7148 7149 7150 #line default 7151 #line hidden 7152 7153 #line 2848 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7154 7155 7156 7157 #line default 7158 #line hidden 7159 7160 #line 2849 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7161 Write(RenderBiologyArea(str_biologyArea)); 7162 7163 7164 #line default 7165 #line hidden 7166 7167 #line 2849 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7168 7169 7170 7171 #line default 7172 #line hidden 7173 7174 #line 2850 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7175 Write(RenderMolecularFamily(str_molecularFamily)); 7176 7177 7178 #line default 7179 #line hidden 7180 7181 #line 2850 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7182 7183 } 7184 7185 7186 #line default 7187 #line hidden 7188 WriteLiteral(" "); 7189 7190 7191 #line 2852 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7192 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean")) && !isIVD) 7193 { 7194 7195 7196 #line default 7197 #line hidden 7198 WriteLiteral(" <dt"); 7199 7200 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 7201 7202 WriteLiteral(">\r\n"); 7203 7204 WriteLiteral(" "); 7205 7206 7207 #line 2855 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7208 Write(Translate("AntigenReferences", "Antigen References")); 7209 7210 7211 #line default 7212 #line hidden 7213 WriteLiteral("\r\n </dt>\r\n"); 7214 7215 WriteLiteral(" <dd"); 7216 7217 WriteLiteral(" class=\"col-xs-9 noPaddingLeft\""); 7218 7219 WriteLiteral(">\r\n"); 7220 7221 7222 #line 2858 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7223 7224 7225 #line default 7226 #line hidden 7227 7228 #line 2858 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7229 7230 string removeAnchor2 = Regex.Replace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 7231 7232 7233 #line default 7234 #line hidden 7235 WriteLiteral("\r\n"); 7236 7237 WriteLiteral(" "); 7238 7239 7240 #line 2861 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7241 Write(removeAnchor2.Substring(0, (removeAnchor2.Length <= 1050 ? removeAnchor2.Length - 1 : 1050))); 7242 7243 7244 #line default 7245 #line hidden 7246 WriteLiteral("\r\n </dd>\r\n"); 7247 7248 7249 #line 2863 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7250 } 7251 7252 7253 #line default 7254 #line hidden 7255 WriteLiteral(" "); 7256 7257 7258 #line 2864 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7259 if(!isASR && !isIVD){ 7260 7261 7262 #line default 7263 #line hidden 7264 7265 #line 2865 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7266 Write(RenderCustomField(productFieldType, "Regulation", @Translate("Regulation", "Regulation"))); 7267 7268 7269 #line default 7270 #line hidden 7271 7272 #line 2865 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7273 7274 7275 7276 if (geneList.Any() && !isIVD) 7277 { 7278 7279 7280 #line default 7281 #line hidden 7282 WriteLiteral(" <dt"); 7283 7284 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\""); 7285 7286 WriteLiteral(">\r\n"); 7287 7288 WriteLiteral(" "); 7289 7290 7291 #line 2871 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7292 Write(Translate("GeneID", "Gene ID")); 7293 7294 7295 #line default 7296 #line hidden 7297 WriteLiteral("\r\n </dt>\r\n"); 7298 7299 WriteLiteral(" <dd"); 7300 7301 WriteLiteral(" class=\"col-xs-9\""); 7302 7303 WriteLiteral(">\r\n"); 7304 7305 7306 #line 2874 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7307 7308 7309 #line default 7310 #line hidden 7311 7312 #line 2874 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7313 foreach (var gene in geneList) 7314 { 7315 7316 7317 #line default 7318 #line hidden 7319 WriteLiteral(" <span"); 7320 7321 WriteLiteral(" class=\"col-xs-12 noPadding geneInformation\""); 7322 7323 WriteLiteral(">\r\n <a"); 7324 7325 WriteLiteral(" class=\"geneAnchor iframeWebsite\""); 7326 7327 WriteLiteral(" target=\"_blank\""); 7328 7329 WriteLiteral(" data-geneID=\""); 7330 7331 7332 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7333 Write(gene); 7334 7335 7336 #line default 7337 #line hidden 7338 WriteLiteral("\""); 7339 7340 WriteAttribute("href", Tuple.Create(" href=\"", 124265), Tuple.Create("\"", 124311) 7341 , Tuple.Create(Tuple.Create("", 124272), Tuple.Create("https://www.ncbi.nlm.nih.gov/gene/", 124272), true) 7342 7343 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7344 , Tuple.Create(Tuple.Create("", 124306), Tuple.Create<System.Object, System.Int32>(gene 7345 7346 #line default 7347 #line hidden 7348 , 124306), false) 7349 ); 7350 7351 WriteLiteral(">"); 7352 7353 7354 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7355 Write(gene); 7356 7357 7358 #line default 7359 #line hidden 7360 WriteLiteral("</a> <a"); 7361 7362 WriteLiteral(" target=\"_blank\""); 7363 7364 WriteLiteral(" class=\"btn btn-default\""); 7365 7366 WriteAttribute("href", Tuple.Create(" href=\"", 124365), Tuple.Create("\"", 124415) 7367 , Tuple.Create(Tuple.Create("", 124372), Tuple.Create("/Default.aspx?ID=", 124372), true) 7368 7369 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7370 , Tuple.Create(Tuple.Create("", 124389), Tuple.Create<System.Object, System.Int32>(searchPageID 7371 7372 #line default 7373 #line hidden 7374 , 124389), false) 7375 , Tuple.Create(Tuple.Create("", 124402), Tuple.Create("&GeneID=", 124402), true) 7376 7377 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7378 , Tuple.Create(Tuple.Create("", 124410), Tuple.Create<System.Object, System.Int32>(gene 7379 7380 #line default 7381 #line hidden 7382 , 124410), false) 7383 ); 7384 7385 WriteLiteral(">"); 7386 7387 7388 #line 2877 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7389 Write(Translate("viewAllProductsGeneID", "View all products for this Gene ID")); 7390 7391 7392 #line default 7393 #line hidden 7394 WriteLiteral("</a>\r\n </span>\r\n"); 7395 7396 7397 #line 2879 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7398 } 7399 7400 7401 #line default 7402 #line hidden 7403 WriteLiteral(" </dd>\r\n"); 7404 7405 7406 #line 2881 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7407 } 7408 } 7409 7410 7411 #line default 7412 #line hidden 7413 WriteLiteral(" </dl>\r\n </div>\r\n"); 7414 7415 7416 #line 2885 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7417 } 7418 7419 7420 #line default 7421 #line hidden 7422 WriteLiteral("\r\n"); 7423 7424 7425 #line 2887 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7426 7427 7428 #line default 7429 #line hidden 7430 7431 #line 2889 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7432 7433 var str_productProtocols = GetString("Ecom:Product:Field.Protocols.Value").Replace('"', ' '); 7434 var isASRProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR"); 7435 var isIVDProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD"); 7436 7437 if (!string.IsNullOrEmpty(str_productProtocols) && !isASRProt && !isIVDProt) 7438 { 7439 var selectedProductId = GetString("Ecom:Product.ID"); 7440 var productProtocolsResults = new List<KeyValuePair<string,string>>(); 7441 var productProtocols = Cache.Current.Get("productProtocolsCache_" + selectedProductId); 7442 7443 if (productProtocols == null) 7444 { 7445 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 7446 { 7447 using (var commandProtocols = connection.CreateCommand()) 7448 { 7449 commandProtocols.CommandText = "SELECT * FROM itemtype_protocols WHERE Id in (" + str_productProtocols + ")"; 7450 using (var readerProtocols = commandProtocols.ExecuteReader()) 7451 { 7452 if (readerProtocols != null) 7453 { 7454 if (readerProtocols.FieldCount > 0) 7455 { 7456 while (readerProtocols.Read()) 7457 { 7458 var itemName = readerProtocols["Name"].ToString(); 7459 var itemLink = readerProtocols["Protocol"].ToString().Replace("Files/Files/BioLegend/", "Files/Images/"); 7460 7461 productProtocolsResults.Add(new KeyValuePair<string, string>(itemName, itemLink)); 7462 } 7463 } 7464 } 7465 } 7466 } 7467 7468 Cache.Current.Set("productProtocolsCache_" + selectedProductId, productProtocolsResults, CacheItemPolicy.DefaultStoragePolicy); 7469 7470 7471 #line default 7472 #line hidden 7473 7474 #line 2926 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7475 Write(RenderProtocols(productProtocolsResults)); 7476 7477 7478 #line default 7479 #line hidden 7480 7481 #line 2926 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7482 7483 7484 } 7485 } 7486 else 7487 { 7488 7489 7490 #line default 7491 #line hidden 7492 7493 #line 2932 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7494 Write(RenderProtocols((List<KeyValuePair<string,string>>) productProtocols)); 7495 7496 7497 #line default 7498 #line hidden 7499 7500 #line 2932 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7501 7502 } 7503 } 7504 7505 7506 #line default 7507 #line hidden 7508 WriteLiteral("\r\n\r\n"); 7509 7510 WriteLiteral("\r\n"); 7511 7512 7513 #line 2966 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7514 7515 7516 #line default 7517 #line hidden 7518 7519 #line 2966 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7520 if (!isIVD && !isASR) 7521 { 7522 7523 7524 #line default 7525 #line hidden 7526 WriteLiteral(" <div"); 7527 7528 WriteLiteral(" id=\"productRelatedGroup\""); 7529 7530 WriteLiteral(" class=\"col-xs-12 hidden col-sm-offset-3 col-sm-9\""); 7531 7532 WriteLiteral(">\r\n <h2"); 7533 7534 WriteLiteral(" class=\"col-xs-12 noPadding\""); 7535 7536 WriteLiteral(">\r\n"); 7537 7538 WriteLiteral(" "); 7539 7540 7541 #line 2970 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7542 Write(Translate("RelatedProducts", "Related Products")); 7543 7544 7545 #line default 7546 #line hidden 7547 WriteLiteral("\r\n </h2>\r\n\r\n <table"); 7548 7549 WriteLiteral(" id=\"tableRelatedProducts\""); 7550 7551 WriteLiteral(" class=\"col-xs-12 noPadding\""); 7552 7553 WriteLiteral(" data>\r\n <thead>\r\n <tr>\r\n " + 7554 " <th>"); 7555 7556 7557 #line 2976 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7558 Write(Translate("Description", "Description")); 7559 7560 7561 #line default 7562 #line hidden 7563 WriteLiteral("</th>\r\n <th>"); 7564 7565 7566 #line 2977 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7567 Write(Translate("Clone", "Clone")); 7568 7569 7570 #line default 7571 #line hidden 7572 WriteLiteral("</th>\r\n <th>"); 7573 7574 7575 #line 2978 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7576 Write(Translate("Applications", "Applications")); 7577 7578 7579 #line default 7580 #line hidden 7581 WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " + 7582 " <tbody>\r\n\r\n </tbody>\r\n </table>\r\n " + 7583 " </div>\r\n"); 7584 7585 7586 #line 2986 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7587 } 7588 7589 7590 #line default 7591 #line hidden 7592 WriteLiteral("\r\n"); 7593 7594 7595 #line 2988 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7596 7597 7598 #line default 7599 #line hidden 7600 7601 #line 2988 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7602 if (str_currentPageId == @printPage && str_productId == "9340") 7603 { 7604 7605 7606 #line default 7607 #line hidden 7608 WriteLiteral(" "); 7609 7610 WriteLiteral(@" 7611 <br/><br/>This product is provided under an intellectual property license from Life Technologies Corporation.The transfer of this product is conditioned on the buyer using the purchased product solely in research conducted by the buyer, excluding contract research or any fee for service research, and the buyer must not(1) use this product or its components for (a) diagnostic, therapeutic or prophylactic purposes; (b)testing, analysis or screening services, or information in return for compensation on a per - test basis; or(c) manufacturing or quality assurance or quality control, and / or(2) sell or transfer this product or its components for resale, whether or not resold for use in research.For information on purchasing a license to this product for purposes other than as described above, contact Life Technologies Corporation, 5781 Van Allen Way, Carlsbad, CA 92008 USA or outlicensing@lifetech.com. 7612 "); 7613 7614 WriteLiteral("\r\n"); 7615 7616 7617 #line 2993 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7618 } 7619 7620 7621 #line default 7622 #line hidden 7623 WriteLiteral("\r\n"); 7624 7625 7626 #line 2995 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7627 7628 7629 #line default 7630 #line hidden 7631 7632 #line 2995 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7633 7634 bool isASRProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR"); 7635 bool isIVDProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD"); 7636 if(!isASRProd && !isIVDProd) { 7637 7638 7639 #line default 7640 #line hidden 7641 7642 #line 3058 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7643 7644 7645 List<string> pages = new List<string>(); 7646 pages.Add("1"); 7647 7648 if(str_productFormat.Contains("BV")) { 7649 pages.Add("10"); 7650 } 7651 7652 if(str_productFormat.Contains("A594")) { 7653 pages.Add("12"); 7654 } 7655 7656 if(str_productFormat.Contains("/")) { 7657 pages.Add("13"); 7658 pages.Add("14"); 7659 } 7660 7661 if(str_productFormat.Contains("LEAF")) { 7662 pages.Add("15"); 7663 } 7664 7665 if(str_productFormat.Contains("PE_DZL594")) { 7666 pages.Add("16"); 7667 } 7668 7669 if(str_productFormat.Contains("GOINVIVO")) { 7670 pages.Add("19"); 7671 pages.Add("20"); 7672 pages.Add("15"); 7673 } 7674 7675 if(str_productFormat.Contains("MOJO")) { 7676 pages.Add("46"); 7677 pages.Add("25"); 7678 pages.Add("26"); 7679 } 7680 7681 if(str_productFormat.Contains("RECOM")) { 7682 pages.Add("29"); 7683 } 7684 7685 if (!str_productFormat.Contains("LEAF") && !str_productFormat.Equals("BIOTIN") && !str_productFormat.Equals("ELISA") && !str_productFormat.Equals("ELISA_DLX") && !str_productFormat.Equals("ELISA_STD") && !str_productFormat.Equals("HRP") && !str_productFormat.Equals("Kit") && !str_productFormat.Equals("RECOM") && !str_productFormat.Equals("LEGEND MAX") && !str_productFormat.Equals("LPLEX") && !str_productFormat.Equals("LSCREEN") && !str_productFormat.Equals("MOJO") && !str_productFormat.Equals("PURE") && !str_productFormat.Equals("SOLUTION") && !str_productFormat.Equals("GOINVIVO") && !str_productFormat.Equals("DB_HRP") && !str_productFormat.Equals("")){ 7686 pages.Add("5"); 7687 pages.Add("4"); 7688 pages.Add("14"); 7689 pages.Add("6"); 7690 pages.Add("7"); 7691 } 7692 7693 if(productType.Equals("LEGENDplex")) { 7694 pages.Add("31"); 7695 } 7696 7697 if(productType.Equals("ELISAMAXLEGENDMAX")) { 7698 pages.Add("35"); 7699 } 7700 7701 if(productType.Equals("LEGENDScreen")) { 7702 pages.Add("33"); 7703 } 7704 7705 if(productType.Equals("BuffersSolutionsChemicals")) { 7706 pages.Add("38"); 7707 } 7708 7709 if(str_productName.Contains("Zombie")) { 7710 pages.Add("39"); 7711 } 7712 7713 if(str_productName.Contains("MaxPar")) { 7714 pages.Add("42"); 7715 } 7716 7717 if(str_productName.Contains("MitoSpy")) { 7718 pages.Add("43"); 7719 pages.Add("44"); 7720 } 7721 7722 if(str_productName.Contains("Phalloidin")) { 7723 pages.Add("43"); 7724 } 7725 7726 if(str_productName.Contains("Streptavidin")) { 7727 pages.Add("45"); 7728 } 7729 7730 if(str_productFormat.Equals("BIOTIN")) { 7731 pages.Add("45"); 7732 pages.Add("46"); 7733 } 7734 7735 if(str_productName.Contains(" CD") && !str_productFormat.Contains("MOJO")) { 7736 pages.Add("49"); 7737 } 7738 7739 if(Convert.ToInt32(catalogFirstLetter) == 5) 7740 { 7741 pages.Add("51"); 7742 pages.Add("52"); 7743 } 7744 7745 if(str_productOtherNames.ToUpper().Contains("INTEGRIN")) 7746 { 7747 pages.Add("54"); 7748 } 7749 7750 if(str_productRegulatoryStatus.Equals("ASR")) 7751 { 7752 pages.Add("59"); 7753 } 7754 7755 if(str_productFormat.Equals("FLEX_T")) 7756 { 7757 pages.Add("58"); 7758 pages.Add("45"); 7759 } 7760 7761 if(str_productFormat.Equals("APC_F750")) 7762 { 7763 pages.Add("60"); 7764 } 7765 7766 if(str_productId.Equals("14598")){ 7767 pages.Add("61"); 7768 } 7769 7770 //var relatedPages = (List<Dictionary<string, string>>) Cache.Current.Get("productRelatedPagesCache_" + str_productId); 7771 /*if (relatedPages == null) 7772 {*/ 7773 var relatedPages = GetRelatedPages(pages); 7774 //Cache.Current.Set("productRelatedPagesCache_" + str_productId, relatedPages, CacheItemPolicy.DefaultStoragePolicy); 7775 /*}*/ 7776 countRelatedPages = relatedPages.Count; 7777 7778 string str_pathways = GetString("Ecom:Product:Field.Pathways.Value"); 7779 Dictionary<string, string> pathwaysDict = new Dictionary<string, string>(){ 7780 {"1","CD4 and CD8 T-Cell Lineage"}, 7781 {"2","Apoptosis Through Death Receptors"}, 7782 {"3","Gamma-Delta T cells"}, 7783 {"4","Cyclins and Cell Cycle Regulation"}, 7784 {"5","Hematopoiesis from Multipotent Stem Cell"}, 7785 {"6","Hematopoiesis from Pluripotent Stem Cell"}, 7786 {"8","TH1 Pathway (Cellular Immune Response)"}, 7787 {"9","IL-2 Pathway"}, 7788 {"10","JAK/STAT Pathway"}, 7789 {"11","p38 Signaling"}, 7790 {"12","TH17 Pathway"}, 7791 {"13","TH2 Pathway (Humoral Immune Response)"}, 7792 {"19","Agranulocyte Adhesion and Diapedesis"}, 7793 {"20","14-3-3 Induced Intracellular Signaling"}, 7794 {"21","Akt Signaling"}, 7795 {"22","ATM Pathway"}, 7796 {"23","BAFF in B-Cell Signaling"}, 7797 {"24","B-Cell Receptor Pathway"}, 7798 {"25","Caspase Cascade"}, 7799 {"26","CD28 Signaling in T-Helper Cell"}, 7800 {"27","CD40 Signaling"}, 7801 {"28","Cellular Apoptosis Pathway"}, 7802 {"29","Chemokine Signaling"}, 7803 {"30","CTLA4 Signaling"}, 7804 {"31","Cytokine Network"}, 7805 {"32","EGF Pathway"}, 7806 {"33","Embryonic Stem Cell Pluripotency in Mouse"}, 7807 {"34","ErbB Family Pathway"}, 7808 {"35","ERK Signaling"}, 7809 {"36","FAK1 Pathway"}, 7810 {"37","Fas Signaling"}, 7811 {"38","GPCR Pathway"}, 7812 {"39","GSK3 Signaling"}, 7813 {"40","Human Embryonic Stem Cell Pluripotency"}, 7814 {"41","ICos-ICosL Pathway in T-Helper Cell"}, 7815 {"42","IL-1 Pathway"}, 7816 {"43","IL-4 Pathway"}, 7817 {"44","IL-6 Pathway"}, 7818 {"45","IL-10 Pathway"}, 7819 {"46","ILK Signaling"}, 7820 {"47","Integrin Pathway"}, 7821 {"48","Interferon Pathway"}, 7822 {"49","ITK and TCR Signaling"}, 7823 {"50","JNK Pathway"}, 7824 {"51","Lymphotoxin-beta Receptor Pathway"}, 7825 {"52","MAPK Signaling"}, 7826 {"53","Mitotic Roles of Polo Like Kinase"}, 7827 {"54","mTOR Pathway"}, 7828 {"55","Nanog in Mammalian ESC Pluripotency"}, 7829 {"56","NFAT Signaling and Lymphocyte Interactions"}, 7830 {"57","NF-&kappa;B (p50/p65) Pathway"}, 7831 {"58","Oct4 in Mammalian ESC Pluripotency"}, 7832 {"59","PDGF Pathway"}, 7833 {"60","PKC-&theta; Pathway"}, 7834 {"61","PPAR Pathway"}, 7835 {"62","PTEN Pathway"}, 7836 {"63","Ras Pathway"}, 7837 {"64","SOCS Pathway"}, 7838 {"65","Sumo Pathway"}, 7839 {"66","T-Cell Receptor Signaling"}, 7840 {"67","TGF-&beta; Pathway"}, 7841 {"68","TNF Superfamily Pathway"}, 7842 {"69","Toll-Like Receptors"}, 7843 {"70","TRAIL Pathway"}, 7844 {"71","TREM1 Pathway"}, 7845 {"72","VEGF Pathway"}, 7846 {"73","WNT Signaling"}, 7847 {"74","p53 Signaling"}, 7848 {"75","T Follicular Helper Cell Pathway"}, 7849 {"76","Cancer Elimination"}, 7850 {"78","Cancer Immunology - 3Es"}, 7851 {"79","Cancer Recognition"}, 7852 {"82","Cancer Recognition & Elimination"}, 7853 {"83","MDSC-induced Immune Suppression"}, 7854 {"84","Shedding MICA/B Antigens"}, 7855 {"85","Stat3-mediated Tumor Escape"}, 7856 {"86","Tregs in Tumor Escape"}, 7857 {"88","Immunologic Networks 2011"}, 7858 {"89","B cell Development and Activation"}, 7859 {"90","Myeloid-Derived Suppressor Cells"}, 7860 {"91","Regulatory T Cells"}, 7861 {"92","Dendritic Cells"}, 7862 {"93","Stem Cells and Development"}, 7863 {"94","Cancer Immunoediting"}, 7864 {"95","Chemokine Receptor Biology"}, 7865 {"97","Th17 Biology"}, 7866 {"98","Innate Immunity"}, 7867 {"99","Mechanisims of Cell Death"}, 7868 {"100","Dendritic Cell, Monocyte, and Macrophage Biology"}, 7869 {"101","Neurodegeneration"}, 7870 {"102","Innate Immune Signaling"}, 7871 {"103","Neuroinflammation"}, 7872 {"104","Autophagy"} 7873 }; 7874 7875 string[] pathwaysList = str_pathways.Split(','); 7876 //var pathwaysData = GetPathways(productSpecificity); 7877 7878 7879 if(!string.IsNullOrWhiteSpace(str_pathways) || countRelatedPages > 0) 7880 { 7881 7882 7883 #line default 7884 #line hidden 7885 WriteLiteral(" <div"); 7886 7887 WriteLiteral(" id=\"productRelatedPages\""); 7888 7889 WriteLiteral(" class=\"col-xs-12 col-sm-9 noPadding pull-right\""); 7890 7891 WriteLiteral(">\r\n <h2"); 7892 7893 WriteLiteral(" class=\"col-xs-12 noPadding\""); 7894 7895 WriteLiteral(">\r\n <a"); 7896 7897 WriteAttribute("href", Tuple.Create(" href=\"", 138950), Tuple.Create("\"", 139015) 7898 7899 #line 3298 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7900 , Tuple.Create(Tuple.Create("", 138957), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString() 7901 7902 #line default 7903 #line hidden 7904 , 138957), false) 7905 , Tuple.Create(Tuple.Create("", 138995), Tuple.Create("#productRelatedPages", 138995), true) 7906 ); 7907 7908 WriteLiteral(" name=\"4\""); 7909 7910 WriteLiteral(">"); 7911 7912 7913 #line 3298 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7914 Write(Translate("RelatedPagesPathways","Related Pages & Pathways")); 7915 7916 7917 #line default 7918 #line hidden 7919 WriteLiteral("</a>\r\n </h2>\r\n\r\n"); 7920 7921 WriteLiteral(" "); 7922 7923 7924 #line 3301 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7925 Write(SnippetStart("navigationAnchors")); 7926 7927 7928 #line default 7929 #line hidden 7930 WriteLiteral("\r\n <li>\r\n <a"); 7931 7932 WriteLiteral(" class=\"anchor_4\""); 7933 7934 WriteAttribute("href", Tuple.Create(" href=\"", 139185), Tuple.Create("\"", 139250) 7935 7936 #line 3303 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7937 , Tuple.Create(Tuple.Create("", 139192), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString() 7938 7939 #line default 7940 #line hidden 7941 , 139192), false) 7942 , Tuple.Create(Tuple.Create("", 139230), Tuple.Create("#productRelatedPages", 139230), true) 7943 ); 7944 7945 WriteLiteral(">"); 7946 7947 7948 #line 3303 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7949 Write(Translate("RelatedPagesPathways","Related Pages & Pathways")); 7950 7951 7952 #line default 7953 #line hidden 7954 WriteLiteral("</a>\r\n </li>\r\n"); 7955 7956 WriteLiteral(" "); 7957 7958 7959 #line 3305 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7960 Write(SnippetEnd("navigationAnchors")); 7961 7962 7963 #line default 7964 #line hidden 7965 WriteLiteral("\r\n\r\n"); 7966 7967 7968 #line 3307 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7969 7970 7971 #line default 7972 #line hidden 7973 7974 #line 3307 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7975 if(!string.IsNullOrWhiteSpace(str_pathways)) 7976 { 7977 7978 7979 #line default 7980 #line hidden 7981 WriteLiteral(" <div"); 7982 7983 WriteLiteral(" class=\"col-xs-6 noPaddingLeft\""); 7984 7985 WriteLiteral(">\r\n <h3>"); 7986 7987 7988 #line 3310 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 7989 Write(Translate("Pathways","Pathways")); 7990 7991 7992 #line default 7993 #line hidden 7994 WriteLiteral("</h3>\r\n <ul"); 7995 7996 WriteLiteral(" class=\"relatedPages relatedPathways col-xs-12 noPadding\""); 7997 7998 WriteLiteral(">\r\n"); 7999 8000 8001 #line 3312 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8002 8003 8004 #line default 8005 #line hidden 8006 8007 #line 3312 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8008 foreach (string thisPathway in pathwaysList) 8009 { 8010 string title = pathwaysDict[thisPathway]; 8011 string pathwayID = thisPathway; 8012 8013 8014 8015 #line default 8016 #line hidden 8017 WriteLiteral(" <li>\r\n <a"); 8018 8019 WriteAttribute("href", Tuple.Create(" href=\"", 139802), Tuple.Create("\"", 139863) 8020 , Tuple.Create(Tuple.Create("", 139809), Tuple.Create("http://www.biolegend.com/pop_pathway.php?id=", 139809), true) 8021 8022 #line 3318 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8023 , Tuple.Create(Tuple.Create("", 139853), Tuple.Create<System.Object, System.Int32>(pathwayID 8024 8025 #line default 8026 #line hidden 8027 , 139853), false) 8028 ); 8029 8030 WriteLiteral(" target=\"_blank\""); 8031 8032 WriteLiteral(">\r\n"); 8033 8034 WriteLiteral(" "); 8035 8036 8037 #line 3319 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8038 Write(title); 8039 8040 8041 #line default 8042 #line hidden 8043 WriteLiteral("\r\n </a>\r\n </li>\r\n"); 8044 8045 8046 #line 3322 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8047 } 8048 8049 8050 #line default 8051 #line hidden 8052 WriteLiteral(" </ul>\r\n </div>\r\n"); 8053 8054 8055 #line 3325 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8056 } 8057 8058 8059 #line default 8060 #line hidden 8061 WriteLiteral("\r\n"); 8062 8063 8064 #line 3327 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8065 8066 8067 #line default 8068 #line hidden 8069 8070 #line 3327 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8071 if(countRelatedPages > 0) 8072 { 8073 8074 8075 #line default 8076 #line hidden 8077 WriteLiteral(" <div"); 8078 8079 WriteAttribute("class", Tuple.Create(" class=\'", 140052), Tuple.Create("\'", 140146) 8080 , Tuple.Create(Tuple.Create("", 140060), Tuple.Create("col-xs-6", 140060), true) 8081 8082 #line 3329 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8083 , Tuple.Create(Tuple.Create(" ", 140068), Tuple.Create<System.Object, System.Int32>(!string.IsNullOrWhiteSpace(str_pathways) ?"noPaddingRight":"noPaddingLeft" 8084 8085 #line default 8086 #line hidden 8087 , 140069), false) 8088 ); 8089 8090 WriteLiteral(">\r\n <h3>"); 8091 8092 8093 #line 3330 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8094 Write(Translate("Pages","Pages")); 8095 8096 8097 #line default 8098 #line hidden 8099 WriteLiteral("</h3>\r\n <ul"); 8100 8101 WriteLiteral(" class=\"relatedPages col-xs-12 noPadding\""); 8102 8103 WriteLiteral(">\r\n"); 8104 8105 8106 #line 3332 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8107 8108 8109 #line default 8110 #line hidden 8111 8112 #line 3332 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8113 foreach (var row in relatedPages) 8114 { 8115 string link = (!String.IsNullOrWhiteSpace(row["Page"]) ? row["Page"] : row["LinkExt"]); 8116 string target = (link.Contains("http:") ? "target='_blank'" : ""); 8117 string iconSrc = row["Icon_Source"].Replace(".png", "_PD.png").Replace(".jpg", "_PD.jpg"); 8118 string itemName = row["Name"]; 8119 8120 8121 8122 #line default 8123 #line hidden 8124 WriteLiteral(" <li>\r\n <a"); 8125 8126 WriteAttribute("href", Tuple.Create(" href=\"", 140675), Tuple.Create("\"", 140706) 8127 8128 #line 3340 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8129 , Tuple.Create(Tuple.Create("", 140682), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(link) 8130 8131 #line default 8132 #line hidden 8133 , 140682), false) 8134 ); 8135 8136 WriteLiteral(" "); 8137 8138 8139 #line 3340 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8140 Write(target); 8141 8142 8143 #line default 8144 #line hidden 8145 WriteLiteral(">\r\n"); 8146 8147 8148 #line 3341 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8149 8150 8151 #line default 8152 #line hidden 8153 8154 #line 3341 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8155 if(!String.IsNullOrWhiteSpace(iconSrc)) 8156 { 8157 8158 8159 #line default 8160 #line hidden 8161 WriteLiteral(" <figure>\r\n <img"); 8162 8163 WriteLiteral(" width=\"20\""); 8164 8165 WriteLiteral(" height=\"20\""); 8166 8167 WriteAttribute("src", Tuple.Create(" src=\"", 140870), Tuple.Create("\"", 140884) 8168 8169 #line 3344 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8170 , Tuple.Create(Tuple.Create("", 140876), Tuple.Create<System.Object, System.Int32>(iconSrc 8171 8172 #line default 8173 #line hidden 8174 , 140876), false) 8175 ); 8176 8177 WriteAttribute("title", Tuple.Create(" title=\"", 140885), Tuple.Create("\"", 140902) 8178 8179 #line 3344 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8180 , Tuple.Create(Tuple.Create("", 140893), Tuple.Create<System.Object, System.Int32>(itemName 8181 8182 #line default 8183 #line hidden 8184 , 140893), false) 8185 ); 8186 8187 WriteAttribute("alt", Tuple.Create(" alt=\"", 140903), Tuple.Create("\"", 140918) 8188 8189 #line 3344 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8190 , Tuple.Create(Tuple.Create("", 140909), Tuple.Create<System.Object, System.Int32>(itemName 8191 8192 #line default 8193 #line hidden 8194 , 140909), false) 8195 ); 8196 8197 WriteLiteral(" />\r\n </figure>\r\n"); 8198 8199 8200 #line 3346 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8201 } 8202 8203 8204 #line default 8205 #line hidden 8206 WriteLiteral(" "); 8207 8208 8209 #line 3347 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8210 Write(itemName); 8211 8212 8213 #line default 8214 #line hidden 8215 WriteLiteral("\r\n </a>\r\n </li>\r\n"); 8216 8217 8218 #line 3350 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8219 } 8220 8221 8222 #line default 8223 #line hidden 8224 WriteLiteral(" </ul>\r\n </div>\r\n"); 8225 8226 8227 #line 3353 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8228 } 8229 8230 8231 #line default 8232 #line hidden 8233 WriteLiteral(" </div>\r\n"); 8234 8235 8236 #line 3355 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8237 } 8238 } 8239 8240 8241 8242 #line default 8243 #line hidden 8244 8245 #line 3392 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8246 8247 8248 8249 #line default 8250 #line hidden 8251 WriteLiteral("\r\n\r\n"); 8252 8253 8254 #line 3395 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8255 8256 8257 #line default 8258 #line hidden 8259 8260 #line 3395 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8261 if (otherFormatsProducts.Any() && !isASR && !isIVD) 8262 { 8263 var count = 0; 8264 8265 8266 8267 #line default 8268 #line hidden 8269 WriteLiteral(" <div"); 8270 8271 WriteLiteral(" id=\"productOtherFormats\""); 8272 8273 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\""); 8274 8275 WriteLiteral(" data-thDescription=\'"); 8276 8277 8278 #line 3399 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8279 Write(Translate("Description", "Description")); 8280 8281 8282 #line default 8283 #line hidden 8284 WriteLiteral("\'"); 8285 8286 WriteLiteral(" data-thClone=\'"); 8287 8288 8289 #line 3399 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8290 Write(Translate("Clone", "Clone")); 8291 8292 8293 #line default 8294 #line hidden 8295 WriteLiteral("\'"); 8296 8297 WriteLiteral(" data-thAppllications=\'"); 8298 8299 8300 #line 3399 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8301 Write(Translate("Applications", "Applications")); 8302 8303 8304 #line default 8305 #line hidden 8306 WriteLiteral("\'"); 8307 8308 WriteLiteral(">\r\n <h2"); 8309 8310 WriteLiteral(" class=\"col-xs-12 noPadding\""); 8311 8312 WriteLiteral(">\r\n"); 8313 8314 WriteLiteral(" "); 8315 8316 8317 #line 3401 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8318 Write(Translate("OtherFormats", "Other Formats")); 8319 8320 8321 #line default 8322 #line hidden 8323 WriteLiteral("\r\n </h2>\r\n\r\n"); 8324 8325 8326 #line 3404 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8327 8328 8329 #line default 8330 #line hidden 8331 8332 #line 3404 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8333 foreach (var prod in otherFormatsProducts.GroupBy(prod => prod.Name).Select(prod => prod.First())) 8334 { 8335 8336 8337 #line default 8338 #line hidden 8339 8340 #line 3406 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8341 Write(count != 0 ? ", " : ""); 8342 8343 8344 #line default 8345 #line hidden 8346 8347 #line 3406 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8348 8349 8350 #line default 8351 #line hidden 8352 8353 #line 3406 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8354 Write(prod.Name); 8355 8356 8357 #line default 8358 #line hidden 8359 8360 #line 3406 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8361 8362 count++; 8363 } 8364 8365 8366 #line default 8367 #line hidden 8368 WriteLiteral("\r\n </div>\r\n"); 8369 8370 8371 #line 3411 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8372 } 8373 8374 8375 #line default 8376 #line hidden 8377 WriteLiteral("\r\n <dl"); 8378 8379 WriteAttribute("class", Tuple.Create(" class=\'", 143189), Tuple.Create("\'", 143286) 8380 8381 #line 3413 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8382 , Tuple.Create(Tuple.Create("", 143197), Tuple.Create<System.Object, System.Int32>(str_productId.Equals("10801") ? "col-xs-12" : "col-xs-12" 8383 8384 #line default 8385 #line hidden 8386 , 143197), false) 8387 , Tuple.Create(Tuple.Create(" ", 143257), Tuple.Create("noPadding", 143258), true) 8388 , Tuple.Create(Tuple.Create(" ", 143267), Tuple.Create("pdfImagesContainer", 143268), true) 8389 ); 8390 8391 WriteLiteral(">\r\n"); 8392 8393 8394 #line 3414 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8395 8396 8397 #line default 8398 #line hidden 8399 8400 #line 3414 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8401 if (lst_images.Any()) 8402 { 8403 8404 8405 #line default 8406 #line hidden 8407 WriteLiteral(" <h2"); 8408 8409 WriteLiteral(" class=\"col-xs-12 noPadding\""); 8410 8411 WriteLiteral(">\r\n"); 8412 8413 WriteLiteral(" "); 8414 8415 8416 #line 3417 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8417 Write(Translate("ProductData", "Product Data")); 8418 8419 8420 #line default 8421 #line hidden 8422 WriteLiteral("\r\n </h2>\r\n"); 8423 8424 WriteLiteral(" <div"); 8425 8426 WriteLiteral(" class=\"col-xs-12\""); 8427 8428 WriteLiteral(">\r\n\r\n"); 8429 8430 8431 #line 3421 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8432 8433 8434 #line default 8435 #line hidden 8436 8437 #line 3421 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8438 if (str_currentPageId != printPage) 8439 { 8440 foreach (var image1 in lst_images.OrderBy(x => x.Item2).ToList().Take(1)) 8441 { 8442 string str_getimageImg = GetImage(image1.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90); 8443 8444 8445 8446 #line default 8447 #line hidden 8448 WriteLiteral(" <div"); 8449 8450 WriteLiteral(" class=\"figure\""); 8451 8452 WriteLiteral(">\r\n <dt"); 8453 8454 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\""); 8455 8456 WriteLiteral(">\r\n <img"); 8457 8458 WriteLiteral(" class=\"maxWidth\""); 8459 8460 WriteAttribute("src", Tuple.Create(" src=\"", 144038), Tuple.Create("\"", 144060) 8461 8462 #line 3429 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8463 , Tuple.Create(Tuple.Create("", 144044), Tuple.Create<System.Object, System.Int32>(str_getimageImg 8464 8465 #line default 8466 #line hidden 8467 , 144044), false) 8468 ); 8469 8470 WriteAttribute("alt", Tuple.Create(" alt=\"", 144061), Tuple.Create("\"", 144091) 8471 8472 #line 3429 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8473 , Tuple.Create(Tuple.Create("", 144067), Tuple.Create<System.Object, System.Int32>(image1.Item2.ToString() 8474 8475 #line default 8476 #line hidden 8477 , 144067), false) 8478 ); 8479 8480 WriteAttribute("title", Tuple.Create(" title=\"", 144092), Tuple.Create("\"", 144124) 8481 8482 #line 3429 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8483 , Tuple.Create(Tuple.Create("", 144100), Tuple.Create<System.Object, System.Int32>(image1.Item2.ToString() 8484 8485 #line default 8486 #line hidden 8487 , 144100), false) 8488 ); 8489 8490 WriteLiteral("/>\r\n </dt>\r\n <dd"); 8491 8492 WriteLiteral(" class=\"col-xs-4 noPaddingRight\""); 8493 8494 WriteLiteral(">\r\n"); 8495 8496 WriteLiteral(" "); 8497 8498 8499 #line 3432 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8500 Write(image1.Item3.ToString()); 8501 8502 8503 #line default 8504 #line hidden 8505 WriteLiteral("\r\n </dd>\r\n </div>\r\n"); 8506 8507 8508 #line 3435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8509 } 8510 8511 8512 8513 #line default 8514 #line hidden 8515 WriteLiteral(" <div"); 8516 8517 WriteLiteral(" id=\"imgThumbs\""); 8518 8519 WriteLiteral(" class=\"col-xs-3 noPadding pull-right\""); 8520 8521 WriteLiteral(">\r\n <ul>\r\n"); 8522 8523 8524 #line 3439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8525 8526 8527 #line default 8528 #line hidden 8529 8530 #line 3439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8531 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList()) 8532 { 8533 if (!String.IsNullOrWhiteSpace(image.Item1.ToString())) 8534 { 8535 var str_getimageImg = GetImage(image.Item1.ToString(), 0, 105, 0, 105, 0, 105, "jpg", 90, 5); 8536 var str_getimageDataImg = GetImage(image.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90); 8537 var liClass = lst_images.IndexOf(image) == 0 ? "active" : ""; 8538 8539 8540 8541 #line default 8542 #line hidden 8543 WriteLiteral(" <li"); 8544 8545 WriteAttribute("class", Tuple.Create(" class=\"", 145205), Tuple.Create("\"", 145221) 8546 8547 #line 3447 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8548 , Tuple.Create(Tuple.Create("", 145213), Tuple.Create<System.Object, System.Int32>(liClass 8549 8550 #line default 8551 #line hidden 8552 , 145213), false) 8553 ); 8554 8555 WriteLiteral(">\r\n <div"); 8556 8557 WriteLiteral(" class=\"figure\""); 8558 8559 WriteLiteral(">\r\n <dt"); 8560 8561 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\""); 8562 8563 WriteLiteral(">\r\n <img"); 8564 8565 WriteLiteral(" class=\"maxWidth\""); 8566 8567 WriteLiteral(" data-image=\""); 8568 8569 8570 #line 3450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8571 Write(str_getimageDataImg); 8572 8573 8574 #line default 8575 #line hidden 8576 WriteLiteral("\""); 8577 8578 WriteAttribute("src", Tuple.Create(" src=\"", 145494), Tuple.Create("\"", 145516) 8579 8580 #line 3450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8581 , Tuple.Create(Tuple.Create("", 145500), Tuple.Create<System.Object, System.Int32>(str_getimageImg 8582 8583 #line default 8584 #line hidden 8585 , 145500), false) 8586 ); 8587 8588 WriteAttribute("title", Tuple.Create(" title=\"", 145517), Tuple.Create("\"", 145548) 8589 8590 #line 3450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8591 , Tuple.Create(Tuple.Create("", 145525), Tuple.Create<System.Object, System.Int32>(image.Item2.ToString() 8592 8593 #line default 8594 #line hidden 8595 , 145525), false) 8596 ); 8597 8598 WriteAttribute("alt", Tuple.Create(" alt=\"", 145549), Tuple.Create("\"", 145578) 8599 8600 #line 3450 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8601 , Tuple.Create(Tuple.Create("", 145555), Tuple.Create<System.Object, System.Int32>(image.Item2.ToString() 8602 8603 #line default 8604 #line hidden 8605 , 145555), false) 8606 ); 8607 8608 WriteLiteral("/>\r\n </dt>\r\n"); 8609 8610 8611 #line 3452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8612 8613 8614 #line default 8615 #line hidden 8616 8617 #line 3452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8618 if (!string.IsNullOrWhiteSpace(image.Item3.ToString())) 8619 { 8620 8621 8622 #line default 8623 #line hidden 8624 WriteLiteral(" <dd"); 8625 8626 WriteLiteral(" class=\"col-xs-4 noPaddingRight\""); 8627 8628 WriteLiteral(">\r\n"); 8629 8630 WriteLiteral(" "); 8631 8632 8633 #line 3455 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8634 Write(image.Item3.ToString()); 8635 8636 8637 #line default 8638 #line hidden 8639 WriteLiteral("\r\n </dd>\r\n"); 8640 8641 8642 #line 3457 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8643 } 8644 8645 8646 #line default 8647 #line hidden 8648 WriteLiteral(" </div>\r\n " + 8649 " </li>\r\n"); 8650 8651 8652 #line 3460 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8653 } 8654 } 8655 8656 8657 #line default 8658 #line hidden 8659 WriteLiteral(" </ul>\r\n </div>\r\n"); 8660 8661 8662 #line 3464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8663 } 8664 8665 8666 #line default 8667 #line hidden 8668 WriteLiteral(" </div>\r\n"); 8669 8670 8671 #line 3466 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8672 8673 if (str_currentPageId == printPage) 8674 { 8675 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList()) 8676 { 8677 if (!String.IsNullOrWhiteSpace(image.Item1.ToString())) 8678 { 8679 string str_getimageDataImg = GetImage(image.Item1.ToString(), 500, 300, 0, 0, 0, 0, "jpg", 90); 8680 8681 8682 #line default 8683 #line hidden 8684 WriteLiteral(" <div"); 8685 8686 WriteLiteral(" class=\"col-xs-12 figure\""); 8687 8688 WriteLiteral(">\r\n <dt"); 8689 8690 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\""); 8691 8692 WriteLiteral(">\r\n <img"); 8693 8694 WriteLiteral(" class=\"maxWidth\""); 8695 8696 WriteAttribute("src", Tuple.Create(" src=\"", 146976), Tuple.Create("\"", 147002) 8697 8698 #line 3476 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8699 , Tuple.Create(Tuple.Create("", 146982), Tuple.Create<System.Object, System.Int32>(str_getimageDataImg 8700 8701 #line default 8702 #line hidden 8703 , 146982), false) 8704 ); 8705 8706 WriteAttribute("title", Tuple.Create(" title=\"", 147003), Tuple.Create("\"", 147023) 8707 8708 #line 3476 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8709 , Tuple.Create(Tuple.Create("", 147011), Tuple.Create<System.Object, System.Int32>(image.Item2 8710 8711 #line default 8712 #line hidden 8713 , 147011), false) 8714 ); 8715 8716 WriteAttribute("alt", Tuple.Create(" alt=\"", 147024), Tuple.Create("\"", 147042) 8717 8718 #line 3476 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8719 , Tuple.Create(Tuple.Create("", 147030), Tuple.Create<System.Object, System.Int32>(image.Item2 8720 8721 #line default 8722 #line hidden 8723 , 147030), false) 8724 ); 8725 8726 WriteLiteral("/>\r\n </dt>\r\n"); 8727 8728 8729 #line 3478 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8730 8731 8732 #line default 8733 #line hidden 8734 8735 #line 3478 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8736 if (!string.IsNullOrWhiteSpace(image.Item3.ToString())) 8737 { 8738 8739 8740 #line default 8741 #line hidden 8742 WriteLiteral(" <dd"); 8743 8744 WriteLiteral(" class=\"col-xs-4 noPaddingRight\""); 8745 8746 WriteLiteral(">\r\n"); 8747 8748 WriteLiteral(" "); 8749 8750 8751 #line 3481 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8752 Write(image.Item3); 8753 8754 8755 #line default 8756 #line hidden 8757 WriteLiteral("\r\n </dd>\r\n"); 8758 8759 8760 #line 3483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8761 } 8762 8763 8764 #line default 8765 #line hidden 8766 WriteLiteral(" </div>\r\n"); 8767 8768 8769 #line 3485 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8770 } 8771 } 8772 } 8773 } 8774 8775 8776 #line default 8777 #line hidden 8778 WriteLiteral(" \r\n"); 8779 8780 8781 #line 3490 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8782 8783 8784 #line default 8785 #line hidden 8786 8787 #line 3490 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8788 if(str_currentPageId == printPage && (isIVD || isASR)) 8789 { 8790 8791 8792 #line default 8793 #line hidden 8794 WriteLiteral(" <figure>\r\n <img"); 8795 8796 WriteLiteral(" class=\"glossary\""); 8797 8798 WriteAttribute("src", Tuple.Create(" src=\"", 147702), Tuple.Create("\"", 147787) 8799 8800 #line 3493 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8801 , Tuple.Create(Tuple.Create("", 147708), Tuple.Create<System.Object, System.Int32>(cdnStaticDomain 8802 8803 #line default 8804 #line hidden 8805 , 147708), false) 8806 , Tuple.Create(Tuple.Create("", 147724), Tuple.Create("/Files/Images/media_assets/products/Glossary-table-draft-V2.png", 147724), true) 8807 ); 8808 8809 WriteLiteral(" />\r\n </figure>\r\n"); 8810 8811 8812 #line 3495 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8813 } 8814 8815 8816 #line default 8817 #line hidden 8818 WriteLiteral(" </dl>\r\n </div>\r\n </div>\r\n"); 8819 8820 8821 #line 3499 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8822 8823 8824 8825 #line default 8826 #line hidden 8827 WriteLiteral(" <dl"); 8828 8829 WriteLiteral(" class=\"footerStatement col-xs-12\""); 8830 8831 WriteLiteral(">\r\n"); 8832 8833 WriteLiteral(" "); 8834 8835 8836 #line 3501 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8837 Write(CalculateFooterDisclaimer(str_footerDisclaimer,str_productRegulatoryStatus,str_productFormat)); 8838 8839 8840 #line default 8841 #line hidden 8842 WriteLiteral(";\r\n\r\n\r\n"); 8843 8844 WriteLiteral(" "); 8845 8846 8847 #line 3504 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8848 Write(itemArea["ProductFooterWarning"].ToString()); 8849 8850 8851 #line default 8852 #line hidden 8853 WriteLiteral("\r\n </dl>\r\n"); 8854 8855 8856 #line 3506 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8857 8858 8859 8860 #line default 8861 #line hidden 8862 8863 #line 3507 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8864 Write(SnippetStart("productName")); 8865 8866 8867 #line default 8868 #line hidden 8869 8870 #line 3507 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8871 8872 8873 8874 #line default 8875 #line hidden 8876 WriteLiteral(" "); 8877 8878 WriteLiteral(" "); 8879 8880 8881 #line 3508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8882 Write(str_productName); 8883 8884 8885 #line default 8886 #line hidden 8887 WriteLiteral(" "); 8888 8889 8890 #line 3508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8891 Write(previousCompany.Any() && !isIVD && !isASR && !previouslyConcatName.Equals("") ? String.Format("({0})", previouslyConcatName) : ""); 8892 8893 8894 #line default 8895 #line hidden 8896 WriteLiteral(" "); 8897 8898 8899 #line 3508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8900 Write(SnippetEnd("productName")); 8901 8902 8903 #line default 8904 #line hidden 8905 WriteLiteral("\r\n"); 8906 8907 8908 #line 3509 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8909 } 8910 } 8911 catch (Exception ex) 8912 { 8913 8914 8915 #line default 8916 #line hidden 8917 WriteLiteral(" <div"); 8918 8919 WriteLiteral(" id=\"errorMessagePDP\""); 8920 8921 WriteLiteral(" data-exception=\""); 8922 8923 8924 #line 3513 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8925 Write(System.Web.HttpUtility.HtmlEncode(ex)); 8926 8927 8928 #line default 8929 #line hidden 8930 WriteLiteral("\""); 8931 8932 WriteLiteral(">\r\n"); 8933 8934 WriteLiteral(" "); 8935 8936 8937 #line 3514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8938 Write(Translate("errorRenderingTemplate", "There was an error rendering the product detail page. Please contact technical support.")); 8939 8940 8941 #line default 8942 #line hidden 8943 WriteLiteral("\r\n </div>\r\n"); 8944 8945 8946 #line 3516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml" 8947 } 8948 8949 8950 #line default 8951 #line hidden 8952 WriteLiteral("\r\n"); 8953 8954 } 8955 } 8956 } 8957

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using System 3 @using Dynamicweb.Rendering; 4 @using System.Collections.Specialized; 5 @using System.Text; 6 @using System.IO; 7 @using System.Web; 8 @using System.Text.RegularExpressions; 9 @using System.Data; 10 @using BioLegend.Ecommerce.LiveIntegration; 11 @using System.Globalization; 12 @using System.Linq; 13 @using System.Collections; 14 @using System.Collections.Generic 15 @using System.Runtime.Caching; 16 @using System.Text.RegularExpressions; 17 @using System.Collections.Specialized; 18 @using System.Linq 19 @functions { 20 21 public string LocalizeLinksHTML (string HtmlContent){ 22 int areaID = Pageview.Area.ID; 23 var area = Dynamicweb.Services.Areas.GetArea(areaID); 24 string areaCulture = area.Culture.ToLower(); 25 if(!string.IsNullOrEmpty(HtmlContent)){ 26 if(HtmlContent.IndexOf("dwcountry") > -1){ 27 return HtmlContent.Replace("dwcountry",areaCulture); 28 } else{ 29 return HtmlContent; 30 } 31 32 } else { 33 return HtmlContent; 34 } 35 36 } 37 38 public string LocalizeLinks (string HtmlContent){ 39 int areaID = Pageview.Area.ID; 40 var area = Dynamicweb.Services.Areas.GetArea(areaID); 41 string areaCulture = area.Culture.ToLower(); 42 if(!string.IsNullOrEmpty(HtmlContent)){ 43 if(HtmlContent.IndexOf("dwcountry") > -1){ 44 return HtmlContent.Replace("dwcountry",areaCulture); 45 } else if (HtmlContent.IndexOf("?ID=") > -1) { 46 //do something 47 string baseHref = String.Format("https://{0}",GetGlobalValue("Global:Request.Host")); 48 HtmlContent = HtmlContent.Contains("http") ? HtmlContent : baseHref + "/" + HtmlContent; 49 var uri = new Uri(HtmlContent,UriKind.RelativeOrAbsolute); 50 var parsedQuery = HttpUtility.ParseQueryString(uri.Query); 51 var pageID = parsedQuery.Get("ID"); 52 53 string pageVersionID = pageID; 54 string localizedLink = HtmlContent; 55 if (!string.IsNullOrEmpty(pageID)){ 56 var pageService = new Dynamicweb.Content.PageService(); 57 var linkPage = pageService.GetPagesByAreaID(areaID).FirstOrDefault(x => x.MasterPageId == int.Parse(pageID)); 58 pageVersionID = linkPage != null ? linkPage.ID.ToString() : pageID ; 59 60 localizedLink = ModifyQueryStringValue(HtmlContent,"ID",pageVersionID); 61 } 62 //return string.Join(",", parsedQuery.AllKeys); 63 //return string.Join(HtmlContent,"-",pageVersionID); 64 return localizedLink; 65 } else { 66 return HtmlContent; 67 } 68 }else { 69 return HtmlContent; 70 } 71 72 } 73 74 private string ModifyQueryStringValue(string p_query, string p_Name, string p_NewValue) 75 { 76 Uri uri = new Uri(p_query,UriKind.RelativeOrAbsolute); 77 //if(p_query.Contains("http")) 78 //{ 79 //uri = new Uri(p_query); 80 //} else { 81 //uri = new Uri(p_query, UriKind.Relative); 82 //} 83 //uri = new Uri(p_query); 84 85 86 87 var nameValues = HttpUtility.ParseQueryString(uri.Query); 88 nameValues.Set(p_Name, p_NewValue); 89 string url = uri.AbsolutePath + "?" + nameValues.ToString(); 90 return url; 91 } 92 } 93 @using System; 94 @using System.Collections.Generic; 95 @using System.Web.Script.Serialization; 96 @{ 97 @* Get secondary user ID *@ 98 bool bol_userLogged = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 99 int? userID = null; 100 if(bol_userLogged){ 101 userID = Pageview.User.ID; 102 if(Pageview.User.CurrentSecondaryUser != null && Pageview.User.CurrentSecondaryUser.ID != 0) { 103 userID = Pageview.User.CurrentSecondaryUser.ID; 104 } 105 } 106 string str_productLanguageId = GetString("Ecom:Product.LanguageID"); 107 string str_productID = GetString("Ecom:Product.ID"); 108 List<LoopItem> obj_loopVariantCombinations = GetLoop("VariantCombinations"); 109 Dictionary<string, Dictionary<string, Dictionary<string, string>>> dic_product = new Dictionary<string, Dictionary<string, Dictionary<string, string>>>(); 110 Dictionary<string, Dictionary<string, string>> dic_variants = new Dictionary<string, Dictionary<string, string>>(); 111 string str_productJSON = ""; 112 string str_productFavoritesUrl = string.Format("Default.aspx?ID={0}", GetPageFromAreaSetting("FavoritesProcess", Pageview)); 113 114 if(obj_loopVariantCombinations.Any()){ 115 foreach (LoopItem variant in obj_loopVariantCombinations){ 116 string str_variantHref = "/"+ variant.GetValue("Ecom:VariantCombination.Link.Clean") + "?PID=" + Dynamicweb.Frontend.PageView.Current().CurrentParagraph.ID.ToString(); 117 string str_articleNum = variant.GetString("Ecom:Product.Number"); 118 string str_price = variant.GetString("Ecom:Product.Price"); 119 string str_stock = variant.GetString("Ecom:Product.AvailableAmount"); 120 string str_smallImage = variant.GetString("Ecom:Product.ImageSmall.Clean"); 121 string str_id = variant.GetString("Ecom:VariantCombination.VariantID"); 122 string str_variantName = variant.GetString("Ecom:VariantCombination.VariantText"); 123 string str_variantShortDescription = variant.GetString("Ecom:VariantCombination.VariantText"); 124 Dictionary<string, string> dic_variant = new Dictionary<string, string>(); 125 126 dic_variant.Add("name", str_variantName); 127 dic_variant.Add("id", str_id); 128 dic_variant.Add("number", str_articleNum); 129 dic_variant.Add("price", str_price); 130 dic_variant.Add("stock", str_stock); 131 dic_variant.Add("smallImage", str_smallImage); 132 // dic_variant.Add("productIsFavorite", variant.GetString("Ecom:Product.IsProductInFavoriteList")); 133 134 try{ 135 var favoriteListProducts = Dynamicweb.Ecommerce.CustomerCenter.CustomerProductList.GetListByCustomerId(int.Parse(userID.ToString())); 136 if (favoriteListProducts.Any()) 137 { 138 var favoriteProducts = favoriteListProducts.FirstOrDefault().Products; 139 bool isFavorite = favoriteProducts.Where(x => x.ProductVariantId == str_id).Any() && favoriteProducts.Where(x => x.ProductId == str_productID).Any(); 140 dic_variant.Add("productIsFavorite", isFavorite.ToString()); 141 } 142 }catch{} 143 144 string str_productAddToList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=add", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id); 145 string str_productRemoveFromList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=remove", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id); 146 dic_variant.Add("addToList", str_productAddToList); 147 dic_variant.Add("removeFromList", str_productRemoveFromList); 148 149 150 dic_variants.Add(str_id, dic_variant); 151 152 } 153 dic_product.Add("product", dic_variants); 154 } 155 str_productJSON = new JavaScriptSerializer().Serialize(dic_product); 156 157 } 158 159 @functions{ 160 public static string GetPageFromAreaSetting(string key, dynamic pageview) 161 { 162 string pageID = pageview.Page.ID.ToString(); 163 var area = pageview.Area.Item; 164 165 if( area[key] != null && !String.IsNullOrEmpty(area[key].ToString())) 166 { 167 pageID = area[key].ToString(); 168 } 169 170 return pageID; 171 } 172 } 173 174 175 @try 176 { 177 @helper RenderParentEcomNav(Dynamicweb.Ecommerce.Products.Group group,string searchPageID) { 178 179 List<string> notShowGroups = new List<string>(); 180 notShowGroups.Add("GROUP2"); //Cell Function/Viability Kits 181 notShowGroups.Add("GROUP10"); 182 notShowGroups.Add("GROUP18"); 183 notShowGroups.Add("GROUP19"); 184 notShowGroups.Add("GROUP20"); //Mouse Immunology Antibodies 185 notShowGroups.Add("GROUP21"); //ELISA MAX/LEGEND MAX 186 notShowGroups.Add("GROUP22"); //Buffers/Solutions/Chemicals 187 notShowGroups.Add("GROUP23"); //Secondary Reagents 188 notShowGroups.Add("GROUP24"); //Cytokine/Chemokine Antibodies 189 notShowGroups.Add("GROUP25"); //LEGENDplex 190 notShowGroups.Add("GROUP26"); //Cell Biology Antibodies 191 notShowGroups.Add("GROUP27"); //Rat Immunology Antibodies 192 notShowGroups.Add("GROUP28"); //Human Immunology Antibodies 193 notShowGroups.Add("GROUP29"); //Isotype Controls 194 notShowGroups.Add("GROUP30"); //Recombinant Proteins 195 notShowGroups.Add("GROUP31"); //LEGENDScreen 196 notShowGroups.Add("GROUP32"); //Neuroscience Products 197 notShowGroups.Add("GROUP33"); //Marmoset Immunology Antibodies 198 notShowGroups.Add("GROUP34"); //Virus Immunology Antibodies 199 notShowGroups.Add("GROUP35"); // 200 notShowGroups.Add("GROUP36"); //Epitope Tag Products 201 notShowGroups.Add("GROUP37"); //Flex-T 202 notShowGroups.Add("GROUP50"); //Cell Separation 203 notShowGroups.Add("GROUP51"); //Non-Antibody Chemical Probes 204 notShowGroups.Add("ImportedGROUP1"); 205 206 if (group.ParentGroupsDefaultLanguage != null && group.ParentGroupsDefaultLanguage.Any()) { 207 string parent_id = group.ParentGroupsDefaultLanguage[0].Id; 208 Dynamicweb.Ecommerce.Products.Group parent = Dynamicweb.Ecommerce.Products.Group.GetGroupById(parent_id); 209 210 if (parent != null && !notShowGroups.Contains(group.Id)) { 211 <text>@RenderParentEcomNav(parent,searchPageID)</text> 212 } 213 } 214 215 if(!notShowGroups.Contains(group.Id) && group.NavigationShowInSiteMap) 216 { 217 <li data-groupID="@group.Id"> 218 <a href="/Default.aspx?ID=@searchPageID&GroupID=@group.Id"> 219 @group.Name 220 </a> 221 </li> 222 } 223 } 224 225 @helper RenderBiologyArea(string biologyArea) 226 { 227 string baText = ""; 228 Dictionary<string, string> baDict = new Dictionary<string, string>(){ 229 {"adaptive_immunity","Adaptive Immunity"}, 230 {"angiogenesis","Angiogenesis"}, 231 {"apoptosis_tumor_suppressors_cell_death","Apoptosis/Tumor Suppressors/Cell Death"}, 232 {"bacterial_proteins_toxins","Bacterial proteins and Toxins"}, 233 {"cancer_biomarkers","Cancer Biomarkers"}, 234 {"cardiovascular_biology","Cardiovascular Biology"}, 235 {"cell_adhesion","Cell Adhesion"}, 236 {"cell_biology","Cell Biology"}, 237 {"cell_cycle_dna_replication","Cell Cycle/DNA Replication"}, 238 {"cell_death","Cell Death"}, 239 {"cell_motility_cytoskeleton_structure","Cell Motility/Cytoskeleton/Structure"}, 240 {"cell_proliferation_viability","Cell Proliferation and Viability"}, 241 {"cell_structure","Cell Structure"}, 242 {"chromatin_remodeling_epigenetics","Chromatin Remodeling/Epigenetics"}, 243 {"complement","Complement"}, 244 {"costimulatory_molecules","Costimulatory Molecules"}, 245 {"covid19","COVID-19"}, 246 {"dna_repair_replication","DNA Repair/Replication"}, 247 {"immuno_oncology","Immuno-Oncology"}, 248 {"immunology","Immunology"}, 249 {"inhibitory_molecules","Inhibitory Molecules"}, 250 {"innate_immunity","Innate Immunity"}, 251 {"mitochondrial_function","Mitochondrial Function"}, 252 {"neurodegeneration","Neurodegeneration"}, 253 {"neuroinflammation","Neuroinflammation"}, 254 {"neuroscience","Neuroscience"}, 255 {"neuroscience_cell_markers","Neuroscience Cell Markers"}, 256 {"protein_misfolding_aggregation","Protein Misfolding and Aggregation"}, 257 {"protein_purification","Protein Purification"}, 258 {"protein_synthesis","Protein Synthesis"}, 259 {"protein_trafficking_clearance","Protein Trafficking and Clearance"}, 260 {"signal_transduction","Signal Transduction"}, 261 {"stem_cell","Stem Cells"}, 262 {"synaptic_biology","Synaptic Biology"}, 263 {"transcription_factors","Transcription Factors"}, 264 {"ubiquitin_protein_degradation","Ubiquitin/Protein Degradation"}, 265 {"western_blot_controls","Western Blot Controls"} 266 }; 267 if(!string.IsNullOrWhiteSpace(biologyArea)) 268 { 269 string[] biologyAreas = biologyArea.Split(','); 270 foreach (string thisArea in biologyAreas) 271 { 272 baText += baDict[thisArea] + ", "; 273 } 274 275 276 baText = baText.Remove(baText.Length-2); 277 <dt class="col-xs-3 noPaddingLeft"> 278 @Translate("BiologyArea","Biology Area") 279 </dt> 280 <dd class="col-xs-9"> 281 @baText 282 </dd> 283 } 284 } 285 286 @helper RenderMolecularFamily(string molecularFamily) 287 { 288 string mfText = ""; 289 Dictionary<string, string> mfDict = new Dictionary<string, string>(){ 290 {"a_synuclein","&alpha;-Synuclein"}, 291 {"adaptor_proteins","Adaptor Proteins"}, 292 {"adhesion_molecules","Adhesion Molecules"}, 293 {"aldehyde_dehydrogenases","Aldehyde Dehydrogenases"}, 294 {"app_b_amyloid","APP/&beta;-Amyloid"}, 295 {"app_ab_degradation","APP/A&beta; Degradation"}, 296 {"apolipoproteins","Apolipoproteins"}, 297 {"autophagosome_markers","Autophagosome Markers"}, 298 {"blood_group_markers","Blood Group Markers"}, 299 {"carrier_proteins","Carrier Proteins"}, 300 {"cd_molecules","CD Molecules"}, 301 {"cytokine_chemokine_receptors","Cytokine/Chemokine Receptors"}, 302 {"cytokines_chemokines","Cytokines/Chemokines"}, 303 {"cytoskeletal_proteins","Cytoskeletal Proteins"}, 304 {"endoplasmic_reticulum_markers","Endoplasmic Reticulum Markers"}, 305 {"endosomal_markers","Endosomal Markers"}, 306 {"enzymes_regulators","Enzymes and Regulators"}, 307 {"exosome_markers","Exosome Markers"}, 308 {"fc_receptors","Fc Receptors"}, 309 {"gap_junction_proteins","Gap Junction Proteins"}, 310 {"golgi_markers","Golgi Markers"}, 311 {"gpcr","GPCR"}, 312 {"growth_factors","Growth Factors"}, 313 {"gtpases","GTPases"}, 314 {"heat_shock_proteins","Heat Shock Proteins"}, 315 {"hormones","Hormones"}, 316 {"immune_checkpoint_receptors","Immune Checkpoint Receptors"}, 317 {"innate_immune_signaling","Innate Immune Signaling"}, 318 {"intermediate_filaments","Intermediate Filaments"}, 319 {"ions_channels","Ion Channels"}, 320 {"ligases","Ligases"}, 321 {"lysosomal_markers","Lysosomal Markers"}, 322 {"mhc_antigens","MHC Antigens"}, 323 {"microfilaments","Microfilaments"}, 324 {"microtubules","Microtubules"}, 325 {"mitochondrial_markers","Mitochondrial Markers"}, 326 {"neurotransmitter_receptor_trafficking_endocytosis","Neurotransmitter Receptor Trafficking/Endocytosis"}, 327 {"neurotransmitter_receptors","Neurotransmitter Receptors"}, 328 {"neurotrophic_factors","Neurotrophic Factors"}, 329 {"nuclear_markers","Nuclear Markers"}, 330 {"organelle_markers","Organelle Markers"}, 331 {"postsynaptic_proteins","Postsynaptic proteins"}, 332 {"phospho_proteins","Phospho-Proteins"}, 333 {"presynaptic_proteins","Presynaptic proteins"}, 334 {"prion_cd230","Prion (CD230)"}, 335 {"proteases","Proteases"}, 336 {"protein_kinases_phosphatase","Protein Kinases/Phosphatase"}, 337 {"protein_modifiers","Protein Modifiers"}, 338 {"purinergic_receptors","Purinergic Receptors"}, 339 {"scaffold_proteins","Scaffold Proteins"}, 340 {"secretases","Secretases"}, 341 {"semaphorin_receptors","Semaphorin Receptors"}, 342 {"siglec_molecules","Siglec Molecules"}, 343 {"soluble_receptors","Soluble Receptors"}, 344 {"steroid_receptors_nuclear_receptors","Steroid Receptors/Nuclear Receptors"}, 345 {"synaptic_vesicle_trafficking_endocytosis","Synaptic Vesicle Trafficking/Endocytosis"}, 346 {"tau","Tau"}, 347 {"tcrs","TCRs"}, 348 {"tdp43","TDP43"}, 349 {"toll_like_receptors","Toll Like Receptors"}, 350 {"tumor_suppressors","Tumor Suppressors"} 351 }; 352 if(!string.IsNullOrWhiteSpace(molecularFamily)) 353 { 354 string[] molecularFamilies = molecularFamily.Split(','); 355 foreach (string thisArea in molecularFamilies) 356 { 357 mfText += mfDict[thisArea] + ", "; 358 } 359 360 361 mfText = mfText.Remove(mfText.Length-2); 362 <dt class="col-xs-3 noPaddingLeft"> 363 @Translate("MolecularFamily","Molecular Family") 364 </dt> 365 <dd class="col-xs-9"> 366 @mfText 367 </dd> 368 } 369 } 370 371 @helper RenderCellType(string cellType) 372 { 373 string ctText = ""; 374 Dictionary<string, string> ctDict = new Dictionary<string, string>(){ 375 {"Antigenpresentingcells","Antigen-presenting cells"}, 376 {"Astrocytes","Astrocytes"}, 377 {"Bcells","B cells"}, 378 {"Basophils","Basophils"}, 379 {"Dendriticcells","Dendritic cells"}, 380 {"DopaminergicNeurons","Dopaminergic Neurons"}, 381 {"EmbryonicStemCells","Embryonic Stem Cells"}, 382 {"Endothelialcells","Endothelial cells"}, 383 {"Eosinophils","Eosinophils"}, 384 {"Epithelialcells","Epithelial cells"}, 385 {"Erythrocytes","Erythrocytes"}, 386 {"Fibroblasts","Fibroblasts"}, 387 {"GABAergicNeurons","GABAergic Neurons"}, 388 {"GlutamatergicNeurons","Glutamatergic Neurons"}, 389 {"Granulocytes","Granulocytes"}, 390 {"Hematopoieticstemandprogenitors","Hematopoietic stem and progenitors"}, 391 {"Langerhanscells","Langerhans cells"}, 392 {"Leukemia","Leukemia"}, 393 {"Leukocytes","Leukocytes"}, 394 {"Lymphocytes","Lymphocytes"}, 395 {"Macrophages","Macrophages"}, 396 {"Mastcells","Mast cells"}, 397 {"MatureNeurons","Mature Neurons"}, 398 {"Megakaryocytes","Megakaryocytes"}, 399 {"Mesenchymalcells","Mesenchymal cells"}, 400 {"MesenchymalStemCells","Mesenchymal Stem Cells"}, 401 {"Microglia","Microglia"}, 402 {"Monocytes","Monocytes"}, 403 {"NeuralStemCells","Neural Stem Cells"}, 404 {"Neurons","Neurons"}, 405 {"Neutrophils","Neutrophils"}, 406 {"NKcells","NK cells"}, 407 {"NKTcells","NKT cells"}, 408 {"Oligodendrocytes","Oligodendrocytes"}, 409 {"Osteoblasts","Osteoblasts"}, 410 {"Osteoclasts","Osteoclasts"}, 411 {"Plasmacells","Plasma cells"}, 412 {"Platelets","Platelets"}, 413 {"Schwanncells","Schwann Cells"}, 414 {"Tcells","T cells"}, 415 {"Tfh","Tfh"}, 416 {"Th1","Th1"}, 417 {"Th2","Th2"}, 418 {"Th17","Th17"}, 419 {"Thymocytes","Thymocytes"}, 420 {"Tregs","Tregs"} 421 }; 422 if(!string.IsNullOrWhiteSpace(cellType)) 423 { 424 string[] cellTypes = cellType.Split(','); 425 foreach (string thisType in cellTypes) 426 { 427 ctText += ctDict[thisType] + ", "; 428 } 429 430 431 ctText = ctText.Remove(ctText.Length-2); 432 <dt class="col-xs-3 noPaddingLeft"> 433 @Translate("CellType","Cell Type") 434 </dt> 435 <dd class="col-xs-9"> 436 @ctText 437 </dd> 438 } 439 } 440 441 @helper RenderIsoype(string isotype) 442 { 443 string ctText = ""; 444 Dictionary<string, string> ctDict = new Dictionary<string, string>(){ 445 {"","N/A"}, 446 {"01","Armenian Hamster IgG"}, 447 {"02","Armenian Hamster IgG1"}, 448 {"03","Armenian Hamster IgG1, κ"}, 449 {"04","Armenian Hamster IgG2, κ"}, 450 {"05","Armenian Hamster IgM"}, 451 {"06","Donkey Polyclonal Ig"}, 452 {"07","Goat Ig"}, 453 {"08","Goat IgG"}, 454 {"09","Goat Polyclonal Ig"}, 455 {"09_5","Goat Polyclonal IgG"}, 456 {"10","Hamster IgG"}, 457 {"11","Mouse (A.SW) IgG2a, κ"}, 458 {"12","Mouse (BALB/c) IgE, κ"}, 459 {"13","Mouse (BALB/c) IgG1, κ"}, 460 {"14","Mouse (BALB/c) IgG2a, κ"}, 461 {"15","Mouse (BALB/c) IgG2b, κ"}, 462 {"16","Mouse (C3H.SW) IgG2a, κ"}, 463 {"17","Mouse (C3H.SW) IgG3, κ"}, 464 {"18","Mouse (C3H) IgG2a, κ"}, 465 {"19","Mouse (C57BL/6) IgE, κ"}, 466 {"20","Mouse (C57BL/6) IgG1, κ"}, 467 {"21","Mouse (CWB) IgG2a, κ"}, 468 {"22","Mouse (SJL) IgG2a, κ"}, 469 {"23","Mouse (SJL) IgG2b, κ"}, 470 {"24","Mouse IgA, κ"}, 471 {"24_1","Mouse IgA"}, 472 {"25","Mouse IgG"}, 473 {"26","Mouse IgG, κ"}, 474 {"27","Mouse IgG1"}, 475 {"28","Mouse IgG1 (all clones)"}, 476 {"29","Mouse IgG1/Mouse IgG2a"}, 477 {"29_1","Mouse IgG1, κ/Mouse IgG2a, κ/Mouse IgG2b, κ"}, 478 {"29_2","Mouse IgG1/Mouse IgM"}, 479 {"31","Mouse IgG1, κ"}, 480 {"31_1","Mouse IgG1, κ/Mouse IgG2a, κ"}, 481 {"31_2","Mouse IgG1, κ/Rat IgG2b, κ"}, 482 {"32","Mouse IgG1, κ (all clones)"}, 483 {"32_2","Mouse IgG1, λ"}, 484 {"33","Mouse IgG1/Mouse IgG2b"}, 485 {"34","Mouse IgG2a"}, 486 {"35","Mouse IgG2a, κ"}, 487 {"36","Mouse (A.TL) IgG2a, κ"}, 488 {"37","Mouse (C3H.KBR) IgG2a, κ"}, 489 {"38","Mouse IgG2a, λ"}, 490 {"39","Mouse IgG2b"}, 491 {"40","Mouse IgG2b, κ"}, 492 {"41","Mouse IgG2b, λ"}, 493 {"41_2","Mouse IgG2c"}, 494 {"41_5","Mouse IgG3"}, 495 {"42","Mouse IgG3, κ"}, 496 {"43","Mouse IgM"}, 497 {"44","Mouse IgM, κ"}, 498 {"45","Mouse IgM, λ"}, 499 {"46","Mouse (C3H/HeJ) IgG2a, κ"}, 500 {"46_5","Mouse Polyclonal"}, 501 {"47","Rabbit IgG"}, 502 {"47_1","Rabbit Ig"}, 503 {"48","Rabbit Polyclonal IgG"}, 504 {"48_5","Rabbit Polyclonal"}, 505 {"49","Rat (SD) IgG2b, λ"}, 506 {"49_5","Rat Polyclonal IgG"}, 507 {"50","Rat IgG"}, 508 {"51","Rat IgG, κ"}, 509 {"52","Rat IgG1"}, 510 {"53","Rat IgG1, κ"}, 511 {"54","Rat IgG1, λ"}, 512 {"55","Rat IgG2a"}, 513 {"56","Rat IgG2a, κ"}, 514 {"57","Rat IgG2a, λ"}, 515 {"58","Rat IgG2a/Rat IgG1"}, 516 {"59","Rat IgG2a/Rat IgG2b"}, 517 {"59_1","Rat IgG2a, κ/Rat IgG2b, κ"}, 518 {"59_2","Armenian Hamster IgG/Rat IgG2a/Rat IgG2b"}, 519 {"59_3","Rat IgG2a, κ/Rat IgG2b, κ/Rat IgG2c, κ"}, 520 {"60","Rat IgG2b"}, 521 {"61","Rat IgG2b, κ"}, 522 {"62","Rat IgG2b, λ"}, 523 {"62_5","Rat IgG2c"}, 524 {"64","Rat IgG2c, κ"}, 525 {"64_5","Rat IgM"}, 526 {"65","Rat IgM, κ"}, 527 {"66","Syrian Hamster IgG"}, 528 {"67","Armenian Hamster IgG1, λ"}, 529 {"68","Chicken Polyclonal IgY"}, 530 {"69","Sheep Polyclonal"}, 531 {"70","Guinea Pig Polyclonal"}, 532 {"81","Human IgG1"}, 533 {"81_5","Human IgG1, κ"}, 534 {"82","Human IgG2"}, 535 {"82_5","Human IgG2, κ"}, 536 {"83","Human IgG3"}, 537 {"83_5","Human IgG3, κ"}, 538 {"84","Human IgG4"}, 539 {"84_5","Human IgG4, κ"}, 540 {"99","TBD"}, 541 {"47_5","Rabbit Polyclonal Ig"}, 542 {"41_3","Mouse IgG2c, κ"}, 543 {"67_9","Chicken IgY"}, 544 {"40_1","Mouse IgG2b, κ/Mouse IgM, κ"}, 545 {"33_1","Mouse IgG1, κ/Mouse IgG2b, κ"}, 546 {"71","Llama VH Ig"} 547 }; 548 if(!string.IsNullOrWhiteSpace(isotype)) 549 { 550 string[] isotypes = isotype.Split(','); 551 foreach (string thisType in isotypes) 552 { 553 ctText += ctDict[thisType] + ", "; 554 } 555 556 557 ctText = ctText.Remove(ctText.Length-2); 558 <dt class="col-xs-3 noPaddingLeft"> 559 @Translate("IsotypeLabel","Isotype") 560 </dt> 561 <dd class="col-xs-9"> 562 @ctText 563 </dd> 564 } 565 } 566 567 @helper RenderLaser(string laser) 568 { 569 string laserText = ""; 570 string violetLaser = Translate("violetLaser","Violet Laser (405 nm)"); 571 string blueLaser = Translate("blueLaser","Blue Laser (488 nm)"); 572 string greenLaser = Translate("greenLaser","Green Laser (532 nm)/Yellow-Green Laser (561 nm)"); 573 string redLaser = Translate("redLaser","Red Laser (633 nm)"); 574 string ultravioletLaser = Translate("ultravioletLaser","Ultraviolet Laser (355 nm)"); 575 string[] lasers = laser.Split(','); 576 foreach (string thisLaser in lasers) 577 { 578 if(thisLaser == "violetLaser"){ 579 laserText += violetLaser + "<br />"; 580 } 581 if(thisLaser == "blueLaser"){ 582 laserText += blueLaser + "<br />"; 583 } 584 if(thisLaser == "greenLaser"){ 585 laserText += greenLaser + "<br />"; 586 } 587 if(thisLaser == "redLaser"){ 588 laserText += redLaser + "<br />"; 589 } 590 if(thisLaser == "ultravioletLaser"){ 591 laserText += ultravioletLaser + "<br />"; 592 } 593 } 594 595 if(!string.IsNullOrWhiteSpace(laserText)) 596 { 597 <dt class="col-xs-3 noPaddingLeft"> 598 @Translate("ExcitationLaser","Excitation Laser") 599 </dt> 600 <dd class="col-xs-9"> 601 @laserText 602 </dd> 603 } 604 } 605 606 @helper RenderSpectralData(string format = "", string productID = "") 607 { 608 string variable = ""; 609 string textAnchor = ""; 610 611 if(format == "A488") 612 { 613 variable = "AF488"; 614 textAnchor = "Alexa Fluor&reg; 488"; 615 } 616 else if(format == "A555") 617 { 618 variable = "AF555"; 619 textAnchor = "Alexa Fluor&reg; 555"; 620 } 621 else if(format == "A594") 622 { 623 variable = "AF594"; 624 textAnchor = "Alexa Fluor&reg; 594"; 625 } 626 else if(format == "A647") 627 { 628 variable = "AF647"; 629 textAnchor = "Alexa Fluor&reg; 647"; 630 } 631 else if(format == "A660") 632 { 633 variable = "AF660"; 634 textAnchor = "Alexa Fluor&reg; 660"; 635 } 636 else if(format == "A700") 637 { 638 variable = "AF700"; 639 textAnchor = "Alexa Fluor&reg; 700"; 640 } 641 else if(format == "APC") 642 { 643 variable = "APC"; 644 textAnchor = "APC"; 645 } 646 else if(format == "APC_CY5.5") 647 { 648 variable = "APCCY55"; 649 textAnchor = "APC/Cy5.5"; 650 } 651 else if(format == "APC_CYANINE7") 652 { 653 variable = "APCCYANINE7"; 654 textAnchor = "APC/Cyanine7"; 655 } 656 else if(format == "APC_F750") 657 { 658 variable = "APCF750"; 659 textAnchor = "APC/Fire&trade; 750"; 660 } 661 else if(format == "BV421") 662 { 663 variable = "BV421"; 664 textAnchor = "Brilliant Violet 421&trade;"; 665 } 666 else if(format == "BV510") 667 { 668 variable = "BV510"; 669 textAnchor = "Brilliant Violet 510&trade;"; 670 } 671 else if(format == "BV570") 672 { 673 variable = "BV570"; 674 textAnchor = "Brilliant Violet 570&trade;"; 675 } 676 else if(format == "BV605") 677 { 678 variable = "BV605"; 679 textAnchor = "Brilliant Violet 605&trade;"; 680 } 681 else if(format == "BV650") 682 { 683 variable = "BV650"; 684 textAnchor = "Brilliant Violet 650&trade;"; 685 } 686 else if(format == "BV711") 687 { 688 variable = "BV711"; 689 textAnchor = "Brilliant Violet 711&trade;"; 690 } 691 else if(format == "BV750") 692 { 693 variable = "BV750"; 694 textAnchor = "Brilliant Violet 750&trade;"; 695 } 696 else if(format == "BV785") 697 { 698 variable = "BV785"; 699 textAnchor = "Brilliant Violet 785&trade;"; 700 } 701 else if(format == "CYANINE3") 702 { 703 variable = "CYANINE3"; 704 textAnchor = "Cyanine3"; 705 } 706 else if(format == "CYANINE5") 707 { 708 variable = "CYANINE5"; 709 textAnchor = "Cyanine5"; 710 } 711 else if(format == "FITC") 712 { 713 variable = "FITC"; 714 textAnchor = "FITC"; 715 } 716 else if(format == "PB") 717 { 718 variable = "PB"; 719 textAnchor = "Pacific Blue&trade;"; 720 } 721 else if(format == "PE") 722 { 723 variable = "PE"; 724 textAnchor = "PE"; 725 } 726 else if(format == "PE_CYANINE5") 727 { 728 variable = "PECYANINE5"; 729 textAnchor = "PE/Cyanine5"; 730 } 731 else if(format == "PE_CY5.5") 732 { 733 variable = "PECY55"; 734 textAnchor = "PE/Cy5.5"; 735 } 736 else if(format == "PE_CYANINE7") 737 { 738 variable = "PECYANINE7"; 739 textAnchor = "PE/Cyanine7"; 740 } 741 else if(format == "PE_DZL594") 742 { 743 variable = "PEDZL594"; 744 textAnchor = "PE/Dazzle&trade; 594"; 745 } 746 else if(format == "PERCP") 747 { 748 variable = "PERCP"; 749 textAnchor = "PerCP"; 750 } 751 else if(format == "PERCP_CY55") 752 { 753 variable = "PERCPCYANINE55"; 754 textAnchor = "PerCP/Cyanine5.5"; 755 } 756 //PerCP/Cyanine5.5 757 else if(format == "PERCP_CYANINE5.5") 758 { 759 variable = "PERCPCYANINE55"; 760 textAnchor = "PerCP/Cyanine5.5"; 761 } 762 //Flash Phalloidin NIR 647 763 else if(productID == "13240") 764 { 765 variable = "FPNIR647"; 766 textAnchor = "Flash Phalloidin&trade; NIR 647"; 767 } 768 //Flash Phalloidin Red 594 769 else if(productID == "13203") 770 { 771 variable = "FPR594"; 772 textAnchor = "Flash Phalloidin&trade; Red 594"; 773 } 774 //Flash Phalloidin Green 488 775 else if(productID == "13950") 776 { 777 variable = "FPG488"; 778 textAnchor = "Flash Phalloidin&trade; Green 488"; 779 } 780 //DAPI 781 else if(productID == "8108") 782 { 783 variable = "DAPI"; 784 textAnchor = "DAPI (4',6-Diamidino-2-Phenylindole, Dilactate)"; 785 } 786 //PI 787 else if(productID == "2651") 788 { 789 variable = "PI"; 790 textAnchor = "Propidium Iodide"; 791 } 792 //7AAD 793 else if(productID == "1649") 794 { 795 variable = "7AAD"; 796 textAnchor = "7-AAD"; 797 } 798 /* zombie Aqua */ 799 else if(productID == "8444") 800 { 801 variable = "ZA"; 802 textAnchor = "Zombie Aqua&trade;"; 803 } 804 /* zombie Green */ 805 else if(productID == "9340") 806 { 807 variable = "ZG"; 808 textAnchor = "Zombie Green&trade;"; 809 } 810 /* zombie NIR */ 811 else if(productID == "8657") 812 { 813 variable = "ZNIR"; 814 textAnchor = "Zombie NIR&trade;"; 815 } 816 /* zombie Red */ 817 else if(productID == "9338") 818 { 819 variable = "ZR"; 820 textAnchor = "Zombie Red&trade;"; 821 } 822 /* zombie Ultraviolet */ 823 else if(productID == "9336") 824 { 825 variable = "ZUV"; 826 textAnchor = "Zombie UV&trade;"; 827 } 828 /* zombie Violet */ 829 else if(productID == "9341") 830 { 831 variable = "ZV"; 832 textAnchor = "Zombie Violet&trade;"; 833 } 834 /* zombie Yellow */ 835 else if(productID == "8514") 836 { 837 variable = "ZY"; 838 textAnchor = "Zombie Yellow&trade;"; 839 } 840 /* zombie B550 */ 841 else if(productID == "23629") 842 { 843 variable = "ZB550"; 844 textAnchor = "Zombie B550&trade;"; 845 } 846 /* zombie Zombie YG581 */ 847 else if(productID == "23631") 848 { 849 variable = "ZYG581"; 850 textAnchor = "Zombie YG581&trade;"; 851 } 852 /* zombie R685 */ 853 else if(productID == "23628") 854 { 855 variable = "ZR685"; 856 textAnchor = "Zombie R685&trade;"; 857 } 858 /* zombie R718 */ 859 else if(productID == "23630") 860 { 861 variable = "ZR718"; 862 textAnchor = "Zombie R718&trade;"; 863 } 864 /* CFSE */ 865 else if(productID == "8053") 866 { 867 variable = "CFSE"; 868 textAnchor = "CFSE"; 869 } 870 /* DRAQ7 */ 871 else if(productID == "9628") 872 { 873 variable = "DRAQ7"; 874 textAnchor = "DRAQ7&trade;"; 875 } 876 /* DRAQ5 */ 877 else if(productID == "9674") 878 { 879 variable = "DRAQ5"; 880 textAnchor = "DRAQ5&trade;"; 881 } 882 883 /* Helix NP NIR */ 884 else if(productID == "13421") 885 { 886 variable = "HNPNIR"; 887 textAnchor = "Helix NP&trade; NIR"; 888 } 889 890 /* Cytophase Violet */ 891 else if (productID == "13786") 892 { 893 variable = "CV"; 894 textAnchor = "Cytophase&trade; Violet"; 895 } 896 897 /* PE Fire 640 */ 898 else if(format == "PE_F640") 899 { 900 variable = "PEFIRE640"; 901 textAnchor = "PE/Fire&trade; 640"; 902 } 903 904 /* PE Fire 700 */ 905 else if(format == "PE_F700") 906 { 907 variable = "PEFIRE700"; 908 textAnchor = "PE/Fire&trade; 700"; 909 } 910 911 /* PE Fire 744 */ 912 else if(format == "PE_F744") 913 { 914 variable = "PEFIRE744"; 915 textAnchor = "PE/Fire&trade; 744"; 916 } 917 918 /* PE Fire 780 */ 919 else if(format == "PE_F780") 920 { 921 variable = "PEFIRE780"; 922 textAnchor = "PE/Fire&trade; 780"; 923 } 924 925 /* PE Fire 810 */ 926 else if(format == "PE_F810") 927 { 928 variable = "PEFIRE810"; 929 textAnchor = "PE/Fire&trade; 810"; 930 } 931 932 /* DyLight 649 */ 933 else if(format == "D649") 934 { 935 variable = "DYLIGHT649"; 936 textAnchor = "DyLight&reg; 649"; 937 } 938 939 /* Karavia 520 */ 940 else if(format == "KB520") 941 { 942 variable = "KB520"; 943 textAnchor = "KIRAVIA Blue 520&trade;"; 944 } 945 946 /* Apotracker Green */ 947 else if (productID == "18527") 948 { 949 variable = "APOTRACKERGREEN"; 950 textAnchor = "Apotracker&trade; Green"; 951 } 952 953 /* Calcein Red-AM */ 954 else if (productID == "18901") 955 { 956 variable = "CRAM"; 957 textAnchor = "Calcein Red-AM"; 958 } 959 960 /* Spark YG 570 */ 961 else if(format == "SPKYG_570") 962 { 963 variable = "SPARKYG570"; 964 textAnchor = "Spark YG&trade; 570"; 965 } 966 967 /* Spark Violet 538 */ 968 else if(format == "SPKVL_538") 969 { 970 variable = "SPKV538"; 971 textAnchor = "Spark Violet&trade; 538"; 972 } 973 974 /* Spark YG 581 */ 975 else if(format == "SPKYG_581") 976 { 977 variable = "SPKYG581"; 978 textAnchor = "Spark YG&trade; 581"; 979 } 980 981 /* Spark Blue 574 */ 982 else if(format == "SPKBL_574") 983 { 984 variable = "SPARKB574"; 985 textAnchor = "Spark Blue&trade; 574"; 986 } 987 988 /* Spark Violet 423 */ 989 else if(format == "SPKVL_423") 990 { 991 variable = "SPKV423"; 992 textAnchor = "Spark Violet&trade; 423"; 993 } 994 995 /* Spark UV 387 */ 996 else if(format == "SPKUV_387") 997 { 998 variable = "SPARKUV387"; 999 textAnchor = "Spark UV&trade; 387"; 1000 } 1001 1002 /* Spark Violet 500 */ 1003 else if(format == "SPKVL_500") 1004 { 1005 variable = "SPARKV500"; 1006 textAnchor = "Spark Violet&trade; 500"; 1007 } 1008 1009 /* PerCP/Fire 780 */ 1010 else if(format == "PERCP_F780") 1011 { 1012 variable = "PERCPF780"; 1013 textAnchor = "PerCP/Fire&trade; 780"; 1014 } 1015 1016 /* PerCP/Fire 806 */ 1017 else if(format == "PERCP_F806") 1018 { 1019 variable = "PERCPF806"; 1020 textAnchor = "PerCP/Fire&trade; 806"; 1021 } 1022 1023 /* Spark Blue 515 */ 1024 else if(format == "SPKBL_515") 1025 { 1026 variable = "SPKBL_515"; 1027 textAnchor = "Spark Blue&trade; 515"; 1028 } 1029 1030 /* Lysosome Probe Deep Red */ 1031 else if(productID == "23745") 1032 { 1033 variable = "LPDR"; 1034 textAnchor = "Lysosome Probe Deep Red"; 1035 } 1036 1037 /* Lysosome Probe Green */ 1038 else if(productID == "23741") 1039 { 1040 variable = "LPG"; 1041 textAnchor = "Lysosome Probe Green"; 1042 } 1043 1044 /* Lysosome Probe NIR */ 1045 else if(productID == "23744") 1046 { 1047 variable = "LPNIR"; 1048 textAnchor = "Lysosome Probe NIR"; 1049 } 1050 1051 /* Lysosome Probe Orange */ 1052 else if(productID == "23742") 1053 { 1054 variable = "LPO"; 1055 textAnchor = "Lysosome Probe Orange"; 1056 } 1057 1058 /* Lysosome Probe Red */ 1059 else if(productID == "23743") 1060 { 1061 variable = "LPR"; 1062 textAnchor = "Lysosome Probe Red"; 1063 } 1064 1065 /* JC-10 Mitochondrial Membrane Potential Kit */ 1066 else if(productID == "23092") 1067 { 1068 variable = "JC10MMPK"; 1069 textAnchor = "JC-10 Mitochondrial Membrane Potential Kit"; 1070 } 1071 1072 /* Spark PLUS UV 395 */ 1073 else if(format == "SPKPLUSUV_395") 1074 { 1075 variable = "SPKPLUSUV_395"; 1076 textAnchor = "Spark PLUS UV&trade; 395"; 1077 } 1078 1079 1080 1081 1082 1083 1084 /* APC/Fire 810 */ 1085 else if(format == "APC_F810") 1086 { 1087 variable = "APCF810"; 1088 textAnchor = "APC/Fire&trade; 810"; 1089 } 1090 1091 /* Spark Blue 550 */ 1092 else if(format == "SPKBL_550") 1093 { 1094 variable = "SPKB550"; 1095 textAnchor = "Spark Blue&trade; 550"; 1096 } 1097 1098 /* Spark NIR 685 */ 1099 else if(format == "SPKNIR_685") 1100 { 1101 variable = "SPKNIR685"; 1102 textAnchor = "Spark NIR&trade; 685"; 1103 } 1104 1105 /* Spark Red 718 */ 1106 else if(format == "SPKR_718") 1107 { 1108 variable = "SPKR718"; 1109 textAnchor = "Spark Red&trade; 718"; 1110 } 1111 1112 /* Spark YG 593 */ 1113 else if(format == "SPKYG_593") 1114 { 1115 variable = "SPKYG593"; 1116 textAnchor = "Spark YG&trade; 593"; 1117 } 1118 1119 /* GMP Alexa Fluor® 488 */ 1120 else if(format == "GMP_A488") 1121 { 1122 variable = "AF488"; 1123 textAnchor = "GMP Alexa Fluor&reg; 488"; 1124 } 1125 1126 /* GMP Alexa Fluor® 647 */ 1127 else if(format == "GMP_A647") 1128 { 1129 variable = "AF647"; 1130 textAnchor = "GMP Alexa Fluor&reg; 647"; 1131 } 1132 1133 /* GMP Alexa Fluor® 700 */ 1134 else if(format == "GMP_A700") 1135 { 1136 variable = "AF700"; 1137 textAnchor = "GMP Alexa Fluor&reg; 700"; 1138 } 1139 1140 /* GMP APC */ 1141 else if(format == "GMP_APC") 1142 { 1143 variable = "APC"; 1144 textAnchor = "GMP APC"; 1145 } 1146 1147 /* GMP APC/Cyanine7 */ 1148 else if(format == "GMP_APC_CYANINE7") 1149 { 1150 variable = "APCCYANINE7"; 1151 textAnchor = "GMP APC/Cyanine7"; 1152 } 1153 1154 /* GMP APC/Fire 750 */ 1155 else if(format == "GMP_APC_F750") 1156 { 1157 variable = "APCF750"; 1158 textAnchor = "GMP APC/Fire&trade; 750"; 1159 } 1160 1161 /* GMP FITC */ 1162 else if(format == "GMP_FITC") 1163 { 1164 variable = "FITC"; 1165 textAnchor = "GMP FITC"; 1166 } 1167 1168 /* GMP Pacific Blue */ 1169 else if(format == "GMP_PB") 1170 { 1171 variable = "PB"; 1172 textAnchor = "GMP Pacific Blue&trade;"; 1173 } 1174 1175 /* GMP PE */ 1176 else if(format == "GMP_PE") 1177 { 1178 variable = "PE"; 1179 textAnchor = "GMP PE"; 1180 } 1181 1182 /* GMP PE/Cyanine5 */ 1183 else if(format == "GMP_PE_CYANINE5") 1184 { 1185 variable = "PECYANINE5"; 1186 textAnchor = "GMP PE/Cyanine5"; 1187 } 1188 1189 /* GMP PE/Cyanine7 */ 1190 else if(format == "GMP_PE_CYANINE7") 1191 { 1192 variable = "PECYANINE7"; 1193 textAnchor = "GMP PE/Cyanine7"; 1194 } 1195 1196 /* GMP PE/Dazzle 594 */ 1197 else if(format == "GMP_PE_DZL594") 1198 { 1199 variable = "PEDZL594"; 1200 textAnchor = "GMP PE/Dazzle&trade; 594"; 1201 } 1202 1203 /* GMP PerCP */ 1204 else if(format == "GMP_PERCP") 1205 { 1206 variable = "PERCP"; 1207 textAnchor = "GMP PerCP"; 1208 } 1209 1210 /* GMP PerCP/Cyanine5.5 */ 1211 else if(format == "GMP_PERCP_CYANINE5.5") 1212 { 1213 variable = "PERCPCYANINE55"; 1214 textAnchor = "GMP PerCP/Cyanine5.5"; 1215 } 1216 1217 /* GMP Spark Violet 423 */ 1218 else if(format == "GMP_SPKVL_423") 1219 { 1220 variable = "SPKV423"; 1221 textAnchor = "GMP Spark Violet&trade; 423"; 1222 } 1223 1224 /* GMP Spark Violet 538 */ 1225 else if(format == "GMP_SPKVL_538") 1226 { 1227 variable = "SPKV538"; 1228 textAnchor = "GMP Spark Violet&trade; 538"; 1229 } 1230 1231 1232 if (!string.IsNullOrWhiteSpace(variable)) 1233 { 1234 string spectraImage = "/Files/Images/media_assets/fluorophore_equivalency/data/"+variable+".png"; 1235 bool fileExists = File.Exists(HttpContext.Current.Server.MapPath(spectraImage)); 1236 1237 if(fileExists) 1238 { 1239 <a id="spectralDataLink" class="col-xs-9" href='javascript:loadSpectra("@variable");'> 1240 <i class="bl bl-iconLink"></i> 1241 @Translate("seeSpectralData","See {{Format}} spectral data").Replace("{{Format}}", textAnchor) 1242 </a> 1243 } 1244 } 1245 } 1246 1247 @helper RenderMaterialDataSheet(string MSDS_Type = "", string MSDS_File = "", string MSDS_Options = "", string Regulatory_Status = "", string productID = "", string techSupportID = "", string translateAnchor = "", string translateAnchorCommingSoon = "",string translateAnchorNATechSupport = ""){ 1248 1249 string msdsLink = ""; 1250 1251 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE 1252 1253 if(MSDS_Type.Equals("LEAF")) 1254 { 1255 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEAF_NC_EN_CLP_2015-07-01.pdf"; 1256 } 1257 else if(MSDS_Type.Equals("ELISAMAXStandard")) 1258 { 1259 msdsLink = "/dwcountry/sdsoptions-4416"; 1260 } 1261 else if(MSDS_Type.Equals("ELISAMAXDeluxe")) 1262 { 1263 msdsLink = "/dwcountry/sdsoptions-4417"; 1264 } 1265 else if(MSDS_Type.Equals("LEGENDMAX")) 1266 { 1267 msdsLink = "/dwcountry/sdsoptions-4419"; 1268 } 1269 else if(MSDS_Type.Equals("LEGENDplex")) 1270 { 1271 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEGENDplex_COMP_SDS_2015-05-07_Revised.pdf"; 1272 } 1273 else if(MSDS_Type.Equals("MojoSort")) 1274 { 1275 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/MojoSort_NC_EN_CLP2015-07-01.pdf"; 1276 } 1277 else if(MSDS_Type.Equals("Streptavidin and Avidin")) 1278 { 1279 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Streptavidin_and_Avidin_NC_EN_CLP_2015-11-20.pdf"; 1280 } 1281 else if(MSDS_Type.Equals("ASR")) 1282 { 1283 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Diagnostic_Pure_and_Conjugated_Antibodies RSD_United_States-3.pdf"; 1284 } 1285 else if(MSDS_Type.Equals("7AAD")) 1286 { 1287 msdsLink = "/dwcountry/sdsoptions-28"; 1288 } 1289 else if(MSDS_Type.Equals("IVD A")) 1290 { 1291 msdsLink = "/dwcountry/sdsoptions-4109"; 1292 } 1293 else if(MSDS_Type.Equals("IVD B")) 1294 { 1295 msdsLink = "/dwcountry/sdsoptions-4110"; 1296 } 1297 else if(MSDS_Type.Equals("Veri-Cells")){ 1298 msdsLink = "/dwcountry/sdsoptions-4000"; 1299 } 1300 else if(MSDS_Type.Equals("Flow Kit")) 1301 { 1302 msdsLink = "/dwcountry/sds"; 1303 } 1304 else if(MSDS_Type.Equals("Zombie Dye")) 1305 { 1306 msdsLink = "/dwcountry/sdsoptions-4210"; 1307 } 1308 else if(MSDS_Type.Equals("Calcein AM")) 1309 { 1310 msdsLink = "/dwcountry/sdsoptions-4209"; 1311 } 1312 else if(MSDS_Type.Equals("Mitospy")) 1313 { 1314 msdsLink = "/dwcountry/sdsoptions-4208"; 1315 } 1316 else if(MSDS_Type.Equals("LPXKit1")) 1317 { 1318 msdsLink = "/dwcountry/sdsoptions-4965"; 1319 } 1320 else if(MSDS_Type.Equals("LPXKit2")) 1321 { 1322 msdsLink = "/dwcountry/sdsoptions-4966"; 1323 } 1324 else if(MSDS_Type.Equals("LPXKit3")) 1325 { 1326 msdsLink = "/dwcountry/sdsoptions-4967"; 1327 } 1328 else if(MSDS_Type.Equals("LPXKit4")) 1329 { 1330 msdsLink = "/dwcountry/sdsoptions-4968"; 1331 } 1332 else if(MSDS_Type.Equals("LPXKit5")) 1333 { 1334 msdsLink = "/dwcountry/sdsoptions-4969"; 1335 } 1336 else if(MSDS_Type.Equals("LPXKit7")) 1337 { 1338 msdsLink = "/dwcountry/sdsoptions-4971"; 1339 } 1340 else if(MSDS_Type.Equals("LPXCaptureBead")) 1341 { 1342 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Capture_Beads.pdf"; 1343 } 1344 else if(MSDS_Type.Equals("LPXLyophStandard")) 1345 { 1346 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Lyo_Formula_B.pdf"; 1347 } 1348 else if(MSDS_Type.Equals("LPXLyophStandardSoloFormulationA")) 1349 { 1350 msdsLink = "/dwcountry/sdsoptions-4964"; 1351 } 1352 else if(MSDS_Type.Equals("LyophilizedAntibodieswithAzide")) 1353 { 1354 msdsLink = "/dwcountry/sdsoptions-4494"; 1355 } 1356 else if(MSDS_Type.Equals("RecProtein1")) 1357 { 1358 msdsLink = "/dwcountry/sdsoptions-4975"; 1359 } 1360 else if(MSDS_Type.Equals("RecProtein2")) 1361 { 1362 msdsLink = "/dwcountry/sdsoptions-4973"; 1363 } 1364 else if(MSDS_Type.Equals("RecProtein3")) 1365 { 1366 msdsLink = "/dwcountry/sdsoptions-4974"; 1367 } 1368 else if(MSDS_Type.Equals("RecProtein4")) 1369 { 1370 msdsLink = "/dwcountry/sdsoptions-4976"; 1371 } 1372 else if(MSDS_Type.Equals("RecProtein5")) 1373 { 1374 msdsLink = "/dwcountry/sdsoptions-4972"; 1375 } 1376 else if(MSDS_Type.Equals("ELISAKIT1")) 1377 { 1378 msdsLink = "/dwcountry/sdsoptions-4978"; 1379 } 1380 else if(MSDS_Type.Equals("ELISAKIT2")) 1381 { 1382 msdsLink = "/dwcountry/sdsoptions-4979"; 1383 } 1384 else if(MSDS_Type.Equals("ELISAKIT3")) 1385 { 1386 msdsLink = "/dwcountry/sdsoptions-4981"; 1387 } 1388 else if(MSDS_Type.Equals("ELISAKIT5")) 1389 { 1390 msdsLink = "/dwcountry/sdsoptions-4987"; 1391 } 1392 else if(MSDS_Type.Equals("ELISAKIT7")) 1393 { 1394 msdsLink = "/dwcountry/sdsoptions-4986"; 1395 } 1396 else if(MSDS_Type.Equals("ELISAKIT8")) 1397 { 1398 msdsLink = "/dwcountry/sdsoptions-4982"; 1399 } 1400 else if(MSDS_Type.Equals("ELISAKIT9")) 1401 { 1402 msdsLink = "/dwcountry/sdsoptions-4984"; 1403 } 1404 else if(MSDS_Type.Equals("ELISAKIT10")) 1405 { 1406 msdsLink = "/dwcountry/sdsoptions-4983"; 1407 } 1408 else if(MSDS_Type.Equals("ELISAKIT11")) 1409 { 1410 msdsLink = "/dwcountry/sdsoptions-4988"; 1411 } 1412 else if(MSDS_Type.Equals("ELISAKIT13")) 1413 { 1414 msdsLink = "/dwcountry/sdsoptions-4991"; 1415 } 1416 else if(MSDS_Type.Equals("RAPIDMAXKIT1")) 1417 { 1418 msdsLink = "/dwcountry/sdsoptions-4997"; 1419 } 1420 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_Options)) 1421 { 1422 msdsLink = "/dwcountry/sdsoptions-"+MSDS_Options; 1423 } 1424 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_File)) 1425 { 1426 msdsLink = MSDS_File; 1427 } 1428 else{ 1429 msdsLink = "/dwcountry/sdsoptions-22"; 1430 } 1431 1432 if(msdsLink.Contains("sds-options")) 1433 { 1434 <a href='@LocalizeLinksHTML(msdsLink)' target="_blank" title=""><i class="bl bl-dataIcon"></i>@translateAnchor</a> 1435 } 1436 else 1437 { 1438 <a href='javascript:openPopup("@LocalizeLinksHTML(msdsLink)","@translateAnchor")'><i class="bl bl-dataIcon"></i>@translateAnchor</a> 1439 } 1440 } 1441 1442 @helper RenderCustomField( string productFieldType, string customField, string translate, LoopItem productObj = null){ 1443 string productTag; 1444 if (productObj != null) 1445 { 1446 productTag = productObj.GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean"); 1447 } 1448 else 1449 { 1450 productTag = GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean"); 1451 } 1452 1453 if(!string.IsNullOrWhiteSpace(productTag)) 1454 { 1455 <dt class="col-xs-3 noPaddingLeft"> 1456 @translate 1457 </dt> 1458 <dd class="col-xs-9"> 1459 @productTag 1460 </dd> 1461 } 1462 } 1463 1464 @helper RenderABType( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null){ 1465 string productTag; 1466 if (productObj != null) 1467 { 1468 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value"); 1469 } 1470 else 1471 { 1472 productTag = GetString("Ecom:Product:Field." + productField + ".Value"); 1473 } 1474 1475 if(!string.IsNullOrWhiteSpace(productTag) && !productTag.Equals("N/A") ) 1476 { 1477 <dt class="col-xs-3 noPaddingLeft"> 1478 @translate 1479 </dt> 1480 <dd class="col-xs-9"> 1481 @productTag 1482 </dd> 1483 } 1484 } 1485 1486 @helper RenderProductField( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null, bool isCommaSeparatedList = false){ 1487 1488 var isPdf = Convert.ToBoolean(Dynamicweb.Context.Current.Request.Params["pdf"]); 1489 string appNotesID = ""; 1490 string productTag = ""; 1491 1492 1493 if (productObj != null) 1494 { 1495 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value"); 1496 } 1497 else 1498 { 1499 productTag = GetString("Ecom:Product:Field." + productField + ".Value"); 1500 } 1501 1502 if(isCommaSeparatedList){ 1503 1504 productTag = productTag.Replace(",",", "); 1505 1506 } 1507 1508 if(productField.Equals("Reactivity") && productFieldType.Equals("RecombinantProteins")){} 1509 else if(!string.IsNullOrWhiteSpace(productTag)) 1510 { 1511 <dt class="col-xs-3 noPaddingLeft"> 1512 @translate 1513 </dt> 1514 1515 <dd class="col-xs-9"> 1516 @if(productField.Equals("Usage") && !str_productRegulatoryStatus.Equals("ASR")){ 1517 @UsageProductExceptions(productTag, str_productFormat, catalogFirstLetter, productFieldType, str_productName, productID) 1518 } 1519 else if(productField.Equals("Disclaimer") && str_productRegulatoryStatus.Equals("ASR")){ 1520 string replace = ""; 1521 if(str_productFormat.Equals("PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL")) 1522 { 1523 var termsLink = "/dwcountry/terms"; 1524 replace = "<br />Alexa Fluor&reg; and Pacific Blue&trade; are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 1525 productTag += replace; 1526 } 1527 1528 if (isPdf) 1529 { 1530 @(productTag) 1531 } 1532 else 1533 { 1534 @LocalizeLinksHTML(productTag) 1535 } 1536 } 1537 else 1538 { 1539 if (isPdf) 1540 { 1541 @(productTag) 1542 } 1543 else 1544 { 1545 @LocalizeLinksHTML(productTag) 1546 } 1547 } 1548 @AddShelfLifeException(productField,productID) 1549 @AddActivationBundleException(productField,productID) 1550 </dd> 1551 } 1552 } 1553 1554 @helper RenderLongDescription(string productField, string productID = "", bool isPdf = false) 1555 { 1556 string replace = ""; 1557 1558 if (productID.Equals("8309") || productID.Equals("14141")) 1559 { 1560 replace = "<br /><br /><a href=\"/legendscreen\" title=\"LEGENDScreen™ Antibody Panels\">Learn more about LEGENDScreen™ Antibody Panels and view plate maps.</a>"; 1561 productField += replace; 1562 } 1563 1564 if (isPdf) 1565 { 1566 @System.Web.HttpUtility.HtmlDecode(productField) 1567 } 1568 else 1569 { 1570 @System.Web.HttpUtility.HtmlDecode(LocalizeLinksHTML(productField)) 1571 } 1572 } 1573 1574 @helper RenderCustomConjugationButton( string catalogFirstTwoNumbers = "00", string catalogFirstThreeNumbers = "000", string formRequestConjugation = ""){ 1575 if(catalogFirstTwoNumbers == "42" || catalogFirstTwoNumbers == "43" || catalogFirstTwoNumbers == "44" || catalogFirstTwoNumbers == "48" || catalogFirstTwoNumbers == "55" || catalogFirstTwoNumbers == "56" || catalogFirstTwoNumbers == "57" || catalogFirstTwoNumbers == "58" || catalogFirstTwoNumbers == "59" || catalogFirstTwoNumbers == "70" || catalogFirstTwoNumbers == "71" || catalogFirstTwoNumbers == "74" || catalogFirstTwoNumbers == "75" || catalogFirstTwoNumbers == "76" || catalogFirstThreeNumbers == "401" || catalogFirstThreeNumbers == "402" || catalogFirstThreeNumbers == "403" || catalogFirstThreeNumbers == "404" || catalogFirstThreeNumbers == "842" || catalogFirstThreeNumbers == "843" ) 1576 {} 1577 else{ 1578 <a class="btn btn-default" href="/Default.aspx?ID=@formRequestConjugation"> 1579 @Translate("requestCustomConjugation","Request Custom Conjugation") 1580 </a> 1581 } 1582 } 1583 1584 @helper UsageProductExceptions(string productField, string str_productFormat, string catalogFirstLetter = "0", string productFieldType = "", string str_productName = "", string productID = "") 1585 { 1586 string str = "Each lot of this antibody is quality control tested by immunofluorescent staining with flow cytometric analysis"; 1587 string replace = ""; 1588 1589 if ( productField.Contains(str)) 1590 { 1591 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescent staining with flow cytometric analysis&lt;/a&gt;"); 1592 } 1593 1594 str = "Each lot of these antibodies is quality control tested by immunofluorescent staining with flow cytometric analysis"; 1595 if ( productField.Contains(str)) 1596 { 1597 productField = productField.Replace(str,"Each lot of these antibodies is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescent staining with flow cytometric analysis&lt;/a&gt;"); 1598 } 1599 1600 str = "Each lot of this antibody is quality control tested by cell surface immunofluorescent staining with flow cytometric analysis as negative control."; 1601 if ( productField.Contains(str)) 1602 { 1603 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\"&gt;cell surface immunofluorescent staining&lt;/a&gt; with flow cytometric analysis as negative control."); 1604 } 1605 1606 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis as negative control."; 1607 if ( productField.Contains(str)) 1608 { 1609 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\"&gt;intracellular immunofluorescence staining&lt;/a&gt; with flow cytometric analysis as negative control."); 1610 } 1611 1612 str = "Each lot of this antibody is quality control tested by Western blotting."; 1613 if ( productField.Contains(str)) 1614 { 1615 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/western-blotting-protocol/4269/\" target=\"_blank\" title=\"View Protocol\"&gt;Western blotting&lt;/a&gt;."); 1616 } 1617 1618 str = "Each lot of this antibody is quality control tested by ELISA assay."; 1619 if ( productField.Contains(str)) 1620 { 1621 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\"&gt;ELISA assay&lt;/a&gt;."); 1622 } 1623 1624 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis."; 1625 if ( productField.Contains(str)) 1626 { 1627 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\"&gt;intracellular immunofluorescent staining with flow cytometric analysis&lt;/a&gt;."); 1628 } 1629 1630 str = "Each lot of this protein is quality control tested by ELISA assay."; 1631 if ( productField.Contains(str)) 1632 { 1633 productField = productField.Replace(str,"Each lot of this protein is quality control tested by &lt;a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\"&gt;ELISA assay&lt;/a&gt;."); 1634 } 1635 1636 str = "Each lot of this antibody is quality control tested by Immunofluorescence staining."; 1637 if ( productField.Contains(str)) 1638 { 1639 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by &lt;a href=\"/protocols/immunofluorescence-microscopy-protocol/4275/\" target=\"_blank\" title=\"View Protocol\"&gt;immunofluorescence staining&lt;/a&gt;."); 1640 } 1641 1642 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Cell Suspensions Protocol."; 1643 if ( productField.Contains(str)) 1644 { 1645 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our &lt;a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-cell-suspensions-protocol/4262/\" target=\"_blank\" title=\"View Protocol\"&gt;True-Phos&trade; Perm Buffer in Cell Suspensions Protocol&lt;/a&gt;."); 1646 } 1647 1648 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Whole Blood Protocol."; 1649 if ( productField.Contains(str)) 1650 { 1651 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our &lt;a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-whole-blood/4261/\" target=\"_blank\" title=\"View Protocol\"&gt;True-Phos&trade; Perm Buffer in Whole Blood Protocol&lt;/a&gt;."); 1652 } 1653 1654 1655 if(str_productFormat.Equals("PB") || str_productFormat.Equals("GMP_PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL") || str_productFormat.Equals("GMP_A488") || str_productFormat.Equals("GMP_A647") || str_productFormat.Equals("GMP_A700")) 1656 { 1657 var termsLink = "/dwcountry/terms"; 1658 replace = "<br />Alexa Fluor&reg; and Pacific Blue&trade; are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 1659 productField += replace; 1660 } 1661 1662 if (productID == "9340") 1663 { 1664 replace = "<br />This product is provided under an intellectual property license from Life Technologies Corporation.<br /><br /><a href=\"/Files/Images/media_assets/support_resource/Limited_Use_Label_License_For_Licensee_Products_Sold_in_the_Research_Field.pdf\" target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>"; 1665 productField += replace; 1666 } 1667 1668 str = "* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and 564 nm and a maximum emission of 690 nm."; 1669 if ( productField.Contains(str)) 1670 { 1671 productField = productField.Replace(str,"* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and a maximum emission of 690 nm."); 1672 } 1673 1674 str = "* PerCP has a maximum absorption of 482 nm and 564 nm and a maximum emission of 675 nm."; 1675 if ( productField.Contains(str)) 1676 { 1677 productField = productField.Replace(str,"* PerCP has a maximum absorption of 482 nm and a maximum emission of 675 nm."); 1678 } 1679 1680 if ( str_productFormat.Equals("KB520")) 1681 { 1682 replace = "<br />KIRAVIA Blue&trade; 520 is a trademark of Sony. This product is subject to proprietary rights of Sony and is made and sold under license from Sony Corporation. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents.<br /><br />Sony and the Sony logo are registered trademarks of Sony Corporation."; 1683 productField += replace; 1684 } 1685 1686 if ( str_productFormat.Equals("APC_F810")) 1687 { 1688 var fireLink = "/dwcountry/fire-dyes"; 1689 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect APC/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page."; 1690 productField += replace; 1691 } 1692 1693 if ( str_productFormat.Equals("PE_F810")) 1694 { 1695 var fireLink = "/dwcountry/fire-dyes"; 1696 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect PE/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page."; 1697 productField += replace; 1698 } 1699 1700 if ( str_productName.Contains("Brilliant")) 1701 { 1702 var bvLink = "/dwcountry/brilliant-violet"; 1703 replace = "<br /><a href=\""+@LocalizeLinksHTML(bvLink)+"\" title=\"Brilliant Violet&trade;\">Learn more about Brilliant Violet&trade;</a>. <br /><br />This product is subject to proprietary rights of Sirigen Inc. and is made and sold under license from Sirigen Inc. The purchase of this product conveys to the buyer a non-transferable right to use the purchased product for research purposes only. This product may not be resold or incorporated in any manner into another product for resale. Any use for therapeutics or diagnostics is strictly prohibited. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents."; 1704 productField += replace; 1705 } 1706 1707 if ( str_productName.Contains("TotalSeq")) 1708 { 1709 replace = "<br />Buyer is solely responsible for determining whether Buyer has all intellectual property rights that are necessary for Buyer&apos;s intended uses of the BioLegend TotalSeq&trade; products. For example, for any technology platform Buyer uses with TotalSeq&trade;, it is Buyer&apos;s sole responsibility to determine whether it has all necessary third party intellectual property rights to use that platform and TotalSeq&trade; with that platform."; 1710 productField += replace; 1711 } 1712 1713 @System.Web.HttpUtility.HtmlDecode(productField) 1714 } 1715 1716 @helper AddActivationBundleException(string productField, string productID = "") 1717 { 1718 if(productField.Equals("Usage") && !string.IsNullOrWhiteSpace(productID)) 1719 { 1720 Dictionary<string, string> lstNumbers = new Dictionary<string, string>(); 1721 lstNumbers.Add("24","24"); 1722 lstNumbers.Add("114","114"); 1723 lstNumbers.Add("4526","4526"); 1724 lstNumbers.Add("6479","6479"); 1725 lstNumbers.Add("892","892"); 1726 lstNumbers.Add("7236","7236"); 1727 lstNumbers.Add("5833","5833"); 1728 lstNumbers.Add("996","996"); 1729 lstNumbers.Add("5469","5469"); 1730 lstNumbers.Add("6959","6959"); 1731 1732 if(lstNumbers.ContainsKey(productID)) 1733 { 1734 <text> 1735 <br/> 1736 </text> 1737 @Translate("ActivationBundle","This product is included in our Activation Bundles. <a href=\"/activation_bundles\" title=\"Activation Bundles\">Learn more...</a>") 1738 } 1739 1740 } 1741 } 1742 1743 @helper CalculateFooterDisclaimer(string footerDisclaimer, string regulatoryStatus, string format) 1744 { 1745 1746 var licenceLink = LocalizeLinksHTML("/dwcountry/ordering#license"); 1747 var termsLink = LocalizeLinksHTML("/dwcountry/terms"); 1748 1749 var customFooterDisclaimer = footerDisclaimer + "<p>&nbsp;</p>"; 1750 1751 var ASRDisclaimer = "<p>Analyte Specific Reagent. Analytical and performance characteristic are not established.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 1752 1753 var IVDDisclaimer = "<p>For In Vitro Diagnostic Use. Not for therapeutic use.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 1754 1755 var GMPRUODisclaimer = "<p>For Research Use Only. Suitable for <em>ex vivo</em> cell processing. Not for injection or diagnostic or therapeutic use. </p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a> (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products. </p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 1756 1757 var RUODisclaimer = "<p>For Research Use Only. Not for diagnostic or therapeutic use.</p><p>&nbsp;</p><p>This product is supplied subject to the terms and conditions, including the limited license, located at <a href=\"/dwcountry/terms\">www.biolegend.com/terms</a>) (\"Terms\") and may be used only as provided in the Terms. Without limiting the foregoing, BioLegend products may not be used for any Commercial Purpose as defined in the Terms, resold in any form, used in manufacturing, or reverse engineered, sequenced, or otherwise studied or used to learn its design or composition without express written approval of BioLegend. Regardless of the information given in this document, user is solely responsible for determining any license requirements necessary for user’s intended use and assumes all risk and liability arising from use of the product. BioLegend is not responsible for patent infringement or any other risks or liabilities whatsoever resulting from the use of its products.</p><p>&nbsp;</p><p>BioLegend, the BioLegend logo, and all other trademarks are property of BioLegend, Inc. or their respective owners, and all rights are reserved.</p><p>&nbsp;</p>"; 1758 1759 if ( !String.IsNullOrEmpty(footerDisclaimer) && footerDisclaimer != "" ) 1760 { 1761 @customFooterDisclaimer 1762 } 1763 else if( regulatoryStatus.Equals("ASR") ) 1764 { 1765 @LocalizeLinksHTML(ASRDisclaimer) 1766 } 1767 else if( regulatoryStatus.Equals("IVD") ){ 1768 @LocalizeLinksHTML(IVDDisclaimer) 1769 } 1770 else if ( regulatoryStatus.Equals("GMP-RUO") ) 1771 { 1772 @LocalizeLinksHTML(GMPRUODisclaimer) 1773 } 1774 else{ 1775 @LocalizeLinksHTML(RUODisclaimer) 1776 } 1777 } 1778 1779 @helper CalculateCloneString(string clone, string otherFormats, bool asrCheck, string searchID, bool isPdf = false) 1780 { 1781 if (!string.IsNullOrEmpty(clone)) 1782 { 1783 <text> 1784 <dt class="col-xs-4 col-sm-3 noPaddingLeft"> 1785 @GetString("Ecom:Product:Field.Clone.Name") 1786 </dt> 1787 </text> 1788 if (asrCheck) 1789 { 1790 <dd>@clone</dd> 1791 } 1792 else 1793 { 1794 if (clone.Contains(";")) 1795 { 1796 if (isPdf) 1797 { 1798 <dd>@clone</dd> 1799 } 1800 else{ 1801 string[] clones = (clone).Replace(" ", "").Split(';'); 1802 <dd> 1803 @foreach (var x in clones) 1804 { 1805 string cloneHTML = System.Web.HttpUtility.HtmlDecode(x); 1806 string cloneTag = "; "; 1807 if (!isPdf) 1808 { 1809 <a href="/Default.aspx?ID=@searchID&amp;Clone=@cloneHTML">@x</a>@cloneTag 1810 } 1811 1812 } 1813 </dd> 1814 } 1815 } 1816 else 1817 { 1818 if (isPdf) 1819 { 1820 <dd>@clone</dd> 1821 } 1822 else 1823 { 1824 <dd><a href="/Default.aspx?ID=@searchID&amp;Clone=@(System.Web.HttpUtility.HtmlDecode(clone))">@clone</a> (<a href="@otherFormats">@Translate("SeeOtherAvailableFormats", "See other available formats")</a>)</dd> 1825 } 1826 } 1827 } 1828 } 1829 } 1830 1831 @helper AddShelfLifeException(string productField, string productID = "") 1832 { 1833 if(productField.Equals("Storage") && !string.IsNullOrWhiteSpace(productID)) 1834 { 1835 Dictionary<string, string> lstNumbersUse = new Dictionary<string, string>(); 1836 lstNumbersUse.Add("1395","1395"); 1837 lstNumbersUse.Add("1396","1396"); 1838 lstNumbersUse.Add("1474","1474"); 1839 lstNumbersUse.Add("2264","2264"); 1840 lstNumbersUse.Add("2507","2507"); 1841 1842 Dictionary<string, string> lstNumbers = new Dictionary<string, string>(); 1843 lstNumbers.Add("2508","2508"); 1844 lstNumbers.Add("2915","2915"); 1845 lstNumbers.Add("2939","2939"); 1846 lstNumbers.Add("2988","2988"); 1847 lstNumbers.Add("2989","2989"); 1848 lstNumbers.Add("3071","3071"); 1849 lstNumbers.Add("3177","3177"); 1850 lstNumbers.Add("3180","3180"); 1851 lstNumbers.Add("3194","3194"); 1852 lstNumbers.Add("3195","3195"); 1853 lstNumbers.Add("3843","3843"); 1854 lstNumbers.Add("4347","4347"); 1855 lstNumbers.Add("4664","4664"); 1856 lstNumbers.Add("5654","5654"); 1857 lstNumbers.Add("5660","5660"); 1858 lstNumbers.Add("6373","6373"); 1859 lstNumbers.Add("6398","6398"); 1860 lstNumbers.Add("6646","6646"); 1861 lstNumbers.Add("8053","8053"); 1862 lstNumbers.Add("8135","8135"); 1863 lstNumbers.Add("9539","9539"); 1864 1865 if(lstNumbersUse.ContainsKey(productID)) 1866 { 1867 <text> 1868 <br/> 1869 <br/> 1870 </text> 1871 @Translate("LookUpConcentrationLookUpStorage","This product has a shelf-life of 12 months or less. Please use our <a href=\"/concentrationlookup\" target=\"_blank\">Expiration Lookup Tool</a> to verify the expiration date of your lot of product") 1872 }else if(lstNumbers.ContainsKey(productID)) 1873 { 1874 <text> 1875 <br/> 1876 <br/> 1877 </text> 1878 @Translate("LookUpConcentrationLookUpStorageContact","This product has a shelf-life of 12 months or less. Please contact our <a href=\"/contact_technical_service\" target=\"_blank\">technical support</a> team for lot specific CoA and expiration date inquiries of this product.") 1879 } 1880 1881 } 1882 } 1883 1884 @helper RenderTDS(bool htmlStructType, string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string appAbbreviation = "", string pdfUrl = "", string productUpdated = "") 1885 { 1886 TDS techinicalDataSheet = new TDS(dataSheetFile, dataSheet, printPage, productType, productID, productName, regulatoryStatus, techSupportPage, translateTechnicalSupport, Translate("ViewCurrentManual", "View Current Manual (pdf)"), Translate("InstructionsForUseA", "Instructions for Use - English (PDF)"), Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), Translate("InstrumentSoftwareManual", "Instrument and Software Manual"), appAbbreviation, pdfUrl); 1887 1888 var cdnPdfDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("DynamicallyCreated_PDFFiles", "DynamicallyCreated_PDF_Files_Domain"); //CUSTOM CODE 1889 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); // CUSTOM CODE 1890 var pdfCdn = techinicalDataSheet.link.EndsWith(".pdf") ? cdnStaticDomain : cdnPdfDomain; 1891 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated; 1892 1893 if (htmlStructType) 1894 { 1895 // Is for the product link 1896 <a @techinicalDataSheet.target data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@pdfCdn@techinicalDataSheet.link@version" class="btn btn-default techincalDataSheet"> 1897 <i class="fa fa-file-pdf-o"></i> @techinicalDataSheet.text 1898 </a> 1899 } 1900 else 1901 { 1902 // Is for the product navigation 1903 <a @techinicalDataSheet.target data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@pdfCdn@techinicalDataSheet.link@version"> 1904 <i class="fa fa-file-pdf-o"></i>@techinicalDataSheet.text 1905 </a> 1906 } 1907 } 1908 1909 1910 1911 @helper RenderTDSForPreview(bool htmlStructType, string dataSheetFile, string dataSheet, string productID = "", string productName = "", string regulatoryStatus = "", string pdfUrl = "", string productUpdated = "") 1912 { 1913 previewTDS techinicalDataSheet = new previewTDS(productID, productName, Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), pdfUrl); 1914 1915 //NOTE - Customer requested for Cdn not to be applied here 1916 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated; 1917 1918 if (htmlStructType) 1919 { 1920 // Is for the product link 1921 <a target="_blank" data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@techinicalDataSheet.link@version" class="btn btn-default techincalDataSheet"> 1922 <i class="fa fa-file-pdf-o"></i> @techinicalDataSheet.text 1923 </a> 1924 } 1925 else 1926 { 1927 // Is for the product navigation 1928 <a target="_blank" data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@techinicalDataSheet.link@version"> 1929 <i class="fa fa-file-pdf-o"></i>@techinicalDataSheet.text 1930 </a> 1931 } 1932 } 1933 1934 @helper RenderInternationalGMPQualityStatement(string country = "", string regStatus = "", string format = "") 1935 { 1936 bool b = false; 1937 if ( format.Equals("GMP_APC") || format.Equals("GMP_APC_F750") || format.Equals("GMP_FITC") || format.Equals("GMP_PB") || format.Equals("GMP_PE") || format.Equals("GMP_PE_CYANINE5") || format.Equals("GMP_PE_CYANINE7") || format.Equals("GMP_PE_DZL594") || format.Equals("GMP_PERCP") || format.Equals("GMP_PERCP_CYANINE5.5") || format.Equals("GMP_A488") || format.Equals("GMP_A647") || format.Equals("GMP_A700") || format.Equals("GMP_APC_CYANINE7") || format.Equals("GMP_SPKVL_423") || format.Equals("GMP_SPKVL_538") ){ 1938 b = true; 1939 } 1940 if(!country.Equals("en-US") && !country.Equals("ja-JP") && regStatus.Equals("GMP-RUO") && b){ 1941 <div class="introDescription col-xs-12 noPaddingLeft"> 1942 <span class="title">Quality Statement</span> 1943 This BioLegend’s GMP-RUO reagent is a fluorochrome-labeled monoclonal antibody single reagent for Research Use Only. Suitable for use in laboratory-developed multicolor flow cytometry tests. Single GMP-RUO products can be used in various multicolor flow cytometry combinations. Laboratory need to establish the GMP-RUO performance characteristics in combination with other reagents in normal and pathological samples. 1944 </div> 1945 } 1946 1947 1948 } 1949 1950 @functions { 1951 1952 public static string StripSpecialCharacters(string input) 1953 { 1954 return System.Text.RegularExpressions.Regex.Replace(input, "[^0-9a-zA-Z -]+", ""); 1955 } 1956 1957 public class TDS 1958 { 1959 public TDS() 1960 { 1961 1962 } 1963 1964 public string link { get; set; } 1965 public string text { get; set; } 1966 public string target { get; set; } 1967 1968 public TDS(string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string viewCurrentManual = "", string instructionsForUse = "", string technicalDataSheet = "", string instrumentSoftwareManual = "", string appAbbreviation = "", string pdfUrl = "") 1969 { 1970 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 1971 var translate = ""; 1972 var block = ""; 1973 var urlTarget = "target=\"_blank\""; 1974 1975 var p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productID, "", true); 1976 1977 if (!string.IsNullOrWhiteSpace(dataSheet) && !dataSheet.Equals("Standard") && !dataSheet.Equals("Recombinant")) 1978 { 1979 linkPrint = dataSheetFile; 1980 block = "1"; 1981 } 1982 1983 if (productType.Equals("ELISA") || productID.Equals("10801")) 1984 { 1985 linkPrint = dataSheetFile; 1986 block = "2"; 1987 } 1988 1989 if (productType.Equals("LEGENDplex") && !productName.Contains("Buffer") && !productName.Contains("Carboxyl") && !productName.Contains("SA-PE") && !productID.Equals("12677") && !productID.Equals("12678") && appAbbreviation.Contains("Multiplex - Panel")) 1990 { 1991 linkPrint = dataSheetFile; 1992 translate = viewCurrentManual; 1993 block = "3"; 1994 } 1995 else if (regulatoryStatus.Equals("IVD")) 1996 { 1997 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet)) 1998 { 1999 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage); 2000 urlTarget = string.Empty; 2001 block = "4"; 2002 } 2003 else 2004 { 2005 linkPrint = dataSheetFile; 2006 block = "5"; 2007 } 2008 2009 translate = instructionsForUse; 2010 block = "6"; 2011 } 2012 //ASR PDF Datasheet Override 2013 else if (regulatoryStatus.Equals("ASR")) 2014 { 2015 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet)) 2016 { 2017 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage); 2018 urlTarget = string.Empty; 2019 block = "7"; 2020 } 2021 else 2022 { 2023 linkPrint = dataSheetFile; 2024 block = "8"; 2025 } 2026 2027 translate = technicalDataSheet; 2028 block = "9"; 2029 } 2030 else if (!string.IsNullOrWhiteSpace(dataSheetFile)) 2031 { 2032 linkPrint = dataSheetFile; 2033 translate = technicalDataSheet; 2034 block = "10"; 2035 } 2036 else 2037 { 2038 linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 2039 translate = technicalDataSheet; 2040 block = "11"; 2041 } 2042 2043 link = linkPrint; 2044 text = translate; 2045 target = urlTarget; 2046 } 2047 } 2048 2049 public class previewTDS 2050 { 2051 public previewTDS() 2052 { 2053 2054 } 2055 2056 public string link { get; set; } 2057 public string text { get; set; } 2058 2059 public previewTDS(string productID = "", string productName = "", string technicalDataSheet = "", string pdfUrl = "") 2060 { 2061 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf"; 2062 var translate = technicalDataSheet; 2063 2064 link = linkPrint; 2065 text = translate; 2066 } 2067 } 2068 2069 } 2070 2071 @functions{ 2072 public static string GetImage(string str_source, int num_width, int num_height, int num_widthTablet = 0, int num_heightTablet = 0, int num_widthMobile = 0, int num_heightMobile = 0, string str_format = "jpg", int num_compression = 75, int num_crop = 5) 2073 { 2074 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current(); 2075 string str_currDevice = obj_currentPageview.Device.ToString(); 2076 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg"; 2077 2078 string str_width = ""; 2079 string str_height = ""; 2080 int num_getImageWidth = num_width != 0 ? num_width : 0; 2081 int num_getImageHeight = num_height != 0 ? num_height : 0; 2082 string str_getImageFormat = str_format != "jpg" ? "&amp;Format=" + str_format : ""; 2083 string str_getImageCompression = num_compression != 75 ? "&amp;Compression=" + num_compression : ""; 2084 2085 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE 2086 2087 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString()) 2088 { 2089 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth; 2090 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight; 2091 } 2092 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString()) 2093 { 2094 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth; 2095 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight; 2096 } 2097 2098 if (num_getImageWidth != 0) 2099 { 2100 str_width = "&amp;Width=" + num_getImageWidth; 2101 } 2102 if (num_getImageHeight != 0) 2103 { 2104 str_height = "&amp;Height=" + num_getImageHeight; 2105 } 2106 2107 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&amp;altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&amp;Crop=" + num_crop; 2108 return str_output; 2109 } 2110 } 2111 2112 @* Http Request params for deciding if it is preview*@ 2113 var str_requestPreview = System.Web.HttpContext.Current.Request.Params["preview"] ?? ""; 2114 2115 var itemArea = Pageview.Area.Item; 2116 2117 //START CUSTOM CODE 2118 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); 2119 var cdnJsCssDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("CSS_JS", "CSS_JS_Domain"); 2120 //END CUSTOM CODE 2121 2122 var productStatus = GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean"); 2123 if (productStatus.Equals(1) && str_requestPreview!= "true") 2124 { 2125 @itemArea["ProductDiscontinued"].ToString() 2126 } 2127 else 2128 { 2129 /* Workaround due a DW bug */ 2130 var applicationsData = GetFilterData("BLFD_1"); 2131 /* END Workaround */ 2132 @* page item values *@ 2133 var addToCartFormAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + (itemArea["AddToCart"] ?? Pageview.Page.ID).ToString()); 2134 var searchPageID = itemArea["SearchResults"].ToString(); 2135 var formRequestConjugation = itemArea["FormRequestConjugation"].ToString(); 2136 var printPage = itemArea["PrintPage"].ToString(); 2137 var coaPage = itemArea["CertificateAnalysisPage"].ToString(); 2138 var coaRedirect = itemArea["CertificateAnalysisRedirect"].ToString(); 2139 var techSupportPageID = itemArea["FormTechSupport"].ToString(); 2140 var productListJson = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(itemArea["ProductListJson"].ToString()); 2141 var requestBulk = itemArea["RequestBulk"].ToString(); 2142 var cartDisabled = Convert.ToBoolean(itemArea["DisableAddToCart"].ToString()); 2143 var orderContext = itemArea["OrderContext"] != null ? itemArea["OrderContext"].ToString() : ""; 2144 var isWebserviceAvailable = TemplatesHelper.IsWebServiceConnectionAvailable(); 2145 2146 var navEnvironment = itemArea["NavEnvironment"] != null ? itemArea["NavEnvironment"].ToString() : ""; 2147 2148 var userAvailableStartMsg = Translate("userAvailableStartMsg", "The entered quantity of"); 2149 var userOrdersMoreThanAvailable = Translate("userOrdersMoreThanAvailable", "is unavailable. Replenishment is currently underway. You will be notified by BioLegend’s Customer Service of the ETA if we are unable to deliver the full quantity."); 2150 var userOrdersLessThanAvailable = Translate("userOrdersLessThanAvailable", "is available and will be scheduled for shipment ASAP."); 2151 2152 @* Http Request params *@ 2153 var str_requestConc = System.Web.HttpContext.Current.Request.Params["concExpLookup"] ?? ""; 2154 var str_requestLotNumber = System.Web.HttpContext.Current.Request.Params["lotNumber"] ?? ""; 2155 2156 @* Page and user info *@ 2157 var str_currentPageId = Pageview.Page.ID.ToString(); 2158 var bol_isLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 2159 var bol_isFrontEnd = Dynamicweb.Environment.ExecutingContext.IsFrontEnd(); 2160 2161 var siteCurrency = Dynamicweb.Frontend.PageView.Current().Area.EcomCurrencyId; 2162 var userCurrency = bol_userLogged ? Dynamicweb.Security.UserManagement.User.GetCurrentUser().Currency : siteCurrency; 2163 2164 var RRIDLists = new Dictionary<string, string>(); 2165 2166 @* Standard product info *@ 2167 var str_variantDefaultId = GetString("Ecom:Product.DefaultVariantComboID"); 2168 var str_variantCurrentId = GetString("Ecom:Product.VariantID"); 2169 var str_variantId = (!String.IsNullOrEmpty(str_variantCurrentId)) ? str_variantCurrentId : str_variantDefaultId; 2170 var str_variantParam = (!String.IsNullOrEmpty(str_variantId)) ? "&amp;variantid=" + str_variantId : ""; 2171 2172 var str_productId = GetString("Ecom:Product.ID"); 2173 var str_productLanguage = GetString("Ecom:Product.LanguageID"); 2174 var str_productName = GetString("Ecom:Product.Name"); 2175 var str_productIntro = GetString("Ecom:Product.ShortDescription"); 2176 var str_productDescription = GetString("Ecom:Product.LongDescription"); 2177 var str_productPrice = GetString("Ecom:Product.Price"); 2178 var str_productOtherNames = GetString("Ecom:Product:Field.OtherNames.Value"); 2179 var str_productDataSheet = GetString("Ecom:Product:Field.Datasheet.Value.Clean"); 2180 var str_productDataSheetFile = GetString("Ecom:Product:Field.DatasheetFile.Clean"); 2181 var str_productMSDSType = GetString("Ecom:Product:Field.MSDSType.Value"); 2182 var str_productMSDSCFile = GetString("Ecom:Product:Field.MSDSFile.Clean"); 2183 var str_productMSDSOptions = GetString("Ecom:Product:Field.MSDSOptions.Value"); 2184 var str_groupPrimary = GetString("Ecom:Product.PrimaryOrFirstGroupID"); 2185 var str_productImage = GetString("Ecom:Product.ImageSmall.Clean"); 2186 var str_productImageMedium = GetString("Ecom:Product.ImageMedium.Clean"); 2187 var str_productImageLarge = GetString("Ecom:Product.ImageLarge.Clean"); 2188 var str_productImage4 = GetString("Ecom:Product:Field.Image4Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 2189 var str_productGetImage = str_productImage; //GetImage(str_productImage, 180, 0, 180, 0, 180, 0,"jpg",90,5); 2190 var str_productGetImageMedium = str_productImageMedium; // GetImage(str_productImageMedium, 180, 0, 180, 0, 180, 0,"jpg",90,5); 2191 var str_productGetImageLarge = str_productImageLarge; // GetImage(str_productImageLarge, 180, 0, 180, 0, 180, 0,"jpg",90,5); 2192 var str_productGetImage4 = str_productImage4; //GetImage(str_productImage4, 180, 0, 180, 0, 180, 0,"jpg",90,5); 2193 var str_image1Description = GetString("Ecom:Product:Field.Image1Description.Value"); 2194 var str_image2Description = GetString("Ecom:Product:Field.Image2Description.Value"); 2195 var str_image3Description = GetString("Ecom:Product:Field.Image3Description.Value"); 2196 var str_image4Description = GetString("Ecom:Product:Field.Image4Description.Value"); 2197 var str_image1Title = GetString("Ecom:Product:Field.Image1Title.Value"); 2198 var str_image2Title = GetString("Ecom:Product:Field.Image2Title.Value"); 2199 var str_image3Title = GetString("Ecom:Product:Field.Image3Title.Value"); 2200 var str_image4Title = GetString("Ecom:Product:Field.Image4Title.Value"); 2201 var lst_images = new List<Tuple<string, string, string>>(); 2202 2203 var str_productImage5 = GetString("Ecom:Product:Field.Image5Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 2204 var str_productGetImage5 = str_productImage5; 2205 var str_image5Description = GetString("Ecom:Product:Field.Image5Description.Value"); 2206 var str_image5Title = GetString("Ecom:Product:Field.Image5Title.Value"); 2207 2208 var str_productImage6 = GetString("Ecom:Product:Field.Image6Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/"); 2209 var str_productGetImage6 = str_productImage6; 2210 var str_image6Description = GetString("Ecom:Product:Field.Image6Description.Value"); 2211 var str_image6Title = GetString("Ecom:Product:Field.Image6Title.Value"); 2212 2213 var str_starClass = ""; 2214 var str_halfStar = ""; 2215 2216 var productUpdated = GetDate("Ecom:Product.Updated").ToString("yyyyMMddhhmmss"); //CUSTOM CODE 2217 2218 @* Product Custom Fields *@ 2219 var productType = GetString("Ecom:Product:Field.CMProductType.Value"); 2220 var productSpecificity = GetString("Ecom:Product:Field.Specificity.Value"); 2221 var str_productFormat = GetString("Ecom:Product:Field.Format.Value"); 2222 var str_productLaser = GetString("Ecom:Product:Field.ExcitationLaser.Value"); 2223 var str_productRegulatoryStatus = GetString("Ecom:Product:Field.RegulatoryStatus.Value"); 2224 var str_productAppAbrv = GetString("Ecom:Product:Field.AppAbrv.Value"); 2225 var str_moreDataTitle = GetString("Ecom:Product:Field.MoreDataTitle.Value"); 2226 var str_moreData = GetString("Ecom:Product:Field.MoreData.Clean"); 2227 var excludeAB = GetBoolean("Ecom:Product:Field.ExcludeAB"); 2228 var productClone = Regex.Replace(GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim(); 2229 var geneList = GetString("Ecom:Product:Field.GeneID.Value").Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries); 2230 var str_biologyArea = GetString("Ecom:Product:Field.BiologyArea.Value"); 2231 var str_molecularFamily = GetString("Ecom:Product:Field.MolecularFamily.Value"); 2232 var str_cellType = GetString("Ecom:Product:Field.CellType.Value"); 2233 var productFieldType = ""; 2234 var longLang = (string) GetGlobalValue("Global:Area.LongLang"); 2235 var versionDate = GetDate("Ecom:Product:Field.VersionDate.Value.Clean"); 2236 var dateTimeVersionDate = DateTime.Now; 2237 var productIsUg = ""; 2238 var productIsUl = ""; 2239 var isASR = str_productRegulatoryStatus.Equals("ASR"); 2240 var isIVD = str_productRegulatoryStatus.Equals("IVD"); 2241 var isGMPRUO = str_productRegulatoryStatus.Equals("GMP-RUO"); 2242 var isGMPRUOException = ( str_productFormat.Equals("GMP_RECOM") || str_productFormat.Equals("SOLUTION") || str_productFormat.Equals("GMP_ULEAF") ); 2243 var isRUO = str_productRegulatoryStatus.Equals("RUO"); 2244 var str_ProductNameNormalized = GetString("Ecom:Product:Field.ProductNameNormalized.Value"); 2245 var str_TotalseqSequence = GetString("Ecom:Product:Field.TotalseqSequence.Value"); 2246 var str_IsotypeForFilter = GetString("Ecom:Product:Field.IsotypeFilter.Value"); 2247 var str_footerDisclaimer = GetString("Ecom:Product:Field.FooterDisclaimer.Value"); 2248 var str_qualityStatement = GetString("Ecom:Product:Field.QualityStatement.Value"); 2249 2250 if(versionDate != null) 2251 { 2252 dateTimeVersionDate = versionDate; 2253 } 2254 2255 /* Other Formats */ 2256 var otherFormatsProducts = Dynamicweb.Ecommerce.Products.Product.GetProductsBySql("SELECT * FROM ecomProducts WHERE Clone != '' AND Clone = '" + productClone + "' AND ProductActive = 'True' AND (ProductStatus = '0' OR ProductStatus = '2' OR ProductStatus = '3' OR ProductStatus = '4') AND ProductLanguageID = 'LANG1'").Where(prod => prod.Id != str_productId); 2257 2258 @* Product Loops *@ 2259 var loop_variantCombinations = GetLoop("VariantCombinations").Where(x => x.GetBoolean("Ecom:Product.IsActive")); 2260 var loopAssociatedGroups = GetLoop("AssociatedGroups"); 2261 var loopComments = GetLoop("Comments.Newfirst"); 2262 var loop_variantsWithDC = loop_variantCombinations.Where(x => x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(4)); 2263 2264 if (!string.IsNullOrEmpty(str_productImage)) 2265 { 2266 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description)); 2267 } 2268 if (!string.IsNullOrEmpty(str_productImageMedium)) 2269 { 2270 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description)); 2271 } 2272 if (!string.IsNullOrEmpty(str_productImageLarge)) 2273 { 2274 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description)); 2275 } 2276 if (!string.IsNullOrEmpty(str_productImage4)) 2277 { 2278 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description)); 2279 } 2280 if (!string.IsNullOrEmpty(str_productImage5)) 2281 { 2282 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description)); 2283 } 2284 if (!string.IsNullOrEmpty(str_productImage6)) 2285 { 2286 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description)); 2287 } 2288 2289 var productTypes = new Dictionary<string, string>(); 2290 productTypes.Add("AncillaryProducts", "Ancillary"); 2291 productTypes.Add("BuffersSolutionsChemicals", "Ancillary"); 2292 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies"); 2293 productTypes.Add("CellSeparation", "MojoSort"); 2294 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies"); 2295 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA"); 2296 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies"); 2297 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies"); 2298 productTypes.Add("IsotypeControls", "IsotypeControls"); 2299 productTypes.Add("LEGENDplex", "LEGENDplex"); 2300 productTypes.Add("LEGENDScreen", "LEGENDScreen"); 2301 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies"); 2302 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies"); 2303 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies"); 2304 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies"); 2305 productTypes.Add("RecombinantProteins", "Recombinant"); 2306 productTypes.Add("SecondaryReagents", "SecondaryReagents"); 2307 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies"); 2308 productTypes.Add("EnzymeAssays", "EnzymeAssays"); 2309 productTypes.Add("FlexT", "FlexT"); 2310 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes"); 2311 productTypes.Add("CellFunction", "CellFunction"); 2312 productTypes.Add("PorcineImmunologyAntibodies", "PrimaryAntibodies"); 2313 productTypes.Add("FlexiFluor", "PrimaryAntibodies"); 2314 2315 if (productTypes.ContainsKey(productType)) 2316 { 2317 productFieldType = productTypes[productType]; 2318 } 2319 2320 @* TODO - Try to get the subgrous from the parent group *@ 2321 var notShowCategories = new List<string>(); 2322 notShowCategories.Add("GROUP20"); 2323 notShowCategories.Add("GROUP21"); 2324 notShowCategories.Add("GROUP22"); 2325 notShowCategories.Add("GROUP23"); 2326 notShowCategories.Add("GROUP24"); 2327 notShowCategories.Add("GROUP25"); 2328 notShowCategories.Add("GROUP26"); 2329 notShowCategories.Add("GROUP27"); 2330 notShowCategories.Add("GROUP28"); 2331 notShowCategories.Add("GROUP29"); 2332 notShowCategories.Add("GROUP30"); 2333 notShowCategories.Add("GROUP31"); 2334 notShowCategories.Add("GROUP32"); 2335 notShowCategories.Add("GROUP33"); 2336 notShowCategories.Add("GROUP34"); 2337 notShowCategories.Add("GROUP35"); 2338 notShowCategories.Add("GROUP36"); 2339 notShowCategories.Add("GROUP37"); 2340 2341 @functions { 2342 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody) 2343 { 2344 string cleanName = prodName; 2345 if(prodType.Equals("PrimaryAntibodies") && !prodName.Contains(" Antibody") && !prodName.Contains("Buffer") && !prodName.Contains("Annexin") && !prodName.Contains("Solution") && !prodName.Contains("Diluent") && !prodName.Contains("Substrate Reagent") && !prodName.Contains("ecombinant") && !prodName.Contains("Panel") && !prodName.Contains("Elisa Max") && !prodName.Contains("Cocktail") && !prodName.Contains("Isotype Control") && !prodName.Contains("Avidin") && !prodName.Contains("Normal Serum Block") && !prodName.Contains("Detection Kit") && !prodName.Contains("Affinity") && !prodName.Contains("ELISA Kit") && !prodName.Contains("Phase-Flow") && !prodName.Contains("Treg Flow") && !prodFormat.Equals("Peptide") && (!excludeAntibody)){ 2346 cleanName += " Antibody"; 2347 } 2348 2349 if(prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)){ 2350 cleanName += " Antibody"; 2351 } 2352 2353 if(prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)){ 2354 cleanName += " Antibody"; 2355 } 2356 2357 return cleanName; 2358 } 2359 } 2360 //str_productName = CalculateProductName(str_productName,productFieldType,str_productFormat,excludeAB); 2361 str_productName = str_ProductNameNormalized; 2362 2363 2364 var productCatalogNumbers = loop_variantCombinations.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).Select(x => x.GetString("Ecom:Product.Number")); 2365 var catalogFirstLetter = "0"; 2366 var catalogSecondLetter = "0"; 2367 var catalogThirdLetter = "0"; 2368 var str_workshop = GetString("Ecom:Product.CategoryField." + productFieldType + ".Workshop.Value.Clean"); 2369 2370 if (productCatalogNumbers.Any()) 2371 { 2372 foreach (var xx in productCatalogNumbers) 2373 { 2374 catalogFirstLetter = xx.ToCharArray()[0].ToString(); 2375 catalogSecondLetter = xx.ToCharArray()[1].ToString(); 2376 catalogThirdLetter = xx.ToCharArray()[2].ToString(); 2377 } 2378 } 2379 2380 var catalogFirstTwoNumbers = catalogFirstLetter + catalogSecondLetter; 2381 var catalogFirstThreeNumbers = catalogFirstTwoNumbers + catalogThirdLetter; 2382 2383 @* ********************************* Get Previous Company info ********************************* *@ 2384 var previousCompany = new Dictionary<string,string>(); 2385 var previouslyConcatName = ""; 2386 2387 var catalogOldField = Regex.Split(GetString("Ecom:Product:Field.CatalogOld.Value.Clean"), "\r\n|\r|\n"); 2388 2389 foreach (var line in catalogOldField) 2390 { 2391 var lineSplit = line.Split('|'); 2392 2393 if(lineSplit.Count() == 2 ){ 2394 if(lineSplit[0] == "Covance") 2395 { 2396 previouslyConcatName = String.Format("{0} {1}", Translate("previouslyCovanceCatalog","Previously Covance catalog#"), lineSplit[1]); 2397 } 2398 previousCompany.Add(lineSplit[1],lineSplit[0]); 2399 } 2400 } 2401 2402 @* ********************************* Variant encoding ********************************* *@ 2403 var variantTypes = new Dictionary<string, string>(); 2404 variantTypes.Add("microg", " &micro;g"); 2405 variantTypes.Add("mug", " &mu;g"); 2406 variantTypes.Add("mul", " &mu;l"); 2407 variantTypes.Add("microl", " &micro;l"); 2408 variantTypes.Add("ug", " &mmicro;g"); 2409 2410 var readerPathwaysCount = 0; 2411 var countRelatedPages = 0; 2412 var countIVD2 = 0; 2413 2414 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 2415 { 2416 using (var countIVD = connection.CreateCommand()) 2417 { 2418 countIVD.CommandText = "SELECT Count(1) FROM ecomgroupproductrelation where GroupProductRelationGroupID = 'BLG14317' and GroupProductRelationProductID = ''+@productId+''"; 2419 countIVD.Parameters.Add(new System.Data.SqlClient.SqlParameter() 2420 { 2421 ParameterName = "productId", 2422 SqlDbType = System.Data.SqlDbType.NVarChar, 2423 Value = str_productId 2424 }); 2425 2426 countIVD2 = Convert.ToInt32(countIVD.ExecuteScalar()); 2427 } 2428 } 2429 2430 var isMixMatch = (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Buffer Set")))); 2431 var isCustomFlexT = (str_productName.Contains("Flex-T") && str_productName.Contains("Custom")); 2432 2433 var repositoryPageID = itemArea["RepositoryPageId"] != null ? Convert.ToInt32(itemArea["RepositoryPageId"].ToString()) : 0; 2434 var applicationReferences = RenderItemList(new 2435 { 2436 ItemType = "Publications", 2437 ListSourceType = "NamedList", 2438 TargetNamedList = "Publications", 2439 NamedListPageID = repositoryPageID, 2440 ItemFieldsList = "*", 2441 ListTemplate = "eCom/Product/Includes/productRelatedPublications.cshtml", 2442 ListPageSize = 1000, 2443 // IncludeAllChildItems = true, 2444 Filter = "WebID contains 'p_" + str_productId + ",' or WebID contains 'p_" + str_productId + ":' or WebID ends with 'p_" + str_productId + "'" 2445 }).ToString(); 2446 2447 2448 if (str_currentPageId == @printPage || str_currentPageId == coaPage) 2449 { 2450 @SnippetStart("forcePrint") 2451 <link rel="stylesheet" type="text/css" href="@cdnJsCssDomain/Files/Templates/Designs/BioLegend/css/exceptions/print.css"/> 2452 <style> 2453 .container { max-width: 700px !important; } 2454 </style> 2455 @SnippetEnd("forcePrint") 2456 } 2457 2458 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionDate.Value.Clean")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionNumber.Value.Clean"))) 2459 { 2460 @SnippetStart("forcePrintVersion") 2461 <span class="versionDatePrint hidden-sm hidden-md hidden-lg col-xs-12 col-sm-9 pull-right"> 2462 @Translate("version", "Version")<text>:</text> @GetString("Ecom:Product:Field.VersionNumber.Value.Clean") &nbsp;&nbsp; @Translate("revisionDate", "Revision Date")<text>:</text> @dateTimeVersionDate.ToString("MM/dd/yyyy") 2463 </span> 2464 @SnippetEnd("forcePrintVersion") 2465 } 2466 2467 <div data-productType="@productType" data-regulatoryStatus="@str_productRegulatoryStatus" data-productName="@str_productName" id="product-container" data-format="@str_productFormat" data-productSpecificity="@productSpecificity" data-ajaxPage="@productListJson" data-productType="@productFieldType" class="container noPadding" data-productClone="@productClone" data-pageId="@str_currentPageId" data-productId="@str_productId" data-variantId="@str_variantId" data-errorCombination1='@Translate("Combination not available")'> 2468 <div id="product-description" class="col-xs-12 noPaddingLeft"> 2469 <div id="productInfo" class="col-xs-12 col-sm-9"> 2470 2471 @if (isASR) 2472 { 2473 <p class="col-xs-6 noPadding asrWarning"> 2474 <b>@Translate("ASRwarnMessage", "Analyte Specific Reagent. Analytical and performance characteristics are not established.")</b> 2475 </p> 2476 } 2477 2478 <dl class="col-xs-12 noPaddingLeft"> 2479 @if (loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price")).Any()) 2480 { 2481 <dt class="col-xs-3 noPaddingLeft"> 2482 @Translate("Catalog#Size", "Catalog# / Size") 2483 </dt> 2484 <dd class="col-xs-9"> 2485 @foreach (var productVariant in loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price"))) 2486 { 2487 if (!string.IsNullOrWhiteSpace(productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean"))) 2488 { 2489 RRIDLists.Add(productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean")); 2490 } 2491 var variantName = productVariant.GetString("Ecom:VariantCombination.VariantText"); 2492 if(variantName.Contains("&micro;g")){productIsUg += "Yes";} 2493 if(variantName.Contains("&micro;l")){productIsUl += "Yes";} 2494 @String.Format("{0} / {1}", productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:VariantCombination.VariantText")) 2495 <br/> 2496 } 2497 </dd> 2498 } 2499 @if (!string.IsNullOrEmpty(productClone)) 2500 { 2501 <dt class="col-xs-3 noPaddingLeft"> 2502 @GetString("Ecom:Product:Field.Clone.Name") 2503 </dt> 2504 <dd class="col-xs-9"> 2505 @productClone 2506 </dd> 2507 } 2508 @if (isRUO) 2509 { 2510 <dt class="col-xs-3 noPaddingLeft"> 2511 @Translate("RegulatoryStatus","Regulatory Status") 2512 </dt> 2513 <dd class="col-xs-9"> 2514 @str_productRegulatoryStatus 2515 </dd> 2516 } 2517 @if(!string.IsNullOrEmpty(str_workshop)) 2518 { 2519 <dt class="col-xs-3 noPaddingLeft"> 2520 @Translate("WorkshopName","Workshop") 2521 </dt> 2522 <dd class="col-xs-9"> 2523 @str_workshop 2524 </dd> 2525 } 2526 @{ 2527 var pattern = @"\<[^>]*\>"; 2528 Regex rgx = new Regex(pattern); 2529 string otherNamesValue = rgx.Replace(GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty); 2530 } 2531 @if (!String.IsNullOrWhiteSpace(otherNamesValue) && !isIVD ) 2532 { 2533 <dt class="col-xs-3 noPaddingLeft"> 2534 @GetString("Ecom:Product:Field.OtherNames.Name") 2535 </dt> 2536 <dd class="col-xs-9"> 2537 @otherNamesValue 2538 </dd> 2539 } 2540 2541 @if (previousCompany.Any() && !isASR && !isIVD) 2542 { 2543 <dt class="col-xs-3 noPaddingLeft"> 2544 @Translate("Previously", "Previously") 2545 </dt> 2546 <dd class="col-xs-9"> 2547 <div> 2548 @foreach (var x in previousCompany) 2549 { 2550 @String.Format("{1} Catalog# {0}<br/>", x.Key.ToString(), x.Value.ToString()) 2551 } 2552 </div> 2553 </dd> 2554 } 2555 2556 @RenderIsoype(str_IsotypeForFilter) 2557 @if (!string.IsNullOrEmpty(str_TotalseqSequence)) 2558 { 2559 <dt class="col-xs-4 col-sm-3 noPaddingLeft"> 2560 @Translate("Barcode Sequence") 2561 </dt> 2562 <dd> 2563 @str_TotalseqSequence 2564 </dd> 2565 } 2566 </dl> 2567 2568 @* Kit Contents on print page in the top section SDT 091216 *@ 2569 @if (str_currentPageId != printPage && str_currentPageId == printPage && !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR) 2570 { 2571 <dl class="col-xs-12 noPadding"> 2572 @RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents")) 2573 </dl> 2574 } 2575 2576 @*Mouse BV Products with ug and ul*@ 2577 @if(str_productFormat.ToUpper().Contains("BV") && str_productName.ToUpper().Contains("MOUSE") && productIsUg.ToUpper().Contains("YES") && productIsUl.ToUpper().Contains("YES") && !isASR){ 2578 <div class="pdfDescription col-xs-12 noPaddingLeft"> 2579 <div class="title col-xs-3 noPaddingLeft">&nbsp;</div> 2580 <div class="col-xs-9">This product is offered in multiple sizing options (&micro;g and &micro;L/test sizes). To compare these sizing options and learn which is the best choice for you, please contact tech support.</div> 2581 </div> 2582 } 2583 2584 @if (!String.IsNullOrEmpty(str_productDescription)) 2585 { 2586 <dl class="pdfDescription col-xs-12 noPaddingLeft"> 2587 <dt class="title col-xs-3 noPaddingLeft"><strong>@Translate("Description", "Description")</strong></dt> 2588 <dd class="col-xs-9 noPaddingLeft">@RenderLongDescription(str_productDescription, str_productId)</dd> 2589 </dl> 2590 } 2591 @if (!String.IsNullOrEmpty(str_qualityStatement)) 2592 { 2593 @RenderProductField("QualityStatement",@Translate("QualityStatementNameB","Quality Statement"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName) 2594 } 2595 2596 2597 @RenderTDS( 2598 true, 2599 str_productDataSheetFile, 2600 str_productDataSheet, 2601 printPage, 2602 productFieldType, 2603 str_productId, 2604 str_productName, 2605 str_productRegulatoryStatus, 2606 techSupportPageID, 2607 @Translate("datasheetNotAvailable", "This datasheet is currently not available online. Click 'OK' to contact technical service for more information."), 2608 "", 2609 "", 2610 productUpdated 2611 ) 2612 2613 </div> 2614 2615 @* New Kit Contents Section section SDT 091216 *@ 2616 @if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR) 2617 { 2618 <div id="kitContents" class="col-xs-12 col-sm-9 pull-right"> 2619 2620 <h2 class="col-xs-12 noPadding"> 2621 @Translate("KitContents", "Kit Contents") 2622 </h2> 2623 <dl class="col-xs-12 noPadding"> 2624 @RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents")) 2625 </dl> 2626 </div> 2627 } 2628 2629 <div id="productDetails" class="col-xs-12 col-sm-9 pull-right" data-isotypeControl='@Translate("IsotypeControl", "Isotype Control")'> 2630 <h2 class="col-xs-12 noPadding"> 2631 @Translate("ProductDetails", "Product Details") 2632 </h2> 2633 2634 <dl class="col-xs-12 noPadding"> 2635 2636 @if(isIVD){ 2637 @RenderProductField("ProductInfo", @Translate("ProductInformation","Product Information")); 2638 } 2639 @if(isRUO){ 2640 @RenderProductField("Reactivity", @Translate("VerifiedReactivity","Verified Reactivity"), "", "", "", "", productType, "", null, true) 2641 } 2642 else{ 2643 @RenderProductField("Reactivity", @Translate("Reactivity","Reactivity"), "", "", "", "", productType, "", null, true) 2644 } 2645 @RenderProductField("ReportedReactivity", @Translate("ReportedReactivity","Reported Reactivity"), "", "", "", "", productType, "", null, true) 2646 @if(!isASR && !isIVD){ 2647 @RenderABType("ABType", @Translate("AntibodyType","Antibody Type")) 2648 } 2649 @if(!isASR && !isIVD){ 2650 @RenderProductField("HostSpecies", @Translate("HostSpecies","Host Species")) 2651 } 2652 @if(!isASR){ 2653 @RenderCustomField(productFieldType, "Immunogen", @Translate("Immunogen", "Immunogen")) 2654 } 2655 @if(!isASR){ 2656 @RenderCustomField(productFieldType, "Derivation", @Translate("Source", "Source")) 2657 } 2658 @if(!isASR){ 2659 @RenderCustomField(productFieldType, "Mass", @Translate("MolecularMass", "Molecular Mass")) 2660 } 2661 @RenderProductField("NTerminalSequenceAnalysis",@Translate("NTerminalSequenceAnalysisNameA","N-terminal<br />Sequence Analysis")) 2662 @if(!isASR){ 2663 @RenderCustomField(productFieldType, "Purity", @Translate("Purity", "Purity")) 2664 } 2665 @RenderProductField("Formulation", @Translate("Formulation", "Formulation")) 2666 @RenderProductField("EndotoxinLevel",@Translate("EndotoxinLevelName","Endotoxin Level")) 2667 @RenderProductField("ResidualHostCellProteinContent",@Translate("ResidualHostCellProteinContentName","Residual Host Cell Protein Content")) 2668 @RenderProductField("Specifications",@Translate("SpecificationsName","Specifications")) 2669 @RenderCustomField(productFieldType, "Preparation", @Translate("Preparation", "Preparation")) 2670 2671 @if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean"))) 2672 { 2673 <dt class="col-xs-3 noPaddingLeft"> 2674 @Translate("Concentration", "Concentration") 2675 </dt> 2676 <dd class="col-xs-9"> 2677 @LocalizeLinks(@GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean")) @GetString("Ecom:Product.CategoryField." + productFieldType + ".ConcentrationUnits.Value.Clean") 2678 </dd> 2679 } 2680 2681 @RenderProductField("Storage", @Translate("StorageHandling", "Storage & Handling"), str_productId) 2682 @if(!isASR){ 2683 @RenderCustomField(productFieldType, "Activity", @Translate("Activity", "Activity")) 2684 } 2685 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Applications.Value")) && !isIVD) 2686 { 2687 <dt class="col-xs-3 noPaddingLeft"> 2688 @Translate("Application", "Application") 2689 </dt> 2690 <dd class="col-xs-9"> 2691 <span>@GetString("Ecom:Product:Field.Applications.Value")</span> 2692 2693 @if (productFieldType.Equals("LEGENDplex")) 2694 { 2695 <text> 2696 <br/> 2697 @Translate("learnAboutLegendPlex", "Learn more about LEGENDplex™ at biolegend.com/legendplex.") 2698 <br/><br/> 2699 @Translate("downloadLegendPlexSoftware", "Download the LEGENDplex™ software.") 2700 </text> 2701 } 2702 2703 </dd> 2704 } 2705 2706 @* Find ELISA documents text *@ 2707 @if (str_productFormat.Equals("ELISA") || str_productFormat.Equals("ELISA_STD") || str_productFormat.Equals("ELISA_DLX")) 2708 { 2709 <dt class="col-xs-3 noPaddingLeft">@Translate("spaceText", "&nbsp;")</dt> 2710 <dd class="col-xs-9"> 2711 @Translate("elisaGreenText", " As a part of BioLegend&apos;s efforts to go green, each new lot of the ELISA MAX&trade; sets will include a summarized version of its manual. ") 2712 </dd> 2713 } 2714 2715 @RenderProductField("Usage", @Translate("RecommendedUsage", "Recommended Usage"), str_productId, str_productRegulatoryStatus, catalogFirstLetter, str_productFormat, productFieldType, str_productName) 2716 2717 2718 @if(!isASR && !isIVD) 2719 { 2720 @RenderLaser(str_productLaser) 2721 @RenderProductField("AppNotes", @Translate("ApplicationNotes", "Application Notes")) 2722 @RenderProductField("AdditionalProductNotes", @Translate("AdditionalProductNotesTitle", "Additional Product Notes")) 2723 } 2724 2725 @if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.AppReferences.Value")) && !isASR) 2726 { 2727 <dt class="col-xs-3 noPaddingLeft"> 2728 @Translate("ApplicationReferences","Application References") 2729 </dt> 2730 <dd class="col-xs-9" id="applicationReferences" data-seeLess="@Translate("seeLess", "See Less")" data-seeMore="@Translate("seeMore", "See More")"> 2731 @{ 2732 var removeAnchor = Regex.Replace(GetString("Ecom:Product:Field.AppReferences.Value"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 2733 } 2734 @if (removeAnchor.Contains("</li>")) 2735 { 2736 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None); 2737 var count = 0; 2738 foreach (var li in positionOfCut) 2739 { 2740 count++; 2741 if (count > 12) 2742 { 2743 break; 2744 } 2745 @(li + "</li>") 2746 } 2747 } 2748 else 2749 { 2750 @removeAnchor.Substring(0, (removeAnchor.Length <= 800 ? removeAnchor.Length - 1 : 800)) 2751 } 2752 2753 </dd> 2754 } 2755 2756 @if( !string.IsNullOrWhiteSpace(applicationReferences) && !isASR && !isIVD) 2757 { 2758 <dt class="col-xs-3 noPaddingLeft"> 2759 @Translate("ProductCitations","Product Citations") 2760 </dt> 2761 <dd class="col-xs-9" id="productSpecificReferences" data-seeLess="@Translate("seeLess", "See Less")" data-seeMore="@Translate("seeMore", "See More")"> 2762 @{ 2763 var removeAnchor = Regex.Replace(applicationReferences, @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 2764 } 2765 @if (removeAnchor.Contains("</li>")) 2766 { 2767 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None); 2768 var count = 0; 2769 foreach (var li in positionOfCut) 2770 { 2771 count++; 2772 if (count > 12) 2773 { 2774 break; 2775 } 2776 @(li + "</li>") 2777 } 2778 } 2779 else 2780 { 2781 @removeAnchor.Substring(0, 800) 2782 } 2783 </dd> 2784 } 2785 2786 @if (RRIDLists.ToList().Any() && !isASR && !isIVD) 2787 { 2788 <dt class="col-xs-3 noPaddingLeft">@Translate("RRID", "RRID")</dt> 2789 <dd class="col-xs-9"> 2790 @*string.Join("<br/>", RRIDLists.ToArray())*@ 2791 @foreach (var x in RRIDLists.ToList()) 2792 { 2793 @x.Value 2794 <text>(@Translate("biolegendCatNo", "BioLegend Cat. No.") @x.Key)</text> 2795 <br/> 2796 } 2797 </dd> 2798 } 2799 @if(!isASR && !isIVD){ 2800 @RenderCustomField(productFieldType, "Sensitivity", @Translate("Sensitivity", "Sensitivity")) 2801 @RenderCustomField(productFieldType, "StandardRange", @Translate("StandardRange", "Standard Range")) 2802 } 2803 @if(!isASR){ 2804 @RenderCustomField(productFieldType, "MaterialsNotIncluded", @Translate("MaterialsNotIncluded", "Materials Not Included")) 2805 } 2806 @RenderProductField("Disclaimer",@Translate("Disclaimer","Disclaimer"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName) 2807 </dl> 2808 </div> 2809 2810 @if ((!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Structure.Value")) 2811 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Distribution.Value")) 2812 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Function.Value")) 2813 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Interaction.Value")) 2814 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Ligand.Value")) 2815 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Bioactivity.Value")) 2816 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".CellSources.Value")) 2817 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Cross.Value")) 2818 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Modification.Value")) 2819 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Receptors.Value")) 2820 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Reconstitution.Value")) 2821 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value")) 2822 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Regulation.Value")) 2823 || !string.IsNullOrWhiteSpace(str_biologyArea) 2824 || !string.IsNullOrWhiteSpace(str_molecularFamily) 2825 || !string.IsNullOrWhiteSpace(str_cellType) 2826 || geneList.Any()) && !isASR && !isIVD) 2827 { 2828 <div id="antigenDetails" class="col-xs-12 col-sm-9 pull-right"> 2829 2830 <h2 class="col-xs-12 noPadding"> 2831 @Translate("AntigenDetails", "Antigen Details") 2832 </h2> 2833 2834 <dl class="col-xs-12 noPadding"> 2835 @if(!isASR && !isIVD){ 2836 @RenderCustomField(productFieldType, "Structure", @Translate("Structure", "Structure")) 2837 @RenderCustomField(productFieldType, "Distribution", @Translate("Distribution", "Distribution")) 2838 @RenderCustomField(productFieldType, "Function", @Translate("Function", "Function")) 2839 @RenderCustomField(productFieldType, "Interaction", @Translate("Interaction", "Interaction")) 2840 @RenderCustomField(productFieldType, "Ligand", @Translate("LigandReceptor", "Ligand/Receptor")) 2841 @RenderCustomField(productFieldType, "Bioactivity", @Translate("Bioactivity", "Bioactivity")) 2842 @RenderCustomField(productFieldType, "CellSources", @Translate("CellSources", "Cell Sources")) 2843 @RenderCustomField(productFieldType, "CellTargets", @Translate("CellTargets", "Cell Targets")) 2844 @RenderCustomField(productFieldType, "Cross", @Translate("Cross", "Cross")) 2845 @RenderCustomField(productFieldType, "Modification", @Translate("Modification", "Modification")) 2846 @RenderCustomField(productFieldType, "Receptors", @Translate("Receptors", "Receptors")) 2847 @RenderCustomField(productFieldType, "Reconstitution", @Translate("Reconstitution", "Reconstitution")) 2848 @RenderCellType(str_cellType) 2849 @RenderBiologyArea(str_biologyArea) 2850 @RenderMolecularFamily(str_molecularFamily) 2851 } 2852 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean")) && !isIVD) 2853 { 2854 <dt class="col-xs-3 noPaddingLeft"> 2855 @Translate("AntigenReferences", "Antigen References") 2856 </dt> 2857 <dd class="col-xs-9 noPaddingLeft"> 2858 @{ 2859 string removeAnchor2 = Regex.Replace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", ""); 2860 } 2861 @removeAnchor2.Substring(0, (removeAnchor2.Length <= 1050 ? removeAnchor2.Length - 1 : 1050)) 2862 </dd> 2863 } 2864 @if(!isASR && !isIVD){ 2865 @RenderCustomField(productFieldType, "Regulation", @Translate("Regulation", "Regulation")) 2866 2867 2868 if (geneList.Any() && !isIVD) 2869 { 2870 <dt class="col-xs-3 noPaddingLeft"> 2871 @Translate("GeneID", "Gene ID") 2872 </dt> 2873 <dd class="col-xs-9"> 2874 @foreach (var gene in geneList) 2875 { 2876 <span class="col-xs-12 noPadding geneInformation"> 2877 <a class="geneAnchor iframeWebsite" target="_blank" data-geneID="@gene" href="https://www.ncbi.nlm.nih.gov/gene/@gene">@gene</a> <a target="_blank" class="btn btn-default" href="/Default.aspx?ID=@searchPageID&GeneID=@gene">@Translate("viewAllProductsGeneID", "View all products for this Gene ID")</a> 2878 </span> 2879 } 2880 </dd> 2881 } 2882 } 2883 </dl> 2884 </div> 2885 } 2886 2887 @using System.Collections.Generic 2888 @using Dynamicweb.Caching 2889 @{ 2890 var str_productProtocols = GetString("Ecom:Product:Field.Protocols.Value").Replace('"', ' '); 2891 var isASRProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR"); 2892 var isIVDProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD"); 2893 2894 if (!string.IsNullOrEmpty(str_productProtocols) && !isASRProt && !isIVDProt) 2895 { 2896 var selectedProductId = GetString("Ecom:Product.ID"); 2897 var productProtocolsResults = new List<KeyValuePair<string,string>>(); 2898 var productProtocols = Cache.Current.Get("productProtocolsCache_" + selectedProductId); 2899 2900 if (productProtocols == null) 2901 { 2902 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 2903 { 2904 using (var commandProtocols = connection.CreateCommand()) 2905 { 2906 commandProtocols.CommandText = "SELECT * FROM itemtype_protocols WHERE Id in (" + str_productProtocols + ")"; 2907 using (var readerProtocols = commandProtocols.ExecuteReader()) 2908 { 2909 if (readerProtocols != null) 2910 { 2911 if (readerProtocols.FieldCount > 0) 2912 { 2913 while (readerProtocols.Read()) 2914 { 2915 var itemName = readerProtocols["Name"].ToString(); 2916 var itemLink = readerProtocols["Protocol"].ToString().Replace("Files/Files/BioLegend/", "Files/Images/"); 2917 2918 productProtocolsResults.Add(new KeyValuePair<string, string>(itemName, itemLink)); 2919 } 2920 } 2921 } 2922 } 2923 } 2924 2925 Cache.Current.Set("productProtocolsCache_" + selectedProductId, productProtocolsResults, CacheItemPolicy.DefaultStoragePolicy); 2926 @RenderProtocols(productProtocolsResults) 2927 2928 } 2929 } 2930 else 2931 { 2932 @RenderProtocols((List<KeyValuePair<string,string>>) productProtocols) 2933 } 2934 } 2935 } 2936 2937 @helper RenderProtocols(List<KeyValuePair<string,string>> productProtocolsResults) 2938 { 2939 <div id="productRelatedProtocols" class="col-xs-12 col-sm-9 noPadding pull-right"> 2940 <h2 class="col-xs-12 noPadding"> 2941 <a href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedProtocols" name="13">@Translate("RelatedProtocols", "Related Protocols")</a> 2942 </h2> 2943 2944 @SnippetStart("navigationAnchors") 2945 <li> 2946 <a class="anchor_13" href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedProtocols">@Translate("RelatedProtocols", "Related Protocols")</a> 2947 </li> 2948 @SnippetEnd("navigationAnchors") 2949 2950 <ul class="col-xs-12 noPadding"> 2951 @foreach (var protocolPair in productProtocolsResults) 2952 { 2953 var itemName = protocolPair.Key; 2954 var itemLink = protocolPair.Value; 2955 2956 <li class="col-xs-12"> 2957 <a target="_blank" href="@itemLink" title="@itemName"> 2958 @itemName 2959 </a> 2960 </li> 2961 } 2962 </ul> 2963 </div> 2964 } 2965 2966 @if (!isIVD && !isASR) 2967 { 2968 <div id="productRelatedGroup" class="col-xs-12 hidden col-sm-offset-3 col-sm-9"> 2969 <h2 class="col-xs-12 noPadding"> 2970 @Translate("RelatedProducts", "Related Products") 2971 </h2> 2972 2973 <table id="tableRelatedProducts" class="col-xs-12 noPadding" data> 2974 <thead> 2975 <tr> 2976 <th>@Translate("Description", "Description")</th> 2977 <th>@Translate("Clone", "Clone")</th> 2978 <th>@Translate("Applications", "Applications")</th> 2979 </tr> 2980 </thead> 2981 <tbody> 2982 2983 </tbody> 2984 </table> 2985 </div> 2986 } 2987 2988 @if (str_currentPageId == @printPage && str_productId == "9340") 2989 { 2990 <text> 2991 <br/><br/>This product is provided under an intellectual property license from Life Technologies Corporation.The transfer of this product is conditioned on the buyer using the purchased product solely in research conducted by the buyer, excluding contract research or any fee for service research, and the buyer must not(1) use this product or its components for (a) diagnostic, therapeutic or prophylactic purposes; (b)testing, analysis or screening services, or information in return for compensation on a per - test basis; or(c) manufacturing or quality assurance or quality control, and / or(2) sell or transfer this product or its components for resale, whether or not resold for use in research.For information on purchasing a license to this product for purposes other than as described above, contact Life Technologies Corporation, 5781 Van Allen Way, Carlsbad, CA 92008 USA or outlicensing@lifetech.com. 2992 </text> 2993 } 2994 2995 @{ 2996 bool isASRProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR"); 2997 bool isIVDProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD"); 2998 if(!isASRProd && !isIVDProd) { 2999 @* 3000 ID Name 3001 12 Alexa Fluor&reg; 594 3002 15 Biofunctional Antibodies - LEAF&trade; and Ultra-LEAF&trade; 3003 37 Breaking Buffers 3004 10 Brilliant Violet&trade; 3005 11 Brilliant Violet&trade; Mobile Application 3006 49 CD Molecule Chart 3007 26 CD Molecules 3008 27 CD Molecules Mobile Application 3009 25 Cell Markers 3010 52 Chemokines and Chemokine Receptors 3011 6 Custom Panel Construction 3012 50 Cytokines/Chemokines Mobile Application 3013 56 Direct-Blot &trade; 3014 57 Direct-Blot &trade; 3015 35 ELISA Kits and Sets 3016 36 ELISA Mobile Application 3017 38 Flow Cytometry Buffers 3018 8 Flow Cytometry Mobile Application 3019 4 Fluorescence Spectra Analyzer 3020 9 Fluorescence Spectra Analyzer Mobile Application 3021 5 Fluorophore Brightness Index 3022 7 Fluorophore Equivalency Tool 3023 19 GoInVivo&trade; Purified Bulk Antibodies 3024 20 Immune Checkpoints 3025 54 Integrin Explorer 3026 55 Integrin Explorer Mobile Application 3027 51 Interleukin Receptors 3028 21 LEAF&trade; - Low Endotoxin Azide Free 3029 31 LEGENDplex&trade; 3030 33 LEGENDScreen&trade; 3031 39 Live Cell/Dead Cell Discrimination 3032 42 MaxPar&reg; Ready Purified Antibodies 3033 43 Microscopy 3034 44 MitoSpy&trade; Mitochrondrial Probes 3035 46 MojoSort&trade; Magnetic Cell Separation 3036 28 MojoSort&trade; Webinar 3037 3 Multicolor Panel Selector 3038 14 Multicolor Staining Guide 3039 16 PE/Dazzle&trade; 594 Conjugates 3040 34 Pipettes of Fury 3041 1 Quality Control 3042 29 Recombinant Proteins 3043 45 Streptavidin Conjugates 3044 13 Tandem Dyes 3045 32 The Ken Lau Show Episode 6 - LEGENDplex&trade; 3046 17 The Tandem 3047 18 The Tandem Mobile Application 3048 61 True-Stain Monocyte Blocker 3049 41 Zombie Apocalypse 3050 40 Zombie Dyes App 3051 3052 str_productId 3053 str_productName 3054 str_productFormat 3055 productFieldType 3056 str_productOtherNames 3057 catalogFirstLetter 3058 *@ 3059 3060 List<string> pages = new List<string>(); 3061 pages.Add("1"); 3062 3063 if(str_productFormat.Contains("BV")) { 3064 pages.Add("10"); 3065 } 3066 3067 if(str_productFormat.Contains("A594")) { 3068 pages.Add("12"); 3069 } 3070 3071 if(str_productFormat.Contains("/")) { 3072 pages.Add("13"); 3073 pages.Add("14"); 3074 } 3075 3076 if(str_productFormat.Contains("LEAF")) { 3077 pages.Add("15"); 3078 } 3079 3080 if(str_productFormat.Contains("PE_DZL594")) { 3081 pages.Add("16"); 3082 } 3083 3084 if(str_productFormat.Contains("GOINVIVO")) { 3085 pages.Add("19"); 3086 pages.Add("20"); 3087 pages.Add("15"); 3088 } 3089 3090 if(str_productFormat.Contains("MOJO")) { 3091 pages.Add("46"); 3092 pages.Add("25"); 3093 pages.Add("26"); 3094 } 3095 3096 if(str_productFormat.Contains("RECOM")) { 3097 pages.Add("29"); 3098 } 3099 3100 if (!str_productFormat.Contains("LEAF") && !str_productFormat.Equals("BIOTIN") && !str_productFormat.Equals("ELISA") && !str_productFormat.Equals("ELISA_DLX") && !str_productFormat.Equals("ELISA_STD") && !str_productFormat.Equals("HRP") && !str_productFormat.Equals("Kit") && !str_productFormat.Equals("RECOM") && !str_productFormat.Equals("LEGEND MAX") && !str_productFormat.Equals("LPLEX") && !str_productFormat.Equals("LSCREEN") && !str_productFormat.Equals("MOJO") && !str_productFormat.Equals("PURE") && !str_productFormat.Equals("SOLUTION") && !str_productFormat.Equals("GOINVIVO") && !str_productFormat.Equals("DB_HRP") && !str_productFormat.Equals("")){ 3101 pages.Add("5"); 3102 pages.Add("4"); 3103 pages.Add("14"); 3104 pages.Add("6"); 3105 pages.Add("7"); 3106 } 3107 3108 if(productType.Equals("LEGENDplex")) { 3109 pages.Add("31"); 3110 } 3111 3112 if(productType.Equals("ELISAMAXLEGENDMAX")) { 3113 pages.Add("35"); 3114 } 3115 3116 if(productType.Equals("LEGENDScreen")) { 3117 pages.Add("33"); 3118 } 3119 3120 if(productType.Equals("BuffersSolutionsChemicals")) { 3121 pages.Add("38"); 3122 } 3123 3124 if(str_productName.Contains("Zombie")) { 3125 pages.Add("39"); 3126 } 3127 3128 if(str_productName.Contains("MaxPar")) { 3129 pages.Add("42"); 3130 } 3131 3132 if(str_productName.Contains("MitoSpy")) { 3133 pages.Add("43"); 3134 pages.Add("44"); 3135 } 3136 3137 if(str_productName.Contains("Phalloidin")) { 3138 pages.Add("43"); 3139 } 3140 3141 if(str_productName.Contains("Streptavidin")) { 3142 pages.Add("45"); 3143 } 3144 3145 if(str_productFormat.Equals("BIOTIN")) { 3146 pages.Add("45"); 3147 pages.Add("46"); 3148 } 3149 3150 if(str_productName.Contains(" CD") && !str_productFormat.Contains("MOJO")) { 3151 pages.Add("49"); 3152 } 3153 3154 if(Convert.ToInt32(catalogFirstLetter) == 5) 3155 { 3156 pages.Add("51"); 3157 pages.Add("52"); 3158 } 3159 3160 if(str_productOtherNames.ToUpper().Contains("INTEGRIN")) 3161 { 3162 pages.Add("54"); 3163 } 3164 3165 if(str_productRegulatoryStatus.Equals("ASR")) 3166 { 3167 pages.Add("59"); 3168 } 3169 3170 if(str_productFormat.Equals("FLEX_T")) 3171 { 3172 pages.Add("58"); 3173 pages.Add("45"); 3174 } 3175 3176 if(str_productFormat.Equals("APC_F750")) 3177 { 3178 pages.Add("60"); 3179 } 3180 3181 if(str_productId.Equals("14598")){ 3182 pages.Add("61"); 3183 } 3184 3185 //var relatedPages = (List<Dictionary<string, string>>) Cache.Current.Get("productRelatedPagesCache_" + str_productId); 3186 /*if (relatedPages == null) 3187 {*/ 3188 var relatedPages = GetRelatedPages(pages); 3189 //Cache.Current.Set("productRelatedPagesCache_" + str_productId, relatedPages, CacheItemPolicy.DefaultStoragePolicy); 3190 /*}*/ 3191 countRelatedPages = relatedPages.Count; 3192 3193 string str_pathways = GetString("Ecom:Product:Field.Pathways.Value"); 3194 Dictionary<string, string> pathwaysDict = new Dictionary<string, string>(){ 3195 {"1","CD4 and CD8 T-Cell Lineage"}, 3196 {"2","Apoptosis Through Death Receptors"}, 3197 {"3","Gamma-Delta T cells"}, 3198 {"4","Cyclins and Cell Cycle Regulation"}, 3199 {"5","Hematopoiesis from Multipotent Stem Cell"}, 3200 {"6","Hematopoiesis from Pluripotent Stem Cell"}, 3201 {"8","TH1 Pathway (Cellular Immune Response)"}, 3202 {"9","IL-2 Pathway"}, 3203 {"10","JAK/STAT Pathway"}, 3204 {"11","p38 Signaling"}, 3205 {"12","TH17 Pathway"}, 3206 {"13","TH2 Pathway (Humoral Immune Response)"}, 3207 {"19","Agranulocyte Adhesion and Diapedesis"}, 3208 {"20","14-3-3 Induced Intracellular Signaling"}, 3209 {"21","Akt Signaling"}, 3210 {"22","ATM Pathway"}, 3211 {"23","BAFF in B-Cell Signaling"}, 3212 {"24","B-Cell Receptor Pathway"}, 3213 {"25","Caspase Cascade"}, 3214 {"26","CD28 Signaling in T-Helper Cell"}, 3215 {"27","CD40 Signaling"}, 3216 {"28","Cellular Apoptosis Pathway"}, 3217 {"29","Chemokine Signaling"}, 3218 {"30","CTLA4 Signaling"}, 3219 {"31","Cytokine Network"}, 3220 {"32","EGF Pathway"}, 3221 {"33","Embryonic Stem Cell Pluripotency in Mouse"}, 3222 {"34","ErbB Family Pathway"}, 3223 {"35","ERK Signaling"}, 3224 {"36","FAK1 Pathway"}, 3225 {"37","Fas Signaling"}, 3226 {"38","GPCR Pathway"}, 3227 {"39","GSK3 Signaling"}, 3228 {"40","Human Embryonic Stem Cell Pluripotency"}, 3229 {"41","ICos-ICosL Pathway in T-Helper Cell"}, 3230 {"42","IL-1 Pathway"}, 3231 {"43","IL-4 Pathway"}, 3232 {"44","IL-6 Pathway"}, 3233 {"45","IL-10 Pathway"}, 3234 {"46","ILK Signaling"}, 3235 {"47","Integrin Pathway"}, 3236 {"48","Interferon Pathway"}, 3237 {"49","ITK and TCR Signaling"}, 3238 {"50","JNK Pathway"}, 3239 {"51","Lymphotoxin-beta Receptor Pathway"}, 3240 {"52","MAPK Signaling"}, 3241 {"53","Mitotic Roles of Polo Like Kinase"}, 3242 {"54","mTOR Pathway"}, 3243 {"55","Nanog in Mammalian ESC Pluripotency"}, 3244 {"56","NFAT Signaling and Lymphocyte Interactions"}, 3245 {"57","NF-&kappa;B (p50/p65) Pathway"}, 3246 {"58","Oct4 in Mammalian ESC Pluripotency"}, 3247 {"59","PDGF Pathway"}, 3248 {"60","PKC-&theta; Pathway"}, 3249 {"61","PPAR Pathway"}, 3250 {"62","PTEN Pathway"}, 3251 {"63","Ras Pathway"}, 3252 {"64","SOCS Pathway"}, 3253 {"65","Sumo Pathway"}, 3254 {"66","T-Cell Receptor Signaling"}, 3255 {"67","TGF-&beta; Pathway"}, 3256 {"68","TNF Superfamily Pathway"}, 3257 {"69","Toll-Like Receptors"}, 3258 {"70","TRAIL Pathway"}, 3259 {"71","TREM1 Pathway"}, 3260 {"72","VEGF Pathway"}, 3261 {"73","WNT Signaling"}, 3262 {"74","p53 Signaling"}, 3263 {"75","T Follicular Helper Cell Pathway"}, 3264 {"76","Cancer Elimination"}, 3265 {"78","Cancer Immunology - 3Es"}, 3266 {"79","Cancer Recognition"}, 3267 {"82","Cancer Recognition & Elimination"}, 3268 {"83","MDSC-induced Immune Suppression"}, 3269 {"84","Shedding MICA/B Antigens"}, 3270 {"85","Stat3-mediated Tumor Escape"}, 3271 {"86","Tregs in Tumor Escape"}, 3272 {"88","Immunologic Networks 2011"}, 3273 {"89","B cell Development and Activation"}, 3274 {"90","Myeloid-Derived Suppressor Cells"}, 3275 {"91","Regulatory T Cells"}, 3276 {"92","Dendritic Cells"}, 3277 {"93","Stem Cells and Development"}, 3278 {"94","Cancer Immunoediting"}, 3279 {"95","Chemokine Receptor Biology"}, 3280 {"97","Th17 Biology"}, 3281 {"98","Innate Immunity"}, 3282 {"99","Mechanisims of Cell Death"}, 3283 {"100","Dendritic Cell, Monocyte, and Macrophage Biology"}, 3284 {"101","Neurodegeneration"}, 3285 {"102","Innate Immune Signaling"}, 3286 {"103","Neuroinflammation"}, 3287 {"104","Autophagy"} 3288 }; 3289 3290 string[] pathwaysList = str_pathways.Split(','); 3291 //var pathwaysData = GetPathways(productSpecificity); 3292 3293 3294 if(!string.IsNullOrWhiteSpace(str_pathways) || countRelatedPages > 0) 3295 { 3296 <div id="productRelatedPages" class="col-xs-12 col-sm-9 noPadding pull-right"> 3297 <h2 class="col-xs-12 noPadding"> 3298 <a href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedPages" name="4">@Translate("RelatedPagesPathways","Related Pages & Pathways")</a> 3299 </h2> 3300 3301 @SnippetStart("navigationAnchors") 3302 <li> 3303 <a class="anchor_4" href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedPages">@Translate("RelatedPagesPathways","Related Pages & Pathways")</a> 3304 </li> 3305 @SnippetEnd("navigationAnchors") 3306 3307 @if(!string.IsNullOrWhiteSpace(str_pathways)) 3308 { 3309 <div class="col-xs-6 noPaddingLeft"> 3310 <h3>@Translate("Pathways","Pathways")</h3> 3311 <ul class="relatedPages relatedPathways col-xs-12 noPadding"> 3312 @foreach (string thisPathway in pathwaysList) 3313 { 3314 string title = pathwaysDict[thisPathway]; 3315 string pathwayID = thisPathway; 3316 3317 <li> 3318 <a href="http://www.biolegend.com/pop_pathway.php?id=@pathwayID" target="_blank"> 3319 @title 3320 </a> 3321 </li> 3322 } 3323 </ul> 3324 </div> 3325 } 3326 3327 @if(countRelatedPages > 0) 3328 { 3329 <div class='col-xs-6 @(!string.IsNullOrWhiteSpace(str_pathways) ?"noPaddingRight":"noPaddingLeft")'> 3330 <h3>@Translate("Pages","Pages")</h3> 3331 <ul class="relatedPages col-xs-12 noPadding"> 3332 @foreach (var row in relatedPages) 3333 { 3334 string link = (!String.IsNullOrWhiteSpace(row["Page"]) ? row["Page"] : row["LinkExt"]); 3335 string target = (link.Contains("http:") ? "target='_blank'" : ""); 3336 string iconSrc = row["Icon_Source"].Replace(".png", "_PD.png").Replace(".jpg", "_PD.jpg"); 3337 string itemName = row["Name"]; 3338 3339 <li> 3340 <a href="@LocalizeLinksHTML(link)" @target> 3341 @if(!String.IsNullOrWhiteSpace(iconSrc)) 3342 { 3343 <figure> 3344 <img width="20" height="20" src="@iconSrc" title="@itemName" alt="@itemName" /> 3345 </figure> 3346 } 3347 @itemName 3348 </a> 3349 </li> 3350 } 3351 </ul> 3352 </div> 3353 } 3354 </div> 3355 } 3356 } 3357 3358 @functions 3359 { 3360 /* Get related pages */ 3361 public static List<Dictionary<string, string>> GetRelatedPages(List<string> pages) 3362 { 3363 List<Dictionary<string, string>> relatedPages = new List<Dictionary<string, string>>(); 3364 3365 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 3366 { 3367 using (var command = connection.CreateCommand()) 3368 { 3369 command.CommandText = string.Format("SELECT Page,LinkExt,Icon_Source,Name from itemtype_relatedPages WHERE ID IN ({0})", string.Join(", ", pages)); 3370 3371 using (var reader = command.ExecuteReader()) 3372 { 3373 if (reader != null) 3374 { 3375 while (reader.Read()) 3376 { 3377 Dictionary<string, string> relatedPagesProperties = new Dictionary<string, string>(); 3378 3379 relatedPagesProperties.Add("Page", reader["Page"].ToString()); 3380 relatedPagesProperties.Add("LinkExt", reader["LinkExt"].ToString()); 3381 relatedPagesProperties.Add("Icon_Source", reader["Icon_Source"].ToString()); 3382 relatedPagesProperties.Add("Name", reader["Name"].ToString()); 3383 relatedPages.Add(relatedPagesProperties); 3384 } 3385 } 3386 } 3387 } 3388 } 3389 3390 return relatedPages; 3391 } 3392 } 3393 } 3394 3395 @if (otherFormatsProducts.Any() && !isASR && !isIVD) 3396 { 3397 var count = 0; 3398 3399 <div id="productOtherFormats" class="col-xs-12 col-sm-9 pull-right" data-thDescription='@Translate("Description", "Description")' data-thClone='@Translate("Clone", "Clone")' data-thAppllications='@Translate("Applications", "Applications")'> 3400 <h2 class="col-xs-12 noPadding"> 3401 @Translate("OtherFormats", "Other Formats") 3402 </h2> 3403 3404 @foreach (var prod in otherFormatsProducts.GroupBy(prod => prod.Name).Select(prod => prod.First())) 3405 { 3406 @(count != 0 ? ", " : "")@prod.Name 3407 count++; 3408 } 3409 3410 </div> 3411 } 3412 3413 <dl class='@(str_productId.Equals("10801") ? "col-xs-12" : "col-xs-12") noPadding pdfImagesContainer'> 3414 @if (lst_images.Any()) 3415 { 3416 <h2 class="col-xs-12 noPadding"> 3417 @Translate("ProductData", "Product Data") 3418 </h2> 3419 <div class="col-xs-12"> 3420 3421 @if (str_currentPageId != printPage) 3422 { 3423 foreach (var image1 in lst_images.OrderBy(x => x.Item2).ToList().Take(1)) 3424 { 3425 string str_getimageImg = GetImage(image1.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90); 3426 3427 <div class="figure"> 3428 <dt class="col-xs-8 noPaddingLeft textCenter"> 3429 <img class="maxWidth" src="@str_getimageImg" alt="@image1.Item2.ToString()" title="@image1.Item2.ToString()"/> 3430 </dt> 3431 <dd class="col-xs-4 noPaddingRight"> 3432 @image1.Item3.ToString() 3433 </dd> 3434 </div> 3435 } 3436 3437 <div id="imgThumbs" class="col-xs-3 noPadding pull-right"> 3438 <ul> 3439 @foreach (var image in lst_images.OrderBy(x => x.Item2).ToList()) 3440 { 3441 if (!String.IsNullOrWhiteSpace(image.Item1.ToString())) 3442 { 3443 var str_getimageImg = GetImage(image.Item1.ToString(), 0, 105, 0, 105, 0, 105, "jpg", 90, 5); 3444 var str_getimageDataImg = GetImage(image.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90); 3445 var liClass = lst_images.IndexOf(image) == 0 ? "active" : ""; 3446 3447 <li class="@liClass"> 3448 <div class="figure"> 3449 <dt class="col-xs-8 noPaddingLeft textCenter"> 3450 <img class="maxWidth" data-image="@str_getimageDataImg" src="@str_getimageImg" title="@image.Item2.ToString()" alt="@image.Item2.ToString()"/> 3451 </dt> 3452 @if (!string.IsNullOrWhiteSpace(image.Item3.ToString())) 3453 { 3454 <dd class="col-xs-4 noPaddingRight"> 3455 @image.Item3.ToString() 3456 </dd> 3457 } 3458 </div> 3459 </li> 3460 } 3461 } 3462 </ul> 3463 </div> 3464 } 3465 </div> 3466 3467 if (str_currentPageId == printPage) 3468 { 3469 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList()) 3470 { 3471 if (!String.IsNullOrWhiteSpace(image.Item1.ToString())) 3472 { 3473 string str_getimageDataImg = GetImage(image.Item1.ToString(), 500, 300, 0, 0, 0, 0, "jpg", 90); 3474 <div class="col-xs-12 figure"> 3475 <dt class="col-xs-8 noPaddingLeft textCenter"> 3476 <img class="maxWidth" src="@str_getimageDataImg" title="@image.Item2" alt="@image.Item2"/> 3477 </dt> 3478 @if (!string.IsNullOrWhiteSpace(image.Item3.ToString())) 3479 { 3480 <dd class="col-xs-4 noPaddingRight"> 3481 @image.Item3 3482 </dd> 3483 } 3484 </div> 3485 } 3486 } 3487 } 3488 } 3489 3490 @if(str_currentPageId == printPage && (isIVD || isASR)) 3491 { 3492 <figure> 3493 <img class="glossary" src="@cdnStaticDomain/Files/Images/media_assets/products/Glossary-table-draft-V2.png" /> 3494 </figure> 3495 } 3496 </dl> 3497 </div> 3498 </div> 3499 3500 <dl class="footerStatement col-xs-12"> 3501 @CalculateFooterDisclaimer(str_footerDisclaimer,str_productRegulatoryStatus,str_productFormat); 3502 3503 3504 @itemArea["ProductFooterWarning"].ToString() 3505 </dl> 3506 3507 @SnippetStart("productName") 3508 @: @str_productName @(previousCompany.Any() && !isIVD && !isASR && !previouslyConcatName.Equals("") ? String.Format("({0})", previouslyConcatName) : "") @SnippetEnd("productName") 3509 } 3510 } 3511 catch (Exception ex) 3512 { 3513 <div id="errorMessagePDP" data-exception="@System.Web.HttpUtility.HtmlEncode(ex)"> 3514 @Translate("errorRenderingTemplate", "There was an error rendering the product detail page. Please contact technical support.") 3515 </div> 3516 } 3517 3518 @functions { 3519 3520 public string GetApplicationsLabel(string applicationValues, Dictionary<string, string> applicationsData) 3521 { 3522 applicationValues = applicationValues.Replace("\"", "").Replace(",", ", "); 3523 return applicationValues; 3524 } 3525 3526 public Dictionary<string, string> GetFilterData(string fieldID) 3527 { 3528 //HttpContext.Current.Cache.Remove("applicationsDataCache_" + fieldID); 3529 var applicationCache = HttpContext.Current.Cache["applicationsDataCache_" + fieldID]; 3530 var applicationsData = applicationCache as Dictionary<string, string> ?? new Dictionary<string, string>(); 3531 if (applicationCache == null) 3532 { 3533 using (var connection = Dynamicweb.Data.Database.CreateConnection()) 3534 { 3535 using (var command = connection.CreateCommand()) 3536 { 3537 command.CommandText = "SELECT FieldOptionValue,FieldOptionName FROM EcomFieldOption WHERE FieldOptionFieldID=''+@fieldID+'' ORDER BY FieldOptionValue"; 3538 command.Parameters.Add(new System.Data.SqlClient.SqlParameter() 3539 { 3540 ParameterName = "fieldID", 3541 SqlDbType = System.Data.SqlDbType.NVarChar, 3542 Value = fieldID 3543 }); 3544 using (var reader = command.ExecuteReader()) 3545 { 3546 if (reader != null) 3547 { 3548 while (reader.Read()) 3549 { 3550 applicationsData.Add(reader["FieldOptionValue"].ToString(), reader["FieldOptionName"].ToString()); 3551 } 3552 } 3553 } 3554 } 3555 } 3556 HttpContext.Current.Cache.Insert("applicationsDataCache_" + fieldID, applicationsData, null, DateTime.Now.AddMinutes(5), System.Web.Caching.Cache.NoSlidingExpiration); 3557 } 3558 return applicationsData; 3559 } 3560 }