Error compiling template "Designs/BioLegend/eCom/Product/productPdf.cshtml"
Line 119: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 119: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 136: 'Services' is obsolete: 'Use Dynamicweb.Content.Services instead.'
Line 136: 'Services.Areas' is obsolete: 'Use Dynamicweb.Content.Services.Areas instead.'
Line 250: 'Group.GetGroupById(string)' is obsolete: 'Use Services.ProductGroups.GetGroup instead.'
Line 2126: The variable 'appNotesID' is assigned but its value is never used
Line 3628: The variable 'block' is assigned but its value is never used
Line 4080: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 4084: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4084: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4085: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4420: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 4424: 'User.GetCurrentUser()' is obsolete: 'Use GetCurrentBackendUser() or GetCurrentFrontendUser() instead.'
Line 4530: 'Product.GetProductsBySql(string)' is obsolete: 'Don't use this'
Line 7476: 'CacheItemPolicy' is an ambiguous reference between 'Dynamicweb.Caching.CacheItemPolicy' and 'System.Runtime.Caching.CacheItemPolicy'
Line 4481: The variable 'str_starClass' is assigned but its value is never used
Line 4482: The variable 'str_halfStar' is assigned but its value is never used
Line 4696: The variable 'readerPathwaysCount' is assigned but its value is never used

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

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