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 2118: The variable 'appNotesID' is assigned but its value is never used
Line 3620: The variable 'block' is assigned but its value is never used
Line 4072: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 4076: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4076: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4077: 'User.CurrentSecondaryUser' is obsolete: 'Use GetCurrentSecondaryUser() instead.'
Line 4412: 'User.IsExtranetUserLoggedIn()' is obsolete: 'Use IsFrontendUserLoggedIn() instead.'
Line 4416: 'User.GetCurrentUser()' is obsolete: 'Use GetCurrentBackendUser() or GetCurrentFrontendUser() instead.'
Line 4522: 'Product.GetProductsBySql(string)' is obsolete: 'Don't use this'
Line 7468: 'CacheItemPolicy' is an ambiguous reference between 'Dynamicweb.Caching.CacheItemPolicy' and 'System.Runtime.Caching.CacheItemPolicy'
Line 4473: The variable 'str_starClass' is assigned but its value is never used
Line 4474: The variable 'str_halfStar' is assigned but its value is never used
Line 4688: 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 2888 "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 2889 "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_807b173c461a4060951331a7a6321139 : 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","α-Synuclein"},
465 {"adaptor_proteins","Adaptor Proteins"},
466 {"adhesion_molecules","Adhesion Molecules"},
467 {"aldehyde_dehydrogenases","Aldehyde Dehydrogenases"},
468 {"app_b_amyloid","APP/β-Amyloid"},
469 {"app_ab_degradation","APP/Aβ Degradation"},
470 {"apolipoproteins","Apolipoproteins"},
471 {"autophagosome_markers","Autophagosome Markers"},
472 {"blood_group_markers","Blood Group Markers"},
473 {"carrier_proteins","Carrier Proteins"},
474 {"cd_molecules","CD Molecules"},
475 {"cytokine_chemokine_receptors","Cytokine/Chemokine Receptors"},
476 {"cytokines_chemokines","Cytokines/Chemokines"},
477 {"cytoskeletal_proteins","Cytoskeletal Proteins"},
478 {"endoplasmic_reticulum_markers","Endoplasmic Reticulum Markers"},
479 {"endosomal_markers","Endosomal Markers"},
480 {"enzymes_regulators","Enzymes and Regulators"},
481 {"exosome_markers","Exosome Markers"},
482 {"fc_receptors","Fc Receptors"},
483 {"gap_junction_proteins","Gap Junction Proteins"},
484 {"golgi_markers","Golgi Markers"},
485 {"gpcr","GPCR"},
486 {"growth_factors","Growth Factors"},
487 {"gtpases","GTPases"},
488 {"heat_shock_proteins","Heat Shock Proteins"},
489 {"hormones","Hormones"},
490 {"immune_checkpoint_receptors","Immune Checkpoint Receptors"},
491 {"innate_immune_signaling","Innate Immune Signaling"},
492 {"intermediate_filaments","Intermediate Filaments"},
493 {"ions_channels","Ion Channels"},
494 {"ligases","Ligases"},
495 {"lysosomal_markers","Lysosomal Markers"},
496 {"mhc_antigens","MHC Antigens"},
497 {"microfilaments","Microfilaments"},
498 {"microtubules","Microtubules"},
499 {"mitochondrial_markers","Mitochondrial Markers"},
500 {"neurotransmitter_receptor_trafficking_endocytosis","Neurotransmitter Receptor Trafficking/Endocytosis"},
501 {"neurotransmitter_receptors","Neurotransmitter Receptors"},
502 {"neurotrophic_factors","Neurotrophic Factors"},
503 {"nuclear_markers","Nuclear Markers"},
504 {"organelle_markers","Organelle Markers"},
505 {"postsynaptic_proteins","Postsynaptic proteins"},
506 {"phospho_proteins","Phospho-Proteins"},
507 {"presynaptic_proteins","Presynaptic proteins"},
508 {"prion_cd230","Prion (CD230)"},
509 {"proteases","Proteases"},
510 {"protein_kinases_phosphatase","Protein Kinases/Phosphatase"},
511 {"protein_modifiers","Protein Modifiers"},
512 {"purinergic_receptors","Purinergic Receptors"},
513 {"scaffold_proteins","Scaffold Proteins"},
514 {"secretases","Secretases"},
515 {"semaphorin_receptors","Semaphorin Receptors"},
516 {"siglec_molecules","Siglec Molecules"},
517 {"soluble_receptors","Soluble Receptors"},
518 {"steroid_receptors_nuclear_receptors","Steroid Receptors/Nuclear Receptors"},
519 {"synaptic_vesicle_trafficking_endocytosis","Synaptic Vesicle Trafficking/Endocytosis"},
520 {"tau","Tau"},
521 {"tcrs","TCRs"},
522 {"tdp43","TDP43"},
523 {"toll_like_receptors","Toll Like Receptors"},
524 {"tumor_suppressors","Tumor Suppressors"}
525 };
526 if(!string.IsNullOrWhiteSpace(molecularFamily))
527 {
528 string[] molecularFamilies = molecularFamily.Split(',');
529 foreach (string thisArea in molecularFamilies)
530 {
531 mfText += mfDict[thisArea] + ", ";
532 }
533
534
535 mfText = mfText.Remove(mfText.Length-2);
536
537
538 #line default
539 #line hidden
540 WriteLiteralTo(__razor_helper_writer, " <dt");
541
542 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
543
544 WriteLiteralTo(__razor_helper_writer, ">\r\n");
545
546 WriteLiteralTo(__razor_helper_writer, " ");
547
548
549 #line 363 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
550 WriteTo(__razor_helper_writer, Translate("MolecularFamily","Molecular Family"));
551
552
553 #line default
554 #line hidden
555 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
556
557 WriteLiteralTo(__razor_helper_writer, " <dd");
558
559 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
560
561 WriteLiteralTo(__razor_helper_writer, ">\r\n");
562
563 WriteLiteralTo(__razor_helper_writer, " ");
564
565
566 #line 366 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
567 WriteTo(__razor_helper_writer, mfText);
568
569
570 #line default
571 #line hidden
572 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
573
574
575 #line 368 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
576 }
577
578
579 #line default
580 #line hidden
581 });
582
583 #line 369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
584 }
585 #line default
586 #line hidden
587
588
589 #line 371 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
590 public RazorEngine.Templating.TemplateWriter RenderCellType(string cellType)
591 {
592 #line default
593 #line hidden
594 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
595
596 #line 372 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
597
598 string ctText = "";
599 Dictionary<string, string> ctDict = new Dictionary<string, string>(){
600 {"Antigenpresentingcells","Antigen-presenting cells"},
601 {"Astrocytes","Astrocytes"},
602 {"Bcells","B cells"},
603 {"Basophils","Basophils"},
604 {"Dendriticcells","Dendritic cells"},
605 {"DopaminergicNeurons","Dopaminergic Neurons"},
606 {"EmbryonicStemCells","Embryonic Stem Cells"},
607 {"Endothelialcells","Endothelial cells"},
608 {"Eosinophils","Eosinophils"},
609 {"Epithelialcells","Epithelial cells"},
610 {"Erythrocytes","Erythrocytes"},
611 {"Fibroblasts","Fibroblasts"},
612 {"GABAergicNeurons","GABAergic Neurons"},
613 {"GlutamatergicNeurons","Glutamatergic Neurons"},
614 {"Granulocytes","Granulocytes"},
615 {"Hematopoieticstemandprogenitors","Hematopoietic stem and progenitors"},
616 {"Langerhanscells","Langerhans cells"},
617 {"Leukemia","Leukemia"},
618 {"Leukocytes","Leukocytes"},
619 {"Lymphocytes","Lymphocytes"},
620 {"Macrophages","Macrophages"},
621 {"Mastcells","Mast cells"},
622 {"MatureNeurons","Mature Neurons"},
623 {"Megakaryocytes","Megakaryocytes"},
624 {"Mesenchymalcells","Mesenchymal cells"},
625 {"MesenchymalStemCells","Mesenchymal Stem Cells"},
626 {"Microglia","Microglia"},
627 {"Monocytes","Monocytes"},
628 {"NeuralStemCells","Neural Stem Cells"},
629 {"Neurons","Neurons"},
630 {"Neutrophils","Neutrophils"},
631 {"NKcells","NK cells"},
632 {"NKTcells","NKT cells"},
633 {"Oligodendrocytes","Oligodendrocytes"},
634 {"Osteoblasts","Osteoblasts"},
635 {"Osteoclasts","Osteoclasts"},
636 {"Plasmacells","Plasma cells"},
637 {"Platelets","Platelets"},
638 {"Schwanncells","Schwann Cells"},
639 {"Tcells","T cells"},
640 {"Tfh","Tfh"},
641 {"Th1","Th1"},
642 {"Th2","Th2"},
643 {"Th17","Th17"},
644 {"Thymocytes","Thymocytes"},
645 {"Tregs","Tregs"}
646 };
647 if(!string.IsNullOrWhiteSpace(cellType))
648 {
649 string[] cellTypes = cellType.Split(',');
650 foreach (string thisType in cellTypes)
651 {
652 ctText += ctDict[thisType] + ", ";
653 }
654
655
656 ctText = ctText.Remove(ctText.Length-2);
657
658
659 #line default
660 #line hidden
661 WriteLiteralTo(__razor_helper_writer, " <dt");
662
663 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
664
665 WriteLiteralTo(__razor_helper_writer, ">\r\n");
666
667 WriteLiteralTo(__razor_helper_writer, " ");
668
669
670 #line 433 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
671 WriteTo(__razor_helper_writer, Translate("CellType","Cell Type"));
672
673
674 #line default
675 #line hidden
676 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
677
678 WriteLiteralTo(__razor_helper_writer, " <dd");
679
680 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
681
682 WriteLiteralTo(__razor_helper_writer, ">\r\n");
683
684 WriteLiteralTo(__razor_helper_writer, " ");
685
686
687 #line 436 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
688 WriteTo(__razor_helper_writer, ctText);
689
690
691 #line default
692 #line hidden
693 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
694
695
696 #line 438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
697 }
698
699
700 #line default
701 #line hidden
702 });
703
704 #line 439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
705 }
706 #line default
707 #line hidden
708
709
710 #line 441 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
711 public RazorEngine.Templating.TemplateWriter RenderIsoype(string isotype)
712 {
713 #line default
714 #line hidden
715 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
716
717 #line 442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
718
719 string ctText = "";
720 Dictionary<string, string> ctDict = new Dictionary<string, string>(){
721 {"","N/A"},
722 {"01","Armenian Hamster IgG"},
723 {"02","Armenian Hamster IgG1"},
724 {"03","Armenian Hamster IgG1, κ"},
725 {"04","Armenian Hamster IgG2, κ"},
726 {"05","Armenian Hamster IgM"},
727 {"06","Donkey Polyclonal Ig"},
728 {"07","Goat Ig"},
729 {"08","Goat IgG"},
730 {"09","Goat Polyclonal Ig"},
731 {"09_5","Goat Polyclonal IgG"},
732 {"10","Hamster IgG"},
733 {"11","Mouse (A.SW) IgG2a, κ"},
734 {"12","Mouse (BALB/c) IgE, κ"},
735 {"13","Mouse (BALB/c) IgG1, κ"},
736 {"14","Mouse (BALB/c) IgG2a, κ"},
737 {"15","Mouse (BALB/c) IgG2b, κ"},
738 {"16","Mouse (C3H.SW) IgG2a, κ"},
739 {"17","Mouse (C3H.SW) IgG3, κ"},
740 {"18","Mouse (C3H) IgG2a, κ"},
741 {"19","Mouse (C57BL/6) IgE, κ"},
742 {"20","Mouse (C57BL/6) IgG1, κ"},
743 {"21","Mouse (CWB) IgG2a, κ"},
744 {"22","Mouse (SJL) IgG2a, κ"},
745 {"23","Mouse (SJL) IgG2b, κ"},
746 {"24","Mouse IgA, κ"},
747 {"24_1","Mouse IgA"},
748 {"25","Mouse IgG"},
749 {"26","Mouse IgG, κ"},
750 {"27","Mouse IgG1"},
751 {"28","Mouse IgG1 (all clones)"},
752 {"29","Mouse IgG1/Mouse IgG2a"},
753 {"29_1","Mouse IgG1, κ/Mouse IgG2a, κ/Mouse IgG2b, κ"},
754 {"29_2","Mouse IgG1/Mouse IgM"},
755 {"31","Mouse IgG1, κ"},
756 {"31_1","Mouse IgG1, κ/Mouse IgG2a, κ"},
757 {"31_2","Mouse IgG1, κ/Rat IgG2b, κ"},
758 {"32","Mouse IgG1, κ (all clones)"},
759 {"32_2","Mouse IgG1, λ"},
760 {"33","Mouse IgG1/Mouse IgG2b"},
761 {"34","Mouse IgG2a"},
762 {"35","Mouse IgG2a, κ"},
763 {"36","Mouse (A.TL) IgG2a, κ"},
764 {"37","Mouse (C3H.KBR) IgG2a, κ"},
765 {"38","Mouse IgG2a, λ"},
766 {"39","Mouse IgG2b"},
767 {"40","Mouse IgG2b, κ"},
768 {"41","Mouse IgG2b, λ"},
769 {"41_2","Mouse IgG2c"},
770 {"41_5","Mouse IgG3"},
771 {"42","Mouse IgG3, κ"},
772 {"43","Mouse IgM"},
773 {"44","Mouse IgM, κ"},
774 {"45","Mouse IgM, λ"},
775 {"46","Mouse (C3H/HeJ) IgG2a, κ"},
776 {"46_5","Mouse Polyclonal"},
777 {"47","Rabbit IgG"},
778 {"47_1","Rabbit Ig"},
779 {"48","Rabbit Polyclonal IgG"},
780 {"48_5","Rabbit Polyclonal"},
781 {"49","Rat (SD) IgG2b, λ"},
782 {"49_5","Rat Polyclonal IgG"},
783 {"50","Rat IgG"},
784 {"51","Rat IgG, κ"},
785 {"52","Rat IgG1"},
786 {"53","Rat IgG1, κ"},
787 {"54","Rat IgG1, λ"},
788 {"55","Rat IgG2a"},
789 {"56","Rat IgG2a, κ"},
790 {"57","Rat IgG2a, λ"},
791 {"58","Rat IgG2a/Rat IgG1"},
792 {"59","Rat IgG2a/Rat IgG2b"},
793 {"59_1","Rat IgG2a, κ/Rat IgG2b, κ"},
794 {"59_2","Armenian Hamster IgG/Rat IgG2a/Rat IgG2b"},
795 {"59_3","Rat IgG2a, κ/Rat IgG2b, κ/Rat IgG2c, κ"},
796 {"60","Rat IgG2b"},
797 {"61","Rat IgG2b, κ"},
798 {"62","Rat IgG2b, λ"},
799 {"62_5","Rat IgG2c"},
800 {"64","Rat IgG2c, κ"},
801 {"64_5","Rat IgM"},
802 {"65","Rat IgM, κ"},
803 {"66","Syrian Hamster IgG"},
804 {"67","Armenian Hamster IgG1, λ"},
805 {"68","Chicken Polyclonal IgY"},
806 {"69","Sheep Polyclonal"},
807 {"70","Guinea Pig Polyclonal"},
808 {"81","Human IgG1"},
809 {"81_5","Human IgG1, κ"},
810 {"82","Human IgG2"},
811 {"82_5","Human IgG2, κ"},
812 {"83","Human IgG3"},
813 {"83_5","Human IgG3, κ"},
814 {"84","Human IgG4"},
815 {"84_5","Human IgG4, κ"},
816 {"99","TBD"},
817 {"47_5","Rabbit Polyclonal Ig"},
818 {"41_3","Mouse IgG2c, κ"},
819 {"67_9","Chicken IgY"},
820 {"40_1","Mouse IgG2b, κ/Mouse IgM, κ"},
821 {"33_1","Mouse IgG1, κ/Mouse IgG2b, κ"},
822 {"71","Llama VH Ig"}
823 };
824 if(!string.IsNullOrWhiteSpace(isotype))
825 {
826 string[] isotypes = isotype.Split(',');
827 foreach (string thisType in isotypes)
828 {
829 ctText += ctDict[thisType] + ", ";
830 }
831
832
833 ctText = ctText.Remove(ctText.Length-2);
834
835
836 #line default
837 #line hidden
838 WriteLiteralTo(__razor_helper_writer, " <dt");
839
840 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
841
842 WriteLiteralTo(__razor_helper_writer, ">\r\n");
843
844 WriteLiteralTo(__razor_helper_writer, " ");
845
846
847 #line 559 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
848 WriteTo(__razor_helper_writer, Translate("IsotypeLabel","Isotype"));
849
850
851 #line default
852 #line hidden
853 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
854
855 WriteLiteralTo(__razor_helper_writer, " <dd");
856
857 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
858
859 WriteLiteralTo(__razor_helper_writer, ">\r\n");
860
861 WriteLiteralTo(__razor_helper_writer, " ");
862
863
864 #line 562 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
865 WriteTo(__razor_helper_writer, ctText);
866
867
868 #line default
869 #line hidden
870 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
871
872
873 #line 564 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
874 }
875
876
877 #line default
878 #line hidden
879 });
880
881 #line 565 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
882 }
883 #line default
884 #line hidden
885
886
887 #line 567 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
888 public RazorEngine.Templating.TemplateWriter RenderLaser(string laser)
889 {
890 #line default
891 #line hidden
892 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
893
894 #line 568 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
895
896 string laserText = "";
897 string violetLaser = Translate("violetLaser","Violet Laser (405 nm)");
898 string blueLaser = Translate("blueLaser","Blue Laser (488 nm)");
899 string greenLaser = Translate("greenLaser","Green Laser (532 nm)/Yellow-Green Laser (561 nm)");
900 string redLaser = Translate("redLaser","Red Laser (633 nm)");
901 string ultravioletLaser = Translate("ultravioletLaser","Ultraviolet Laser (355 nm)");
902 string[] lasers = laser.Split(',');
903 foreach (string thisLaser in lasers)
904 {
905 if(thisLaser == "violetLaser"){
906 laserText += violetLaser + "<br />";
907 }
908 if(thisLaser == "blueLaser"){
909 laserText += blueLaser + "<br />";
910 }
911 if(thisLaser == "greenLaser"){
912 laserText += greenLaser + "<br />";
913 }
914 if(thisLaser == "redLaser"){
915 laserText += redLaser + "<br />";
916 }
917 if(thisLaser == "ultravioletLaser"){
918 laserText += ultravioletLaser + "<br />";
919 }
920 }
921
922 if(!string.IsNullOrWhiteSpace(laserText))
923 {
924
925
926 #line default
927 #line hidden
928 WriteLiteralTo(__razor_helper_writer, " <dt");
929
930 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
931
932 WriteLiteralTo(__razor_helper_writer, ">\r\n");
933
934 WriteLiteralTo(__razor_helper_writer, " ");
935
936
937 #line 598 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
938 WriteTo(__razor_helper_writer, Translate("ExcitationLaser","Excitation Laser"));
939
940
941 #line default
942 #line hidden
943 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
944
945 WriteLiteralTo(__razor_helper_writer, " <dd");
946
947 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
948
949 WriteLiteralTo(__razor_helper_writer, ">\r\n");
950
951 WriteLiteralTo(__razor_helper_writer, " ");
952
953
954 #line 601 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
955 WriteTo(__razor_helper_writer, laserText);
956
957
958 #line default
959 #line hidden
960 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
961
962
963 #line 603 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
964 }
965
966
967 #line default
968 #line hidden
969 });
970
971 #line 604 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
972 }
973 #line default
974 #line hidden
975
976
977 #line 606 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
978 public RazorEngine.Templating.TemplateWriter RenderSpectralData(string format = "", string productID = "")
979 {
980 #line default
981 #line hidden
982 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
983
984 #line 607 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
985
986 string variable = "";
987 string textAnchor = "";
988
989 if(format == "A488")
990 {
991 variable = "AF488";
992 textAnchor = "Alexa Fluor® 488";
993 }
994 else if(format == "A555")
995 {
996 variable = "AF555";
997 textAnchor = "Alexa Fluor® 555";
998 }
999 else if(format == "A594")
1000 {
1001 variable = "AF594";
1002 textAnchor = "Alexa Fluor® 594";
1003 }
1004 else if(format == "A647")
1005 {
1006 variable = "AF647";
1007 textAnchor = "Alexa Fluor® 647";
1008 }
1009 else if(format == "A660")
1010 {
1011 variable = "AF660";
1012 textAnchor = "Alexa Fluor® 660";
1013 }
1014 else if(format == "A700")
1015 {
1016 variable = "AF700";
1017 textAnchor = "Alexa Fluor® 700";
1018 }
1019 else if(format == "APC")
1020 {
1021 variable = "APC";
1022 textAnchor = "APC";
1023 }
1024 else if(format == "APC_CY5.5")
1025 {
1026 variable = "APCCY55";
1027 textAnchor = "APC/Cy5.5";
1028 }
1029 else if(format == "APC_CYANINE7")
1030 {
1031 variable = "APCCYANINE7";
1032 textAnchor = "APC/Cyanine7";
1033 }
1034 else if(format == "APC_F750")
1035 {
1036 variable = "APCF750";
1037 textAnchor = "APC/Fire™ 750";
1038 }
1039 else if(format == "BV421")
1040 {
1041 variable = "BV421";
1042 textAnchor = "Brilliant Violet 421™";
1043 }
1044 else if(format == "BV510")
1045 {
1046 variable = "BV510";
1047 textAnchor = "Brilliant Violet 510™";
1048 }
1049 else if(format == "BV570")
1050 {
1051 variable = "BV570";
1052 textAnchor = "Brilliant Violet 570™";
1053 }
1054 else if(format == "BV605")
1055 {
1056 variable = "BV605";
1057 textAnchor = "Brilliant Violet 605™";
1058 }
1059 else if(format == "BV650")
1060 {
1061 variable = "BV650";
1062 textAnchor = "Brilliant Violet 650™";
1063 }
1064 else if(format == "BV711")
1065 {
1066 variable = "BV711";
1067 textAnchor = "Brilliant Violet 711™";
1068 }
1069 else if(format == "BV750")
1070 {
1071 variable = "BV750";
1072 textAnchor = "Brilliant Violet 750™";
1073 }
1074 else if(format == "BV785")
1075 {
1076 variable = "BV785";
1077 textAnchor = "Brilliant Violet 785™";
1078 }
1079 else if(format == "CYANINE3")
1080 {
1081 variable = "CYANINE3";
1082 textAnchor = "Cyanine3";
1083 }
1084 else if(format == "CYANINE5")
1085 {
1086 variable = "CYANINE5";
1087 textAnchor = "Cyanine5";
1088 }
1089 else if(format == "FITC")
1090 {
1091 variable = "FITC";
1092 textAnchor = "FITC";
1093 }
1094 else if(format == "PB")
1095 {
1096 variable = "PB";
1097 textAnchor = "Pacific Blue™";
1098 }
1099 else if(format == "PE")
1100 {
1101 variable = "PE";
1102 textAnchor = "PE";
1103 }
1104 else if(format == "PE_CYANINE5")
1105 {
1106 variable = "PECYANINE5";
1107 textAnchor = "PE/Cyanine5";
1108 }
1109 else if(format == "PE_CY5.5")
1110 {
1111 variable = "PECY55";
1112 textAnchor = "PE/Cy5.5";
1113 }
1114 else if(format == "PE_CYANINE7")
1115 {
1116 variable = "PECYANINE7";
1117 textAnchor = "PE/Cyanine7";
1118 }
1119 else if(format == "PE_DZL594")
1120 {
1121 variable = "PEDZL594";
1122 textAnchor = "PE/Dazzle™ 594";
1123 }
1124 else if(format == "PERCP")
1125 {
1126 variable = "PERCP";
1127 textAnchor = "PerCP";
1128 }
1129 else if(format == "PERCP_CY55")
1130 {
1131 variable = "PERCPCYANINE55";
1132 textAnchor = "PerCP/Cyanine5.5";
1133 }
1134 //PerCP/Cyanine5.5
1135 else if(format == "PERCP_CYANINE5.5")
1136 {
1137 variable = "PERCPCYANINE55";
1138 textAnchor = "PerCP/Cyanine5.5";
1139 }
1140 //Flash Phalloidin NIR 647
1141 else if(productID == "13240")
1142 {
1143 variable = "FPNIR647";
1144 textAnchor = "Flash Phalloidin™ NIR 647";
1145 }
1146 //Flash Phalloidin Red 594
1147 else if(productID == "13203")
1148 {
1149 variable = "FPR594";
1150 textAnchor = "Flash Phalloidin™ Red 594";
1151 }
1152 //Flash Phalloidin Green 488
1153 else if(productID == "13950")
1154 {
1155 variable = "FPG488";
1156 textAnchor = "Flash Phalloidin™ Green 488";
1157 }
1158 //DAPI
1159 else if(productID == "8108")
1160 {
1161 variable = "DAPI";
1162 textAnchor = "DAPI (4',6-Diamidino-2-Phenylindole, Dilactate)";
1163 }
1164 //PI
1165 else if(productID == "2651")
1166 {
1167 variable = "PI";
1168 textAnchor = "Propidium Iodide";
1169 }
1170 //7AAD
1171 else if(productID == "1649")
1172 {
1173 variable = "7AAD";
1174 textAnchor = "7-AAD";
1175 }
1176 /* zombie Aqua */
1177 else if(productID == "8444")
1178 {
1179 variable = "ZA";
1180 textAnchor = "Zombie Aqua™";
1181 }
1182 /* zombie Green */
1183 else if(productID == "9340")
1184 {
1185 variable = "ZG";
1186 textAnchor = "Zombie Green™";
1187 }
1188 /* zombie NIR */
1189 else if(productID == "8657")
1190 {
1191 variable = "ZNIR";
1192 textAnchor = "Zombie NIR™";
1193 }
1194 /* zombie Red */
1195 else if(productID == "9338")
1196 {
1197 variable = "ZR";
1198 textAnchor = "Zombie Red™";
1199 }
1200 /* zombie Ultraviolet */
1201 else if(productID == "9336")
1202 {
1203 variable = "ZUV";
1204 textAnchor = "Zombie UV™";
1205 }
1206 /* zombie Violet */
1207 else if(productID == "9341")
1208 {
1209 variable = "ZV";
1210 textAnchor = "Zombie Violet™";
1211 }
1212 /* zombie Yellow */
1213 else if(productID == "8514")
1214 {
1215 variable = "ZY";
1216 textAnchor = "Zombie Yellow™";
1217 }
1218 /* zombie B550 */
1219 else if(productID == "23629")
1220 {
1221 variable = "ZB550";
1222 textAnchor = "Zombie B550™";
1223 }
1224 /* zombie Zombie YG581 */
1225 else if(productID == "23631")
1226 {
1227 variable = "ZYG581";
1228 textAnchor = "Zombie YG581™";
1229 }
1230 /* zombie R685 */
1231 else if(productID == "23628")
1232 {
1233 variable = "ZR685";
1234 textAnchor = "Zombie R685™";
1235 }
1236 /* zombie R718 */
1237 else if(productID == "23630")
1238 {
1239 variable = "ZR718";
1240 textAnchor = "Zombie R718™";
1241 }
1242 /* CFSE */
1243 else if(productID == "8053")
1244 {
1245 variable = "CFSE";
1246 textAnchor = "CFSE";
1247 }
1248 /* DRAQ7 */
1249 else if(productID == "9628")
1250 {
1251 variable = "DRAQ7";
1252 textAnchor = "DRAQ7™";
1253 }
1254 /* DRAQ5 */
1255 else if(productID == "9674")
1256 {
1257 variable = "DRAQ5";
1258 textAnchor = "DRAQ5™";
1259 }
1260
1261 /* Helix NP NIR */
1262 else if(productID == "13421")
1263 {
1264 variable = "HNPNIR";
1265 textAnchor = "Helix NP™ NIR";
1266 }
1267
1268 /* Cytophase Violet */
1269 else if (productID == "13786")
1270 {
1271 variable = "CV";
1272 textAnchor = "Cytophase™ Violet";
1273 }
1274
1275 /* PE Fire 640 */
1276 else if(format == "PE_F640")
1277 {
1278 variable = "PEFIRE640";
1279 textAnchor = "PE/Fire™ 640";
1280 }
1281
1282 /* PE Fire 700 */
1283 else if(format == "PE_F700")
1284 {
1285 variable = "PEFIRE700";
1286 textAnchor = "PE/Fire™ 700";
1287 }
1288
1289 /* PE Fire 744 */
1290 else if(format == "PE_F744")
1291 {
1292 variable = "PEFIRE744";
1293 textAnchor = "PE/Fire™ 744";
1294 }
1295
1296 /* PE Fire 780 */
1297 else if(format == "PE_F780")
1298 {
1299 variable = "PEFIRE780";
1300 textAnchor = "PE/Fire™ 780";
1301 }
1302
1303 /* PE Fire 810 */
1304 else if(format == "PE_F810")
1305 {
1306 variable = "PEFIRE810";
1307 textAnchor = "PE/Fire™ 810";
1308 }
1309
1310 /* DyLight 649 */
1311 else if(format == "D649")
1312 {
1313 variable = "DYLIGHT649";
1314 textAnchor = "DyLight® 649";
1315 }
1316
1317 /* Karavia 520 */
1318 else if(format == "KB520")
1319 {
1320 variable = "KB520";
1321 textAnchor = "KIRAVIA Blue 520™";
1322 }
1323
1324 /* Apotracker Green */
1325 else if (productID == "18527")
1326 {
1327 variable = "APOTRACKERGREEN";
1328 textAnchor = "Apotracker™ Green";
1329 }
1330
1331 /* Calcein Red-AM */
1332 else if (productID == "18901")
1333 {
1334 variable = "CRAM";
1335 textAnchor = "Calcein Red-AM";
1336 }
1337
1338 /* Spark YG 570 */
1339 else if(format == "SPKYG_570")
1340 {
1341 variable = "SPARKYG570";
1342 textAnchor = "Spark YG™ 570";
1343 }
1344
1345 /* Spark Violet 538 */
1346 else if(format == "SPKVL_538")
1347 {
1348 variable = "SPKV538";
1349 textAnchor = "Spark Violet™ 538";
1350 }
1351
1352 /* Spark YG 581 */
1353 else if(format == "SPKYG_581")
1354 {
1355 variable = "SPKYG581";
1356 textAnchor = "Spark YG™ 581";
1357 }
1358
1359 /* Spark Blue 574 */
1360 else if(format == "SPKBL_574")
1361 {
1362 variable = "SPARKB574";
1363 textAnchor = "Spark Blue™ 574";
1364 }
1365
1366 /* Spark Violet 423 */
1367 else if(format == "SPKVL_423")
1368 {
1369 variable = "SPKV423";
1370 textAnchor = "Spark Violet™ 423";
1371 }
1372
1373 /* Spark UV 387 */
1374 else if(format == "SPKUV_387")
1375 {
1376 variable = "SPARKUV387";
1377 textAnchor = "Spark UV™ 387";
1378 }
1379
1380 /* Spark Violet 500 */
1381 else if(format == "SPKVL_500")
1382 {
1383 variable = "SPARKV500";
1384 textAnchor = "Spark Violet™ 500";
1385 }
1386
1387 /* PerCP/Fire 780 */
1388 else if(format == "PERCP_F780")
1389 {
1390 variable = "PERCPF780";
1391 textAnchor = "PerCP/Fire™ 780";
1392 }
1393
1394 /* PerCP/Fire 806 */
1395 else if(format == "PERCP_F806")
1396 {
1397 variable = "PERCPF806";
1398 textAnchor = "PerCP/Fire™ 806";
1399 }
1400
1401 /* Spark Blue 515 */
1402 else if(format == "SPKBL_515")
1403 {
1404 variable = "SPKBL_515";
1405 textAnchor = "Spark Blue™ 515";
1406 }
1407
1408 /* Lysosome Probe Deep Red */
1409 else if(productID == "23745")
1410 {
1411 variable = "LPDR";
1412 textAnchor = "Lysosome Probe Deep Red";
1413 }
1414
1415 /* Lysosome Probe Green */
1416 else if(productID == "23741")
1417 {
1418 variable = "LPG";
1419 textAnchor = "Lysosome Probe Green";
1420 }
1421
1422 /* Lysosome Probe NIR */
1423 else if(productID == "23744")
1424 {
1425 variable = "LPNIR";
1426 textAnchor = "Lysosome Probe NIR";
1427 }
1428
1429 /* Lysosome Probe Orange */
1430 else if(productID == "23742")
1431 {
1432 variable = "LPO";
1433 textAnchor = "Lysosome Probe Orange";
1434 }
1435
1436 /* Lysosome Probe Red */
1437 else if(productID == "23743")
1438 {
1439 variable = "LPR";
1440 textAnchor = "Lysosome Probe Red";
1441 }
1442
1443 /* JC-10 Mitochondrial Membrane Potential Kit */
1444 else if(productID == "23092")
1445 {
1446 variable = "JC10MMPK";
1447 textAnchor = "JC-10 Mitochondrial Membrane Potential Kit";
1448 }
1449
1450 /* Spark PLUS UV 395 */
1451 else if(format == "SPKPLUSUV_395")
1452 {
1453 variable = "SPKPLUSUV_395";
1454 textAnchor = "Spark PLUS UV™ 395";
1455 }
1456
1457
1458
1459
1460
1461
1462 /* APC/Fire 810 */
1463 else if(format == "APC_F810")
1464 {
1465 variable = "APCF810";
1466 textAnchor = "APC/Fire™ 810";
1467 }
1468
1469 /* Spark Blue 550 */
1470 else if(format == "SPKBL_550")
1471 {
1472 variable = "SPKB550";
1473 textAnchor = "Spark Blue™ 550";
1474 }
1475
1476 /* Spark NIR 685 */
1477 else if(format == "SPKNIR_685")
1478 {
1479 variable = "SPKNIR685";
1480 textAnchor = "Spark NIR™ 685";
1481 }
1482
1483 /* Spark Red 718 */
1484 else if(format == "SPKR_718")
1485 {
1486 variable = "SPKR718";
1487 textAnchor = "Spark Red™ 718";
1488 }
1489
1490 /* Spark YG 593 */
1491 else if(format == "SPKYG_593")
1492 {
1493 variable = "SPKYG593";
1494 textAnchor = "Spark YG™ 593";
1495 }
1496
1497 /* GMP Alexa Fluor® 488 */
1498 else if(format == "GMP_A488")
1499 {
1500 variable = "AF488";
1501 textAnchor = "GMP Alexa Fluor® 488";
1502 }
1503
1504 /* GMP Alexa Fluor® 647 */
1505 else if(format == "GMP_A647")
1506 {
1507 variable = "AF647";
1508 textAnchor = "GMP Alexa Fluor® 647";
1509 }
1510
1511 /* GMP Alexa Fluor® 700 */
1512 else if(format == "GMP_A700")
1513 {
1514 variable = "AF700";
1515 textAnchor = "GMP Alexa Fluor® 700";
1516 }
1517
1518 /* GMP APC */
1519 else if(format == "GMP_APC")
1520 {
1521 variable = "APC";
1522 textAnchor = "GMP APC";
1523 }
1524
1525 /* GMP APC/Cyanine7 */
1526 else if(format == "GMP_APC_CYANINE7")
1527 {
1528 variable = "APCCYANINE7";
1529 textAnchor = "GMP APC/Cyanine7";
1530 }
1531
1532 /* GMP APC/Fire 750 */
1533 else if(format == "GMP_APC_F750")
1534 {
1535 variable = "APCF750";
1536 textAnchor = "GMP APC/Fire™ 750";
1537 }
1538
1539 /* GMP FITC */
1540 else if(format == "GMP_FITC")
1541 {
1542 variable = "FITC";
1543 textAnchor = "GMP FITC";
1544 }
1545
1546 /* GMP Pacific Blue */
1547 else if(format == "GMP_PB")
1548 {
1549 variable = "PB";
1550 textAnchor = "GMP Pacific Blue™";
1551 }
1552
1553 /* GMP PE */
1554 else if(format == "GMP_PE")
1555 {
1556 variable = "PE";
1557 textAnchor = "GMP PE";
1558 }
1559
1560 /* GMP PE/Cyanine5 */
1561 else if(format == "GMP_PE_CYANINE5")
1562 {
1563 variable = "PECYANINE5";
1564 textAnchor = "GMP PE/Cyanine5";
1565 }
1566
1567 /* GMP PE/Cyanine7 */
1568 else if(format == "GMP_PE_CYANINE7")
1569 {
1570 variable = "PECYANINE7";
1571 textAnchor = "GMP PE/Cyanine7";
1572 }
1573
1574 /* GMP PE/Dazzle 594 */
1575 else if(format == "GMP_PE_DZL594")
1576 {
1577 variable = "PEDZL594";
1578 textAnchor = "GMP PE/Dazzle™ 594";
1579 }
1580
1581 /* GMP PerCP */
1582 else if(format == "GMP_PERCP")
1583 {
1584 variable = "PERCP";
1585 textAnchor = "GMP PerCP";
1586 }
1587
1588 /* GMP PerCP/Cyanine5.5 */
1589 else if(format == "GMP_PERCP_CYANINE5.5")
1590 {
1591 variable = "PERCPCYANINE55";
1592 textAnchor = "GMP PerCP/Cyanine5.5";
1593 }
1594
1595 /* GMP Spark Violet 423 */
1596 else if(format == "GMP_SPKVL_423")
1597 {
1598 variable = "SPKV423";
1599 textAnchor = "GMP Spark Violet™ 423";
1600 }
1601
1602 /* GMP Spark Violet 538 */
1603 else if(format == "GMP_SPKVL_538")
1604 {
1605 variable = "SPKV538";
1606 textAnchor = "GMP Spark Violet™ 538";
1607 }
1608
1609
1610 if (!string.IsNullOrWhiteSpace(variable))
1611 {
1612 string spectraImage = "/Files/Images/media_assets/fluorophore_equivalency/data/"+variable+".png";
1613 bool fileExists = File.Exists(HttpContext.Current.Server.MapPath(spectraImage));
1614
1615 if(fileExists)
1616 {
1617
1618
1619 #line default
1620 #line hidden
1621 WriteLiteralTo(__razor_helper_writer, " <a");
1622
1623 WriteLiteralTo(__razor_helper_writer, " id=\"spectralDataLink\"");
1624
1625 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
1626
1627 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 34818), Tuple.Create("\'", 34861)
1628 , Tuple.Create(Tuple.Create("", 34825), Tuple.Create("javascript:loadSpectra(\"", 34825), true)
1629
1630 #line 1239 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1631 , Tuple.Create(Tuple.Create("", 34849), Tuple.Create<System.Object, System.Int32>(variable
1632
1633 #line default
1634 #line hidden
1635 , 34849), false)
1636 , Tuple.Create(Tuple.Create("", 34858), Tuple.Create("\");", 34858), true)
1637 );
1638
1639 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
1640
1641 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-iconLink\"");
1642
1643 WriteLiteralTo(__razor_helper_writer, "></i>\r\n");
1644
1645 WriteLiteralTo(__razor_helper_writer, " ");
1646
1647
1648 #line 1241 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1649 WriteTo(__razor_helper_writer, Translate("seeSpectralData","See {{Format}} spectral data").Replace("{{Format}}", textAnchor));
1650
1651
1652 #line default
1653 #line hidden
1654 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
1655
1656
1657 #line 1243 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1658 }
1659 }
1660
1661
1662 #line default
1663 #line hidden
1664 });
1665
1666 #line 1245 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1667 }
1668 #line default
1669 #line hidden
1670
1671
1672 #line 1247 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1673 public RazorEngine.Templating.TemplateWriter RenderMaterialDataSheet(string MSDS_Type = "", string MSDS_File = "", string MSDS_Options = "", string Regulatory_Status = "", string productID = "", string techSupportID = "", string translateAnchor = "", string translateAnchorCommingSoon = "",string translateAnchorNATechSupport = ""){
1674 #line default
1675 #line hidden
1676 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1677
1678 #line 1247 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1679
1680
1681 string msdsLink = "";
1682
1683 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE
1684
1685 if(MSDS_Type.Equals("LEAF"))
1686 {
1687 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEAF_NC_EN_CLP_2015-07-01.pdf";
1688 }
1689 else if(MSDS_Type.Equals("ELISAMAXStandard"))
1690 {
1691 msdsLink = "/dwcountry/sdsoptions-4416";
1692 }
1693 else if(MSDS_Type.Equals("ELISAMAXDeluxe"))
1694 {
1695 msdsLink = "/dwcountry/sdsoptions-4417";
1696 }
1697 else if(MSDS_Type.Equals("LEGENDMAX"))
1698 {
1699 msdsLink = "/dwcountry/sdsoptions-4419";
1700 }
1701 else if(MSDS_Type.Equals("LEGENDplex"))
1702 {
1703 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEGENDplex_COMP_SDS_2015-05-07_Revised.pdf";
1704 }
1705 else if(MSDS_Type.Equals("MojoSort"))
1706 {
1707 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/MojoSort_NC_EN_CLP2015-07-01.pdf";
1708 }
1709 else if(MSDS_Type.Equals("Streptavidin and Avidin"))
1710 {
1711 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Streptavidin_and_Avidin_NC_EN_CLP_2015-11-20.pdf";
1712 }
1713 else if(MSDS_Type.Equals("ASR"))
1714 {
1715 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Diagnostic_Pure_and_Conjugated_Antibodies RSD_United_States-3.pdf";
1716 }
1717 else if(MSDS_Type.Equals("7AAD"))
1718 {
1719 msdsLink = "/dwcountry/sdsoptions-28";
1720 }
1721 else if(MSDS_Type.Equals("IVD A"))
1722 {
1723 msdsLink = "/dwcountry/sdsoptions-4109";
1724 }
1725 else if(MSDS_Type.Equals("IVD B"))
1726 {
1727 msdsLink = "/dwcountry/sdsoptions-4110";
1728 }
1729 else if(MSDS_Type.Equals("Veri-Cells")){
1730 msdsLink = "/dwcountry/sdsoptions-4000";
1731 }
1732 else if(MSDS_Type.Equals("Flow Kit"))
1733 {
1734 msdsLink = "/dwcountry/sds";
1735 }
1736 else if(MSDS_Type.Equals("Zombie Dye"))
1737 {
1738 msdsLink = "/dwcountry/sdsoptions-4210";
1739 }
1740 else if(MSDS_Type.Equals("Calcein AM"))
1741 {
1742 msdsLink = "/dwcountry/sdsoptions-4209";
1743 }
1744 else if(MSDS_Type.Equals("Mitospy"))
1745 {
1746 msdsLink = "/dwcountry/sdsoptions-4208";
1747 }
1748 else if(MSDS_Type.Equals("LPXKit1"))
1749 {
1750 msdsLink = "/dwcountry/sdsoptions-4965";
1751 }
1752 else if(MSDS_Type.Equals("LPXKit2"))
1753 {
1754 msdsLink = "/dwcountry/sdsoptions-4966";
1755 }
1756 else if(MSDS_Type.Equals("LPXKit3"))
1757 {
1758 msdsLink = "/dwcountry/sdsoptions-4967";
1759 }
1760 else if(MSDS_Type.Equals("LPXKit4"))
1761 {
1762 msdsLink = "/dwcountry/sdsoptions-4968";
1763 }
1764 else if(MSDS_Type.Equals("LPXKit5"))
1765 {
1766 msdsLink = "/dwcountry/sdsoptions-4969";
1767 }
1768 else if(MSDS_Type.Equals("LPXKit7"))
1769 {
1770 msdsLink = "/dwcountry/sdsoptions-4971";
1771 }
1772 else if(MSDS_Type.Equals("LPXCaptureBead"))
1773 {
1774 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Capture_Beads.pdf";
1775 }
1776 else if(MSDS_Type.Equals("LPXLyophStandard"))
1777 {
1778 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Lyo_Formula_B.pdf";
1779 }
1780 else if(MSDS_Type.Equals("LPXLyophStandardSoloFormulationA"))
1781 {
1782 msdsLink = "/dwcountry/sdsoptions-4964";
1783 }
1784 else if(MSDS_Type.Equals("LyophilizedAntibodieswithAzide"))
1785 {
1786 msdsLink = "/dwcountry/sdsoptions-4494";
1787 }
1788 else if(MSDS_Type.Equals("RecProtein1"))
1789 {
1790 msdsLink = "/dwcountry/sdsoptions-4975";
1791 }
1792 else if(MSDS_Type.Equals("RecProtein2"))
1793 {
1794 msdsLink = "/dwcountry/sdsoptions-4973";
1795 }
1796 else if(MSDS_Type.Equals("RecProtein3"))
1797 {
1798 msdsLink = "/dwcountry/sdsoptions-4974";
1799 }
1800 else if(MSDS_Type.Equals("RecProtein4"))
1801 {
1802 msdsLink = "/dwcountry/sdsoptions-4976";
1803 }
1804 else if(MSDS_Type.Equals("RecProtein5"))
1805 {
1806 msdsLink = "/dwcountry/sdsoptions-4972";
1807 }
1808 else if(MSDS_Type.Equals("ELISAKIT1"))
1809 {
1810 msdsLink = "/dwcountry/sdsoptions-4978";
1811 }
1812 else if(MSDS_Type.Equals("ELISAKIT2"))
1813 {
1814 msdsLink = "/dwcountry/sdsoptions-4979";
1815 }
1816 else if(MSDS_Type.Equals("ELISAKIT3"))
1817 {
1818 msdsLink = "/dwcountry/sdsoptions-4981";
1819 }
1820 else if(MSDS_Type.Equals("ELISAKIT5"))
1821 {
1822 msdsLink = "/dwcountry/sdsoptions-4987";
1823 }
1824 else if(MSDS_Type.Equals("ELISAKIT7"))
1825 {
1826 msdsLink = "/dwcountry/sdsoptions-4986";
1827 }
1828 else if(MSDS_Type.Equals("ELISAKIT8"))
1829 {
1830 msdsLink = "/dwcountry/sdsoptions-4982";
1831 }
1832 else if(MSDS_Type.Equals("ELISAKIT9"))
1833 {
1834 msdsLink = "/dwcountry/sdsoptions-4984";
1835 }
1836 else if(MSDS_Type.Equals("ELISAKIT10"))
1837 {
1838 msdsLink = "/dwcountry/sdsoptions-4983";
1839 }
1840 else if(MSDS_Type.Equals("ELISAKIT11"))
1841 {
1842 msdsLink = "/dwcountry/sdsoptions-4988";
1843 }
1844 else if(MSDS_Type.Equals("ELISAKIT13"))
1845 {
1846 msdsLink = "/dwcountry/sdsoptions-4991";
1847 }
1848 else if(MSDS_Type.Equals("RAPIDMAXKIT1"))
1849 {
1850 msdsLink = "/dwcountry/sdsoptions-4997";
1851 }
1852 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_Options))
1853 {
1854 msdsLink = "/dwcountry/sdsoptions-"+MSDS_Options;
1855 }
1856 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_File))
1857 {
1858 msdsLink = MSDS_File;
1859 }
1860 else{
1861 msdsLink = "/dwcountry/sdsoptions-22";
1862 }
1863
1864 if(msdsLink.Contains("sds-options"))
1865 {
1866
1867
1868 #line default
1869 #line hidden
1870 WriteLiteralTo(__razor_helper_writer, " <a");
1871
1872 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 40563), Tuple.Create("\'", 40598)
1873
1874 #line 1434 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1875 , Tuple.Create(Tuple.Create("", 40570), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(msdsLink)
1876
1877 #line default
1878 #line hidden
1879 , 40570), false)
1880 );
1881
1882 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\"");
1883
1884 WriteLiteralTo(__razor_helper_writer, " title=\"\"");
1885
1886 WriteLiteralTo(__razor_helper_writer, "><i");
1887
1888 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-dataIcon\"");
1889
1890 WriteLiteralTo(__razor_helper_writer, "></i>");
1891
1892
1893 #line 1434 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1894 WriteTo(__razor_helper_writer, translateAnchor);
1895
1896
1897 #line default
1898 #line hidden
1899 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
1900
1901
1902 #line 1435 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1903 }
1904 else
1905 {
1906
1907
1908 #line default
1909 #line hidden
1910 WriteLiteralTo(__razor_helper_writer, " <a");
1911
1912 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\'", 40701), Tuple.Create("\'", 40779)
1913 , Tuple.Create(Tuple.Create("", 40708), Tuple.Create("javascript:openPopup(\"", 40708), true)
1914
1915 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1916 , Tuple.Create(Tuple.Create("", 40730), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(msdsLink)
1917
1918 #line default
1919 #line hidden
1920 , 40730), false)
1921 , Tuple.Create(Tuple.Create("", 40758), Tuple.Create("\",\"", 40758), true)
1922
1923 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1924 , Tuple.Create(Tuple.Create("", 40761), Tuple.Create<System.Object, System.Int32>(translateAnchor
1925
1926 #line default
1927 #line hidden
1928 , 40761), false)
1929 , Tuple.Create(Tuple.Create("", 40777), Tuple.Create("\")", 40777), true)
1930 );
1931
1932 WriteLiteralTo(__razor_helper_writer, "><i");
1933
1934 WriteLiteralTo(__razor_helper_writer, " class=\"bl bl-dataIcon\"");
1935
1936 WriteLiteralTo(__razor_helper_writer, "></i>");
1937
1938
1939 #line 1438 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1940 WriteTo(__razor_helper_writer, translateAnchor);
1941
1942
1943 #line default
1944 #line hidden
1945 WriteLiteralTo(__razor_helper_writer, "</a>\r\n");
1946
1947
1948 #line 1439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1949 }
1950
1951
1952 #line default
1953 #line hidden
1954 });
1955
1956 #line 1440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1957 }
1958 #line default
1959 #line hidden
1960
1961
1962 #line 1442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1963 public RazorEngine.Templating.TemplateWriter RenderCustomField( string productFieldType, string customField, string translate, LoopItem productObj = null){
1964 #line default
1965 #line hidden
1966 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
1967
1968 #line 1442 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1969
1970 string productTag;
1971 if (productObj != null)
1972 {
1973 productTag = productObj.GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean");
1974 }
1975 else
1976 {
1977 productTag = GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean");
1978 }
1979
1980 if(!string.IsNullOrWhiteSpace(productTag))
1981 {
1982
1983
1984 #line default
1985 #line hidden
1986 WriteLiteralTo(__razor_helper_writer, " <dt");
1987
1988 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
1989
1990 WriteLiteralTo(__razor_helper_writer, ">\r\n");
1991
1992 WriteLiteralTo(__razor_helper_writer, " ");
1993
1994
1995 #line 1456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
1996 WriteTo(__razor_helper_writer, translate);
1997
1998
1999 #line default
2000 #line hidden
2001 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
2002
2003 WriteLiteralTo(__razor_helper_writer, " <dd");
2004
2005 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
2006
2007 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2008
2009 WriteLiteralTo(__razor_helper_writer, " ");
2010
2011
2012 #line 1459 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2013 WriteTo(__razor_helper_writer, productTag);
2014
2015
2016 #line default
2017 #line hidden
2018 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
2019
2020
2021 #line 1461 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2022 }
2023
2024
2025 #line default
2026 #line hidden
2027 });
2028
2029 #line 1462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2030 }
2031 #line default
2032 #line hidden
2033
2034
2035 #line 1464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2036 public RazorEngine.Templating.TemplateWriter RenderABType( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null){
2037 #line default
2038 #line hidden
2039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2040
2041 #line 1464 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2042
2043 string productTag;
2044 if (productObj != null)
2045 {
2046 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value");
2047 }
2048 else
2049 {
2050 productTag = GetString("Ecom:Product:Field." + productField + ".Value");
2051 }
2052
2053 if(!string.IsNullOrWhiteSpace(productTag) && !productTag.Equals("N/A") )
2054 {
2055
2056
2057 #line default
2058 #line hidden
2059 WriteLiteralTo(__razor_helper_writer, " <dt");
2060
2061 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
2062
2063 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2064
2065 WriteLiteralTo(__razor_helper_writer, " ");
2066
2067
2068 #line 1478 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2069 WriteTo(__razor_helper_writer, translate);
2070
2071
2072 #line default
2073 #line hidden
2074 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
2075
2076 WriteLiteralTo(__razor_helper_writer, " <dd");
2077
2078 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
2079
2080 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2081
2082 WriteLiteralTo(__razor_helper_writer, " ");
2083
2084
2085 #line 1481 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2086 WriteTo(__razor_helper_writer, productTag);
2087
2088
2089 #line default
2090 #line hidden
2091 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
2092
2093
2094 #line 1483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2095 }
2096
2097
2098 #line default
2099 #line hidden
2100 });
2101
2102 #line 1484 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2103 }
2104 #line default
2105 #line hidden
2106
2107
2108 #line 1486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2109 public RazorEngine.Templating.TemplateWriter RenderProductField( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null, bool isCommaSeparatedList = false){
2110 #line default
2111 #line hidden
2112 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2113
2114 #line 1486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2115
2116
2117 var isPdf = Convert.ToBoolean(Dynamicweb.Context.Current.Request.Params["pdf"]);
2118 string appNotesID = "";
2119 string productTag = "";
2120
2121
2122 if (productObj != null)
2123 {
2124 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value");
2125 }
2126 else
2127 {
2128 productTag = GetString("Ecom:Product:Field." + productField + ".Value");
2129 }
2130
2131 if(isCommaSeparatedList){
2132
2133 productTag = productTag.Replace(",",", ");
2134
2135 }
2136
2137 if(productField.Equals("Reactivity") && productFieldType.Equals("RecombinantProteins")){}
2138 else if(!string.IsNullOrWhiteSpace(productTag))
2139 {
2140
2141
2142 #line default
2143 #line hidden
2144 WriteLiteralTo(__razor_helper_writer, " <dt");
2145
2146 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-3 noPaddingLeft\"");
2147
2148 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2149
2150 WriteLiteralTo(__razor_helper_writer, " ");
2151
2152
2153 #line 1512 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2154 WriteTo(__razor_helper_writer, translate);
2155
2156
2157 #line default
2158 #line hidden
2159 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n");
2160
2161
2162 #line 1514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2163
2164
2165
2166 #line default
2167 #line hidden
2168 WriteLiteralTo(__razor_helper_writer, " <dd");
2169
2170 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-9\"");
2171
2172 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2173
2174
2175 #line 1516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2176
2177
2178 #line default
2179 #line hidden
2180
2181 #line 1516 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2182 if(productField.Equals("Usage") && !str_productRegulatoryStatus.Equals("ASR")){
2183
2184
2185 #line default
2186 #line hidden
2187
2188 #line 1517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2189 WriteTo(__razor_helper_writer, UsageProductExceptions(productTag, str_productFormat, catalogFirstLetter, productFieldType, str_productName, productID));
2190
2191
2192 #line default
2193 #line hidden
2194
2195 #line 1517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2196
2197 }
2198 else if(productField.Equals("Disclaimer") && str_productRegulatoryStatus.Equals("ASR")){
2199 string replace = "";
2200 if(str_productFormat.Equals("PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL"))
2201 {
2202 var termsLink = "/dwcountry/terms";
2203 replace = "<br />Alexa Fluor® and Pacific Blue™ are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>";
2204 productTag += replace;
2205 }
2206
2207 if (isPdf)
2208 {
2209
2210
2211 #line default
2212 #line hidden
2213
2214 #line 1530 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2215 WriteTo(__razor_helper_writer, productTag);
2216
2217
2218 #line default
2219 #line hidden
2220
2221 #line 1530 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2222
2223 }
2224 else
2225 {
2226
2227
2228 #line default
2229 #line hidden
2230
2231 #line 1534 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2232 WriteTo(__razor_helper_writer, LocalizeLinksHTML(productTag));
2233
2234
2235 #line default
2236 #line hidden
2237
2238 #line 1534 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2239
2240 }
2241 }
2242 else
2243 {
2244 if (isPdf)
2245 {
2246
2247
2248 #line default
2249 #line hidden
2250
2251 #line 1541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2252 WriteTo(__razor_helper_writer, productTag);
2253
2254
2255 #line default
2256 #line hidden
2257
2258 #line 1541 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2259
2260 }
2261 else
2262 {
2263
2264
2265 #line default
2266 #line hidden
2267
2268 #line 1545 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2269 WriteTo(__razor_helper_writer, LocalizeLinksHTML(productTag));
2270
2271
2272 #line default
2273 #line hidden
2274
2275 #line 1545 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2276
2277 }
2278 }
2279
2280 #line default
2281 #line hidden
2282 WriteLiteralTo(__razor_helper_writer, "\r\n");
2283
2284 WriteLiteralTo(__razor_helper_writer, " ");
2285
2286
2287 #line 1548 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2288 WriteTo(__razor_helper_writer, AddShelfLifeException(productField,productID));
2289
2290
2291 #line default
2292 #line hidden
2293 WriteLiteralTo(__razor_helper_writer, "\r\n");
2294
2295 WriteLiteralTo(__razor_helper_writer, " ");
2296
2297
2298 #line 1549 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2299 WriteTo(__razor_helper_writer, AddActivationBundleException(productField,productID));
2300
2301
2302 #line default
2303 #line hidden
2304 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
2305
2306
2307 #line 1551 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2308 }
2309
2310
2311 #line default
2312 #line hidden
2313 });
2314
2315 #line 1552 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2316 }
2317 #line default
2318 #line hidden
2319
2320
2321 #line 1554 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2322 public RazorEngine.Templating.TemplateWriter RenderLongDescription(string productField, string productID = "", bool isPdf = false)
2323 {
2324 #line default
2325 #line hidden
2326 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2327
2328 #line 1555 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2329
2330 string replace = "";
2331
2332 if (productID.Equals("8309") || productID.Equals("14141"))
2333 {
2334 replace = "<br /><br /><a href=\"/legendscreen\" title=\"LEGENDScreen™ Antibody Panels\">Learn more about LEGENDScreen™ Antibody Panels and view plate maps.</a>";
2335 productField += replace;
2336 }
2337
2338 if (isPdf)
2339 {
2340
2341
2342 #line default
2343 #line hidden
2344
2345 #line 1566 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2346 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(productField));
2347
2348
2349 #line default
2350 #line hidden
2351
2352 #line 1566 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2353
2354 }
2355 else
2356 {
2357
2358
2359 #line default
2360 #line hidden
2361
2362 #line 1570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2363 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(LocalizeLinksHTML(productField)));
2364
2365
2366 #line default
2367 #line hidden
2368
2369 #line 1570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2370
2371 }
2372
2373
2374 #line default
2375 #line hidden
2376 });
2377
2378 #line 1572 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2379 }
2380 #line default
2381 #line hidden
2382
2383
2384 #line 1574 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2385 public RazorEngine.Templating.TemplateWriter RenderCustomConjugationButton( string catalogFirstTwoNumbers = "00", string catalogFirstThreeNumbers = "000", string formRequestConjugation = ""){
2386 #line default
2387 #line hidden
2388 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2389
2390 #line 1574 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2391
2392 if(catalogFirstTwoNumbers == "42" || catalogFirstTwoNumbers == "43" || catalogFirstTwoNumbers == "44" || catalogFirstTwoNumbers == "48" || catalogFirstTwoNumbers == "55" || catalogFirstTwoNumbers == "56" || catalogFirstTwoNumbers == "57" || catalogFirstTwoNumbers == "58" || catalogFirstTwoNumbers == "59" || catalogFirstTwoNumbers == "70" || catalogFirstTwoNumbers == "71" || catalogFirstTwoNumbers == "74" || catalogFirstTwoNumbers == "75" || catalogFirstTwoNumbers == "76" || catalogFirstThreeNumbers == "401" || catalogFirstThreeNumbers == "402" || catalogFirstThreeNumbers == "403" || catalogFirstThreeNumbers == "404" || catalogFirstThreeNumbers == "842" || catalogFirstThreeNumbers == "843" )
2393 {}
2394 else{
2395 var customConjugationFormLink = @LocalizeLinksHTML("/dwcountry/custom-solutions/custom-requests-form");
2396
2397
2398 #line default
2399 #line hidden
2400 WriteLiteralTo(__razor_helper_writer, "<a");
2401
2402 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-default\"");
2403
2404 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 46493), Tuple.Create("\"", 46526)
2405
2406 #line 1579 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2407 , Tuple.Create(Tuple.Create("", 46500), Tuple.Create<System.Object, System.Int32>(customConjugationFormLink
2408
2409 #line default
2410 #line hidden
2411 , 46500), false)
2412 );
2413
2414 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2415
2416 WriteLiteralTo(__razor_helper_writer, " ");
2417
2418
2419 #line 1580 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2420 WriteTo(__razor_helper_writer, Translate("requestCustomConjugation","Request Custom Conjugation"));
2421
2422
2423 #line default
2424 #line hidden
2425 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
2426
2427
2428 #line 1582 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2429 }
2430
2431
2432 #line default
2433 #line hidden
2434 });
2435
2436 #line 1583 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2437 }
2438 #line default
2439 #line hidden
2440
2441
2442 #line 1585 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2443 public RazorEngine.Templating.TemplateWriter UsageProductExceptions(string productField, string str_productFormat, string catalogFirstLetter = "0", string productFieldType = "", string str_productName = "", string productID = "")
2444 {
2445 #line default
2446 #line hidden
2447 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2448
2449 #line 1586 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2450
2451 string str = "Each lot of this antibody is quality control tested by immunofluorescent staining with flow cytometric analysis";
2452 string replace = "";
2453
2454 if ( productField.Contains(str))
2455 {
2456 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">immunofluorescent staining with flow cytometric analysis</a>");
2457 }
2458
2459 str = "Each lot of these antibodies is quality control tested by immunofluorescent staining with flow cytometric analysis";
2460 if ( productField.Contains(str))
2461 {
2462 productField = productField.Replace(str,"Each lot of these antibodies is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">immunofluorescent staining with flow cytometric analysis</a>");
2463 }
2464
2465 str = "Each lot of this antibody is quality control tested by cell surface immunofluorescent staining with flow cytometric analysis as negative control.";
2466 if ( productField.Contains(str))
2467 {
2468 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">cell surface immunofluorescent staining</a> with flow cytometric analysis as negative control.");
2469 }
2470
2471 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis as negative control.";
2472 if ( productField.Contains(str))
2473 {
2474 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\">intracellular immunofluorescence staining</a> with flow cytometric analysis as negative control.");
2475 }
2476
2477 str = "Each lot of this antibody is quality control tested by Western blotting.";
2478 if ( productField.Contains(str))
2479 {
2480 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/western-blotting-protocol/4269/\" target=\"_blank\" title=\"View Protocol\">Western blotting</a>.");
2481 }
2482
2483 str = "Each lot of this antibody is quality control tested by ELISA assay.";
2484 if ( productField.Contains(str))
2485 {
2486 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\">ELISA assay</a>.");
2487 }
2488
2489 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis.";
2490 if ( productField.Contains(str))
2491 {
2492 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\">intracellular immunofluorescent staining with flow cytometric analysis</a>.");
2493 }
2494
2495 str = "Each lot of this protein is quality control tested by ELISA assay.";
2496 if ( productField.Contains(str))
2497 {
2498 productField = productField.Replace(str,"Each lot of this protein is quality control tested by <a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\">ELISA assay</a>.");
2499 }
2500
2501 str = "Each lot of this antibody is quality control tested by Immunofluorescence staining.";
2502 if ( productField.Contains(str))
2503 {
2504 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/immunofluorescence-microscopy-protocol/4275/\" target=\"_blank\" title=\"View Protocol\">immunofluorescence staining</a>.");
2505 }
2506
2507 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Cell Suspensions Protocol.";
2508 if ( productField.Contains(str))
2509 {
2510 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our <a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-cell-suspensions-protocol/4262/\" target=\"_blank\" title=\"View Protocol\">True-Phos™ Perm Buffer in Cell Suspensions Protocol</a>.");
2511 }
2512
2513 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Whole Blood Protocol.";
2514 if ( productField.Contains(str))
2515 {
2516 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our <a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-whole-blood/4261/\" target=\"_blank\" title=\"View Protocol\">True-Phos™ Perm Buffer in Whole Blood Protocol</a>.");
2517 }
2518
2519
2520 if(str_productFormat.Equals("PB") || str_productFormat.Equals("GMP_PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL") || str_productFormat.Equals("GMP_A488") || str_productFormat.Equals("GMP_A647") || str_productFormat.Equals("GMP_A700"))
2521 {
2522 var termsLink = "/dwcountry/terms";
2523 replace = "<br />Alexa Fluor® and Pacific Blue™ are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>";
2524 productField += replace;
2525 }
2526
2527 if (productID == "9340")
2528 {
2529 replace = "<br />This product is provided under an intellectual property license from Life Technologies Corporation.<br /><br /><a href=\"/Files/Images/media_assets/support_resource/Limited_Use_Label_License_For_Licensee_Products_Sold_in_the_Research_Field.pdf\" target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>";
2530 productField += replace;
2531 }
2532
2533 str = "* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and 564 nm and a maximum emission of 690 nm.";
2534 if ( productField.Contains(str))
2535 {
2536 productField = productField.Replace(str,"* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and a maximum emission of 690 nm.");
2537 }
2538
2539 str = "* PerCP has a maximum absorption of 482 nm and 564 nm and a maximum emission of 675 nm.";
2540 if ( productField.Contains(str))
2541 {
2542 productField = productField.Replace(str,"* PerCP has a maximum absorption of 482 nm and a maximum emission of 675 nm.");
2543 }
2544
2545 if ( str_productFormat.Equals("KB520"))
2546 {
2547 replace = "<br />KIRAVIA Blue™ 520 is a trademark of Sony. This product is subject to proprietary rights of Sony and is made and sold under license from Sony Corporation. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents.<br /><br />Sony and the Sony logo are registered trademarks of Sony Corporation.";
2548 productField += replace;
2549 }
2550
2551 if ( str_productFormat.Equals("APC_F810"))
2552 {
2553 var fireLink = "/dwcountry/fire-dyes";
2554 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect APC/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page.";
2555 productField += replace;
2556 }
2557
2558 if ( str_productFormat.Equals("PE_F810"))
2559 {
2560 var fireLink = "/dwcountry/fire-dyes";
2561 replace = "<br />Excessive exposure to light, and commonly used fixation, permeabilization buffers can affect PE/Fire™ 810 fluorescence signal intensity and spread. Please keep conjugates protected from light exposure. For more information and representative data, visit our <a href=\""+@LocalizeLinksHTML(fireLink)+"\">Fire Dyes</a> page.";
2562 productField += replace;
2563 }
2564
2565 if ( str_productName.Contains("Brilliant"))
2566 {
2567 var bvLink = "/dwcountry/brilliant-violet";
2568 replace = "<br /><a href=\""+@LocalizeLinksHTML(bvLink)+"\" title=\"Brilliant Violet™\">Learn more about Brilliant Violet™</a>. <br /><br />This product is subject to proprietary rights of Sirigen Inc. and is made and sold under license from Sirigen Inc. The purchase of this product conveys to the buyer a non-transferable right to use the purchased product for research purposes only. This product may not be resold or incorporated in any manner into another product for resale. Any use for therapeutics or diagnostics is strictly prohibited. This product is covered by U.S. Patent(s), pending patent applications and foreign equivalents.";
2569 productField += replace;
2570 }
2571
2572 if ( str_productName.Contains("TotalSeq"))
2573 {
2574 replace = "<br />Buyer is solely responsible for determining whether Buyer has all intellectual property rights that are necessary for Buyer's intended uses of the BioLegend TotalSeq™ products. For example, for any technology platform Buyer uses with TotalSeq™, it is Buyer's sole responsibility to determine whether it has all necessary third party intellectual property rights to use that platform and TotalSeq™ with that platform.";
2575 productField += replace;
2576 }
2577
2578
2579
2580 #line default
2581 #line hidden
2582
2583 #line 1714 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2584 WriteTo(__razor_helper_writer, System.Web.HttpUtility.HtmlDecode(productField));
2585
2586
2587 #line default
2588 #line hidden
2589
2590 #line 1714 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2591
2592
2593
2594 #line default
2595 #line hidden
2596 });
2597
2598 #line 1715 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2599 }
2600 #line default
2601 #line hidden
2602
2603
2604 #line 1717 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2605 public RazorEngine.Templating.TemplateWriter AddActivationBundleException(string productField, string productID = "")
2606 {
2607 #line default
2608 #line hidden
2609 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2610
2611 #line 1718 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2612
2613 if(productField.Equals("Usage") && !string.IsNullOrWhiteSpace(productID))
2614 {
2615 Dictionary<string, string> lstNumbers = new Dictionary<string, string>();
2616 lstNumbers.Add("24","24");
2617 lstNumbers.Add("114","114");
2618 lstNumbers.Add("4526","4526");
2619 lstNumbers.Add("6479","6479");
2620 lstNumbers.Add("892","892");
2621 lstNumbers.Add("7236","7236");
2622 lstNumbers.Add("5833","5833");
2623 lstNumbers.Add("996","996");
2624 lstNumbers.Add("5469","5469");
2625 lstNumbers.Add("6959","6959");
2626
2627 if(lstNumbers.ContainsKey(productID))
2628 {
2629
2630
2631 #line default
2632 #line hidden
2633 WriteLiteralTo(__razor_helper_writer, " ");
2634
2635 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n ");
2636
2637 WriteLiteralTo(__razor_helper_writer, "\r\n");
2638
2639
2640 #line 1738 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2641
2642
2643 #line default
2644 #line hidden
2645
2646 #line 1738 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2647 WriteTo(__razor_helper_writer, Translate("ActivationBundle","This product is included in our Activation Bundles. <a href=\"/activation_bundles\" title=\"Activation Bundles\">Learn more...</a>"));
2648
2649
2650 #line default
2651 #line hidden
2652
2653 #line 1738 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2654
2655 }
2656
2657 }
2658
2659
2660 #line default
2661 #line hidden
2662 });
2663
2664 #line 1742 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2665 }
2666 #line default
2667 #line hidden
2668
2669
2670 #line 1744 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2671 public RazorEngine.Templating.TemplateWriter CalculateFooterDisclaimer(string footerDisclaimer, string regulatoryStatus, string format)
2672 {
2673 #line default
2674 #line hidden
2675 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2676
2677 #line 1745 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2678
2679
2680 var licenceLink = LocalizeLinksHTML("/dwcountry/ordering#license");
2681 var termsLink = LocalizeLinksHTML("/dwcountry/terms");
2682
2683 var customFooterDisclaimer = footerDisclaimer + "<p> </p>";
2684
2685 var ASRDisclaimer = "<p>Analyte Specific Reagent. Analytical and performance characteristics are not established.</p><p> </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> </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> </p>";
2686
2687 var IVDDisclaimer = "<p>For In Vitro Diagnostic Use. Not for therapeutic use.</p><p> </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> </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> </p>";
2688
2689 var GMPRUODisclaimer = "<p>For Research Use Only. Suitable for <em>ex vivo</em> cell processing. Not for injection or diagnostic or therapeutic use. </p><p> </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> </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> </p>";
2690
2691 var RUODisclaimer = "<p>For Research Use Only. Not for diagnostic or therapeutic use.</p><p> </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> </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> </p>";
2692
2693 if ( !String.IsNullOrEmpty(footerDisclaimer) && footerDisclaimer != "" )
2694 {
2695
2696
2697 #line default
2698 #line hidden
2699
2700 #line 1762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2701 WriteTo(__razor_helper_writer, customFooterDisclaimer);
2702
2703
2704 #line default
2705 #line hidden
2706
2707 #line 1762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2708
2709 }
2710 else if( regulatoryStatus.Equals("ASR") )
2711 {
2712
2713
2714 #line default
2715 #line hidden
2716
2717 #line 1766 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2718 WriteTo(__razor_helper_writer, LocalizeLinksHTML(ASRDisclaimer));
2719
2720
2721 #line default
2722 #line hidden
2723
2724 #line 1766 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2725
2726 }
2727 else if( regulatoryStatus.Equals("IVD") ){
2728
2729
2730 #line default
2731 #line hidden
2732
2733 #line 1769 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2734 WriteTo(__razor_helper_writer, LocalizeLinksHTML(IVDDisclaimer));
2735
2736
2737 #line default
2738 #line hidden
2739
2740 #line 1769 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2741
2742 }
2743 else if ( regulatoryStatus.Equals("GMP-RUO") )
2744 {
2745
2746
2747 #line default
2748 #line hidden
2749
2750 #line 1773 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2751 WriteTo(__razor_helper_writer, LocalizeLinksHTML(GMPRUODisclaimer));
2752
2753
2754 #line default
2755 #line hidden
2756
2757 #line 1773 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2758
2759 }
2760 else{
2761
2762
2763 #line default
2764 #line hidden
2765
2766 #line 1776 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2767 WriteTo(__razor_helper_writer, LocalizeLinksHTML(RUODisclaimer));
2768
2769
2770 #line default
2771 #line hidden
2772
2773 #line 1776 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2774
2775 }
2776
2777
2778 #line default
2779 #line hidden
2780 });
2781
2782 #line 1778 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2783 }
2784 #line default
2785 #line hidden
2786
2787
2788 #line 1780 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2789 public RazorEngine.Templating.TemplateWriter CalculateCloneString(string clone, string otherFormats, bool asrCheck, string searchID, bool isPdf = false)
2790 {
2791 #line default
2792 #line hidden
2793 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
2794
2795 #line 1781 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2796
2797 if (!string.IsNullOrEmpty(clone))
2798 {
2799
2800
2801 #line default
2802 #line hidden
2803 WriteLiteralTo(__razor_helper_writer, " ");
2804
2805 WriteLiteralTo(__razor_helper_writer, "\r\n <dt");
2806
2807 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-sm-3 noPaddingLeft\"");
2808
2809 WriteLiteralTo(__razor_helper_writer, ">\r\n");
2810
2811 WriteLiteralTo(__razor_helper_writer, " ");
2812
2813
2814 #line 1786 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2815 WriteTo(__razor_helper_writer, GetString("Ecom:Product:Field.Clone.Name"));
2816
2817
2818 #line default
2819 #line hidden
2820 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n ");
2821
2822 WriteLiteralTo(__razor_helper_writer, "\r\n");
2823
2824
2825 #line 1789 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2826 if (asrCheck)
2827 {
2828
2829
2830 #line default
2831 #line hidden
2832 WriteLiteralTo(__razor_helper_writer, " <dd>");
2833
2834
2835 #line 1791 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2836 WriteTo(__razor_helper_writer, clone);
2837
2838
2839 #line default
2840 #line hidden
2841 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n");
2842
2843
2844 #line 1792 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2845 }
2846 else
2847 {
2848 if (clone.Contains(";"))
2849 {
2850 if (isPdf)
2851 {
2852
2853
2854 #line default
2855 #line hidden
2856 WriteLiteralTo(__razor_helper_writer, " <dd>");
2857
2858
2859 #line 1799 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2860 WriteTo(__razor_helper_writer, clone);
2861
2862
2863 #line default
2864 #line hidden
2865 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n");
2866
2867
2868 #line 1800 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2869 }
2870 else{
2871 string[] clones = (clone).Replace(" ", "").Split(';');
2872
2873
2874 #line default
2875 #line hidden
2876 WriteLiteralTo(__razor_helper_writer, " <dd>\r\n");
2877
2878
2879 #line 1804 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2880
2881
2882 #line default
2883 #line hidden
2884
2885 #line 1804 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2886 foreach (var x in clones)
2887 {
2888 string cloneHTML = System.Web.HttpUtility.HtmlDecode(x);
2889 string cloneTag = "; ";
2890 if (!isPdf)
2891 {
2892
2893
2894 #line default
2895 #line hidden
2896 WriteLiteralTo(__razor_helper_writer, " <a");
2897
2898 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64095), Tuple.Create("\"", 64149)
2899 , Tuple.Create(Tuple.Create("", 64102), Tuple.Create("/Default.aspx?ID=", 64102), true)
2900
2901 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2902 , Tuple.Create(Tuple.Create("", 64119), Tuple.Create<System.Object, System.Int32>(searchID
2903
2904 #line default
2905 #line hidden
2906 , 64119), false)
2907 , Tuple.Create(Tuple.Create("", 64128), Tuple.Create("&Clone=", 64128), true)
2908
2909 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2910 , Tuple.Create(Tuple.Create("", 64139), Tuple.Create<System.Object, System.Int32>(cloneHTML
2911
2912 #line default
2913 #line hidden
2914 , 64139), false)
2915 );
2916
2917 WriteLiteralTo(__razor_helper_writer, ">");
2918
2919
2920 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2921 WriteTo(__razor_helper_writer, x);
2922
2923
2924 #line default
2925 #line hidden
2926 WriteLiteralTo(__razor_helper_writer, "</a>");
2927
2928
2929 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2930
2931
2932 #line default
2933 #line hidden
2934
2935 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2936 WriteTo(__razor_helper_writer, cloneTag);
2937
2938
2939 #line default
2940 #line hidden
2941
2942 #line 1810 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2943
2944 }
2945
2946 }
2947
2948 #line default
2949 #line hidden
2950 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n");
2951
2952
2953 #line 1815 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2954 }
2955 }
2956 else
2957 {
2958 if (isPdf)
2959 {
2960
2961
2962 #line default
2963 #line hidden
2964 WriteLiteralTo(__razor_helper_writer, " <dd>");
2965
2966
2967 #line 1821 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2968 WriteTo(__razor_helper_writer, clone);
2969
2970
2971 #line default
2972 #line hidden
2973 WriteLiteralTo(__razor_helper_writer, "</dd>\r\n");
2974
2975
2976 #line 1822 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2977 }
2978 else
2979 {
2980
2981
2982 #line default
2983 #line hidden
2984 WriteLiteralTo(__razor_helper_writer, " <dd><a");
2985
2986 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64504), Tuple.Create("\"", 64591)
2987 , Tuple.Create(Tuple.Create("", 64511), Tuple.Create("/Default.aspx?ID=", 64511), true)
2988
2989 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2990 , Tuple.Create(Tuple.Create("", 64528), Tuple.Create<System.Object, System.Int32>(searchID
2991
2992 #line default
2993 #line hidden
2994 , 64528), false)
2995 , Tuple.Create(Tuple.Create("", 64537), Tuple.Create("&Clone=", 64537), true)
2996
2997 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
2998 , Tuple.Create(Tuple.Create("", 64548), Tuple.Create<System.Object, System.Int32>(System.Web.HttpUtility.HtmlDecode(clone)
2999
3000 #line default
3001 #line hidden
3002 , 64548), false)
3003 );
3004
3005 WriteLiteralTo(__razor_helper_writer, ">");
3006
3007
3008 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3009 WriteTo(__razor_helper_writer, clone);
3010
3011
3012 #line default
3013 #line hidden
3014 WriteLiteralTo(__razor_helper_writer, "</a> (<a");
3015
3016 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64607), Tuple.Create("\"", 64627)
3017
3018 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3019 , Tuple.Create(Tuple.Create("", 64614), Tuple.Create<System.Object, System.Int32>(otherFormats
3020
3021 #line default
3022 #line hidden
3023 , 64614), false)
3024 );
3025
3026 WriteLiteralTo(__razor_helper_writer, ">");
3027
3028
3029 #line 1825 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3030 WriteTo(__razor_helper_writer, Translate("SeeOtherAvailableFormats", "See other available formats"));
3031
3032
3033 #line default
3034 #line hidden
3035 WriteLiteralTo(__razor_helper_writer, "</a>)</dd>\r\n");
3036
3037
3038 #line 1826 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3039 }
3040 }
3041 }
3042 }
3043
3044
3045 #line default
3046 #line hidden
3047 });
3048
3049 #line 1830 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3050 }
3051 #line default
3052 #line hidden
3053
3054
3055 #line 1832 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3056 public RazorEngine.Templating.TemplateWriter AddShelfLifeException(string productField, string productID = "")
3057 {
3058 #line default
3059 #line hidden
3060 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3061
3062 #line 1833 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3063
3064 if(productField.Equals("Storage") && !string.IsNullOrWhiteSpace(productID))
3065 {
3066 Dictionary<string, string> lstNumbersUse = new Dictionary<string, string>();
3067 lstNumbersUse.Add("1395","1395");
3068 lstNumbersUse.Add("1396","1396");
3069 lstNumbersUse.Add("1474","1474");
3070 lstNumbersUse.Add("2264","2264");
3071 lstNumbersUse.Add("2507","2507");
3072
3073 Dictionary<string, string> lstNumbers = new Dictionary<string, string>();
3074 lstNumbers.Add("2508","2508");
3075 lstNumbers.Add("2915","2915");
3076 lstNumbers.Add("2939","2939");
3077 lstNumbers.Add("2988","2988");
3078 lstNumbers.Add("2989","2989");
3079 lstNumbers.Add("3071","3071");
3080 lstNumbers.Add("3177","3177");
3081 lstNumbers.Add("3180","3180");
3082 lstNumbers.Add("3194","3194");
3083 lstNumbers.Add("3195","3195");
3084 lstNumbers.Add("3843","3843");
3085 lstNumbers.Add("4347","4347");
3086 lstNumbers.Add("4664","4664");
3087 lstNumbers.Add("5654","5654");
3088 lstNumbers.Add("5660","5660");
3089 lstNumbers.Add("6373","6373");
3090 lstNumbers.Add("6398","6398");
3091 lstNumbers.Add("6646","6646");
3092 lstNumbers.Add("8053","8053");
3093 lstNumbers.Add("8135","8135");
3094 lstNumbers.Add("9539","9539");
3095
3096 if(lstNumbersUse.ContainsKey(productID))
3097 {
3098
3099
3100 #line default
3101 #line hidden
3102 WriteLiteralTo(__razor_helper_writer, " ");
3103
3104 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <br/>\r\n ");
3105
3106 WriteLiteralTo(__razor_helper_writer, "\r\n");
3107
3108
3109 #line 1872 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3110
3111
3112 #line default
3113 #line hidden
3114
3115 #line 1872 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3116 WriteTo(__razor_helper_writer, Translate("LookUpConcentrationLookUpStorage","This product has a shelf-life of 12 months or less. Please use our <a href=\"/concentrationlookup\" target=\"_blank\">Expiration Lookup Tool</a> to verify the expiration date of your lot of product"));
3117
3118
3119 #line default
3120 #line hidden
3121
3122 #line 1872 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3123
3124 }else if(lstNumbers.ContainsKey(productID))
3125 {
3126
3127
3128 #line default
3129 #line hidden
3130 WriteLiteralTo(__razor_helper_writer, " ");
3131
3132 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <br/>\r\n ");
3133
3134 WriteLiteralTo(__razor_helper_writer, "\r\n");
3135
3136
3137 #line 1879 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3138
3139
3140 #line default
3141 #line hidden
3142
3143 #line 1879 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3144 WriteTo(__razor_helper_writer, Translate("LookUpConcentrationLookUpStorageContact","This product has a shelf-life of 12 months or less. Please contact our <a href=\"/contact_technical_service\" target=\"_blank\">technical support</a> team for lot specific CoA and expiration date inquiries of this product."));
3145
3146
3147 #line default
3148 #line hidden
3149
3150 #line 1879 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3151
3152 }
3153
3154 }
3155
3156
3157 #line default
3158 #line hidden
3159 });
3160
3161 #line 1883 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3162 }
3163 #line default
3164 #line hidden
3165
3166
3167 #line 1885 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3168 public RazorEngine.Templating.TemplateWriter RenderTDS(bool htmlStructType, string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string appAbbreviation = "", string pdfUrl = "", string productUpdated = "")
3169 {
3170 #line default
3171 #line hidden
3172 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3173
3174 #line 1886 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3175
3176 TDS techinicalDataSheet = new TDS(dataSheetFile, dataSheet, printPage, productType, productID, productName, regulatoryStatus, techSupportPage, translateTechnicalSupport, Translate("ViewCurrentManual", "View Current Manual (pdf)"), Translate("InstructionsForUseA", "Instructions for Use - English (PDF)"), Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), Translate("InstrumentSoftwareManual", "Instrument and Software Manual"), appAbbreviation, pdfUrl);
3177
3178 var cdnPdfDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("DynamicallyCreated_PDFFiles", "DynamicallyCreated_PDF_Files_Domain"); //CUSTOM CODE
3179 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); // CUSTOM CODE
3180 var pdfCdn = techinicalDataSheet.link.EndsWith(".pdf") ? cdnStaticDomain : cdnPdfDomain;
3181 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated;
3182
3183 if (htmlStructType)
3184 {
3185 // Is for the product link
3186
3187
3188 #line default
3189 #line hidden
3190 WriteLiteralTo(__razor_helper_writer, " <a ");
3191
3192
3193 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3194 WriteTo(__razor_helper_writer, techinicalDataSheet.target);
3195
3196
3197 #line default
3198 #line hidden
3199 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\"");
3200
3201
3202 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3203 WriteTo(__razor_helper_writer, regulatoryStatus);
3204
3205
3206 #line default
3207 #line hidden
3208 WriteLiteralTo(__razor_helper_writer, "\" data-datasheet=\"");
3209
3210
3211 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3212 WriteTo(__razor_helper_writer, dataSheet);
3213
3214
3215 #line default
3216 #line hidden
3217 WriteLiteralTo(__razor_helper_writer, "\" data-datasheetFile=\"");
3218
3219
3220 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3221 WriteTo(__razor_helper_writer, dataSheetFile);
3222
3223
3224 #line default
3225 #line hidden
3226 WriteLiteralTo(__razor_helper_writer, "\" href=\"");
3227
3228
3229 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3230 WriteTo(__razor_helper_writer, pdfCdn);
3231
3232
3233 #line default
3234 #line hidden
3235
3236 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3237 WriteTo(__razor_helper_writer, techinicalDataSheet.link);
3238
3239
3240 #line default
3241 #line hidden
3242
3243 #line 1897 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3244 WriteTo(__razor_helper_writer, version);
3245
3246
3247 #line default
3248 #line hidden
3249 WriteLiteralTo(__razor_helper_writer, "\" class=\"btn btn-default techincalDataSheet\">\r\n <i");
3250
3251 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\"");
3252
3253 WriteLiteralTo(__razor_helper_writer, "></i> ");
3254
3255
3256 #line 1898 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3257 WriteTo(__razor_helper_writer, techinicalDataSheet.text);
3258
3259
3260 #line default
3261 #line hidden
3262 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3263
3264
3265 #line 1900 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3266 }
3267 else
3268 {
3269 // Is for the product navigation
3270
3271
3272 #line default
3273 #line hidden
3274 WriteLiteralTo(__razor_helper_writer, " <a ");
3275
3276
3277 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3278 WriteTo(__razor_helper_writer, techinicalDataSheet.target);
3279
3280
3281 #line default
3282 #line hidden
3283 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\"");
3284
3285
3286 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3287 WriteTo(__razor_helper_writer, regulatoryStatus);
3288
3289
3290 #line default
3291 #line hidden
3292 WriteLiteralTo(__razor_helper_writer, "\" data-datasheet=\"");
3293
3294
3295 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3296 WriteTo(__razor_helper_writer, dataSheet);
3297
3298
3299 #line default
3300 #line hidden
3301 WriteLiteralTo(__razor_helper_writer, "\" data-datasheetFile=\"");
3302
3303
3304 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3305 WriteTo(__razor_helper_writer, dataSheetFile);
3306
3307
3308 #line default
3309 #line hidden
3310 WriteLiteralTo(__razor_helper_writer, "\" href=\"");
3311
3312
3313 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3314 WriteTo(__razor_helper_writer, pdfCdn);
3315
3316
3317 #line default
3318 #line hidden
3319
3320 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3321 WriteTo(__razor_helper_writer, techinicalDataSheet.link);
3322
3323
3324 #line default
3325 #line hidden
3326
3327 #line 1904 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3328 WriteTo(__razor_helper_writer, version);
3329
3330
3331 #line default
3332 #line hidden
3333 WriteLiteralTo(__razor_helper_writer, "\">\r\n <i");
3334
3335 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\"");
3336
3337 WriteLiteralTo(__razor_helper_writer, "></i>");
3338
3339
3340 #line 1905 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3341 WriteTo(__razor_helper_writer, techinicalDataSheet.text);
3342
3343
3344 #line default
3345 #line hidden
3346 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3347
3348
3349 #line 1907 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3350 }
3351
3352
3353 #line default
3354 #line hidden
3355 });
3356
3357 #line 1908 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3358 }
3359 #line default
3360 #line hidden
3361
3362
3363 #line 1912 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3364 public RazorEngine.Templating.TemplateWriter RenderTDSForPreview(bool htmlStructType, string dataSheetFile, string dataSheet, string productID = "", string productName = "", string regulatoryStatus = "", string pdfUrl = "", string productUpdated = "")
3365 {
3366 #line default
3367 #line hidden
3368 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3369
3370 #line 1913 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3371
3372 previewTDS techinicalDataSheet = new previewTDS(productID, productName, Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), pdfUrl);
3373
3374 //NOTE - Customer requested for Cdn not to be applied here
3375 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated;
3376
3377 if (htmlStructType)
3378 {
3379 // Is for the product link
3380
3381
3382 #line default
3383 #line hidden
3384 WriteLiteralTo(__razor_helper_writer, " <a");
3385
3386 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\"");
3387
3388 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\"");
3389
3390
3391 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3392 WriteTo(__razor_helper_writer, regulatoryStatus);
3393
3394
3395 #line default
3396 #line hidden
3397 WriteLiteralTo(__razor_helper_writer, "\"");
3398
3399 WriteLiteralTo(__razor_helper_writer, " data-datasheet=\"");
3400
3401
3402 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3403 WriteTo(__razor_helper_writer, dataSheet);
3404
3405
3406 #line default
3407 #line hidden
3408 WriteLiteralTo(__razor_helper_writer, "\"");
3409
3410 WriteLiteralTo(__razor_helper_writer, " data-datasheetFile=\"");
3411
3412
3413 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3414 WriteTo(__razor_helper_writer, dataSheetFile);
3415
3416
3417 #line default
3418 #line hidden
3419 WriteLiteralTo(__razor_helper_writer, "\"");
3420
3421 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 69534), Tuple.Create("\"", 69574)
3422
3423 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3424 , Tuple.Create(Tuple.Create("", 69541), Tuple.Create<System.Object, System.Int32>(techinicalDataSheet.link
3425
3426 #line default
3427 #line hidden
3428 , 69541), false)
3429
3430 #line 1922 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3431 , Tuple.Create(Tuple.Create("", 69566), Tuple.Create<System.Object, System.Int32>(version
3432
3433 #line default
3434 #line hidden
3435 , 69566), false)
3436 );
3437
3438 WriteLiteralTo(__razor_helper_writer, " class=\"btn btn-default techincalDataSheet\"");
3439
3440 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
3441
3442 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\"");
3443
3444 WriteLiteralTo(__razor_helper_writer, "></i> ");
3445
3446
3447 #line 1923 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3448 WriteTo(__razor_helper_writer, techinicalDataSheet.text);
3449
3450
3451 #line default
3452 #line hidden
3453 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3454
3455
3456 #line 1925 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3457 }
3458 else
3459 {
3460 // Is for the product navigation
3461
3462
3463 #line default
3464 #line hidden
3465 WriteLiteralTo(__razor_helper_writer, " <a");
3466
3467 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\"");
3468
3469 WriteLiteralTo(__razor_helper_writer, " data-regulatory=\"");
3470
3471
3472 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3473 WriteTo(__razor_helper_writer, regulatoryStatus);
3474
3475
3476 #line default
3477 #line hidden
3478 WriteLiteralTo(__razor_helper_writer, "\"");
3479
3480 WriteLiteralTo(__razor_helper_writer, " data-datasheet=\"");
3481
3482
3483 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3484 WriteTo(__razor_helper_writer, dataSheet);
3485
3486
3487 #line default
3488 #line hidden
3489 WriteLiteralTo(__razor_helper_writer, "\"");
3490
3491 WriteLiteralTo(__razor_helper_writer, " data-datasheetFile=\"");
3492
3493
3494 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3495 WriteTo(__razor_helper_writer, dataSheetFile);
3496
3497
3498 #line default
3499 #line hidden
3500 WriteLiteralTo(__razor_helper_writer, "\"");
3501
3502 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 69875), Tuple.Create("\"", 69915)
3503
3504 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3505 , Tuple.Create(Tuple.Create("", 69882), Tuple.Create<System.Object, System.Int32>(techinicalDataSheet.link
3506
3507 #line default
3508 #line hidden
3509 , 69882), false)
3510
3511 #line 1929 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3512 , Tuple.Create(Tuple.Create("", 69907), Tuple.Create<System.Object, System.Int32>(version
3513
3514 #line default
3515 #line hidden
3516 , 69907), false)
3517 );
3518
3519 WriteLiteralTo(__razor_helper_writer, ">\r\n <i");
3520
3521 WriteLiteralTo(__razor_helper_writer, " class=\"fa fa-file-pdf-o\"");
3522
3523 WriteLiteralTo(__razor_helper_writer, "></i>");
3524
3525
3526 #line 1930 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3527 WriteTo(__razor_helper_writer, techinicalDataSheet.text);
3528
3529
3530 #line default
3531 #line hidden
3532 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n");
3533
3534
3535 #line 1932 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3536 }
3537
3538
3539 #line default
3540 #line hidden
3541 });
3542
3543 #line 1933 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3544 }
3545 #line default
3546 #line hidden
3547
3548
3549 #line 1935 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3550 public RazorEngine.Templating.TemplateWriter RenderInternationalGMPQualityStatement(string country = "", string regStatus = "", string format = "")
3551 {
3552 #line default
3553 #line hidden
3554 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3555
3556 #line 1936 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3557
3558 bool b = false;
3559 if ( format.Equals("GMP_APC") || format.Equals("GMP_APC_F750") || format.Equals("GMP_FITC") || format.Equals("GMP_PB") || format.Equals("GMP_PE") || format.Equals("GMP_PE_CYANINE5") || format.Equals("GMP_PE_CYANINE7") || format.Equals("GMP_PE_DZL594") || format.Equals("GMP_PERCP") || format.Equals("GMP_PERCP_CYANINE5.5") || format.Equals("GMP_A488") || format.Equals("GMP_A647") || format.Equals("GMP_A700") || format.Equals("GMP_APC_CYANINE7") || format.Equals("GMP_SPKVL_423") || format.Equals("GMP_SPKVL_538") ){
3560 b = true;
3561 }
3562 if(!country.Equals("en-US") && !country.Equals("ja-JP") && regStatus.Equals("GMP-RUO") && b){
3563
3564
3565 #line default
3566 #line hidden
3567 WriteLiteralTo(__razor_helper_writer, " <div");
3568
3569 WriteLiteralTo(__razor_helper_writer, " class=\"introDescription col-xs-12 noPaddingLeft\"");
3570
3571 WriteLiteralTo(__razor_helper_writer, ">\r\n <span");
3572
3573 WriteLiteralTo(__razor_helper_writer, " class=\"title\"");
3574
3575 WriteLiteralTo(__razor_helper_writer, @">Quality Statement</span>
3576 This BioLegend’s GMP-RUO reagent is a fluorochrome-labeled monoclonal antibody single reagent for Research Use Only. Suitable for use in laboratory-developed multicolor flow cytometry tests. Single GMP-RUO products can be used in various multicolor flow cytometry combinations. Laboratory need to establish the GMP-RUO performance characteristics in combination with other reagents in normal and pathological samples.
3577 </div>
3578 ");
3579
3580
3581 #line 1946 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3582 }
3583
3584
3585
3586
3587 #line default
3588 #line hidden
3589 });
3590
3591 #line 1949 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3592 }
3593 #line default
3594 #line hidden
3595
3596
3597 #line 1951 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3598
3599
3600 public static string StripSpecialCharacters(string input)
3601 {
3602 return System.Text.RegularExpressions.Regex.Replace(input, "[^0-9a-zA-Z -]+", "");
3603 }
3604
3605 public class TDS
3606 {
3607 public TDS()
3608 {
3609
3610 }
3611
3612 public string link { get; set; }
3613 public string text { get; set; }
3614 public string target { get; set; }
3615
3616 public TDS(string dataSheetFile, string dataSheet, string printPage, string productType = "", string productID = "", string productName = "", string regulatoryStatus = "", string techSupportPage = "", string translateTechnicalSupport = "", string viewCurrentManual = "", string instructionsForUse = "", string technicalDataSheet = "", string instrumentSoftwareManual = "", string appAbbreviation = "", string pdfUrl = "")
3617 {
3618 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
3619 var translate = "";
3620 var block = "";
3621 var urlTarget = "target=\"_blank\"";
3622
3623 var p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productID, "", true);
3624
3625 if (!string.IsNullOrWhiteSpace(dataSheet) && !dataSheet.Equals("Standard") && !dataSheet.Equals("Recombinant"))
3626 {
3627 linkPrint = dataSheetFile;
3628 block = "1";
3629 }
3630
3631 if (productType.Equals("ELISA") || productID.Equals("10801"))
3632 {
3633 linkPrint = dataSheetFile;
3634 block = "2";
3635 }
3636
3637 if (productType.Equals("LEGENDplex") && !productName.Contains("Buffer") && !productName.Contains("Carboxyl") && !productName.Contains("SA-PE") && !productID.Equals("12677") && !productID.Equals("12678") && appAbbreviation.Contains("Multiplex - Panel"))
3638 {
3639 linkPrint = dataSheetFile;
3640 translate = viewCurrentManual;
3641 block = "3";
3642 }
3643 else if (regulatoryStatus.Equals("IVD"))
3644 {
3645 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet))
3646 {
3647 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage);
3648 urlTarget = string.Empty;
3649 block = "4";
3650 }
3651 else
3652 {
3653 linkPrint = dataSheetFile;
3654 block = "5";
3655 }
3656
3657 translate = instructionsForUse;
3658 block = "6";
3659 }
3660 //ASR PDF Datasheet Override
3661 else if (regulatoryStatus.Equals("ASR"))
3662 {
3663 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet))
3664 {
3665 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage);
3666 urlTarget = string.Empty;
3667 block = "7";
3668 }
3669 else
3670 {
3671 linkPrint = dataSheetFile;
3672 block = "8";
3673 }
3674
3675 translate = technicalDataSheet;
3676 block = "9";
3677 }
3678 else if (!string.IsNullOrWhiteSpace(dataSheetFile))
3679 {
3680 linkPrint = dataSheetFile;
3681 translate = technicalDataSheet;
3682 block = "10";
3683 }
3684 else
3685 {
3686 linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
3687 translate = technicalDataSheet;
3688 block = "11";
3689 }
3690
3691 link = linkPrint;
3692 text = translate;
3693 target = urlTarget;
3694 }
3695 }
3696
3697 public class previewTDS
3698 {
3699 public previewTDS()
3700 {
3701
3702 }
3703
3704 public string link { get; set; }
3705 public string text { get; set; }
3706
3707 public previewTDS(string productID = "", string productName = "", string technicalDataSheet = "", string pdfUrl = "")
3708 {
3709 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
3710 var translate = technicalDataSheet;
3711
3712 link = linkPrint;
3713 text = translate;
3714 }
3715 }
3716
3717
3718 #line default
3719 #line hidden
3720
3721
3722 #line 2072 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3723
3724 public static string GetImage(string str_source, int num_width, int num_height, int num_widthTablet = 0, int num_heightTablet = 0, int num_widthMobile = 0, int num_heightMobile = 0, string str_format = "jpg", int num_compression = 75, int num_crop = 5)
3725 {
3726 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current();
3727 string str_currDevice = obj_currentPageview.Device.ToString();
3728 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg";
3729
3730 string str_width = "";
3731 string str_height = "";
3732 int num_getImageWidth = num_width != 0 ? num_width : 0;
3733 int num_getImageHeight = num_height != 0 ? num_height : 0;
3734 string str_getImageFormat = str_format != "jpg" ? "&Format=" + str_format : "";
3735 string str_getImageCompression = num_compression != 75 ? "&Compression=" + num_compression : "";
3736
3737 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE
3738
3739 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString())
3740 {
3741 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth;
3742 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight;
3743 }
3744 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString())
3745 {
3746 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth;
3747 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight;
3748 }
3749
3750 if (num_getImageWidth != 0)
3751 {
3752 str_width = "&Width=" + num_getImageWidth;
3753 }
3754 if (num_getImageHeight != 0)
3755 {
3756 str_height = "&Height=" + num_getImageHeight;
3757 }
3758
3759 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&Crop=" + num_crop;
3760 return str_output;
3761 }
3762
3763 #line default
3764 #line hidden
3765
3766
3767 #line 2342 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3768
3769 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody)
3770 {
3771 string cleanName = prodName;
3772 if(prodType.Equals("PrimaryAntibodies") && !prodName.Contains(" Antibody") && !prodName.Contains("Buffer") && !prodName.Contains("Annexin") && !prodName.Contains("Solution") && !prodName.Contains("Diluent") && !prodName.Contains("Substrate Reagent") && !prodName.Contains("ecombinant") && !prodName.Contains("Panel") && !prodName.Contains("Elisa Max") && !prodName.Contains("Cocktail") && !prodName.Contains("Isotype Control") && !prodName.Contains("Avidin") && !prodName.Contains("Normal Serum Block") && !prodName.Contains("Detection Kit") && !prodName.Contains("Affinity") && !prodName.Contains("ELISA Kit") && !prodName.Contains("Phase-Flow") && !prodName.Contains("Treg Flow") && !prodFormat.Equals("Peptide") && (!excludeAntibody)){
3773 cleanName += " Antibody";
3774 }
3775
3776 if(prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)){
3777 cleanName += " Antibody";
3778 }
3779
3780 if(prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)){
3781 cleanName += " Antibody";
3782 }
3783
3784 return cleanName;
3785 }
3786
3787 #line default
3788 #line hidden
3789
3790
3791 #line 2938 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3792 public RazorEngine.Templating.TemplateWriter RenderProtocols(List<KeyValuePair<string,string>> productProtocolsResults)
3793 {
3794 #line default
3795 #line hidden
3796 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => {
3797
3798 #line 2939 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3799
3800
3801
3802 #line default
3803 #line hidden
3804 WriteLiteralTo(__razor_helper_writer, " <div");
3805
3806 WriteLiteralTo(__razor_helper_writer, " id=\"productRelatedProtocols\"");
3807
3808 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-9 noPadding pull-right\"");
3809
3810 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2");
3811
3812 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\"");
3813
3814 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
3815
3816 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127012), Tuple.Create("\"", 127081)
3817
3818 #line 2942 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3819 , Tuple.Create(Tuple.Create("", 127019), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString()
3820
3821 #line default
3822 #line hidden
3823 , 127019), false)
3824 , Tuple.Create(Tuple.Create("", 127057), Tuple.Create("#productRelatedProtocols", 127057), true)
3825 );
3826
3827 WriteLiteralTo(__razor_helper_writer, " name=\"13\"");
3828
3829 WriteLiteralTo(__razor_helper_writer, ">");
3830
3831
3832 #line 2942 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3833 WriteTo(__razor_helper_writer, Translate("RelatedProtocols", "Related Protocols"));
3834
3835
3836 #line default
3837 #line hidden
3838 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </h2>\r\n\r\n");
3839
3840 WriteLiteralTo(__razor_helper_writer, " ");
3841
3842
3843 #line 2945 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3844 WriteTo(__razor_helper_writer, SnippetStart("navigationAnchors"));
3845
3846
3847 #line default
3848 #line hidden
3849 WriteLiteralTo(__razor_helper_writer, "\r\n <li>\r\n <a");
3850
3851 WriteLiteralTo(__razor_helper_writer, " class=\"anchor_13\"");
3852
3853 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127239), Tuple.Create("\"", 127308)
3854
3855 #line 2947 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3856 , Tuple.Create(Tuple.Create("", 127246), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString()
3857
3858 #line default
3859 #line hidden
3860 , 127246), false)
3861 , Tuple.Create(Tuple.Create("", 127284), Tuple.Create("#productRelatedProtocols", 127284), true)
3862 );
3863
3864 WriteLiteralTo(__razor_helper_writer, ">");
3865
3866
3867 #line 2947 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3868 WriteTo(__razor_helper_writer, Translate("RelatedProtocols", "Related Protocols"));
3869
3870
3871 #line default
3872 #line hidden
3873 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n");
3874
3875 WriteLiteralTo(__razor_helper_writer, " ");
3876
3877
3878 #line 2949 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3879 WriteTo(__razor_helper_writer, SnippetEnd("navigationAnchors"));
3880
3881
3882 #line default
3883 #line hidden
3884 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <ul");
3885
3886 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\"");
3887
3888 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3889
3890
3891 #line 2952 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3892
3893
3894 #line default
3895 #line hidden
3896
3897 #line 2952 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3898 foreach (var protocolPair in productProtocolsResults)
3899 {
3900 var itemName = protocolPair.Key;
3901 var itemLink = protocolPair.Value;
3902
3903
3904
3905 #line default
3906 #line hidden
3907 WriteLiteralTo(__razor_helper_writer, " <li");
3908
3909 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\"");
3910
3911 WriteLiteralTo(__razor_helper_writer, ">\r\n <a");
3912
3913 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\"");
3914
3915 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 127675), Tuple.Create("\"", 127691)
3916
3917 #line 2958 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3918 , Tuple.Create(Tuple.Create("", 127682), Tuple.Create<System.Object, System.Int32>(itemLink
3919
3920 #line default
3921 #line hidden
3922 , 127682), false)
3923 );
3924
3925 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 127692), Tuple.Create("\"", 127709)
3926
3927 #line 2958 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3928 , Tuple.Create(Tuple.Create("", 127700), Tuple.Create<System.Object, System.Int32>(itemName
3929
3930 #line default
3931 #line hidden
3932 , 127700), false)
3933 );
3934
3935 WriteLiteralTo(__razor_helper_writer, ">\r\n");
3936
3937 WriteLiteralTo(__razor_helper_writer, " ");
3938
3939
3940 #line 2959 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3941 WriteTo(__razor_helper_writer, itemName);
3942
3943
3944 #line default
3945 #line hidden
3946 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n");
3947
3948
3949 #line 2962 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3950 }
3951
3952
3953 #line default
3954 #line hidden
3955 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n");
3956
3957
3958 #line 2965 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3959
3960
3961 #line default
3962 #line hidden
3963 });
3964
3965 #line 2965 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3966 }
3967 #line default
3968 #line hidden
3969
3970
3971 #line 3360 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
3972
3973 /* Get related pages */
3974 public static List<Dictionary<string, string>> GetRelatedPages(List<string> pages)
3975 {
3976 List<Dictionary<string, string>> relatedPages = new List<Dictionary<string, string>>();
3977
3978 using (var connection = Dynamicweb.Data.Database.CreateConnection())
3979 {
3980 using (var command = connection.CreateCommand())
3981 {
3982 command.CommandText = string.Format("SELECT Page,LinkExt,Icon_Source,Name from itemtype_relatedPages WHERE ID IN ({0})", string.Join(", ", pages));
3983
3984 using (var reader = command.ExecuteReader())
3985 {
3986 if (reader != null)
3987 {
3988 while (reader.Read())
3989 {
3990 Dictionary<string, string> relatedPagesProperties = new Dictionary<string, string>();
3991
3992 relatedPagesProperties.Add("Page", reader["Page"].ToString());
3993 relatedPagesProperties.Add("LinkExt", reader["LinkExt"].ToString());
3994 relatedPagesProperties.Add("Icon_Source", reader["Icon_Source"].ToString());
3995 relatedPagesProperties.Add("Name", reader["Name"].ToString());
3996 relatedPages.Add(relatedPagesProperties);
3997 }
3998 }
3999 }
4000 }
4001 }
4002
4003 return relatedPages;
4004 }
4005
4006 #line default
4007 #line hidden
4008
4009
4010 #line 3519 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4011
4012
4013 public string GetApplicationsLabel(string applicationValues, Dictionary<string, string> applicationsData)
4014 {
4015 applicationValues = applicationValues.Replace("\"", "").Replace(",", ", ");
4016 return applicationValues;
4017 }
4018
4019 public Dictionary<string, string> GetFilterData(string fieldID)
4020 {
4021 //HttpContext.Current.Cache.Remove("applicationsDataCache_" + fieldID);
4022 var applicationCache = HttpContext.Current.Cache["applicationsDataCache_" + fieldID];
4023 var applicationsData = applicationCache as Dictionary<string, string> ?? new Dictionary<string, string>();
4024 if (applicationCache == null)
4025 {
4026 using (var connection = Dynamicweb.Data.Database.CreateConnection())
4027 {
4028 using (var command = connection.CreateCommand())
4029 {
4030 command.CommandText = "SELECT FieldOptionValue,FieldOptionName FROM EcomFieldOption WHERE FieldOptionFieldID=''+@fieldID+'' ORDER BY FieldOptionValue";
4031 command.Parameters.Add(new System.Data.SqlClient.SqlParameter()
4032 {
4033 ParameterName = "fieldID",
4034 SqlDbType = System.Data.SqlDbType.NVarChar,
4035 Value = fieldID
4036 });
4037 using (var reader = command.ExecuteReader())
4038 {
4039 if (reader != null)
4040 {
4041 while (reader.Read())
4042 {
4043 applicationsData.Add(reader["FieldOptionValue"].ToString(), reader["FieldOptionName"].ToString());
4044 }
4045 }
4046 }
4047 }
4048 }
4049 HttpContext.Current.Cache.Insert("applicationsDataCache_" + fieldID, applicationsData, null, DateTime.Now.AddMinutes(5), System.Web.Caching.Cache.NoSlidingExpiration);
4050 }
4051 return applicationsData;
4052 }
4053
4054 #line default
4055 #line hidden
4056
4057
4058 public RazorEngine_807b173c461a4060951331a7a6321139() {
4059 }
4060
4061 public override void Execute() {
4062
4063 #line 96 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4064
4065
4066
4067 #line default
4068 #line hidden
4069
4070 #line 97 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4071
4072 bool bol_userLogged = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
4073 int? userID = null;
4074 if(bol_userLogged){
4075 userID = Pageview.User.ID;
4076 if(Pageview.User.CurrentSecondaryUser != null && Pageview.User.CurrentSecondaryUser.ID != 0) {
4077 userID = Pageview.User.CurrentSecondaryUser.ID;
4078 }
4079 }
4080 string str_productLanguageId = GetString("Ecom:Product.LanguageID");
4081 string str_productID = GetString("Ecom:Product.ID");
4082 List<LoopItem> obj_loopVariantCombinations = GetLoop("VariantCombinations");
4083 Dictionary<string, Dictionary<string, Dictionary<string, string>>> dic_product = new Dictionary<string, Dictionary<string, Dictionary<string, string>>>();
4084 Dictionary<string, Dictionary<string, string>> dic_variants = new Dictionary<string, Dictionary<string, string>>();
4085 string str_productJSON = "";
4086 string str_productFavoritesUrl = string.Format("Default.aspx?ID={0}", GetPageFromAreaSetting("FavoritesProcess", Pageview));
4087
4088 if(obj_loopVariantCombinations.Any()){
4089 foreach (LoopItem variant in obj_loopVariantCombinations){
4090 string str_variantHref = "/"+ variant.GetValue("Ecom:VariantCombination.Link.Clean") + "?PID=" + Dynamicweb.Frontend.PageView.Current().CurrentParagraph.ID.ToString();
4091 string str_articleNum = variant.GetString("Ecom:Product.Number");
4092 string str_price = variant.GetString("Ecom:Product.Price");
4093 string str_stock = variant.GetString("Ecom:Product.AvailableAmount");
4094 string str_smallImage = variant.GetString("Ecom:Product.ImageSmall.Clean");
4095 string str_id = variant.GetString("Ecom:VariantCombination.VariantID");
4096 string str_variantName = variant.GetString("Ecom:VariantCombination.VariantText");
4097 string str_variantShortDescription = variant.GetString("Ecom:VariantCombination.VariantText");
4098 Dictionary<string, string> dic_variant = new Dictionary<string, string>();
4099
4100 dic_variant.Add("name", str_variantName);
4101 dic_variant.Add("id", str_id);
4102 dic_variant.Add("number", str_articleNum);
4103 dic_variant.Add("price", str_price);
4104 dic_variant.Add("stock", str_stock);
4105 dic_variant.Add("smallImage", str_smallImage);
4106 // dic_variant.Add("productIsFavorite", variant.GetString("Ecom:Product.IsProductInFavoriteList"));
4107
4108 try{
4109 var favoriteListProducts = Dynamicweb.Ecommerce.CustomerCenter.CustomerProductList.GetListByCustomerId(int.Parse(userID.ToString()));
4110 if (favoriteListProducts.Any())
4111 {
4112 var favoriteProducts = favoriteListProducts.FirstOrDefault().Products;
4113 bool isFavorite = favoriteProducts.Where(x => x.ProductVariantId == str_id).Any() && favoriteProducts.Where(x => x.ProductId == str_productID).Any();
4114 dic_variant.Add("productIsFavorite", isFavorite.ToString());
4115 }
4116 }catch{}
4117
4118 string str_productAddToList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=add", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id);
4119 string str_productRemoveFromList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=remove", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id);
4120 dic_variant.Add("addToList", str_productAddToList);
4121 dic_variant.Add("removeFromList", str_productRemoveFromList);
4122
4123
4124 dic_variants.Add(str_id, dic_variant);
4125
4126 }
4127 dic_product.Add("product", dic_variants);
4128 }
4129 str_productJSON = new JavaScriptSerializer().Serialize(dic_product);
4130
4131
4132
4133 #line default
4134 #line hidden
4135 WriteLiteral("\r\n\r\n");
4136
4137 WriteLiteral("\r\n\r\n");
4138
4139
4140 #line 175 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4141 try
4142 {
4143
4144
4145 #line default
4146 #line hidden
4147
4148 #line 223 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4149
4150
4151
4152
4153 #line default
4154 #line hidden
4155
4156 #line 284 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4157
4158
4159
4160
4161 #line default
4162 #line hidden
4163
4164 #line 369 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4165
4166
4167
4168
4169 #line default
4170 #line hidden
4171
4172 #line 439 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4173
4174
4175
4176
4177 #line default
4178 #line hidden
4179
4180 #line 565 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4181
4182
4183
4184
4185 #line default
4186 #line hidden
4187
4188 #line 604 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4189
4190
4191
4192
4193 #line default
4194 #line hidden
4195
4196 #line 1245 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4197
4198
4199
4200
4201 #line default
4202 #line hidden
4203
4204 #line 1440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4205
4206
4207
4208
4209 #line default
4210 #line hidden
4211
4212 #line 1462 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4213
4214
4215
4216
4217 #line default
4218 #line hidden
4219
4220 #line 1484 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4221
4222
4223
4224
4225 #line default
4226 #line hidden
4227
4228 #line 1552 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4229
4230
4231
4232
4233 #line default
4234 #line hidden
4235
4236 #line 1572 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4237
4238
4239
4240
4241 #line default
4242 #line hidden
4243
4244 #line 1583 "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 1715 "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 1742 "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 1778 "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 1830 "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 1883 "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 1908 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4293
4294
4295
4296
4297
4298
4299 #line default
4300 #line hidden
4301
4302 #line 1933 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4303
4304
4305
4306
4307 #line default
4308 #line hidden
4309
4310 #line 1949 "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 2070 "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 2111 "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 2113 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4335
4336 var str_requestPreview = System.Web.HttpContext.Current.Request.Params["preview"] ?? "";
4337
4338 var itemArea = Pageview.Area.Item;
4339
4340 //START CUSTOM CODE
4341 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain");
4342 var cdnJsCssDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("CSS_JS", "CSS_JS_Domain");
4343 //END CUSTOM CODE
4344
4345 var productStatus = GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean");
4346 if (productStatus.Equals(1) && str_requestPreview!= "true")
4347 {
4348
4349
4350 #line default
4351 #line hidden
4352
4353 #line 2126 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4354 Write(itemArea["ProductDiscontinued"].ToString());
4355
4356
4357 #line default
4358 #line hidden
4359
4360 #line 2126 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4361
4362 }
4363 else
4364 {
4365 /* Workaround due a DW bug */
4366 var applicationsData = GetFilterData("BLFD_1");
4367 /* END Workaround */
4368
4369
4370 #line default
4371 #line hidden
4372
4373 #line 2133 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4374
4375 var addToCartFormAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + (itemArea["AddToCart"] ?? Pageview.Page.ID).ToString());
4376 var searchPageID = itemArea["SearchResults"].ToString();
4377 var formRequestConjugation = itemArea["FormRequestConjugation"].ToString();
4378 var printPage = itemArea["PrintPage"].ToString();
4379 var coaPage = itemArea["CertificateAnalysisPage"].ToString();
4380 var coaRedirect = itemArea["CertificateAnalysisRedirect"].ToString();
4381 var techSupportPageID = itemArea["FormTechSupport"].ToString();
4382 var productListJson = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(itemArea["ProductListJson"].ToString());
4383 var requestBulk = itemArea["RequestBulk"].ToString();
4384 var cartDisabled = Convert.ToBoolean(itemArea["DisableAddToCart"].ToString());
4385 var orderContext = itemArea["OrderContext"] != null ? itemArea["OrderContext"].ToString() : "";
4386 var isWebserviceAvailable = TemplatesHelper.IsWebServiceConnectionAvailable();
4387
4388 var navEnvironment = itemArea["NavEnvironment"] != null ? itemArea["NavEnvironment"].ToString() : "";
4389
4390 var userAvailableStartMsg = Translate("userAvailableStartMsg", "The entered quantity of");
4391 var userOrdersMoreThanAvailable = Translate("userOrdersMoreThanAvailable", "is unavailable. Replenishment is currently underway. You will be notified by BioLegend’s Customer Service of the ETA if we are unable to deliver the full quantity.");
4392 var userOrdersLessThanAvailable = Translate("userOrdersLessThanAvailable", "is available and will be scheduled for shipment ASAP.");
4393
4394
4395
4396 #line default
4397 #line hidden
4398
4399 #line 2153 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4400
4401 var str_requestConc = System.Web.HttpContext.Current.Request.Params["concExpLookup"] ?? "";
4402 var str_requestLotNumber = System.Web.HttpContext.Current.Request.Params["lotNumber"] ?? "";
4403
4404
4405
4406 #line default
4407 #line hidden
4408
4409 #line 2157 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4410
4411 var str_currentPageId = Pageview.Page.ID.ToString();
4412 var bol_isLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
4413 var bol_isFrontEnd = Dynamicweb.Environment.ExecutingContext.IsFrontEnd();
4414
4415 var siteCurrency = Dynamicweb.Frontend.PageView.Current().Area.EcomCurrencyId;
4416 var userCurrency = bol_userLogged ? Dynamicweb.Security.UserManagement.User.GetCurrentUser().Currency : siteCurrency;
4417
4418 var RRIDLists = new Dictionary<string, string>();
4419
4420
4421
4422 #line default
4423 #line hidden
4424
4425 #line 2167 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4426
4427 var str_variantDefaultId = GetString("Ecom:Product.DefaultVariantComboID");
4428 var str_variantCurrentId = GetString("Ecom:Product.VariantID");
4429 var str_variantId = (!String.IsNullOrEmpty(str_variantCurrentId)) ? str_variantCurrentId : str_variantDefaultId;
4430 var str_variantParam = (!String.IsNullOrEmpty(str_variantId)) ? "&variantid=" + str_variantId : "";
4431
4432 var str_productId = GetString("Ecom:Product.ID");
4433 var str_productLanguage = GetString("Ecom:Product.LanguageID");
4434 var str_productName = GetString("Ecom:Product.Name");
4435 var str_productIntro = GetString("Ecom:Product.ShortDescription");
4436 var str_productDescription = GetString("Ecom:Product.LongDescription");
4437 var str_productPrice = GetString("Ecom:Product.Price");
4438 var str_productOtherNames = GetString("Ecom:Product:Field.OtherNames.Value");
4439 var str_productDataSheet = GetString("Ecom:Product:Field.Datasheet.Value.Clean");
4440 var str_productDataSheetFile = GetString("Ecom:Product:Field.DatasheetFile.Clean");
4441 var str_productMSDSType = GetString("Ecom:Product:Field.MSDSType.Value");
4442 var str_productMSDSCFile = GetString("Ecom:Product:Field.MSDSFile.Clean");
4443 var str_productMSDSOptions = GetString("Ecom:Product:Field.MSDSOptions.Value");
4444 var str_groupPrimary = GetString("Ecom:Product.PrimaryOrFirstGroupID");
4445 var str_productImage = GetString("Ecom:Product.ImageSmall.Clean");
4446 var str_productImageMedium = GetString("Ecom:Product.ImageMedium.Clean");
4447 var str_productImageLarge = GetString("Ecom:Product.ImageLarge.Clean");
4448 var str_productImage4 = GetString("Ecom:Product:Field.Image4Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
4449 var str_productGetImage = str_productImage; //GetImage(str_productImage, 180, 0, 180, 0, 180, 0,"jpg",90,5);
4450 var str_productGetImageMedium = str_productImageMedium; // GetImage(str_productImageMedium, 180, 0, 180, 0, 180, 0,"jpg",90,5);
4451 var str_productGetImageLarge = str_productImageLarge; // GetImage(str_productImageLarge, 180, 0, 180, 0, 180, 0,"jpg",90,5);
4452 var str_productGetImage4 = str_productImage4; //GetImage(str_productImage4, 180, 0, 180, 0, 180, 0,"jpg",90,5);
4453 var str_image1Description = GetString("Ecom:Product:Field.Image1Description.Value");
4454 var str_image2Description = GetString("Ecom:Product:Field.Image2Description.Value");
4455 var str_image3Description = GetString("Ecom:Product:Field.Image3Description.Value");
4456 var str_image4Description = GetString("Ecom:Product:Field.Image4Description.Value");
4457 var str_image1Title = GetString("Ecom:Product:Field.Image1Title.Value");
4458 var str_image2Title = GetString("Ecom:Product:Field.Image2Title.Value");
4459 var str_image3Title = GetString("Ecom:Product:Field.Image3Title.Value");
4460 var str_image4Title = GetString("Ecom:Product:Field.Image4Title.Value");
4461 var lst_images = new List<Tuple<string, string, string>>();
4462
4463 var str_productImage5 = GetString("Ecom:Product:Field.Image5Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
4464 var str_productGetImage5 = str_productImage5;
4465 var str_image5Description = GetString("Ecom:Product:Field.Image5Description.Value");
4466 var str_image5Title = GetString("Ecom:Product:Field.Image5Title.Value");
4467
4468 var str_productImage6 = GetString("Ecom:Product:Field.Image6Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
4469 var str_productGetImage6 = str_productImage6;
4470 var str_image6Description = GetString("Ecom:Product:Field.Image6Description.Value");
4471 var str_image6Title = GetString("Ecom:Product:Field.Image6Title.Value");
4472
4473 var str_starClass = "";
4474 var str_halfStar = "";
4475
4476 var productUpdated = GetDate("Ecom:Product.Updated").ToString("yyyyMMddhhmmss"); //CUSTOM CODE
4477
4478
4479
4480 #line default
4481 #line hidden
4482
4483 #line 2219 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4484
4485 var productType = GetString("Ecom:Product:Field.CMProductType.Value");
4486 var productSpecificity = GetString("Ecom:Product:Field.Specificity.Value");
4487 var str_productFormat = GetString("Ecom:Product:Field.Format.Value");
4488 var str_productLaser = GetString("Ecom:Product:Field.ExcitationLaser.Value");
4489 var str_productRegulatoryStatus = GetString("Ecom:Product:Field.RegulatoryStatus.Value");
4490 var str_productAppAbrv = GetString("Ecom:Product:Field.AppAbrv.Value");
4491 var str_moreDataTitle = GetString("Ecom:Product:Field.MoreDataTitle.Value");
4492 var str_moreData = GetString("Ecom:Product:Field.MoreData.Clean");
4493 var excludeAB = GetBoolean("Ecom:Product:Field.ExcludeAB");
4494 var productClone = Regex.Replace(GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim();
4495 var geneList = GetString("Ecom:Product:Field.GeneID.Value").Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
4496 var str_biologyArea = GetString("Ecom:Product:Field.BiologyArea.Value");
4497 var str_molecularFamily = GetString("Ecom:Product:Field.MolecularFamily.Value");
4498 var str_cellType = GetString("Ecom:Product:Field.CellType.Value");
4499 var productFieldType = "";
4500 var longLang = (string) GetGlobalValue("Global:Area.LongLang");
4501 var versionDate = GetDate("Ecom:Product:Field.VersionDate.Value.Clean");
4502 var dateTimeVersionDate = DateTime.Now;
4503 var productIsUg = "";
4504 var productIsUl = "";
4505 var isASR = str_productRegulatoryStatus.Equals("ASR");
4506 var isIVD = str_productRegulatoryStatus.Equals("IVD");
4507 var isGMPRUO = str_productRegulatoryStatus.Equals("GMP-RUO");
4508 var isGMPRUOException = ( str_productFormat.Equals("GMP_RECOM") || str_productFormat.Equals("SOLUTION") || str_productFormat.Equals("GMP_ULEAF") );
4509 var isRUO = str_productRegulatoryStatus.Equals("RUO");
4510 var str_ProductNameNormalized = GetString("Ecom:Product:Field.ProductNameNormalized.Value");
4511 var str_TotalseqSequence = GetString("Ecom:Product:Field.TotalseqSequence.Value");
4512 var str_IsotypeForFilter = GetString("Ecom:Product:Field.IsotypeFilter.Value");
4513 var str_footerDisclaimer = GetString("Ecom:Product:Field.FooterDisclaimer.Value");
4514 var str_qualityStatement = GetString("Ecom:Product:Field.QualityStatement.Value");
4515
4516 if(versionDate != null)
4517 {
4518 dateTimeVersionDate = versionDate;
4519 }
4520
4521 /* Other Formats */
4522 var otherFormatsProducts = Dynamicweb.Ecommerce.Products.Product.GetProductsBySql("SELECT * FROM ecomProducts WHERE Clone != '' AND Clone = '" + productClone + "' AND ProductActive = 'True' AND (ProductStatus = '0' OR ProductStatus = '2' OR ProductStatus = '3' OR ProductStatus = '4') AND ProductLanguageID = 'LANG1'").Where(prod => prod.Id != str_productId);
4523
4524
4525
4526 #line default
4527 #line hidden
4528
4529 #line 2259 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4530
4531 var loop_variantCombinations = GetLoop("VariantCombinations").Where(x => x.GetBoolean("Ecom:Product.IsActive"));
4532 var loopAssociatedGroups = GetLoop("AssociatedGroups");
4533 var loopComments = GetLoop("Comments.Newfirst");
4534 var loop_variantsWithDC = loop_variantCombinations.Where(x => x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(4));
4535
4536 if (!string.IsNullOrEmpty(str_productImage))
4537 {
4538 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description));
4539 }
4540 if (!string.IsNullOrEmpty(str_productImageMedium))
4541 {
4542 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description));
4543 }
4544 if (!string.IsNullOrEmpty(str_productImageLarge))
4545 {
4546 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description));
4547 }
4548 if (!string.IsNullOrEmpty(str_productImage4))
4549 {
4550 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description));
4551 }
4552 if (!string.IsNullOrEmpty(str_productImage5))
4553 {
4554 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description));
4555 }
4556 if (!string.IsNullOrEmpty(str_productImage6))
4557 {
4558 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description));
4559 }
4560
4561 var productTypes = new Dictionary<string, string>();
4562 productTypes.Add("AncillaryProducts", "Ancillary");
4563 productTypes.Add("BuffersSolutionsChemicals", "Ancillary");
4564 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies");
4565 productTypes.Add("CellSeparation", "MojoSort");
4566 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies");
4567 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA");
4568 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies");
4569 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies");
4570 productTypes.Add("IsotypeControls", "IsotypeControls");
4571 productTypes.Add("LEGENDplex", "LEGENDplex");
4572 productTypes.Add("LEGENDScreen", "LEGENDScreen");
4573 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies");
4574 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies");
4575 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies");
4576 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies");
4577 productTypes.Add("RecombinantProteins", "Recombinant");
4578 productTypes.Add("SecondaryReagents", "SecondaryReagents");
4579 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies");
4580 productTypes.Add("EnzymeAssays", "EnzymeAssays");
4581 productTypes.Add("FlexT", "FlexT");
4582 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes");
4583 productTypes.Add("CellFunction", "CellFunction");
4584 productTypes.Add("PorcineImmunologyAntibodies", "PrimaryAntibodies");
4585 productTypes.Add("FlexiFluor", "PrimaryAntibodies");
4586
4587 if (productTypes.ContainsKey(productType))
4588 {
4589 productFieldType = productTypes[productType];
4590 }
4591
4592
4593
4594 #line default
4595 #line hidden
4596
4597 #line 2321 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4598
4599 var notShowCategories = new List<string>();
4600 notShowCategories.Add("GROUP20");
4601 notShowCategories.Add("GROUP21");
4602 notShowCategories.Add("GROUP22");
4603 notShowCategories.Add("GROUP23");
4604 notShowCategories.Add("GROUP24");
4605 notShowCategories.Add("GROUP25");
4606 notShowCategories.Add("GROUP26");
4607 notShowCategories.Add("GROUP27");
4608 notShowCategories.Add("GROUP28");
4609 notShowCategories.Add("GROUP29");
4610 notShowCategories.Add("GROUP30");
4611 notShowCategories.Add("GROUP31");
4612 notShowCategories.Add("GROUP32");
4613 notShowCategories.Add("GROUP33");
4614 notShowCategories.Add("GROUP34");
4615 notShowCategories.Add("GROUP35");
4616 notShowCategories.Add("GROUP36");
4617 notShowCategories.Add("GROUP37");
4618
4619
4620
4621 #line default
4622 #line hidden
4623
4624 #line 2360 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4625
4626 //str_productName = CalculateProductName(str_productName,productFieldType,str_productFormat,excludeAB);
4627 str_productName = str_ProductNameNormalized;
4628
4629
4630 var productCatalogNumbers = loop_variantCombinations.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).Select(x => x.GetString("Ecom:Product.Number"));
4631 var catalogFirstLetter = "0";
4632 var catalogSecondLetter = "0";
4633 var catalogThirdLetter = "0";
4634 var str_workshop = GetString("Ecom:Product.CategoryField." + productFieldType + ".Workshop.Value.Clean");
4635
4636 if (productCatalogNumbers.Any())
4637 {
4638 foreach (var xx in productCatalogNumbers)
4639 {
4640 catalogFirstLetter = xx.ToCharArray()[0].ToString();
4641 catalogSecondLetter = xx.ToCharArray()[1].ToString();
4642 catalogThirdLetter = xx.ToCharArray()[2].ToString();
4643 }
4644 }
4645
4646 var catalogFirstTwoNumbers = catalogFirstLetter + catalogSecondLetter;
4647 var catalogFirstThreeNumbers = catalogFirstTwoNumbers + catalogThirdLetter;
4648
4649
4650
4651 #line default
4652 #line hidden
4653
4654 #line 2384 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4655
4656 var previousCompany = new Dictionary<string,string>();
4657 var previouslyConcatName = "";
4658
4659 var catalogOldField = Regex.Split(GetString("Ecom:Product:Field.CatalogOld.Value.Clean"), "\r\n|\r|\n");
4660
4661 foreach (var line in catalogOldField)
4662 {
4663 var lineSplit = line.Split('|');
4664
4665 if(lineSplit.Count() == 2 ){
4666 if(lineSplit[0] == "Covance")
4667 {
4668 previouslyConcatName = String.Format("{0} {1}", Translate("previouslyCovanceCatalog","Previously Covance catalog#"), lineSplit[1]);
4669 }
4670 previousCompany.Add(lineSplit[1],lineSplit[0]);
4671 }
4672 }
4673
4674
4675
4676 #line default
4677 #line hidden
4678
4679 #line 2403 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4680
4681 var variantTypes = new Dictionary<string, string>();
4682 variantTypes.Add("microg", " µg");
4683 variantTypes.Add("mug", " μg");
4684 variantTypes.Add("mul", " μl");
4685 variantTypes.Add("microl", " µl");
4686 variantTypes.Add("ug", " &mmicro;g");
4687
4688 var readerPathwaysCount = 0;
4689 var countRelatedPages = 0;
4690 var countIVD2 = 0;
4691
4692 using (var connection = Dynamicweb.Data.Database.CreateConnection())
4693 {
4694 using (var countIVD = connection.CreateCommand())
4695 {
4696 countIVD.CommandText = "SELECT Count(1) FROM ecomgroupproductrelation where GroupProductRelationGroupID = 'BLG14317' and GroupProductRelationProductID = ''+@productId+''";
4697 countIVD.Parameters.Add(new System.Data.SqlClient.SqlParameter()
4698 {
4699 ParameterName = "productId",
4700 SqlDbType = System.Data.SqlDbType.NVarChar,
4701 Value = str_productId
4702 });
4703
4704 countIVD2 = Convert.ToInt32(countIVD.ExecuteScalar());
4705 }
4706 }
4707
4708 var isMixMatch = (str_productName.Contains("Capture Bead") || (str_productName.Contains("LEGENDplex") && (str_productName.Contains("Standard") || str_productName.Contains("Detection Antibodies") || str_productName.Contains("Buffer Set"))));
4709 var isCustomFlexT = (str_productName.Contains("Flex-T") && str_productName.Contains("Custom"));
4710
4711 var repositoryPageID = itemArea["RepositoryPageId"] != null ? Convert.ToInt32(itemArea["RepositoryPageId"].ToString()) : 0;
4712 var applicationReferences = RenderItemList(new
4713 {
4714 ItemType = "Publications",
4715 ListSourceType = "NamedList",
4716 TargetNamedList = "Publications",
4717 NamedListPageID = repositoryPageID,
4718 ItemFieldsList = "*",
4719 ListTemplate = "eCom/Product/Includes/productRelatedPublications.cshtml",
4720 ListPageSize = 1000,
4721 // IncludeAllChildItems = true,
4722 Filter = "WebID contains 'p_" + str_productId + ",' or WebID contains 'p_" + str_productId + ":' or WebID ends with 'p_" + str_productId + "'"
4723 }).ToString();
4724
4725
4726 if (str_currentPageId == @printPage || str_currentPageId == coaPage)
4727 {
4728
4729
4730 #line default
4731 #line hidden
4732
4733 #line 2451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4734 Write(SnippetStart("forcePrint"));
4735
4736
4737 #line default
4738 #line hidden
4739
4740 #line 2451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4741
4742
4743
4744 #line default
4745 #line hidden
4746 WriteLiteral(" <link");
4747
4748 WriteLiteral(" rel=\"stylesheet\"");
4749
4750 WriteLiteral(" type=\"text/css\"");
4751
4752 WriteAttribute("href", Tuple.Create(" href=\"", 99092), Tuple.Create("\"", 99173)
4753
4754 #line 2452 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4755 , Tuple.Create(Tuple.Create("", 99099), Tuple.Create<System.Object, System.Int32>(cdnJsCssDomain
4756
4757 #line default
4758 #line hidden
4759 , 99099), false)
4760 , Tuple.Create(Tuple.Create("", 99114), Tuple.Create("/Files/Templates/Designs/BioLegend/css/exceptions/print.css", 99114), true)
4761 );
4762
4763 WriteLiteral("/>\r\n");
4764
4765 WriteLiteral(" <style>\r\n .container { max-width: 700px !important; }\r" +
4766 "\n </style>\r\n");
4767
4768
4769 #line 2456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4770
4771
4772 #line default
4773 #line hidden
4774
4775 #line 2456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4776 Write(SnippetEnd("forcePrint"));
4777
4778
4779 #line default
4780 #line hidden
4781
4782 #line 2456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4783
4784 }
4785
4786 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionDate.Value.Clean")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionNumber.Value.Clean")))
4787 {
4788
4789
4790 #line default
4791 #line hidden
4792
4793 #line 2461 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4794 Write(SnippetStart("forcePrintVersion"));
4795
4796
4797 #line default
4798 #line hidden
4799
4800 #line 2461 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4801
4802
4803
4804 #line default
4805 #line hidden
4806 WriteLiteral(" <span");
4807
4808 WriteLiteral(" class=\"versionDatePrint hidden-sm hidden-md hidden-lg col-xs-12 col-sm-9 pull-ri" +
4809 "ght\"");
4810
4811 WriteLiteral(">\r\n");
4812
4813 WriteLiteral(" ");
4814
4815
4816 #line 2463 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4817 Write(Translate("version", "Version"));
4818
4819
4820 #line default
4821 #line hidden
4822 WriteLiteral("<text>:</text> ");
4823
4824
4825 #line 2463 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4826 Write(GetString("Ecom:Product:Field.VersionNumber.Value.Clean"));
4827
4828
4829 #line default
4830 #line hidden
4831 WriteLiteral(" ");
4832
4833
4834 #line 2463 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4835 Write(Translate("revisionDate", "Revision Date"));
4836
4837
4838 #line default
4839 #line hidden
4840 WriteLiteral("<text>:</text> ");
4841
4842
4843 #line 2463 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4844 Write(dateTimeVersionDate.ToString("MM/dd/yyyy"));
4845
4846
4847 #line default
4848 #line hidden
4849 WriteLiteral("\r\n </span>\r\n");
4850
4851
4852 #line 2465 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4853
4854
4855 #line default
4856 #line hidden
4857
4858 #line 2465 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4859 Write(SnippetEnd("forcePrintVersion"));
4860
4861
4862 #line default
4863 #line hidden
4864
4865 #line 2465 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4866
4867 }
4868
4869
4870
4871 #line default
4872 #line hidden
4873 WriteLiteral(" <div");
4874
4875 WriteLiteral(" data-productType=\"");
4876
4877
4878 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4879 Write(productType);
4880
4881
4882 #line default
4883 #line hidden
4884 WriteLiteral("\"");
4885
4886 WriteLiteral(" data-regulatoryStatus=\"");
4887
4888
4889 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4890 Write(str_productRegulatoryStatus);
4891
4892
4893 #line default
4894 #line hidden
4895 WriteLiteral("\"");
4896
4897 WriteLiteral(" data-productName=\"");
4898
4899
4900 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4901 Write(str_productName);
4902
4903
4904 #line default
4905 #line hidden
4906 WriteLiteral("\"");
4907
4908 WriteLiteral(" id=\"product-container\"");
4909
4910 WriteLiteral(" data-format=\"");
4911
4912
4913 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4914 Write(str_productFormat);
4915
4916
4917 #line default
4918 #line hidden
4919 WriteLiteral("\"");
4920
4921 WriteLiteral(" data-productSpecificity=\"");
4922
4923
4924 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4925 Write(productSpecificity);
4926
4927
4928 #line default
4929 #line hidden
4930 WriteLiteral("\"");
4931
4932 WriteLiteral(" data-ajaxPage=\"");
4933
4934
4935 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4936 Write(productListJson);
4937
4938
4939 #line default
4940 #line hidden
4941 WriteLiteral("\"");
4942
4943 WriteLiteral(" data-productType=\"");
4944
4945
4946 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4947 Write(productFieldType);
4948
4949
4950 #line default
4951 #line hidden
4952 WriteLiteral("\"");
4953
4954 WriteLiteral(" class=\"container noPadding\"");
4955
4956 WriteLiteral(" data-productClone=\"");
4957
4958
4959 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4960 Write(productClone);
4961
4962
4963 #line default
4964 #line hidden
4965 WriteLiteral("\"");
4966
4967 WriteLiteral(" data-pageId=\"");
4968
4969
4970 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4971 Write(str_currentPageId);
4972
4973
4974 #line default
4975 #line hidden
4976 WriteLiteral("\"");
4977
4978 WriteLiteral(" data-productId=\"");
4979
4980
4981 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4982 Write(str_productId);
4983
4984
4985 #line default
4986 #line hidden
4987 WriteLiteral("\"");
4988
4989 WriteLiteral(" data-variantId=\"");
4990
4991
4992 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
4993 Write(str_variantId);
4994
4995
4996 #line default
4997 #line hidden
4998 WriteLiteral("\"");
4999
5000 WriteLiteral(" data-errorCombination1=\'");
5001
5002
5003 #line 2468 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5004 Write(Translate("Combination not available"));
5005
5006
5007 #line default
5008 #line hidden
5009 WriteLiteral("\'");
5010
5011 WriteLiteral(">\r\n <div");
5012
5013 WriteLiteral(" id=\"product-description\"");
5014
5015 WriteLiteral(" class=\"col-xs-12 noPaddingLeft\"");
5016
5017 WriteLiteral(">\r\n <div");
5018
5019 WriteLiteral(" id=\"productInfo\"");
5020
5021 WriteLiteral(" class=\"col-xs-12 col-sm-9\"");
5022
5023 WriteLiteral(">\r\n\r\n");
5024
5025
5026 #line 2472 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5027
5028
5029 #line default
5030 #line hidden
5031
5032 #line 2472 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5033 if (isASR)
5034 {
5035
5036
5037 #line default
5038 #line hidden
5039 WriteLiteral(" <p");
5040
5041 WriteLiteral(" class=\"col-xs-6 noPadding asrWarning\"");
5042
5043 WriteLiteral(">\r\n <b>");
5044
5045
5046 #line 2475 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5047 Write(Translate("ASRwarnMessage", "Analyte Specific Reagent. Analytical and performance characteristics are not established."));
5048
5049
5050 #line default
5051 #line hidden
5052 WriteLiteral("</b>\r\n </p>\r\n");
5053
5054
5055 #line 2477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5056 }
5057
5058
5059 #line default
5060 #line hidden
5061 WriteLiteral("\r\n <dl");
5062
5063 WriteLiteral(" class=\"col-xs-12 noPaddingLeft\"");
5064
5065 WriteLiteral(">\r\n");
5066
5067
5068 #line 2480 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5069
5070
5071 #line default
5072 #line hidden
5073
5074 #line 2480 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5075 if (loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price")).Any())
5076 {
5077
5078
5079 #line default
5080 #line hidden
5081 WriteLiteral(" <dt");
5082
5083 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5084
5085 WriteLiteral(">\r\n");
5086
5087 WriteLiteral(" ");
5088
5089
5090 #line 2483 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5091 Write(Translate("Catalog#Size", "Catalog# / Size"));
5092
5093
5094 #line default
5095 #line hidden
5096 WriteLiteral("\r\n </dt>\r\n");
5097
5098 WriteLiteral(" <dd");
5099
5100 WriteLiteral(" class=\"col-xs-9\"");
5101
5102 WriteLiteral(">\r\n");
5103
5104
5105 #line 2486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5106
5107
5108 #line default
5109 #line hidden
5110
5111 #line 2486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5112 foreach (var productVariant in loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price")))
5113 {
5114 if (!string.IsNullOrWhiteSpace(productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean")))
5115 {
5116 RRIDLists.Add(productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean"));
5117 }
5118 var variantName = productVariant.GetString("Ecom:VariantCombination.VariantText");
5119 if(variantName.Contains("µg")){productIsUg += "Yes";}
5120 if(variantName.Contains("µl")){productIsUl += "Yes";}
5121
5122
5123 #line default
5124 #line hidden
5125
5126 #line 2495 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5127 Write(String.Format("{0} / {1}", productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:VariantCombination.VariantText")));
5128
5129
5130 #line default
5131 #line hidden
5132
5133 #line 2495 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5134
5135
5136
5137 #line default
5138 #line hidden
5139 WriteLiteral(" <br/>\r\n");
5140
5141
5142 #line 2497 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5143 }
5144
5145
5146 #line default
5147 #line hidden
5148 WriteLiteral(" </dd>\r\n");
5149
5150
5151 #line 2499 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5152 }
5153
5154
5155 #line default
5156 #line hidden
5157 WriteLiteral(" ");
5158
5159
5160 #line 2500 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5161 if (!string.IsNullOrEmpty(productClone))
5162 {
5163
5164
5165 #line default
5166 #line hidden
5167 WriteLiteral(" <dt");
5168
5169 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5170
5171 WriteLiteral(">\r\n");
5172
5173 WriteLiteral(" ");
5174
5175
5176 #line 2503 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5177 Write(GetString("Ecom:Product:Field.Clone.Name"));
5178
5179
5180 #line default
5181 #line hidden
5182 WriteLiteral("\r\n </dt>\r\n");
5183
5184 WriteLiteral(" <dd");
5185
5186 WriteLiteral(" class=\"col-xs-9\"");
5187
5188 WriteLiteral(">\r\n");
5189
5190 WriteLiteral(" ");
5191
5192
5193 #line 2506 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5194 Write(productClone);
5195
5196
5197 #line default
5198 #line hidden
5199 WriteLiteral("\r\n </dd>\r\n");
5200
5201
5202 #line 2508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5203 }
5204
5205
5206 #line default
5207 #line hidden
5208 WriteLiteral(" ");
5209
5210
5211 #line 2509 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5212 if (isRUO)
5213 {
5214
5215
5216 #line default
5217 #line hidden
5218 WriteLiteral(" <dt");
5219
5220 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5221
5222 WriteLiteral(">\r\n");
5223
5224 WriteLiteral(" ");
5225
5226
5227 #line 2512 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5228 Write(Translate("RegulatoryStatus","Regulatory Status"));
5229
5230
5231 #line default
5232 #line hidden
5233 WriteLiteral("\r\n </dt>\r\n");
5234
5235 WriteLiteral(" <dd");
5236
5237 WriteLiteral(" class=\"col-xs-9\"");
5238
5239 WriteLiteral(">\r\n");
5240
5241 WriteLiteral(" ");
5242
5243
5244 #line 2515 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5245 Write(str_productRegulatoryStatus);
5246
5247
5248 #line default
5249 #line hidden
5250 WriteLiteral("\r\n </dd>\r\n");
5251
5252
5253 #line 2517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5254 }
5255
5256
5257 #line default
5258 #line hidden
5259 WriteLiteral(" ");
5260
5261
5262 #line 2518 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5263 if(!string.IsNullOrEmpty(str_workshop))
5264 {
5265
5266
5267 #line default
5268 #line hidden
5269 WriteLiteral(" <dt");
5270
5271 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5272
5273 WriteLiteral(">\r\n");
5274
5275 WriteLiteral(" ");
5276
5277
5278 #line 2521 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5279 Write(Translate("WorkshopName","Workshop"));
5280
5281
5282 #line default
5283 #line hidden
5284 WriteLiteral("\r\n </dt>\r\n");
5285
5286 WriteLiteral(" <dd");
5287
5288 WriteLiteral(" class=\"col-xs-9\"");
5289
5290 WriteLiteral(">\r\n");
5291
5292 WriteLiteral(" ");
5293
5294
5295 #line 2524 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5296 Write(str_workshop);
5297
5298
5299 #line default
5300 #line hidden
5301 WriteLiteral("\r\n </dd>\r\n");
5302
5303
5304 #line 2526 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5305 }
5306
5307
5308 #line default
5309 #line hidden
5310 WriteLiteral(" ");
5311
5312
5313 #line 2527 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5314
5315 var pattern = @"\<[^>]*\>";
5316 Regex rgx = new Regex(pattern);
5317 string otherNamesValue = rgx.Replace(GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty);
5318
5319
5320 #line default
5321 #line hidden
5322 WriteLiteral("\r\n");
5323
5324
5325 #line 2532 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5326
5327
5328 #line default
5329 #line hidden
5330
5331 #line 2532 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5332 if (!String.IsNullOrWhiteSpace(otherNamesValue) && !isIVD )
5333 {
5334
5335
5336 #line default
5337 #line hidden
5338 WriteLiteral(" <dt");
5339
5340 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5341
5342 WriteLiteral(">\r\n");
5343
5344 WriteLiteral(" ");
5345
5346
5347 #line 2535 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5348 Write(GetString("Ecom:Product:Field.OtherNames.Name"));
5349
5350
5351 #line default
5352 #line hidden
5353 WriteLiteral("\r\n </dt>\r\n");
5354
5355 WriteLiteral(" <dd");
5356
5357 WriteLiteral(" class=\"col-xs-9\"");
5358
5359 WriteLiteral(">\r\n");
5360
5361 WriteLiteral(" ");
5362
5363
5364 #line 2538 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5365 Write(otherNamesValue);
5366
5367
5368 #line default
5369 #line hidden
5370 WriteLiteral("\r\n </dd>\r\n");
5371
5372
5373 #line 2540 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5374 }
5375
5376
5377 #line default
5378 #line hidden
5379 WriteLiteral("\r\n");
5380
5381
5382 #line 2542 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5383
5384
5385 #line default
5386 #line hidden
5387
5388 #line 2542 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5389 if (previousCompany.Any() && !isASR && !isIVD)
5390 {
5391
5392
5393 #line default
5394 #line hidden
5395 WriteLiteral(" <dt");
5396
5397 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
5398
5399 WriteLiteral(">\r\n");
5400
5401 WriteLiteral(" ");
5402
5403
5404 #line 2545 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5405 Write(Translate("Previously", "Previously"));
5406
5407
5408 #line default
5409 #line hidden
5410 WriteLiteral("\r\n </dt>\r\n");
5411
5412 WriteLiteral(" <dd");
5413
5414 WriteLiteral(" class=\"col-xs-9\"");
5415
5416 WriteLiteral(">\r\n <div>\r\n");
5417
5418
5419 #line 2549 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5420
5421
5422 #line default
5423 #line hidden
5424
5425 #line 2549 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5426 foreach (var x in previousCompany)
5427 {
5428
5429
5430 #line default
5431 #line hidden
5432
5433 #line 2551 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5434 Write(String.Format("{1} Catalog# {0}<br/>", x.Key.ToString(), x.Value.ToString()));
5435
5436
5437 #line default
5438 #line hidden
5439
5440 #line 2551 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5441
5442 }
5443
5444
5445 #line default
5446 #line hidden
5447 WriteLiteral(" </div>\r\n </dd>\r\n");
5448
5449
5450 #line 2555 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5451 }
5452
5453
5454 #line default
5455 #line hidden
5456 WriteLiteral("\r\n");
5457
5458 WriteLiteral(" ");
5459
5460
5461 #line 2557 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5462 Write(RenderIsoype(str_IsotypeForFilter));
5463
5464
5465 #line default
5466 #line hidden
5467 WriteLiteral("\r\n");
5468
5469
5470 #line 2558 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5471
5472
5473 #line default
5474 #line hidden
5475
5476 #line 2558 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5477 if (!string.IsNullOrEmpty(str_TotalseqSequence))
5478 {
5479
5480
5481 #line default
5482 #line hidden
5483 WriteLiteral(" <dt");
5484
5485 WriteLiteral(" class=\"col-xs-4 col-sm-3 noPaddingLeft\"");
5486
5487 WriteLiteral(">\r\n");
5488
5489 WriteLiteral(" ");
5490
5491
5492 #line 2561 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5493 Write(Translate("Barcode Sequence"));
5494
5495
5496 #line default
5497 #line hidden
5498 WriteLiteral("\r\n </dt>\r\n");
5499
5500 WriteLiteral(" <dd>\r\n");
5501
5502 WriteLiteral(" ");
5503
5504
5505 #line 2564 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5506 Write(str_TotalseqSequence);
5507
5508
5509 #line default
5510 #line hidden
5511 WriteLiteral("\r\n </dd>\r\n");
5512
5513
5514 #line 2566 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5515 }
5516
5517
5518 #line default
5519 #line hidden
5520 WriteLiteral(" </dl>\r\n\r\n ");
5521
5522 WriteLiteral("\r\n");
5523
5524
5525 #line 2570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5526
5527
5528 #line default
5529 #line hidden
5530
5531 #line 2570 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5532 if (str_currentPageId != printPage && str_currentPageId == printPage && !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR)
5533 {
5534
5535
5536 #line default
5537 #line hidden
5538 WriteLiteral(" <dl");
5539
5540 WriteLiteral(" class=\"col-xs-12 noPadding\"");
5541
5542 WriteLiteral(">\r\n");
5543
5544 WriteLiteral(" ");
5545
5546
5547 #line 2573 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5548 Write(RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents")));
5549
5550
5551 #line default
5552 #line hidden
5553 WriteLiteral("\r\n </dl>\r\n");
5554
5555
5556 #line 2575 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5557 }
5558
5559
5560
5561 #line default
5562 #line hidden
5563
5564 #line 2577 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5565
5566
5567
5568 #line default
5569 #line hidden
5570 WriteLiteral(" ");
5571
5572
5573 #line 2578 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5574 if(str_productFormat.ToUpper().Contains("BV") && str_productName.ToUpper().Contains("MOUSE") && productIsUg.ToUpper().Contains("YES") && productIsUl.ToUpper().Contains("YES") && !isASR){
5575
5576
5577 #line default
5578 #line hidden
5579 WriteLiteral(" <div");
5580
5581 WriteLiteral(" class=\"pdfDescription col-xs-12 noPaddingLeft\"");
5582
5583 WriteLiteral(">\r\n <div");
5584
5585 WriteLiteral(" class=\"title col-xs-3 noPaddingLeft\"");
5586
5587 WriteLiteral("> </div>\r\n <div");
5588
5589 WriteLiteral(" class=\"col-xs-9\"");
5590
5591 WriteLiteral(">This product is offered in multiple sizing options (µg and µL/test s" +
5592 "izes). To compare these sizing options and learn which is the best choice for yo" +
5593 "u, please contact tech support.</div>\r\n </div>\r\n");
5594
5595
5596 #line 2583 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5597 }
5598
5599
5600 #line default
5601 #line hidden
5602 WriteLiteral("\r\n");
5603
5604
5605 #line 2585 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5606
5607
5608 #line default
5609 #line hidden
5610
5611 #line 2585 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5612 if (!String.IsNullOrEmpty(str_productDescription))
5613 {
5614
5615
5616 #line default
5617 #line hidden
5618 WriteLiteral(" <dl");
5619
5620 WriteLiteral(" class=\"pdfDescription col-xs-12 noPaddingLeft\"");
5621
5622 WriteLiteral(">\r\n <dt");
5623
5624 WriteLiteral(" class=\"title col-xs-3 noPaddingLeft\"");
5625
5626 WriteLiteral("><strong>");
5627
5628
5629 #line 2588 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5630 Write(Translate("Description", "Description"));
5631
5632
5633 #line default
5634 #line hidden
5635 WriteLiteral("</strong></dt>\r\n <dd");
5636
5637 WriteLiteral(" class=\"col-xs-9 noPaddingLeft\"");
5638
5639 WriteLiteral(">");
5640
5641
5642 #line 2589 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5643 Write(RenderLongDescription(str_productDescription, str_productId));
5644
5645
5646 #line default
5647 #line hidden
5648 WriteLiteral("</dd>\r\n </dl>\r\n");
5649
5650
5651 #line 2591 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5652 }
5653
5654
5655 #line default
5656 #line hidden
5657 WriteLiteral(" ");
5658
5659
5660 #line 2592 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5661 if (!String.IsNullOrEmpty(str_qualityStatement))
5662 {
5663
5664
5665 #line default
5666 #line hidden
5667
5668 #line 2594 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5669 Write(RenderProductField("QualityStatement",@Translate("QualityStatementNameB","Quality Statement"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName));
5670
5671
5672 #line default
5673 #line hidden
5674
5675 #line 2594 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5676
5677 }
5678
5679
5680 #line default
5681 #line hidden
5682 WriteLiteral("\r\n\r\n");
5683
5684 WriteLiteral(" ");
5685
5686
5687 #line 2598 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5688 Write(RenderTDS(
5689 true,
5690 str_productDataSheetFile,
5691 str_productDataSheet,
5692 printPage,
5693 productFieldType,
5694 str_productId,
5695 str_productName,
5696 str_productRegulatoryStatus,
5697 techSupportPageID,
5698 @Translate("datasheetNotAvailable", "This datasheet is currently not available online. Click 'OK' to contact technical service for more information."),
5699 "",
5700 "",
5701 productUpdated
5702 ));
5703
5704
5705 #line default
5706 #line hidden
5707 WriteLiteral("\r\n\r\n </div>\r\n\r\n ");
5708
5709 WriteLiteral("\r\n");
5710
5711
5712 #line 2617 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5713
5714
5715 #line default
5716 #line hidden
5717
5718 #line 2617 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5719 if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR)
5720 {
5721
5722
5723 #line default
5724 #line hidden
5725 WriteLiteral(" <div");
5726
5727 WriteLiteral(" id=\"kitContents\"");
5728
5729 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\"");
5730
5731 WriteLiteral(">\r\n\r\n <h2");
5732
5733 WriteLiteral(" class=\"col-xs-12 noPadding\"");
5734
5735 WriteLiteral(">\r\n");
5736
5737 WriteLiteral(" ");
5738
5739
5740 #line 2622 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5741 Write(Translate("KitContents", "Kit Contents"));
5742
5743
5744 #line default
5745 #line hidden
5746 WriteLiteral("\r\n </h2>\r\n <dl");
5747
5748 WriteLiteral(" class=\"col-xs-12 noPadding\"");
5749
5750 WriteLiteral(">\r\n");
5751
5752 WriteLiteral(" ");
5753
5754
5755 #line 2625 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5756 Write(RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents")));
5757
5758
5759 #line default
5760 #line hidden
5761 WriteLiteral("\r\n </dl>\r\n </div>\r\n");
5762
5763
5764 #line 2628 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5765 }
5766
5767
5768 #line default
5769 #line hidden
5770 WriteLiteral("\r\n <div");
5771
5772 WriteLiteral(" id=\"productDetails\"");
5773
5774 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\"");
5775
5776 WriteLiteral(" data-isotypeControl=\'");
5777
5778
5779 #line 2630 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5780 Write(Translate("IsotypeControl", "Isotype Control"));
5781
5782
5783 #line default
5784 #line hidden
5785 WriteLiteral("\'");
5786
5787 WriteLiteral(">\r\n <h2");
5788
5789 WriteLiteral(" class=\"col-xs-12 noPadding\"");
5790
5791 WriteLiteral(">\r\n");
5792
5793 WriteLiteral(" ");
5794
5795
5796 #line 2632 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5797 Write(Translate("ProductDetails", "Product Details"));
5798
5799
5800 #line default
5801 #line hidden
5802 WriteLiteral("\r\n </h2>\r\n\r\n <dl");
5803
5804 WriteLiteral(" class=\"col-xs-12 noPadding\"");
5805
5806 WriteLiteral(">\r\n\r\n");
5807
5808
5809 #line 2637 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5810
5811
5812 #line default
5813 #line hidden
5814
5815 #line 2637 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5816 if(isIVD){
5817
5818
5819 #line default
5820 #line hidden
5821
5822 #line 2638 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5823 Write(RenderProductField("ProductInfo", @Translate("ProductInformation","Product Information")));
5824
5825
5826 #line default
5827 #line hidden
5828
5829 #line 2638 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5830 ;
5831 }
5832
5833
5834 #line default
5835 #line hidden
5836 WriteLiteral(" ");
5837
5838
5839 #line 2640 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5840 if(isRUO){
5841
5842
5843 #line default
5844 #line hidden
5845
5846 #line 2641 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5847 Write(RenderProductField("Reactivity", @Translate("VerifiedReactivity","Verified Reactivity"), "", "", "", "", productType, "", null, true));
5848
5849
5850 #line default
5851 #line hidden
5852
5853 #line 2641 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5854
5855 }
5856 else{
5857
5858
5859 #line default
5860 #line hidden
5861
5862 #line 2644 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5863 Write(RenderProductField("Reactivity", @Translate("Reactivity","Reactivity"), "", "", "", "", productType, "", null, true));
5864
5865
5866 #line default
5867 #line hidden
5868
5869 #line 2644 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5870
5871 }
5872
5873
5874 #line default
5875 #line hidden
5876 WriteLiteral(" ");
5877
5878
5879 #line 2646 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5880 Write(RenderProductField("ReportedReactivity", @Translate("ReportedReactivity","Reported Reactivity"), "", "", "", "", productType, "", null, true));
5881
5882
5883 #line default
5884 #line hidden
5885 WriteLiteral("\r\n");
5886
5887
5888 #line 2647 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5889
5890
5891 #line default
5892 #line hidden
5893
5894 #line 2647 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5895 if(!isASR && !isIVD){
5896
5897
5898 #line default
5899 #line hidden
5900
5901 #line 2648 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5902 Write(RenderABType("ABType", @Translate("AntibodyType","Antibody Type")));
5903
5904
5905 #line default
5906 #line hidden
5907
5908 #line 2648 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5909
5910 }
5911
5912
5913 #line default
5914 #line hidden
5915 WriteLiteral(" ");
5916
5917
5918 #line 2650 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5919 if(!isASR && !isIVD){
5920
5921
5922 #line default
5923 #line hidden
5924
5925 #line 2651 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5926 Write(RenderProductField("HostSpecies", @Translate("HostSpecies","Host Species")));
5927
5928
5929 #line default
5930 #line hidden
5931
5932 #line 2651 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5933
5934 }
5935
5936
5937 #line default
5938 #line hidden
5939 WriteLiteral(" ");
5940
5941
5942 #line 2653 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5943 if(!isASR){
5944
5945
5946 #line default
5947 #line hidden
5948
5949 #line 2654 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5950 Write(RenderCustomField(productFieldType, "Immunogen", @Translate("Immunogen", "Immunogen")));
5951
5952
5953 #line default
5954 #line hidden
5955
5956 #line 2654 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5957
5958 }
5959
5960
5961 #line default
5962 #line hidden
5963 WriteLiteral(" ");
5964
5965
5966 #line 2656 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5967 if(!isASR){
5968
5969
5970 #line default
5971 #line hidden
5972
5973 #line 2657 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5974 Write(RenderCustomField(productFieldType, "Derivation", @Translate("Source", "Source")));
5975
5976
5977 #line default
5978 #line hidden
5979
5980 #line 2657 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5981
5982 }
5983
5984
5985 #line default
5986 #line hidden
5987 WriteLiteral(" ");
5988
5989
5990 #line 2659 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5991 if(!isASR){
5992
5993
5994 #line default
5995 #line hidden
5996
5997 #line 2660 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
5998 Write(RenderCustomField(productFieldType, "Mass", @Translate("MolecularMass", "Molecular Mass")));
5999
6000
6001 #line default
6002 #line hidden
6003
6004 #line 2660 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6005
6006 }
6007
6008
6009 #line default
6010 #line hidden
6011 WriteLiteral(" ");
6012
6013
6014 #line 2662 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6015 Write(RenderProductField("NTerminalSequenceAnalysis",@Translate("NTerminalSequenceAnalysisNameA","N-terminal<br />Sequence Analysis")));
6016
6017
6018 #line default
6019 #line hidden
6020 WriteLiteral("\r\n");
6021
6022
6023 #line 2663 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6024
6025
6026 #line default
6027 #line hidden
6028
6029 #line 2663 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6030 if(!isASR){
6031
6032
6033 #line default
6034 #line hidden
6035
6036 #line 2664 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6037 Write(RenderCustomField(productFieldType, "Purity", @Translate("Purity", "Purity")));
6038
6039
6040 #line default
6041 #line hidden
6042
6043 #line 2664 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6044
6045 }
6046
6047
6048 #line default
6049 #line hidden
6050 WriteLiteral(" ");
6051
6052
6053 #line 2666 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6054 Write(RenderProductField("Formulation", @Translate("Formulation", "Formulation")));
6055
6056
6057 #line default
6058 #line hidden
6059 WriteLiteral("\r\n");
6060
6061 WriteLiteral(" ");
6062
6063
6064 #line 2667 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6065 Write(RenderProductField("EndotoxinLevel",@Translate("EndotoxinLevelName","Endotoxin Level")));
6066
6067
6068 #line default
6069 #line hidden
6070 WriteLiteral("\r\n");
6071
6072 WriteLiteral(" ");
6073
6074
6075 #line 2668 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6076 Write(RenderProductField("ResidualHostCellProteinContent",@Translate("ResidualHostCellProteinContentName","Residual Host Cell Protein Content")));
6077
6078
6079 #line default
6080 #line hidden
6081 WriteLiteral("\r\n");
6082
6083 WriteLiteral(" ");
6084
6085
6086 #line 2669 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6087 Write(RenderProductField("Specifications",@Translate("SpecificationsName","Specifications")));
6088
6089
6090 #line default
6091 #line hidden
6092 WriteLiteral("\r\n");
6093
6094 WriteLiteral(" ");
6095
6096
6097 #line 2670 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6098 Write(RenderCustomField(productFieldType, "Preparation", @Translate("Preparation", "Preparation")));
6099
6100
6101 #line default
6102 #line hidden
6103 WriteLiteral("\r\n\r\n");
6104
6105
6106 #line 2672 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6107
6108
6109 #line default
6110 #line hidden
6111
6112 #line 2672 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6113 if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean")))
6114 {
6115
6116
6117 #line default
6118 #line hidden
6119 WriteLiteral(" <dt");
6120
6121 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6122
6123 WriteLiteral(">\r\n");
6124
6125 WriteLiteral(" ");
6126
6127
6128 #line 2675 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6129 Write(Translate("Concentration", "Concentration"));
6130
6131
6132 #line default
6133 #line hidden
6134 WriteLiteral("\r\n </dt>\r\n");
6135
6136 WriteLiteral(" <dd");
6137
6138 WriteLiteral(" class=\"col-xs-9\"");
6139
6140 WriteLiteral(">\r\n");
6141
6142 WriteLiteral(" ");
6143
6144
6145 #line 2678 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6146 Write(LocalizeLinks(@GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean")));
6147
6148
6149 #line default
6150 #line hidden
6151 WriteLiteral(" ");
6152
6153
6154 #line 2678 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6155 Write(GetString("Ecom:Product.CategoryField." + productFieldType + ".ConcentrationUnits.Value.Clean"));
6156
6157
6158 #line default
6159 #line hidden
6160 WriteLiteral("\r\n </dd>\r\n");
6161
6162
6163 #line 2680 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6164 }
6165
6166
6167 #line default
6168 #line hidden
6169 WriteLiteral("\r\n");
6170
6171 WriteLiteral(" ");
6172
6173
6174 #line 2682 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6175 Write(RenderProductField("Storage", @Translate("StorageHandling", "Storage & Handling"), str_productId));
6176
6177
6178 #line default
6179 #line hidden
6180 WriteLiteral("\r\n");
6181
6182
6183 #line 2683 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6184
6185
6186 #line default
6187 #line hidden
6188
6189 #line 2683 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6190 if(!isASR){
6191
6192
6193 #line default
6194 #line hidden
6195
6196 #line 2684 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6197 Write(RenderCustomField(productFieldType, "Activity", @Translate("Activity", "Activity")));
6198
6199
6200 #line default
6201 #line hidden
6202
6203 #line 2684 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6204
6205 }
6206
6207
6208 #line default
6209 #line hidden
6210 WriteLiteral(" ");
6211
6212
6213 #line 2686 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6214 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Applications.Value")) && !isIVD)
6215 {
6216
6217
6218 #line default
6219 #line hidden
6220 WriteLiteral(" <dt");
6221
6222 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6223
6224 WriteLiteral(">\r\n");
6225
6226 WriteLiteral(" ");
6227
6228
6229 #line 2689 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6230 Write(Translate("Application", "Application"));
6231
6232
6233 #line default
6234 #line hidden
6235 WriteLiteral("\r\n </dt>\r\n");
6236
6237 WriteLiteral(" <dd");
6238
6239 WriteLiteral(" class=\"col-xs-9\"");
6240
6241 WriteLiteral(">\r\n <span>");
6242
6243
6244 #line 2692 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6245 Write(GetString("Ecom:Product:Field.Applications.Value"));
6246
6247
6248 #line default
6249 #line hidden
6250 WriteLiteral("</span>\r\n\r\n");
6251
6252
6253 #line 2694 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6254
6255
6256 #line default
6257 #line hidden
6258
6259 #line 2694 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6260 if (productFieldType.Equals("LEGENDplex"))
6261 {
6262
6263
6264 #line default
6265 #line hidden
6266 WriteLiteral(" ");
6267
6268 WriteLiteral("\r\n <br/>\r\n");
6269
6270 WriteLiteral(" ");
6271
6272
6273 #line 2698 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6274 Write(Translate("learnAboutLegendPlex", "Learn more about LEGENDplex™ at biolegend.com/legendplex."));
6275
6276
6277 #line default
6278 #line hidden
6279 WriteLiteral("\r\n <br/><br/>\r\n");
6280
6281 WriteLiteral(" ");
6282
6283
6284 #line 2700 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6285 Write(Translate("downloadLegendPlexSoftware", "Download the LEGENDplex™ software."));
6286
6287
6288 #line default
6289 #line hidden
6290 WriteLiteral("\r\n ");
6291
6292 WriteLiteral("\r\n");
6293
6294
6295 #line 2702 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6296 }
6297
6298
6299 #line default
6300 #line hidden
6301 WriteLiteral("\r\n </dd>\r\n");
6302
6303
6304 #line 2705 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6305 }
6306
6307
6308
6309 #line default
6310 #line hidden
6311
6312 #line 2707 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6313
6314
6315
6316 #line default
6317 #line hidden
6318 WriteLiteral(" ");
6319
6320
6321 #line 2708 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6322 if (str_productFormat.Equals("ELISA") || str_productFormat.Equals("ELISA_STD") || str_productFormat.Equals("ELISA_DLX"))
6323 {
6324
6325
6326 #line default
6327 #line hidden
6328 WriteLiteral(" <dt");
6329
6330 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6331
6332 WriteLiteral(">");
6333
6334
6335 #line 2710 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6336 Write(Translate("spaceText", " "));
6337
6338
6339 #line default
6340 #line hidden
6341 WriteLiteral("</dt>\r\n");
6342
6343 WriteLiteral(" <dd");
6344
6345 WriteLiteral(" class=\"col-xs-9\"");
6346
6347 WriteLiteral(">\r\n");
6348
6349 WriteLiteral(" ");
6350
6351
6352 #line 2712 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6353 Write(Translate("elisaGreenText", " As a part of BioLegend's efforts to go green, each new lot of the ELISA MAX™ sets will include a summarized version of its manual. "));
6354
6355
6356 #line default
6357 #line hidden
6358 WriteLiteral(" \r\n </dd>\r\n");
6359
6360
6361 #line 2714 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6362 }
6363
6364
6365 #line default
6366 #line hidden
6367 WriteLiteral("\r\n");
6368
6369 WriteLiteral(" ");
6370
6371
6372 #line 2716 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6373 Write(RenderProductField("Usage", @Translate("RecommendedUsage", "Recommended Usage"), str_productId, str_productRegulatoryStatus, catalogFirstLetter, str_productFormat, productFieldType, str_productName));
6374
6375
6376 #line default
6377 #line hidden
6378 WriteLiteral("\r\n \r\n\r\n");
6379
6380
6381 #line 2719 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6382
6383
6384 #line default
6385 #line hidden
6386
6387 #line 2719 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6388 if(!isASR && !isIVD)
6389 {
6390
6391
6392 #line default
6393 #line hidden
6394
6395 #line 2721 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6396 Write(RenderLaser(str_productLaser));
6397
6398
6399 #line default
6400 #line hidden
6401
6402 #line 2721 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6403
6404
6405
6406 #line default
6407 #line hidden
6408
6409 #line 2722 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6410 Write(RenderProductField("AppNotes", @Translate("ApplicationNotes", "Application Notes")));
6411
6412
6413 #line default
6414 #line hidden
6415
6416 #line 2722 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6417
6418
6419
6420 #line default
6421 #line hidden
6422
6423 #line 2723 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6424 Write(RenderProductField("AdditionalProductNotes", @Translate("AdditionalProductNotesTitle", "Additional Product Notes")));
6425
6426
6427 #line default
6428 #line hidden
6429
6430 #line 2723 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6431
6432 }
6433
6434
6435 #line default
6436 #line hidden
6437 WriteLiteral("\r\n");
6438
6439
6440 #line 2726 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6441
6442
6443 #line default
6444 #line hidden
6445
6446 #line 2726 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6447 if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.AppReferences.Value")) && !isASR)
6448 {
6449
6450
6451 #line default
6452 #line hidden
6453 WriteLiteral(" <dt");
6454
6455 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6456
6457 WriteLiteral(">\r\n");
6458
6459 WriteLiteral(" ");
6460
6461
6462 #line 2729 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6463 Write(Translate("ApplicationReferences","Application References"));
6464
6465
6466 #line default
6467 #line hidden
6468 WriteLiteral("\r\n </dt>\r\n");
6469
6470 WriteLiteral(" <dd");
6471
6472 WriteLiteral(" class=\"col-xs-9\"");
6473
6474 WriteLiteral(" id=\"applicationReferences\"");
6475
6476 WriteLiteral(" data-seeLess=\"");
6477
6478
6479 #line 2731 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6480 Write(Translate("seeLess", "See Less"));
6481
6482
6483 #line default
6484 #line hidden
6485 WriteLiteral("\"");
6486
6487 WriteLiteral(" data-seeMore=\"");
6488
6489
6490 #line 2731 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6491 Write(Translate("seeMore", "See More"));
6492
6493
6494 #line default
6495 #line hidden
6496 WriteLiteral("\"");
6497
6498 WriteLiteral(">\r\n");
6499
6500
6501 #line 2732 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6502
6503
6504 #line default
6505 #line hidden
6506
6507 #line 2732 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6508
6509 var removeAnchor = Regex.Replace(GetString("Ecom:Product:Field.AppReferences.Value"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
6510
6511
6512 #line default
6513 #line hidden
6514 WriteLiteral("\r\n");
6515
6516
6517 #line 2735 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6518
6519
6520 #line default
6521 #line hidden
6522
6523 #line 2735 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6524 if (removeAnchor.Contains("</li>"))
6525 {
6526 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None);
6527 var count = 0;
6528 foreach (var li in positionOfCut)
6529 {
6530 count++;
6531 if (count > 12)
6532 {
6533 break;
6534 }
6535
6536
6537 #line default
6538 #line hidden
6539
6540 #line 2746 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6541 Write(li + "</li>");
6542
6543
6544 #line default
6545 #line hidden
6546
6547 #line 2746 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6548
6549 }
6550 }
6551 else
6552 {
6553
6554
6555 #line default
6556 #line hidden
6557
6558 #line 2751 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6559 Write(removeAnchor.Substring(0, (removeAnchor.Length <= 800 ? removeAnchor.Length - 1 : 800)));
6560
6561
6562 #line default
6563 #line hidden
6564
6565 #line 2751 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6566
6567 }
6568
6569
6570 #line default
6571 #line hidden
6572 WriteLiteral("\r\n </dd>\r\n");
6573
6574
6575 #line 2755 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6576 }
6577
6578
6579 #line default
6580 #line hidden
6581 WriteLiteral("\r\n");
6582
6583
6584 #line 2757 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6585
6586
6587 #line default
6588 #line hidden
6589
6590 #line 2757 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6591 if( !string.IsNullOrWhiteSpace(applicationReferences) && !isASR && !isIVD)
6592 {
6593
6594
6595 #line default
6596 #line hidden
6597 WriteLiteral(" <dt");
6598
6599 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6600
6601 WriteLiteral(">\r\n");
6602
6603 WriteLiteral(" ");
6604
6605
6606 #line 2760 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6607 Write(Translate("ProductCitations","Product Citations"));
6608
6609
6610 #line default
6611 #line hidden
6612 WriteLiteral("\r\n </dt>\r\n");
6613
6614 WriteLiteral(" <dd");
6615
6616 WriteLiteral(" class=\"col-xs-9\"");
6617
6618 WriteLiteral(" id=\"productSpecificReferences\"");
6619
6620 WriteLiteral(" data-seeLess=\"");
6621
6622
6623 #line 2762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6624 Write(Translate("seeLess", "See Less"));
6625
6626
6627 #line default
6628 #line hidden
6629 WriteLiteral("\"");
6630
6631 WriteLiteral(" data-seeMore=\"");
6632
6633
6634 #line 2762 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6635 Write(Translate("seeMore", "See More"));
6636
6637
6638 #line default
6639 #line hidden
6640 WriteLiteral("\"");
6641
6642 WriteLiteral(">\r\n");
6643
6644
6645 #line 2763 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6646
6647
6648 #line default
6649 #line hidden
6650
6651 #line 2763 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6652
6653 var removeAnchor = Regex.Replace(applicationReferences, @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
6654
6655
6656 #line default
6657 #line hidden
6658 WriteLiteral("\r\n");
6659
6660
6661 #line 2766 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6662
6663
6664 #line default
6665 #line hidden
6666
6667 #line 2766 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6668 if (removeAnchor.Contains("</li>"))
6669 {
6670 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None);
6671 var count = 0;
6672 foreach (var li in positionOfCut)
6673 {
6674 count++;
6675 if (count > 12)
6676 {
6677 break;
6678 }
6679
6680
6681 #line default
6682 #line hidden
6683
6684 #line 2777 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6685 Write(li + "</li>");
6686
6687
6688 #line default
6689 #line hidden
6690
6691 #line 2777 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6692
6693 }
6694 }
6695 else
6696 {
6697
6698
6699 #line default
6700 #line hidden
6701
6702 #line 2782 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6703 Write(removeAnchor.Substring(0, 800));
6704
6705
6706 #line default
6707 #line hidden
6708
6709 #line 2782 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6710
6711 }
6712
6713
6714 #line default
6715 #line hidden
6716 WriteLiteral(" </dd>\r\n");
6717
6718
6719 #line 2785 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6720 }
6721
6722
6723 #line default
6724 #line hidden
6725 WriteLiteral("\r\n");
6726
6727
6728 #line 2787 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6729
6730
6731 #line default
6732 #line hidden
6733
6734 #line 2787 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6735 if (RRIDLists.ToList().Any() && !isASR && !isIVD)
6736 {
6737
6738
6739 #line default
6740 #line hidden
6741 WriteLiteral(" <dt");
6742
6743 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
6744
6745 WriteLiteral(">");
6746
6747
6748 #line 2789 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6749 Write(Translate("RRID", "RRID"));
6750
6751
6752 #line default
6753 #line hidden
6754 WriteLiteral("</dt>\r\n");
6755
6756 WriteLiteral(" <dd");
6757
6758 WriteLiteral(" class=\"col-xs-9\"");
6759
6760 WriteLiteral(">\r\n ");
6761
6762 WriteLiteral("\r\n");
6763
6764
6765 #line 2792 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6766
6767
6768 #line default
6769 #line hidden
6770
6771 #line 2792 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6772 foreach (var x in RRIDLists.ToList())
6773 {
6774
6775
6776 #line default
6777 #line hidden
6778
6779 #line 2794 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6780 Write(x.Value);
6781
6782
6783 #line default
6784 #line hidden
6785
6786 #line 2794 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6787
6788
6789
6790 #line default
6791 #line hidden
6792 WriteLiteral(" ");
6793
6794 WriteLiteral("(");
6795
6796
6797 #line 2795 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6798 Write(Translate("biolegendCatNo", "BioLegend Cat. No."));
6799
6800
6801 #line default
6802 #line hidden
6803 WriteLiteral(" ");
6804
6805
6806 #line 2795 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6807 Write(x.Key);
6808
6809
6810 #line default
6811 #line hidden
6812 WriteLiteral(")");
6813
6814 WriteLiteral("\r\n");
6815
6816 WriteLiteral(" <br/>\r\n");
6817
6818
6819 #line 2797 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6820 }
6821
6822
6823 #line default
6824 #line hidden
6825 WriteLiteral(" </dd>\r\n");
6826
6827
6828 #line 2799 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6829 }
6830
6831
6832 #line default
6833 #line hidden
6834 WriteLiteral(" ");
6835
6836
6837 #line 2800 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6838 if(!isASR && !isIVD){
6839
6840
6841 #line default
6842 #line hidden
6843
6844 #line 2801 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6845 Write(RenderCustomField(productFieldType, "Sensitivity", @Translate("Sensitivity", "Sensitivity")));
6846
6847
6848 #line default
6849 #line hidden
6850
6851 #line 2801 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6852
6853
6854
6855 #line default
6856 #line hidden
6857
6858 #line 2802 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6859 Write(RenderCustomField(productFieldType, "StandardRange", @Translate("StandardRange", "Standard Range")));
6860
6861
6862 #line default
6863 #line hidden
6864
6865 #line 2802 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6866
6867 }
6868
6869
6870 #line default
6871 #line hidden
6872 WriteLiteral(" ");
6873
6874
6875 #line 2804 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6876 if(!isASR){
6877
6878
6879 #line default
6880 #line hidden
6881
6882 #line 2805 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6883 Write(RenderCustomField(productFieldType, "MaterialsNotIncluded", @Translate("MaterialsNotIncluded", "Materials Not Included")));
6884
6885
6886 #line default
6887 #line hidden
6888
6889 #line 2805 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6890
6891 }
6892
6893
6894 #line default
6895 #line hidden
6896 WriteLiteral(" ");
6897
6898
6899 #line 2807 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6900 Write(RenderProductField("Disclaimer",@Translate("Disclaimer","Disclaimer"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName));
6901
6902
6903 #line default
6904 #line hidden
6905 WriteLiteral("\r\n </dl>\r\n </div>\r\n \r\n");
6906
6907
6908 #line 2811 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6909
6910
6911 #line default
6912 #line hidden
6913
6914 #line 2811 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6915 if ((!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Structure.Value"))
6916 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Distribution.Value"))
6917 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Function.Value"))
6918 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Interaction.Value"))
6919 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Ligand.Value"))
6920 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Bioactivity.Value"))
6921 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".CellSources.Value"))
6922 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Cross.Value"))
6923 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Modification.Value"))
6924 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Receptors.Value"))
6925 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Reconstitution.Value"))
6926 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value"))
6927 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Regulation.Value"))
6928 || !string.IsNullOrWhiteSpace(str_biologyArea)
6929 || !string.IsNullOrWhiteSpace(str_molecularFamily)
6930 || !string.IsNullOrWhiteSpace(str_cellType)
6931 || geneList.Any()) && !isASR && !isIVD)
6932 {
6933
6934
6935 #line default
6936 #line hidden
6937 WriteLiteral(" <div");
6938
6939 WriteLiteral(" id=\"antigenDetails\"");
6940
6941 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\"");
6942
6943 WriteLiteral(">\r\n\r\n <h2");
6944
6945 WriteLiteral(" class=\"col-xs-12 noPadding\"");
6946
6947 WriteLiteral(">\r\n");
6948
6949 WriteLiteral(" ");
6950
6951
6952 #line 2832 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6953 Write(Translate("AntigenDetails", "Antigen Details"));
6954
6955
6956 #line default
6957 #line hidden
6958 WriteLiteral("\r\n </h2>\r\n\r\n <dl");
6959
6960 WriteLiteral(" class=\"col-xs-12 noPadding\"");
6961
6962 WriteLiteral(">\r\n");
6963
6964
6965 #line 2836 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6966
6967
6968 #line default
6969 #line hidden
6970
6971 #line 2836 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6972 if(!isASR && !isIVD){
6973
6974
6975 #line default
6976 #line hidden
6977
6978 #line 2837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6979 Write(RenderCustomField(productFieldType, "Structure", @Translate("Structure", "Structure")));
6980
6981
6982 #line default
6983 #line hidden
6984
6985 #line 2837 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6986
6987
6988
6989 #line default
6990 #line hidden
6991
6992 #line 2838 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
6993 Write(RenderCustomField(productFieldType, "Distribution", @Translate("Distribution", "Distribution")));
6994
6995
6996 #line default
6997 #line hidden
6998
6999 #line 2838 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7000
7001
7002
7003 #line default
7004 #line hidden
7005
7006 #line 2839 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7007 Write(RenderCustomField(productFieldType, "Function", @Translate("Function", "Function")));
7008
7009
7010 #line default
7011 #line hidden
7012
7013 #line 2839 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7014
7015
7016
7017 #line default
7018 #line hidden
7019
7020 #line 2840 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7021 Write(RenderCustomField(productFieldType, "Interaction", @Translate("Interaction", "Interaction")));
7022
7023
7024 #line default
7025 #line hidden
7026
7027 #line 2840 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7028
7029
7030
7031 #line default
7032 #line hidden
7033
7034 #line 2841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7035 Write(RenderCustomField(productFieldType, "Ligand", @Translate("LigandReceptor", "Ligand/Receptor")));
7036
7037
7038 #line default
7039 #line hidden
7040
7041 #line 2841 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7042
7043
7044
7045 #line default
7046 #line hidden
7047
7048 #line 2842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7049 Write(RenderCustomField(productFieldType, "Bioactivity", @Translate("Bioactivity", "Bioactivity")));
7050
7051
7052 #line default
7053 #line hidden
7054
7055 #line 2842 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7056
7057
7058
7059 #line default
7060 #line hidden
7061
7062 #line 2843 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7063 Write(RenderCustomField(productFieldType, "CellSources", @Translate("CellSources", "Cell Sources")));
7064
7065
7066 #line default
7067 #line hidden
7068
7069 #line 2843 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7070
7071
7072
7073 #line default
7074 #line hidden
7075
7076 #line 2844 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7077 Write(RenderCustomField(productFieldType, "CellTargets", @Translate("CellTargets", "Cell Targets")));
7078
7079
7080 #line default
7081 #line hidden
7082
7083 #line 2844 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7084
7085
7086
7087 #line default
7088 #line hidden
7089
7090 #line 2845 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7091 Write(RenderCustomField(productFieldType, "Cross", @Translate("Cross", "Cross")));
7092
7093
7094 #line default
7095 #line hidden
7096
7097 #line 2845 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7098
7099
7100
7101 #line default
7102 #line hidden
7103
7104 #line 2846 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7105 Write(RenderCustomField(productFieldType, "Modification", @Translate("Modification", "Modification")));
7106
7107
7108 #line default
7109 #line hidden
7110
7111 #line 2846 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7112
7113
7114
7115 #line default
7116 #line hidden
7117
7118 #line 2847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7119 Write(RenderCustomField(productFieldType, "Receptors", @Translate("Receptors", "Receptors")));
7120
7121
7122 #line default
7123 #line hidden
7124
7125 #line 2847 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7126
7127
7128
7129 #line default
7130 #line hidden
7131
7132 #line 2848 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7133 Write(RenderCustomField(productFieldType, "Reconstitution", @Translate("Reconstitution", "Reconstitution")));
7134
7135
7136 #line default
7137 #line hidden
7138
7139 #line 2848 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7140
7141
7142
7143 #line default
7144 #line hidden
7145
7146 #line 2849 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7147 Write(RenderCellType(str_cellType));
7148
7149
7150 #line default
7151 #line hidden
7152
7153 #line 2849 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7154
7155
7156
7157 #line default
7158 #line hidden
7159
7160 #line 2850 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7161 Write(RenderBiologyArea(str_biologyArea));
7162
7163
7164 #line default
7165 #line hidden
7166
7167 #line 2850 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7168
7169
7170
7171 #line default
7172 #line hidden
7173
7174 #line 2851 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7175 Write(RenderMolecularFamily(str_molecularFamily));
7176
7177
7178 #line default
7179 #line hidden
7180
7181 #line 2851 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7182
7183 }
7184
7185
7186 #line default
7187 #line hidden
7188 WriteLiteral(" ");
7189
7190
7191 #line 2853 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7192 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean")) && !isIVD)
7193 {
7194
7195
7196 #line default
7197 #line hidden
7198 WriteLiteral(" <dt");
7199
7200 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
7201
7202 WriteLiteral(">\r\n");
7203
7204 WriteLiteral(" ");
7205
7206
7207 #line 2856 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7208 Write(Translate("AntigenReferences", "Antigen References"));
7209
7210
7211 #line default
7212 #line hidden
7213 WriteLiteral("\r\n </dt>\r\n");
7214
7215 WriteLiteral(" <dd");
7216
7217 WriteLiteral(" class=\"col-xs-9 noPaddingLeft\"");
7218
7219 WriteLiteral(">\r\n");
7220
7221
7222 #line 2859 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7223
7224
7225 #line default
7226 #line hidden
7227
7228 #line 2859 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7229
7230 string removeAnchor2 = Regex.Replace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
7231
7232
7233 #line default
7234 #line hidden
7235 WriteLiteral("\r\n");
7236
7237 WriteLiteral(" ");
7238
7239
7240 #line 2862 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7241 Write(removeAnchor2.Substring(0, (removeAnchor2.Length <= 1050 ? removeAnchor2.Length - 1 : 1050)));
7242
7243
7244 #line default
7245 #line hidden
7246 WriteLiteral("\r\n </dd>\r\n");
7247
7248
7249 #line 2864 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7250 }
7251
7252
7253 #line default
7254 #line hidden
7255 WriteLiteral(" ");
7256
7257
7258 #line 2865 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7259 if(!isASR && !isIVD){
7260
7261
7262 #line default
7263 #line hidden
7264
7265 #line 2866 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7266 Write(RenderCustomField(productFieldType, "Regulation", @Translate("Regulation", "Regulation")));
7267
7268
7269 #line default
7270 #line hidden
7271
7272 #line 2866 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7273
7274
7275
7276 if (geneList.Any() && !isIVD)
7277 {
7278
7279
7280 #line default
7281 #line hidden
7282 WriteLiteral(" <dt");
7283
7284 WriteLiteral(" class=\"col-xs-3 noPaddingLeft\"");
7285
7286 WriteLiteral(">\r\n");
7287
7288 WriteLiteral(" ");
7289
7290
7291 #line 2872 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7292 Write(Translate("GeneID", "Gene ID"));
7293
7294
7295 #line default
7296 #line hidden
7297 WriteLiteral("\r\n </dt>\r\n");
7298
7299 WriteLiteral(" <dd");
7300
7301 WriteLiteral(" class=\"col-xs-9\"");
7302
7303 WriteLiteral(">\r\n");
7304
7305
7306 #line 2875 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7307
7308
7309 #line default
7310 #line hidden
7311
7312 #line 2875 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7313 foreach (var gene in geneList)
7314 {
7315
7316
7317 #line default
7318 #line hidden
7319 WriteLiteral(" <span");
7320
7321 WriteLiteral(" class=\"col-xs-12 noPadding geneInformation\"");
7322
7323 WriteLiteral(">\r\n <a");
7324
7325 WriteLiteral(" class=\"geneAnchor iframeWebsite\"");
7326
7327 WriteLiteral(" target=\"_blank\"");
7328
7329 WriteLiteral(" data-geneID=\"");
7330
7331
7332 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7333 Write(gene);
7334
7335
7336 #line default
7337 #line hidden
7338 WriteLiteral("\"");
7339
7340 WriteAttribute("href", Tuple.Create(" href=\"", 124358), Tuple.Create("\"", 124404)
7341 , Tuple.Create(Tuple.Create("", 124365), Tuple.Create("https://www.ncbi.nlm.nih.gov/gene/", 124365), true)
7342
7343 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7344 , Tuple.Create(Tuple.Create("", 124399), Tuple.Create<System.Object, System.Int32>(gene
7345
7346 #line default
7347 #line hidden
7348 , 124399), false)
7349 );
7350
7351 WriteLiteral(">");
7352
7353
7354 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7355 Write(gene);
7356
7357
7358 #line default
7359 #line hidden
7360 WriteLiteral("</a> <a");
7361
7362 WriteLiteral(" target=\"_blank\"");
7363
7364 WriteLiteral(" class=\"btn btn-default\"");
7365
7366 WriteAttribute("href", Tuple.Create(" href=\"", 124458), Tuple.Create("\"", 124508)
7367 , Tuple.Create(Tuple.Create("", 124465), Tuple.Create("/Default.aspx?ID=", 124465), true)
7368
7369 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7370 , Tuple.Create(Tuple.Create("", 124482), Tuple.Create<System.Object, System.Int32>(searchPageID
7371
7372 #line default
7373 #line hidden
7374 , 124482), false)
7375 , Tuple.Create(Tuple.Create("", 124495), Tuple.Create("&GeneID=", 124495), true)
7376
7377 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7378 , Tuple.Create(Tuple.Create("", 124503), Tuple.Create<System.Object, System.Int32>(gene
7379
7380 #line default
7381 #line hidden
7382 , 124503), false)
7383 );
7384
7385 WriteLiteral(">");
7386
7387
7388 #line 2878 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7389 Write(Translate("viewAllProductsGeneID", "View all products for this Gene ID"));
7390
7391
7392 #line default
7393 #line hidden
7394 WriteLiteral("</a>\r\n </span>\r\n");
7395
7396
7397 #line 2880 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7398 }
7399
7400
7401 #line default
7402 #line hidden
7403 WriteLiteral(" </dd>\r\n");
7404
7405
7406 #line 2882 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7407 }
7408 }
7409
7410
7411 #line default
7412 #line hidden
7413 WriteLiteral(" </dl>\r\n </div>\r\n");
7414
7415
7416 #line 2886 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7417 }
7418
7419
7420 #line default
7421 #line hidden
7422 WriteLiteral("\r\n");
7423
7424
7425 #line 2888 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7426
7427
7428 #line default
7429 #line hidden
7430
7431 #line 2890 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7432
7433 var str_productProtocols = GetString("Ecom:Product:Field.Protocols.Value").Replace('"', ' ');
7434 var isASRProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR");
7435 var isIVDProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD");
7436
7437 if (!string.IsNullOrEmpty(str_productProtocols) && !isASRProt && !isIVDProt)
7438 {
7439 var selectedProductId = GetString("Ecom:Product.ID");
7440 var productProtocolsResults = new List<KeyValuePair<string,string>>();
7441 var productProtocols = Cache.Current.Get("productProtocolsCache_" + selectedProductId);
7442
7443 if (productProtocols == null)
7444 {
7445 using (var connection = Dynamicweb.Data.Database.CreateConnection())
7446 {
7447 using (var commandProtocols = connection.CreateCommand())
7448 {
7449 commandProtocols.CommandText = "SELECT * FROM itemtype_protocols WHERE Id in (" + str_productProtocols + ")";
7450 using (var readerProtocols = commandProtocols.ExecuteReader())
7451 {
7452 if (readerProtocols != null)
7453 {
7454 if (readerProtocols.FieldCount > 0)
7455 {
7456 while (readerProtocols.Read())
7457 {
7458 var itemName = readerProtocols["Name"].ToString();
7459 var itemLink = readerProtocols["Protocol"].ToString().Replace("Files/Files/BioLegend/", "Files/Images/");
7460
7461 productProtocolsResults.Add(new KeyValuePair<string, string>(itemName, itemLink));
7462 }
7463 }
7464 }
7465 }
7466 }
7467
7468 Cache.Current.Set("productProtocolsCache_" + selectedProductId, productProtocolsResults, CacheItemPolicy.DefaultStoragePolicy);
7469
7470
7471 #line default
7472 #line hidden
7473
7474 #line 2927 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7475 Write(RenderProtocols(productProtocolsResults));
7476
7477
7478 #line default
7479 #line hidden
7480
7481 #line 2927 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7482
7483
7484 }
7485 }
7486 else
7487 {
7488
7489
7490 #line default
7491 #line hidden
7492
7493 #line 2933 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7494 Write(RenderProtocols((List<KeyValuePair<string,string>>) productProtocols));
7495
7496
7497 #line default
7498 #line hidden
7499
7500 #line 2933 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7501
7502 }
7503 }
7504
7505
7506 #line default
7507 #line hidden
7508 WriteLiteral("\r\n\r\n");
7509
7510 WriteLiteral("\r\n");
7511
7512
7513 #line 2967 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7514
7515
7516 #line default
7517 #line hidden
7518
7519 #line 2967 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7520 if (!isIVD && !isASR)
7521 {
7522
7523
7524 #line default
7525 #line hidden
7526 WriteLiteral(" <div");
7527
7528 WriteLiteral(" id=\"productRelatedGroup\"");
7529
7530 WriteLiteral(" class=\"col-xs-12 hidden col-sm-offset-3 col-sm-9\"");
7531
7532 WriteLiteral(">\r\n <h2");
7533
7534 WriteLiteral(" class=\"col-xs-12 noPadding\"");
7535
7536 WriteLiteral(">\r\n");
7537
7538 WriteLiteral(" ");
7539
7540
7541 #line 2971 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7542 Write(Translate("RelatedProducts", "Related Products"));
7543
7544
7545 #line default
7546 #line hidden
7547 WriteLiteral("\r\n </h2>\r\n\r\n <table");
7548
7549 WriteLiteral(" id=\"tableRelatedProducts\"");
7550
7551 WriteLiteral(" class=\"col-xs-12 noPadding\"");
7552
7553 WriteLiteral(" data>\r\n <thead>\r\n <tr>\r\n " +
7554 " <th>");
7555
7556
7557 #line 2977 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7558 Write(Translate("Description", "Description"));
7559
7560
7561 #line default
7562 #line hidden
7563 WriteLiteral("</th>\r\n <th>");
7564
7565
7566 #line 2978 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7567 Write(Translate("Clone", "Clone"));
7568
7569
7570 #line default
7571 #line hidden
7572 WriteLiteral("</th>\r\n <th>");
7573
7574
7575 #line 2979 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7576 Write(Translate("Applications", "Applications"));
7577
7578
7579 #line default
7580 #line hidden
7581 WriteLiteral("</th>\r\n </tr>\r\n </thead>\r\n " +
7582 " <tbody>\r\n\r\n </tbody>\r\n </table>\r\n " +
7583 " </div>\r\n");
7584
7585
7586 #line 2987 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7587 }
7588
7589
7590 #line default
7591 #line hidden
7592 WriteLiteral("\r\n");
7593
7594
7595 #line 2989 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7596
7597
7598 #line default
7599 #line hidden
7600
7601 #line 2989 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7602 if (str_currentPageId == @printPage && str_productId == "9340")
7603 {
7604
7605
7606 #line default
7607 #line hidden
7608 WriteLiteral(" ");
7609
7610 WriteLiteral(@"
7611 <br/><br/>This product is provided under an intellectual property license from Life Technologies Corporation.The transfer of this product is conditioned on the buyer using the purchased product solely in research conducted by the buyer, excluding contract research or any fee for service research, and the buyer must not(1) use this product or its components for (a) diagnostic, therapeutic or prophylactic purposes; (b)testing, analysis or screening services, or information in return for compensation on a per - test basis; or(c) manufacturing or quality assurance or quality control, and / or(2) sell or transfer this product or its components for resale, whether or not resold for use in research.For information on purchasing a license to this product for purposes other than as described above, contact Life Technologies Corporation, 5781 Van Allen Way, Carlsbad, CA 92008 USA or outlicensing@lifetech.com.
7612 ");
7613
7614 WriteLiteral("\r\n");
7615
7616
7617 #line 2994 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7618 }
7619
7620
7621 #line default
7622 #line hidden
7623 WriteLiteral("\r\n");
7624
7625
7626 #line 2996 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7627
7628
7629 #line default
7630 #line hidden
7631
7632 #line 2996 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7633
7634 bool isASRProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR");
7635 bool isIVDProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD");
7636 if(!isASRProd && !isIVDProd) {
7637
7638
7639 #line default
7640 #line hidden
7641
7642 #line 3059 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7643
7644
7645 List<string> pages = new List<string>();
7646 pages.Add("1");
7647
7648 if(str_productFormat.Contains("BV")) {
7649 pages.Add("10");
7650 }
7651
7652 if(str_productFormat.Contains("A594")) {
7653 pages.Add("12");
7654 }
7655
7656 if(str_productFormat.Contains("/")) {
7657 pages.Add("13");
7658 pages.Add("14");
7659 }
7660
7661 if(str_productFormat.Contains("LEAF")) {
7662 pages.Add("15");
7663 }
7664
7665 if(str_productFormat.Contains("PE_DZL594")) {
7666 pages.Add("16");
7667 }
7668
7669 if(str_productFormat.Contains("GOINVIVO")) {
7670 pages.Add("19");
7671 pages.Add("20");
7672 pages.Add("15");
7673 }
7674
7675 if(str_productFormat.Contains("MOJO")) {
7676 pages.Add("46");
7677 pages.Add("25");
7678 pages.Add("26");
7679 }
7680
7681 if(str_productFormat.Contains("RECOM")) {
7682 pages.Add("29");
7683 }
7684
7685 if (!str_productFormat.Contains("LEAF") && !str_productFormat.Equals("BIOTIN") && !str_productFormat.Equals("ELISA") && !str_productFormat.Equals("ELISA_DLX") && !str_productFormat.Equals("ELISA_STD") && !str_productFormat.Equals("HRP") && !str_productFormat.Equals("Kit") && !str_productFormat.Equals("RECOM") && !str_productFormat.Equals("LEGEND MAX") && !str_productFormat.Equals("LPLEX") && !str_productFormat.Equals("LSCREEN") && !str_productFormat.Equals("MOJO") && !str_productFormat.Equals("PURE") && !str_productFormat.Equals("SOLUTION") && !str_productFormat.Equals("GOINVIVO") && !str_productFormat.Equals("DB_HRP") && !str_productFormat.Equals("")){
7686 pages.Add("5");
7687 pages.Add("4");
7688 pages.Add("14");
7689 pages.Add("6");
7690 pages.Add("7");
7691 }
7692
7693 if(productType.Equals("LEGENDplex")) {
7694 pages.Add("31");
7695 }
7696
7697 if(productType.Equals("ELISAMAXLEGENDMAX")) {
7698 pages.Add("35");
7699 }
7700
7701 if(productType.Equals("LEGENDScreen")) {
7702 pages.Add("33");
7703 }
7704
7705 if(productType.Equals("BuffersSolutionsChemicals")) {
7706 pages.Add("38");
7707 }
7708
7709 if(str_productName.Contains("Zombie")) {
7710 pages.Add("39");
7711 }
7712
7713 if(str_productName.Contains("MaxPar")) {
7714 pages.Add("42");
7715 }
7716
7717 if(str_productName.Contains("MitoSpy")) {
7718 pages.Add("43");
7719 pages.Add("44");
7720 }
7721
7722 if(str_productName.Contains("Phalloidin")) {
7723 pages.Add("43");
7724 }
7725
7726 if(str_productName.Contains("Streptavidin")) {
7727 pages.Add("45");
7728 }
7729
7730 if(str_productFormat.Equals("BIOTIN")) {
7731 pages.Add("45");
7732 pages.Add("46");
7733 }
7734
7735 if(str_productName.Contains(" CD") && !str_productFormat.Contains("MOJO")) {
7736 pages.Add("49");
7737 }
7738
7739 if(Convert.ToInt32(catalogFirstLetter) == 5)
7740 {
7741 pages.Add("51");
7742 pages.Add("52");
7743 }
7744
7745 if(str_productOtherNames.ToUpper().Contains("INTEGRIN"))
7746 {
7747 pages.Add("54");
7748 }
7749
7750 if(str_productRegulatoryStatus.Equals("ASR"))
7751 {
7752 pages.Add("59");
7753 }
7754
7755 if(str_productFormat.Equals("FLEX_T"))
7756 {
7757 pages.Add("58");
7758 pages.Add("45");
7759 }
7760
7761 if(str_productFormat.Equals("APC_F750"))
7762 {
7763 pages.Add("60");
7764 }
7765
7766 if(str_productId.Equals("14598")){
7767 pages.Add("61");
7768 }
7769
7770 //var relatedPages = (List<Dictionary<string, string>>) Cache.Current.Get("productRelatedPagesCache_" + str_productId);
7771 /*if (relatedPages == null)
7772 {*/
7773 var relatedPages = GetRelatedPages(pages);
7774 //Cache.Current.Set("productRelatedPagesCache_" + str_productId, relatedPages, CacheItemPolicy.DefaultStoragePolicy);
7775 /*}*/
7776 countRelatedPages = relatedPages.Count;
7777
7778 string str_pathways = GetString("Ecom:Product:Field.Pathways.Value");
7779 Dictionary<string, string> pathwaysDict = new Dictionary<string, string>(){
7780 {"1","CD4 and CD8 T-Cell Lineage"},
7781 {"2","Apoptosis Through Death Receptors"},
7782 {"3","Gamma-Delta T cells"},
7783 {"4","Cyclins and Cell Cycle Regulation"},
7784 {"5","Hematopoiesis from Multipotent Stem Cell"},
7785 {"6","Hematopoiesis from Pluripotent Stem Cell"},
7786 {"8","TH1 Pathway (Cellular Immune Response)"},
7787 {"9","IL-2 Pathway"},
7788 {"10","JAK/STAT Pathway"},
7789 {"11","p38 Signaling"},
7790 {"12","TH17 Pathway"},
7791 {"13","TH2 Pathway (Humoral Immune Response)"},
7792 {"19","Agranulocyte Adhesion and Diapedesis"},
7793 {"20","14-3-3 Induced Intracellular Signaling"},
7794 {"21","Akt Signaling"},
7795 {"22","ATM Pathway"},
7796 {"23","BAFF in B-Cell Signaling"},
7797 {"24","B-Cell Receptor Pathway"},
7798 {"25","Caspase Cascade"},
7799 {"26","CD28 Signaling in T-Helper Cell"},
7800 {"27","CD40 Signaling"},
7801 {"28","Cellular Apoptosis Pathway"},
7802 {"29","Chemokine Signaling"},
7803 {"30","CTLA4 Signaling"},
7804 {"31","Cytokine Network"},
7805 {"32","EGF Pathway"},
7806 {"33","Embryonic Stem Cell Pluripotency in Mouse"},
7807 {"34","ErbB Family Pathway"},
7808 {"35","ERK Signaling"},
7809 {"36","FAK1 Pathway"},
7810 {"37","Fas Signaling"},
7811 {"38","GPCR Pathway"},
7812 {"39","GSK3 Signaling"},
7813 {"40","Human Embryonic Stem Cell Pluripotency"},
7814 {"41","ICos-ICosL Pathway in T-Helper Cell"},
7815 {"42","IL-1 Pathway"},
7816 {"43","IL-4 Pathway"},
7817 {"44","IL-6 Pathway"},
7818 {"45","IL-10 Pathway"},
7819 {"46","ILK Signaling"},
7820 {"47","Integrin Pathway"},
7821 {"48","Interferon Pathway"},
7822 {"49","ITK and TCR Signaling"},
7823 {"50","JNK Pathway"},
7824 {"51","Lymphotoxin-beta Receptor Pathway"},
7825 {"52","MAPK Signaling"},
7826 {"53","Mitotic Roles of Polo Like Kinase"},
7827 {"54","mTOR Pathway"},
7828 {"55","Nanog in Mammalian ESC Pluripotency"},
7829 {"56","NFAT Signaling and Lymphocyte Interactions"},
7830 {"57","NF-κB (p50/p65) Pathway"},
7831 {"58","Oct4 in Mammalian ESC Pluripotency"},
7832 {"59","PDGF Pathway"},
7833 {"60","PKC-θ Pathway"},
7834 {"61","PPAR Pathway"},
7835 {"62","PTEN Pathway"},
7836 {"63","Ras Pathway"},
7837 {"64","SOCS Pathway"},
7838 {"65","Sumo Pathway"},
7839 {"66","T-Cell Receptor Signaling"},
7840 {"67","TGF-β Pathway"},
7841 {"68","TNF Superfamily Pathway"},
7842 {"69","Toll-Like Receptors"},
7843 {"70","TRAIL Pathway"},
7844 {"71","TREM1 Pathway"},
7845 {"72","VEGF Pathway"},
7846 {"73","WNT Signaling"},
7847 {"74","p53 Signaling"},
7848 {"75","T Follicular Helper Cell Pathway"},
7849 {"76","Cancer Elimination"},
7850 {"78","Cancer Immunology - 3Es"},
7851 {"79","Cancer Recognition"},
7852 {"82","Cancer Recognition & Elimination"},
7853 {"83","MDSC-induced Immune Suppression"},
7854 {"84","Shedding MICA/B Antigens"},
7855 {"85","Stat3-mediated Tumor Escape"},
7856 {"86","Tregs in Tumor Escape"},
7857 {"88","Immunologic Networks 2011"},
7858 {"89","B cell Development and Activation"},
7859 {"90","Myeloid-Derived Suppressor Cells"},
7860 {"91","Regulatory T Cells"},
7861 {"92","Dendritic Cells"},
7862 {"93","Stem Cells and Development"},
7863 {"94","Cancer Immunoediting"},
7864 {"95","Chemokine Receptor Biology"},
7865 {"97","Th17 Biology"},
7866 {"98","Innate Immunity"},
7867 {"99","Mechanisims of Cell Death"},
7868 {"100","Dendritic Cell, Monocyte, and Macrophage Biology"},
7869 {"101","Neurodegeneration"},
7870 {"102","Innate Immune Signaling"},
7871 {"103","Neuroinflammation"},
7872 {"104","Autophagy"}
7873 };
7874
7875 string[] pathwaysList = str_pathways.Split(',');
7876 //var pathwaysData = GetPathways(productSpecificity);
7877
7878
7879 if(!string.IsNullOrWhiteSpace(str_pathways) || countRelatedPages > 0)
7880 {
7881
7882
7883 #line default
7884 #line hidden
7885 WriteLiteral(" <div");
7886
7887 WriteLiteral(" id=\"productRelatedPages\"");
7888
7889 WriteLiteral(" class=\"col-xs-12 col-sm-9 noPadding pull-right\"");
7890
7891 WriteLiteral(">\r\n <h2");
7892
7893 WriteLiteral(" class=\"col-xs-12 noPadding\"");
7894
7895 WriteLiteral(">\r\n <a");
7896
7897 WriteAttribute("href", Tuple.Create(" href=\"", 139043), Tuple.Create("\"", 139108)
7898
7899 #line 3299 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7900 , Tuple.Create(Tuple.Create("", 139050), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString()
7901
7902 #line default
7903 #line hidden
7904 , 139050), false)
7905 , Tuple.Create(Tuple.Create("", 139088), Tuple.Create("#productRelatedPages", 139088), true)
7906 );
7907
7908 WriteLiteral(" name=\"4\"");
7909
7910 WriteLiteral(">");
7911
7912
7913 #line 3299 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7914 Write(Translate("RelatedPagesPathways","Related Pages & Pathways"));
7915
7916
7917 #line default
7918 #line hidden
7919 WriteLiteral("</a>\r\n </h2>\r\n\r\n");
7920
7921 WriteLiteral(" ");
7922
7923
7924 #line 3302 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7925 Write(SnippetStart("navigationAnchors"));
7926
7927
7928 #line default
7929 #line hidden
7930 WriteLiteral("\r\n <li>\r\n <a");
7931
7932 WriteLiteral(" class=\"anchor_4\"");
7933
7934 WriteAttribute("href", Tuple.Create(" href=\"", 139278), Tuple.Create("\"", 139343)
7935
7936 #line 3304 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7937 , Tuple.Create(Tuple.Create("", 139285), Tuple.Create<System.Object, System.Int32>(Pageview.SearchFriendlyUrl.ToString()
7938
7939 #line default
7940 #line hidden
7941 , 139285), false)
7942 , Tuple.Create(Tuple.Create("", 139323), Tuple.Create("#productRelatedPages", 139323), true)
7943 );
7944
7945 WriteLiteral(">");
7946
7947
7948 #line 3304 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7949 Write(Translate("RelatedPagesPathways","Related Pages & Pathways"));
7950
7951
7952 #line default
7953 #line hidden
7954 WriteLiteral("</a>\r\n </li>\r\n");
7955
7956 WriteLiteral(" ");
7957
7958
7959 #line 3306 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7960 Write(SnippetEnd("navigationAnchors"));
7961
7962
7963 #line default
7964 #line hidden
7965 WriteLiteral("\r\n\r\n");
7966
7967
7968 #line 3308 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7969
7970
7971 #line default
7972 #line hidden
7973
7974 #line 3308 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7975 if(!string.IsNullOrWhiteSpace(str_pathways))
7976 {
7977
7978
7979 #line default
7980 #line hidden
7981 WriteLiteral(" <div");
7982
7983 WriteLiteral(" class=\"col-xs-6 noPaddingLeft\"");
7984
7985 WriteLiteral(">\r\n <h3>");
7986
7987
7988 #line 3311 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
7989 Write(Translate("Pathways","Pathways"));
7990
7991
7992 #line default
7993 #line hidden
7994 WriteLiteral("</h3>\r\n <ul");
7995
7996 WriteLiteral(" class=\"relatedPages relatedPathways col-xs-12 noPadding\"");
7997
7998 WriteLiteral(">\r\n");
7999
8000
8001 #line 3313 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8002
8003
8004 #line default
8005 #line hidden
8006
8007 #line 3313 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8008 foreach (string thisPathway in pathwaysList)
8009 {
8010 string title = pathwaysDict[thisPathway];
8011 string pathwayID = thisPathway;
8012
8013
8014
8015 #line default
8016 #line hidden
8017 WriteLiteral(" <li>\r\n <a");
8018
8019 WriteAttribute("href", Tuple.Create(" href=\"", 139895), Tuple.Create("\"", 139956)
8020 , Tuple.Create(Tuple.Create("", 139902), Tuple.Create("http://www.biolegend.com/pop_pathway.php?id=", 139902), true)
8021
8022 #line 3319 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8023 , Tuple.Create(Tuple.Create("", 139946), Tuple.Create<System.Object, System.Int32>(pathwayID
8024
8025 #line default
8026 #line hidden
8027 , 139946), false)
8028 );
8029
8030 WriteLiteral(" target=\"_blank\"");
8031
8032 WriteLiteral(">\r\n");
8033
8034 WriteLiteral(" ");
8035
8036
8037 #line 3320 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8038 Write(title);
8039
8040
8041 #line default
8042 #line hidden
8043 WriteLiteral("\r\n </a>\r\n </li>\r\n");
8044
8045
8046 #line 3323 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8047 }
8048
8049
8050 #line default
8051 #line hidden
8052 WriteLiteral(" </ul>\r\n </div>\r\n");
8053
8054
8055 #line 3326 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8056 }
8057
8058
8059 #line default
8060 #line hidden
8061 WriteLiteral("\r\n");
8062
8063
8064 #line 3328 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8065
8066
8067 #line default
8068 #line hidden
8069
8070 #line 3328 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8071 if(countRelatedPages > 0)
8072 {
8073
8074
8075 #line default
8076 #line hidden
8077 WriteLiteral(" <div");
8078
8079 WriteAttribute("class", Tuple.Create(" class=\'", 140145), Tuple.Create("\'", 140239)
8080 , Tuple.Create(Tuple.Create("", 140153), Tuple.Create("col-xs-6", 140153), true)
8081
8082 #line 3330 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8083 , Tuple.Create(Tuple.Create(" ", 140161), Tuple.Create<System.Object, System.Int32>(!string.IsNullOrWhiteSpace(str_pathways) ?"noPaddingRight":"noPaddingLeft"
8084
8085 #line default
8086 #line hidden
8087 , 140162), false)
8088 );
8089
8090 WriteLiteral(">\r\n <h3>");
8091
8092
8093 #line 3331 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8094 Write(Translate("Pages","Pages"));
8095
8096
8097 #line default
8098 #line hidden
8099 WriteLiteral("</h3>\r\n <ul");
8100
8101 WriteLiteral(" class=\"relatedPages col-xs-12 noPadding\"");
8102
8103 WriteLiteral(">\r\n");
8104
8105
8106 #line 3333 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8107
8108
8109 #line default
8110 #line hidden
8111
8112 #line 3333 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8113 foreach (var row in relatedPages)
8114 {
8115 string link = (!String.IsNullOrWhiteSpace(row["Page"]) ? row["Page"] : row["LinkExt"]);
8116 string target = (link.Contains("http:") ? "target='_blank'" : "");
8117 string iconSrc = row["Icon_Source"].Replace(".png", "_PD.png").Replace(".jpg", "_PD.jpg");
8118 string itemName = row["Name"];
8119
8120
8121
8122 #line default
8123 #line hidden
8124 WriteLiteral(" <li>\r\n <a");
8125
8126 WriteAttribute("href", Tuple.Create(" href=\"", 140768), Tuple.Create("\"", 140799)
8127
8128 #line 3341 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8129 , Tuple.Create(Tuple.Create("", 140775), Tuple.Create<System.Object, System.Int32>(LocalizeLinksHTML(link)
8130
8131 #line default
8132 #line hidden
8133 , 140775), false)
8134 );
8135
8136 WriteLiteral(" ");
8137
8138
8139 #line 3341 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8140 Write(target);
8141
8142
8143 #line default
8144 #line hidden
8145 WriteLiteral(">\r\n");
8146
8147
8148 #line 3342 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8149
8150
8151 #line default
8152 #line hidden
8153
8154 #line 3342 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8155 if(!String.IsNullOrWhiteSpace(iconSrc))
8156 {
8157
8158
8159 #line default
8160 #line hidden
8161 WriteLiteral(" <figure>\r\n <img");
8162
8163 WriteLiteral(" width=\"20\"");
8164
8165 WriteLiteral(" height=\"20\"");
8166
8167 WriteAttribute("src", Tuple.Create(" src=\"", 140963), Tuple.Create("\"", 140977)
8168
8169 #line 3345 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8170 , Tuple.Create(Tuple.Create("", 140969), Tuple.Create<System.Object, System.Int32>(iconSrc
8171
8172 #line default
8173 #line hidden
8174 , 140969), false)
8175 );
8176
8177 WriteAttribute("title", Tuple.Create(" title=\"", 140978), Tuple.Create("\"", 140995)
8178
8179 #line 3345 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8180 , Tuple.Create(Tuple.Create("", 140986), Tuple.Create<System.Object, System.Int32>(itemName
8181
8182 #line default
8183 #line hidden
8184 , 140986), false)
8185 );
8186
8187 WriteAttribute("alt", Tuple.Create(" alt=\"", 140996), Tuple.Create("\"", 141011)
8188
8189 #line 3345 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8190 , Tuple.Create(Tuple.Create("", 141002), Tuple.Create<System.Object, System.Int32>(itemName
8191
8192 #line default
8193 #line hidden
8194 , 141002), false)
8195 );
8196
8197 WriteLiteral(" />\r\n </figure>\r\n");
8198
8199
8200 #line 3347 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8201 }
8202
8203
8204 #line default
8205 #line hidden
8206 WriteLiteral(" ");
8207
8208
8209 #line 3348 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8210 Write(itemName);
8211
8212
8213 #line default
8214 #line hidden
8215 WriteLiteral("\r\n </a>\r\n </li>\r\n");
8216
8217
8218 #line 3351 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8219 }
8220
8221
8222 #line default
8223 #line hidden
8224 WriteLiteral(" </ul>\r\n </div>\r\n");
8225
8226
8227 #line 3354 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8228 }
8229
8230
8231 #line default
8232 #line hidden
8233 WriteLiteral(" </div>\r\n");
8234
8235
8236 #line 3356 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8237 }
8238 }
8239
8240
8241
8242 #line default
8243 #line hidden
8244
8245 #line 3393 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8246
8247
8248
8249 #line default
8250 #line hidden
8251 WriteLiteral("\r\n\r\n");
8252
8253
8254 #line 3396 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8255
8256
8257 #line default
8258 #line hidden
8259
8260 #line 3396 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8261 if (otherFormatsProducts.Any() && !isASR && !isIVD)
8262 {
8263 var count = 0;
8264
8265
8266
8267 #line default
8268 #line hidden
8269 WriteLiteral(" <div");
8270
8271 WriteLiteral(" id=\"productOtherFormats\"");
8272
8273 WriteLiteral(" class=\"col-xs-12 col-sm-9 pull-right\"");
8274
8275 WriteLiteral(" data-thDescription=\'");
8276
8277
8278 #line 3400 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8279 Write(Translate("Description", "Description"));
8280
8281
8282 #line default
8283 #line hidden
8284 WriteLiteral("\'");
8285
8286 WriteLiteral(" data-thClone=\'");
8287
8288
8289 #line 3400 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8290 Write(Translate("Clone", "Clone"));
8291
8292
8293 #line default
8294 #line hidden
8295 WriteLiteral("\'");
8296
8297 WriteLiteral(" data-thAppllications=\'");
8298
8299
8300 #line 3400 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8301 Write(Translate("Applications", "Applications"));
8302
8303
8304 #line default
8305 #line hidden
8306 WriteLiteral("\'");
8307
8308 WriteLiteral(">\r\n <h2");
8309
8310 WriteLiteral(" class=\"col-xs-12 noPadding\"");
8311
8312 WriteLiteral(">\r\n");
8313
8314 WriteLiteral(" ");
8315
8316
8317 #line 3402 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8318 Write(Translate("OtherFormats", "Other Formats"));
8319
8320
8321 #line default
8322 #line hidden
8323 WriteLiteral("\r\n </h2>\r\n\r\n");
8324
8325
8326 #line 3405 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8327
8328
8329 #line default
8330 #line hidden
8331
8332 #line 3405 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8333 foreach (var prod in otherFormatsProducts.GroupBy(prod => prod.Name).Select(prod => prod.First()))
8334 {
8335
8336
8337 #line default
8338 #line hidden
8339
8340 #line 3407 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8341 Write(count != 0 ? ", " : "");
8342
8343
8344 #line default
8345 #line hidden
8346
8347 #line 3407 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8348
8349
8350 #line default
8351 #line hidden
8352
8353 #line 3407 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8354 Write(prod.Name);
8355
8356
8357 #line default
8358 #line hidden
8359
8360 #line 3407 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8361
8362 count++;
8363 }
8364
8365
8366 #line default
8367 #line hidden
8368 WriteLiteral("\r\n </div>\r\n");
8369
8370
8371 #line 3412 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8372 }
8373
8374
8375 #line default
8376 #line hidden
8377 WriteLiteral("\r\n <dl");
8378
8379 WriteAttribute("class", Tuple.Create(" class=\'", 143282), Tuple.Create("\'", 143379)
8380
8381 #line 3414 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8382 , Tuple.Create(Tuple.Create("", 143290), Tuple.Create<System.Object, System.Int32>(str_productId.Equals("10801") ? "col-xs-12" : "col-xs-12"
8383
8384 #line default
8385 #line hidden
8386 , 143290), false)
8387 , Tuple.Create(Tuple.Create(" ", 143350), Tuple.Create("noPadding", 143351), true)
8388 , Tuple.Create(Tuple.Create(" ", 143360), Tuple.Create("pdfImagesContainer", 143361), true)
8389 );
8390
8391 WriteLiteral(">\r\n");
8392
8393
8394 #line 3415 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8395
8396
8397 #line default
8398 #line hidden
8399
8400 #line 3415 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8401 if (lst_images.Any())
8402 {
8403
8404
8405 #line default
8406 #line hidden
8407 WriteLiteral(" <h2");
8408
8409 WriteLiteral(" class=\"col-xs-12 noPadding\"");
8410
8411 WriteLiteral(">\r\n");
8412
8413 WriteLiteral(" ");
8414
8415
8416 #line 3418 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8417 Write(Translate("ProductData", "Product Data"));
8418
8419
8420 #line default
8421 #line hidden
8422 WriteLiteral("\r\n </h2>\r\n");
8423
8424 WriteLiteral(" <div");
8425
8426 WriteLiteral(" class=\"col-xs-12\"");
8427
8428 WriteLiteral(">\r\n\r\n");
8429
8430
8431 #line 3422 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8432
8433
8434 #line default
8435 #line hidden
8436
8437 #line 3422 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8438 if (str_currentPageId != printPage)
8439 {
8440 foreach (var image1 in lst_images.OrderBy(x => x.Item2).ToList().Take(1))
8441 {
8442 string str_getimageImg = GetImage(image1.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90);
8443
8444
8445
8446 #line default
8447 #line hidden
8448 WriteLiteral(" <div");
8449
8450 WriteLiteral(" class=\"figure\"");
8451
8452 WriteLiteral(">\r\n <dt");
8453
8454 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\"");
8455
8456 WriteLiteral(">\r\n <img");
8457
8458 WriteLiteral(" class=\"maxWidth\"");
8459
8460 WriteAttribute("src", Tuple.Create(" src=\"", 144131), Tuple.Create("\"", 144153)
8461
8462 #line 3430 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8463 , Tuple.Create(Tuple.Create("", 144137), Tuple.Create<System.Object, System.Int32>(str_getimageImg
8464
8465 #line default
8466 #line hidden
8467 , 144137), false)
8468 );
8469
8470 WriteAttribute("alt", Tuple.Create(" alt=\"", 144154), Tuple.Create("\"", 144184)
8471
8472 #line 3430 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8473 , Tuple.Create(Tuple.Create("", 144160), Tuple.Create<System.Object, System.Int32>(image1.Item2.ToString()
8474
8475 #line default
8476 #line hidden
8477 , 144160), false)
8478 );
8479
8480 WriteAttribute("title", Tuple.Create(" title=\"", 144185), Tuple.Create("\"", 144217)
8481
8482 #line 3430 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8483 , Tuple.Create(Tuple.Create("", 144193), Tuple.Create<System.Object, System.Int32>(image1.Item2.ToString()
8484
8485 #line default
8486 #line hidden
8487 , 144193), false)
8488 );
8489
8490 WriteLiteral("/>\r\n </dt>\r\n <dd");
8491
8492 WriteLiteral(" class=\"col-xs-4 noPaddingRight\"");
8493
8494 WriteLiteral(">\r\n");
8495
8496 WriteLiteral(" ");
8497
8498
8499 #line 3433 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8500 Write(image1.Item3.ToString());
8501
8502
8503 #line default
8504 #line hidden
8505 WriteLiteral("\r\n </dd>\r\n </div>\r\n");
8506
8507
8508 #line 3436 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8509 }
8510
8511
8512
8513 #line default
8514 #line hidden
8515 WriteLiteral(" <div");
8516
8517 WriteLiteral(" id=\"imgThumbs\"");
8518
8519 WriteLiteral(" class=\"col-xs-3 noPadding pull-right\"");
8520
8521 WriteLiteral(">\r\n <ul>\r\n");
8522
8523
8524 #line 3440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8525
8526
8527 #line default
8528 #line hidden
8529
8530 #line 3440 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8531 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList())
8532 {
8533 if (!String.IsNullOrWhiteSpace(image.Item1.ToString()))
8534 {
8535 var str_getimageImg = GetImage(image.Item1.ToString(), 0, 105, 0, 105, 0, 105, "jpg", 90, 5);
8536 var str_getimageDataImg = GetImage(image.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90);
8537 var liClass = lst_images.IndexOf(image) == 0 ? "active" : "";
8538
8539
8540
8541 #line default
8542 #line hidden
8543 WriteLiteral(" <li");
8544
8545 WriteAttribute("class", Tuple.Create(" class=\"", 145298), Tuple.Create("\"", 145314)
8546
8547 #line 3448 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8548 , Tuple.Create(Tuple.Create("", 145306), Tuple.Create<System.Object, System.Int32>(liClass
8549
8550 #line default
8551 #line hidden
8552 , 145306), false)
8553 );
8554
8555 WriteLiteral(">\r\n <div");
8556
8557 WriteLiteral(" class=\"figure\"");
8558
8559 WriteLiteral(">\r\n <dt");
8560
8561 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\"");
8562
8563 WriteLiteral(">\r\n <img");
8564
8565 WriteLiteral(" class=\"maxWidth\"");
8566
8567 WriteLiteral(" data-image=\"");
8568
8569
8570 #line 3451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8571 Write(str_getimageDataImg);
8572
8573
8574 #line default
8575 #line hidden
8576 WriteLiteral("\"");
8577
8578 WriteAttribute("src", Tuple.Create(" src=\"", 145587), Tuple.Create("\"", 145609)
8579
8580 #line 3451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8581 , Tuple.Create(Tuple.Create("", 145593), Tuple.Create<System.Object, System.Int32>(str_getimageImg
8582
8583 #line default
8584 #line hidden
8585 , 145593), false)
8586 );
8587
8588 WriteAttribute("title", Tuple.Create(" title=\"", 145610), Tuple.Create("\"", 145641)
8589
8590 #line 3451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8591 , Tuple.Create(Tuple.Create("", 145618), Tuple.Create<System.Object, System.Int32>(image.Item2.ToString()
8592
8593 #line default
8594 #line hidden
8595 , 145618), false)
8596 );
8597
8598 WriteAttribute("alt", Tuple.Create(" alt=\"", 145642), Tuple.Create("\"", 145671)
8599
8600 #line 3451 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8601 , Tuple.Create(Tuple.Create("", 145648), Tuple.Create<System.Object, System.Int32>(image.Item2.ToString()
8602
8603 #line default
8604 #line hidden
8605 , 145648), false)
8606 );
8607
8608 WriteLiteral("/>\r\n </dt>\r\n");
8609
8610
8611 #line 3453 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8612
8613
8614 #line default
8615 #line hidden
8616
8617 #line 3453 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8618 if (!string.IsNullOrWhiteSpace(image.Item3.ToString()))
8619 {
8620
8621
8622 #line default
8623 #line hidden
8624 WriteLiteral(" <dd");
8625
8626 WriteLiteral(" class=\"col-xs-4 noPaddingRight\"");
8627
8628 WriteLiteral(">\r\n");
8629
8630 WriteLiteral(" ");
8631
8632
8633 #line 3456 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8634 Write(image.Item3.ToString());
8635
8636
8637 #line default
8638 #line hidden
8639 WriteLiteral("\r\n </dd>\r\n");
8640
8641
8642 #line 3458 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8643 }
8644
8645
8646 #line default
8647 #line hidden
8648 WriteLiteral(" </div>\r\n " +
8649 " </li>\r\n");
8650
8651
8652 #line 3461 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8653 }
8654 }
8655
8656
8657 #line default
8658 #line hidden
8659 WriteLiteral(" </ul>\r\n </div>\r\n");
8660
8661
8662 #line 3465 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8663 }
8664
8665
8666 #line default
8667 #line hidden
8668 WriteLiteral(" </div>\r\n");
8669
8670
8671 #line 3467 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8672
8673 if (str_currentPageId == printPage)
8674 {
8675 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList())
8676 {
8677 if (!String.IsNullOrWhiteSpace(image.Item1.ToString()))
8678 {
8679 string str_getimageDataImg = GetImage(image.Item1.ToString(), 500, 300, 0, 0, 0, 0, "jpg", 90);
8680
8681
8682 #line default
8683 #line hidden
8684 WriteLiteral(" <div");
8685
8686 WriteLiteral(" class=\"col-xs-12 figure\"");
8687
8688 WriteLiteral(">\r\n <dt");
8689
8690 WriteLiteral(" class=\"col-xs-8 noPaddingLeft textCenter\"");
8691
8692 WriteLiteral(">\r\n <img");
8693
8694 WriteLiteral(" class=\"maxWidth\"");
8695
8696 WriteAttribute("src", Tuple.Create(" src=\"", 147069), Tuple.Create("\"", 147095)
8697
8698 #line 3477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8699 , Tuple.Create(Tuple.Create("", 147075), Tuple.Create<System.Object, System.Int32>(str_getimageDataImg
8700
8701 #line default
8702 #line hidden
8703 , 147075), false)
8704 );
8705
8706 WriteAttribute("title", Tuple.Create(" title=\"", 147096), Tuple.Create("\"", 147116)
8707
8708 #line 3477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8709 , Tuple.Create(Tuple.Create("", 147104), Tuple.Create<System.Object, System.Int32>(image.Item2
8710
8711 #line default
8712 #line hidden
8713 , 147104), false)
8714 );
8715
8716 WriteAttribute("alt", Tuple.Create(" alt=\"", 147117), Tuple.Create("\"", 147135)
8717
8718 #line 3477 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8719 , Tuple.Create(Tuple.Create("", 147123), Tuple.Create<System.Object, System.Int32>(image.Item2
8720
8721 #line default
8722 #line hidden
8723 , 147123), false)
8724 );
8725
8726 WriteLiteral("/>\r\n </dt>\r\n");
8727
8728
8729 #line 3479 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8730
8731
8732 #line default
8733 #line hidden
8734
8735 #line 3479 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8736 if (!string.IsNullOrWhiteSpace(image.Item3.ToString()))
8737 {
8738
8739
8740 #line default
8741 #line hidden
8742 WriteLiteral(" <dd");
8743
8744 WriteLiteral(" class=\"col-xs-4 noPaddingRight\"");
8745
8746 WriteLiteral(">\r\n");
8747
8748 WriteLiteral(" ");
8749
8750
8751 #line 3482 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8752 Write(image.Item3);
8753
8754
8755 #line default
8756 #line hidden
8757 WriteLiteral("\r\n </dd>\r\n");
8758
8759
8760 #line 3484 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8761 }
8762
8763
8764 #line default
8765 #line hidden
8766 WriteLiteral(" </div>\r\n");
8767
8768
8769 #line 3486 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8770 }
8771 }
8772 }
8773 }
8774
8775
8776 #line default
8777 #line hidden
8778 WriteLiteral(" \r\n");
8779
8780
8781 #line 3491 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8782
8783
8784 #line default
8785 #line hidden
8786
8787 #line 3491 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8788 if(str_currentPageId == printPage && (isIVD || isASR))
8789 {
8790
8791
8792 #line default
8793 #line hidden
8794 WriteLiteral(" <figure>\r\n <img");
8795
8796 WriteLiteral(" class=\"glossary\"");
8797
8798 WriteAttribute("src", Tuple.Create(" src=\"", 147795), Tuple.Create("\"", 147880)
8799
8800 #line 3494 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8801 , Tuple.Create(Tuple.Create("", 147801), Tuple.Create<System.Object, System.Int32>(cdnStaticDomain
8802
8803 #line default
8804 #line hidden
8805 , 147801), false)
8806 , Tuple.Create(Tuple.Create("", 147817), Tuple.Create("/Files/Images/media_assets/products/Glossary-table-draft-V2.png", 147817), true)
8807 );
8808
8809 WriteLiteral(" />\r\n </figure>\r\n");
8810
8811
8812 #line 3496 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8813 }
8814
8815
8816 #line default
8817 #line hidden
8818 WriteLiteral(" </dl>\r\n </div>\r\n </div>\r\n");
8819
8820
8821 #line 3500 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8822
8823
8824
8825 #line default
8826 #line hidden
8827 WriteLiteral(" <dl");
8828
8829 WriteLiteral(" class=\"footerStatement col-xs-12\"");
8830
8831 WriteLiteral(">\r\n");
8832
8833 WriteLiteral(" ");
8834
8835
8836 #line 3502 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8837 Write(CalculateFooterDisclaimer(str_footerDisclaimer,str_productRegulatoryStatus,str_productFormat));
8838
8839
8840 #line default
8841 #line hidden
8842 WriteLiteral(";\r\n\r\n\r\n");
8843
8844 WriteLiteral(" ");
8845
8846
8847 #line 3505 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8848 Write(itemArea["ProductFooterWarning"].ToString());
8849
8850
8851 #line default
8852 #line hidden
8853 WriteLiteral("\r\n </dl>\r\n");
8854
8855
8856 #line 3507 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8857
8858
8859
8860 #line default
8861 #line hidden
8862
8863 #line 3508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8864 Write(SnippetStart("productName"));
8865
8866
8867 #line default
8868 #line hidden
8869
8870 #line 3508 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8871
8872
8873
8874 #line default
8875 #line hidden
8876 WriteLiteral(" ");
8877
8878 WriteLiteral(" ");
8879
8880
8881 #line 3509 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8882 Write(str_productName);
8883
8884
8885 #line default
8886 #line hidden
8887 WriteLiteral(" ");
8888
8889
8890 #line 3509 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8891 Write(previousCompany.Any() && !isIVD && !isASR && !previouslyConcatName.Equals("") ? String.Format("({0})", previouslyConcatName) : "");
8892
8893
8894 #line default
8895 #line hidden
8896 WriteLiteral(" ");
8897
8898
8899 #line 3509 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8900 Write(SnippetEnd("productName"));
8901
8902
8903 #line default
8904 #line hidden
8905 WriteLiteral("\r\n");
8906
8907
8908 #line 3510 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8909 }
8910 }
8911 catch (Exception ex)
8912 {
8913
8914
8915 #line default
8916 #line hidden
8917 WriteLiteral(" <div");
8918
8919 WriteLiteral(" id=\"errorMessagePDP\"");
8920
8921 WriteLiteral(" data-exception=\"");
8922
8923
8924 #line 3514 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8925 Write(System.Web.HttpUtility.HtmlEncode(ex));
8926
8927
8928 #line default
8929 #line hidden
8930 WriteLiteral("\"");
8931
8932 WriteLiteral(">\r\n");
8933
8934 WriteLiteral(" ");
8935
8936
8937 #line 3515 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8938 Write(Translate("errorRenderingTemplate", "There was an error rendering the product detail page. Please contact technical support."));
8939
8940
8941 #line default
8942 #line hidden
8943 WriteLiteral("\r\n </div>\r\n");
8944
8945
8946 #line 3517 "f:\Domains\Sites\www.biolegend.com\Files\Templates\Designs\BioLegend\eCom\Product\productPdf.cshtml"
8947 }
8948
8949
8950 #line default
8951 #line hidden
8952 WriteLiteral("\r\n");
8953
8954 }
8955 }
8956 }
8957
1 @inherits RazorTemplateBase<RazorTemplateModel<Template>>
2 @using System
3 @using Dynamicweb.Rendering;
4 @using System.Collections.Specialized;
5 @using System.Text;
6 @using System.IO;
7 @using System.Web;
8 @using System.Text.RegularExpressions;
9 @using System.Data;
10 @using BioLegend.Ecommerce.LiveIntegration;
11 @using System.Globalization;
12 @using System.Linq;
13 @using System.Collections;
14 @using System.Collections.Generic
15 @using System.Runtime.Caching;
16 @using System.Text.RegularExpressions;
17 @using System.Collections.Specialized;
18 @using System.Linq
19 @functions {
20
21 public string LocalizeLinksHTML (string HtmlContent){
22 int areaID = Pageview.Area.ID;
23 var area = Dynamicweb.Services.Areas.GetArea(areaID);
24 string areaCulture = area.Culture.ToLower();
25 if(!string.IsNullOrEmpty(HtmlContent)){
26 if(HtmlContent.IndexOf("dwcountry") > -1){
27 return HtmlContent.Replace("dwcountry",areaCulture);
28 } else{
29 return HtmlContent;
30 }
31
32 } else {
33 return HtmlContent;
34 }
35
36 }
37
38 public string LocalizeLinks (string HtmlContent){
39 int areaID = Pageview.Area.ID;
40 var area = Dynamicweb.Services.Areas.GetArea(areaID);
41 string areaCulture = area.Culture.ToLower();
42 if(!string.IsNullOrEmpty(HtmlContent)){
43 if(HtmlContent.IndexOf("dwcountry") > -1){
44 return HtmlContent.Replace("dwcountry",areaCulture);
45 } else if (HtmlContent.IndexOf("?ID=") > -1) {
46 //do something
47 string baseHref = String.Format("https://{0}",GetGlobalValue("Global:Request.Host"));
48 HtmlContent = HtmlContent.Contains("http") ? HtmlContent : baseHref + "/" + HtmlContent;
49 var uri = new Uri(HtmlContent,UriKind.RelativeOrAbsolute);
50 var parsedQuery = HttpUtility.ParseQueryString(uri.Query);
51 var pageID = parsedQuery.Get("ID");
52
53 string pageVersionID = pageID;
54 string localizedLink = HtmlContent;
55 if (!string.IsNullOrEmpty(pageID)){
56 var pageService = new Dynamicweb.Content.PageService();
57 var linkPage = pageService.GetPagesByAreaID(areaID).FirstOrDefault(x => x.MasterPageId == int.Parse(pageID));
58 pageVersionID = linkPage != null ? linkPage.ID.ToString() : pageID ;
59
60 localizedLink = ModifyQueryStringValue(HtmlContent,"ID",pageVersionID);
61 }
62 //return string.Join(",", parsedQuery.AllKeys);
63 //return string.Join(HtmlContent,"-",pageVersionID);
64 return localizedLink;
65 } else {
66 return HtmlContent;
67 }
68 }else {
69 return HtmlContent;
70 }
71
72 }
73
74 private string ModifyQueryStringValue(string p_query, string p_Name, string p_NewValue)
75 {
76 Uri uri = new Uri(p_query,UriKind.RelativeOrAbsolute);
77 //if(p_query.Contains("http"))
78 //{
79 //uri = new Uri(p_query);
80 //} else {
81 //uri = new Uri(p_query, UriKind.Relative);
82 //}
83 //uri = new Uri(p_query);
84
85
86
87 var nameValues = HttpUtility.ParseQueryString(uri.Query);
88 nameValues.Set(p_Name, p_NewValue);
89 string url = uri.AbsolutePath + "?" + nameValues.ToString();
90 return url;
91 }
92 }
93 @using System;
94 @using System.Collections.Generic;
95 @using System.Web.Script.Serialization;
96 @{
97 @* Get secondary user ID *@
98 bool bol_userLogged = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
99 int? userID = null;
100 if(bol_userLogged){
101 userID = Pageview.User.ID;
102 if(Pageview.User.CurrentSecondaryUser != null && Pageview.User.CurrentSecondaryUser.ID != 0) {
103 userID = Pageview.User.CurrentSecondaryUser.ID;
104 }
105 }
106 string str_productLanguageId = GetString("Ecom:Product.LanguageID");
107 string str_productID = GetString("Ecom:Product.ID");
108 List<LoopItem> obj_loopVariantCombinations = GetLoop("VariantCombinations");
109 Dictionary<string, Dictionary<string, Dictionary<string, string>>> dic_product = new Dictionary<string, Dictionary<string, Dictionary<string, string>>>();
110 Dictionary<string, Dictionary<string, string>> dic_variants = new Dictionary<string, Dictionary<string, string>>();
111 string str_productJSON = "";
112 string str_productFavoritesUrl = string.Format("Default.aspx?ID={0}", GetPageFromAreaSetting("FavoritesProcess", Pageview));
113
114 if(obj_loopVariantCombinations.Any()){
115 foreach (LoopItem variant in obj_loopVariantCombinations){
116 string str_variantHref = "/"+ variant.GetValue("Ecom:VariantCombination.Link.Clean") + "?PID=" + Dynamicweb.Frontend.PageView.Current().CurrentParagraph.ID.ToString();
117 string str_articleNum = variant.GetString("Ecom:Product.Number");
118 string str_price = variant.GetString("Ecom:Product.Price");
119 string str_stock = variant.GetString("Ecom:Product.AvailableAmount");
120 string str_smallImage = variant.GetString("Ecom:Product.ImageSmall.Clean");
121 string str_id = variant.GetString("Ecom:VariantCombination.VariantID");
122 string str_variantName = variant.GetString("Ecom:VariantCombination.VariantText");
123 string str_variantShortDescription = variant.GetString("Ecom:VariantCombination.VariantText");
124 Dictionary<string, string> dic_variant = new Dictionary<string, string>();
125
126 dic_variant.Add("name", str_variantName);
127 dic_variant.Add("id", str_id);
128 dic_variant.Add("number", str_articleNum);
129 dic_variant.Add("price", str_price);
130 dic_variant.Add("stock", str_stock);
131 dic_variant.Add("smallImage", str_smallImage);
132 // dic_variant.Add("productIsFavorite", variant.GetString("Ecom:Product.IsProductInFavoriteList"));
133
134 try{
135 var favoriteListProducts = Dynamicweb.Ecommerce.CustomerCenter.CustomerProductList.GetListByCustomerId(int.Parse(userID.ToString()));
136 if (favoriteListProducts.Any())
137 {
138 var favoriteProducts = favoriteListProducts.FirstOrDefault().Products;
139 bool isFavorite = favoriteProducts.Where(x => x.ProductVariantId == str_id).Any() && favoriteProducts.Where(x => x.ProductId == str_productID).Any();
140 dic_variant.Add("productIsFavorite", isFavorite.ToString());
141 }
142 }catch{}
143
144 string str_productAddToList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=add", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id);
145 string str_productRemoveFromList = string.Format("{0}&favoriteID={1}&languageID={2}&variantID={3}&favoriteAction=remove", str_productFavoritesUrl, str_productID, str_productLanguageId, str_id);
146 dic_variant.Add("addToList", str_productAddToList);
147 dic_variant.Add("removeFromList", str_productRemoveFromList);
148
149
150 dic_variants.Add(str_id, dic_variant);
151
152 }
153 dic_product.Add("product", dic_variants);
154 }
155 str_productJSON = new JavaScriptSerializer().Serialize(dic_product);
156
157 }
158
159 @functions{
160 public static string GetPageFromAreaSetting(string key, dynamic pageview)
161 {
162 string pageID = pageview.Page.ID.ToString();
163 var area = pageview.Area.Item;
164
165 if( area[key] != null && !String.IsNullOrEmpty(area[key].ToString()))
166 {
167 pageID = area[key].ToString();
168 }
169
170 return pageID;
171 }
172 }
173
174
175 @try
176 {
177 @helper RenderParentEcomNav(Dynamicweb.Ecommerce.Products.Group group,string searchPageID) {
178
179 List<string> notShowGroups = new List<string>();
180 notShowGroups.Add("GROUP2"); //Cell Function/Viability Kits
181 notShowGroups.Add("GROUP10");
182 notShowGroups.Add("GROUP18");
183 notShowGroups.Add("GROUP19");
184 notShowGroups.Add("GROUP20"); //Mouse Immunology Antibodies
185 notShowGroups.Add("GROUP21"); //ELISA MAX/LEGEND MAX
186 notShowGroups.Add("GROUP22"); //Buffers/Solutions/Chemicals
187 notShowGroups.Add("GROUP23"); //Secondary Reagents
188 notShowGroups.Add("GROUP24"); //Cytokine/Chemokine Antibodies
189 notShowGroups.Add("GROUP25"); //LEGENDplex
190 notShowGroups.Add("GROUP26"); //Cell Biology Antibodies
191 notShowGroups.Add("GROUP27"); //Rat Immunology Antibodies
192 notShowGroups.Add("GROUP28"); //Human Immunology Antibodies
193 notShowGroups.Add("GROUP29"); //Isotype Controls
194 notShowGroups.Add("GROUP30"); //Recombinant Proteins
195 notShowGroups.Add("GROUP31"); //LEGENDScreen
196 notShowGroups.Add("GROUP32"); //Neuroscience Products
197 notShowGroups.Add("GROUP33"); //Marmoset Immunology Antibodies
198 notShowGroups.Add("GROUP34"); //Virus Immunology Antibodies
199 notShowGroups.Add("GROUP35"); //
200 notShowGroups.Add("GROUP36"); //Epitope Tag Products
201 notShowGroups.Add("GROUP37"); //Flex-T
202 notShowGroups.Add("GROUP50"); //Cell Separation
203 notShowGroups.Add("GROUP51"); //Non-Antibody Chemical Probes
204 notShowGroups.Add("ImportedGROUP1");
205
206 if (group.ParentGroupsDefaultLanguage != null && group.ParentGroupsDefaultLanguage.Any()) {
207 string parent_id = group.ParentGroupsDefaultLanguage[0].Id;
208 Dynamicweb.Ecommerce.Products.Group parent = Dynamicweb.Ecommerce.Products.Group.GetGroupById(parent_id);
209
210 if (parent != null && !notShowGroups.Contains(group.Id)) {
211 <text>@RenderParentEcomNav(parent,searchPageID)</text>
212 }
213 }
214
215 if(!notShowGroups.Contains(group.Id) && group.NavigationShowInSiteMap)
216 {
217 <li data-groupID="@group.Id">
218 <a href="/Default.aspx?ID=@searchPageID&GroupID=@group.Id">
219 @group.Name
220 </a>
221 </li>
222 }
223 }
224
225 @helper RenderBiologyArea(string biologyArea)
226 {
227 string baText = "";
228 Dictionary<string, string> baDict = new Dictionary<string, string>(){
229 {"adaptive_immunity","Adaptive Immunity"},
230 {"angiogenesis","Angiogenesis"},
231 {"apoptosis_tumor_suppressors_cell_death","Apoptosis/Tumor Suppressors/Cell Death"},
232 {"bacterial_proteins_toxins","Bacterial proteins and Toxins"},
233 {"cancer_biomarkers","Cancer Biomarkers"},
234 {"cardiovascular_biology","Cardiovascular Biology"},
235 {"cell_adhesion","Cell Adhesion"},
236 {"cell_biology","Cell Biology"},
237 {"cell_cycle_dna_replication","Cell Cycle/DNA Replication"},
238 {"cell_death","Cell Death"},
239 {"cell_motility_cytoskeleton_structure","Cell Motility/Cytoskeleton/Structure"},
240 {"cell_proliferation_viability","Cell Proliferation and Viability"},
241 {"cell_structure","Cell Structure"},
242 {"chromatin_remodeling_epigenetics","Chromatin Remodeling/Epigenetics"},
243 {"complement","Complement"},
244 {"costimulatory_molecules","Costimulatory Molecules"},
245 {"covid19","COVID-19"},
246 {"dna_repair_replication","DNA Repair/Replication"},
247 {"immuno_oncology","Immuno-Oncology"},
248 {"immunology","Immunology"},
249 {"inhibitory_molecules","Inhibitory Molecules"},
250 {"innate_immunity","Innate Immunity"},
251 {"mitochondrial_function","Mitochondrial Function"},
252 {"neurodegeneration","Neurodegeneration"},
253 {"neuroinflammation","Neuroinflammation"},
254 {"neuroscience","Neuroscience"},
255 {"neuroscience_cell_markers","Neuroscience Cell Markers"},
256 {"protein_misfolding_aggregation","Protein Misfolding and Aggregation"},
257 {"protein_purification","Protein Purification"},
258 {"protein_synthesis","Protein Synthesis"},
259 {"protein_trafficking_clearance","Protein Trafficking and Clearance"},
260 {"signal_transduction","Signal Transduction"},
261 {"stem_cell","Stem Cells"},
262 {"synaptic_biology","Synaptic Biology"},
263 {"transcription_factors","Transcription Factors"},
264 {"ubiquitin_protein_degradation","Ubiquitin/Protein Degradation"},
265 {"western_blot_controls","Western Blot Controls"}
266 };
267 if(!string.IsNullOrWhiteSpace(biologyArea))
268 {
269 string[] biologyAreas = biologyArea.Split(',');
270 foreach (string thisArea in biologyAreas)
271 {
272 baText += baDict[thisArea] + ", ";
273 }
274
275
276 baText = baText.Remove(baText.Length-2);
277 <dt class="col-xs-3 noPaddingLeft">
278 @Translate("BiologyArea","Biology Area")
279 </dt>
280 <dd class="col-xs-9">
281 @baText
282 </dd>
283 }
284 }
285
286 @helper RenderMolecularFamily(string molecularFamily)
287 {
288 string mfText = "";
289 Dictionary<string, string> mfDict = new Dictionary<string, string>(){
290 {"a_synuclein","α-Synuclein"},
291 {"adaptor_proteins","Adaptor Proteins"},
292 {"adhesion_molecules","Adhesion Molecules"},
293 {"aldehyde_dehydrogenases","Aldehyde Dehydrogenases"},
294 {"app_b_amyloid","APP/β-Amyloid"},
295 {"app_ab_degradation","APP/Aβ Degradation"},
296 {"apolipoproteins","Apolipoproteins"},
297 {"autophagosome_markers","Autophagosome Markers"},
298 {"blood_group_markers","Blood Group Markers"},
299 {"carrier_proteins","Carrier Proteins"},
300 {"cd_molecules","CD Molecules"},
301 {"cytokine_chemokine_receptors","Cytokine/Chemokine Receptors"},
302 {"cytokines_chemokines","Cytokines/Chemokines"},
303 {"cytoskeletal_proteins","Cytoskeletal Proteins"},
304 {"endoplasmic_reticulum_markers","Endoplasmic Reticulum Markers"},
305 {"endosomal_markers","Endosomal Markers"},
306 {"enzymes_regulators","Enzymes and Regulators"},
307 {"exosome_markers","Exosome Markers"},
308 {"fc_receptors","Fc Receptors"},
309 {"gap_junction_proteins","Gap Junction Proteins"},
310 {"golgi_markers","Golgi Markers"},
311 {"gpcr","GPCR"},
312 {"growth_factors","Growth Factors"},
313 {"gtpases","GTPases"},
314 {"heat_shock_proteins","Heat Shock Proteins"},
315 {"hormones","Hormones"},
316 {"immune_checkpoint_receptors","Immune Checkpoint Receptors"},
317 {"innate_immune_signaling","Innate Immune Signaling"},
318 {"intermediate_filaments","Intermediate Filaments"},
319 {"ions_channels","Ion Channels"},
320 {"ligases","Ligases"},
321 {"lysosomal_markers","Lysosomal Markers"},
322 {"mhc_antigens","MHC Antigens"},
323 {"microfilaments","Microfilaments"},
324 {"microtubules","Microtubules"},
325 {"mitochondrial_markers","Mitochondrial Markers"},
326 {"neurotransmitter_receptor_trafficking_endocytosis","Neurotransmitter Receptor Trafficking/Endocytosis"},
327 {"neurotransmitter_receptors","Neurotransmitter Receptors"},
328 {"neurotrophic_factors","Neurotrophic Factors"},
329 {"nuclear_markers","Nuclear Markers"},
330 {"organelle_markers","Organelle Markers"},
331 {"postsynaptic_proteins","Postsynaptic proteins"},
332 {"phospho_proteins","Phospho-Proteins"},
333 {"presynaptic_proteins","Presynaptic proteins"},
334 {"prion_cd230","Prion (CD230)"},
335 {"proteases","Proteases"},
336 {"protein_kinases_phosphatase","Protein Kinases/Phosphatase"},
337 {"protein_modifiers","Protein Modifiers"},
338 {"purinergic_receptors","Purinergic Receptors"},
339 {"scaffold_proteins","Scaffold Proteins"},
340 {"secretases","Secretases"},
341 {"semaphorin_receptors","Semaphorin Receptors"},
342 {"siglec_molecules","Siglec Molecules"},
343 {"soluble_receptors","Soluble Receptors"},
344 {"steroid_receptors_nuclear_receptors","Steroid Receptors/Nuclear Receptors"},
345 {"synaptic_vesicle_trafficking_endocytosis","Synaptic Vesicle Trafficking/Endocytosis"},
346 {"tau","Tau"},
347 {"tcrs","TCRs"},
348 {"tdp43","TDP43"},
349 {"toll_like_receptors","Toll Like Receptors"},
350 {"tumor_suppressors","Tumor Suppressors"}
351 };
352 if(!string.IsNullOrWhiteSpace(molecularFamily))
353 {
354 string[] molecularFamilies = molecularFamily.Split(',');
355 foreach (string thisArea in molecularFamilies)
356 {
357 mfText += mfDict[thisArea] + ", ";
358 }
359
360
361 mfText = mfText.Remove(mfText.Length-2);
362 <dt class="col-xs-3 noPaddingLeft">
363 @Translate("MolecularFamily","Molecular Family")
364 </dt>
365 <dd class="col-xs-9">
366 @mfText
367 </dd>
368 }
369 }
370
371 @helper RenderCellType(string cellType)
372 {
373 string ctText = "";
374 Dictionary<string, string> ctDict = new Dictionary<string, string>(){
375 {"Antigenpresentingcells","Antigen-presenting cells"},
376 {"Astrocytes","Astrocytes"},
377 {"Bcells","B cells"},
378 {"Basophils","Basophils"},
379 {"Dendriticcells","Dendritic cells"},
380 {"DopaminergicNeurons","Dopaminergic Neurons"},
381 {"EmbryonicStemCells","Embryonic Stem Cells"},
382 {"Endothelialcells","Endothelial cells"},
383 {"Eosinophils","Eosinophils"},
384 {"Epithelialcells","Epithelial cells"},
385 {"Erythrocytes","Erythrocytes"},
386 {"Fibroblasts","Fibroblasts"},
387 {"GABAergicNeurons","GABAergic Neurons"},
388 {"GlutamatergicNeurons","Glutamatergic Neurons"},
389 {"Granulocytes","Granulocytes"},
390 {"Hematopoieticstemandprogenitors","Hematopoietic stem and progenitors"},
391 {"Langerhanscells","Langerhans cells"},
392 {"Leukemia","Leukemia"},
393 {"Leukocytes","Leukocytes"},
394 {"Lymphocytes","Lymphocytes"},
395 {"Macrophages","Macrophages"},
396 {"Mastcells","Mast cells"},
397 {"MatureNeurons","Mature Neurons"},
398 {"Megakaryocytes","Megakaryocytes"},
399 {"Mesenchymalcells","Mesenchymal cells"},
400 {"MesenchymalStemCells","Mesenchymal Stem Cells"},
401 {"Microglia","Microglia"},
402 {"Monocytes","Monocytes"},
403 {"NeuralStemCells","Neural Stem Cells"},
404 {"Neurons","Neurons"},
405 {"Neutrophils","Neutrophils"},
406 {"NKcells","NK cells"},
407 {"NKTcells","NKT cells"},
408 {"Oligodendrocytes","Oligodendrocytes"},
409 {"Osteoblasts","Osteoblasts"},
410 {"Osteoclasts","Osteoclasts"},
411 {"Plasmacells","Plasma cells"},
412 {"Platelets","Platelets"},
413 {"Schwanncells","Schwann Cells"},
414 {"Tcells","T cells"},
415 {"Tfh","Tfh"},
416 {"Th1","Th1"},
417 {"Th2","Th2"},
418 {"Th17","Th17"},
419 {"Thymocytes","Thymocytes"},
420 {"Tregs","Tregs"}
421 };
422 if(!string.IsNullOrWhiteSpace(cellType))
423 {
424 string[] cellTypes = cellType.Split(',');
425 foreach (string thisType in cellTypes)
426 {
427 ctText += ctDict[thisType] + ", ";
428 }
429
430
431 ctText = ctText.Remove(ctText.Length-2);
432 <dt class="col-xs-3 noPaddingLeft">
433 @Translate("CellType","Cell Type")
434 </dt>
435 <dd class="col-xs-9">
436 @ctText
437 </dd>
438 }
439 }
440
441 @helper RenderIsoype(string isotype)
442 {
443 string ctText = "";
444 Dictionary<string, string> ctDict = new Dictionary<string, string>(){
445 {"","N/A"},
446 {"01","Armenian Hamster IgG"},
447 {"02","Armenian Hamster IgG1"},
448 {"03","Armenian Hamster IgG1, κ"},
449 {"04","Armenian Hamster IgG2, κ"},
450 {"05","Armenian Hamster IgM"},
451 {"06","Donkey Polyclonal Ig"},
452 {"07","Goat Ig"},
453 {"08","Goat IgG"},
454 {"09","Goat Polyclonal Ig"},
455 {"09_5","Goat Polyclonal IgG"},
456 {"10","Hamster IgG"},
457 {"11","Mouse (A.SW) IgG2a, κ"},
458 {"12","Mouse (BALB/c) IgE, κ"},
459 {"13","Mouse (BALB/c) IgG1, κ"},
460 {"14","Mouse (BALB/c) IgG2a, κ"},
461 {"15","Mouse (BALB/c) IgG2b, κ"},
462 {"16","Mouse (C3H.SW) IgG2a, κ"},
463 {"17","Mouse (C3H.SW) IgG3, κ"},
464 {"18","Mouse (C3H) IgG2a, κ"},
465 {"19","Mouse (C57BL/6) IgE, κ"},
466 {"20","Mouse (C57BL/6) IgG1, κ"},
467 {"21","Mouse (CWB) IgG2a, κ"},
468 {"22","Mouse (SJL) IgG2a, κ"},
469 {"23","Mouse (SJL) IgG2b, κ"},
470 {"24","Mouse IgA, κ"},
471 {"24_1","Mouse IgA"},
472 {"25","Mouse IgG"},
473 {"26","Mouse IgG, κ"},
474 {"27","Mouse IgG1"},
475 {"28","Mouse IgG1 (all clones)"},
476 {"29","Mouse IgG1/Mouse IgG2a"},
477 {"29_1","Mouse IgG1, κ/Mouse IgG2a, κ/Mouse IgG2b, κ"},
478 {"29_2","Mouse IgG1/Mouse IgM"},
479 {"31","Mouse IgG1, κ"},
480 {"31_1","Mouse IgG1, κ/Mouse IgG2a, κ"},
481 {"31_2","Mouse IgG1, κ/Rat IgG2b, κ"},
482 {"32","Mouse IgG1, κ (all clones)"},
483 {"32_2","Mouse IgG1, λ"},
484 {"33","Mouse IgG1/Mouse IgG2b"},
485 {"34","Mouse IgG2a"},
486 {"35","Mouse IgG2a, κ"},
487 {"36","Mouse (A.TL) IgG2a, κ"},
488 {"37","Mouse (C3H.KBR) IgG2a, κ"},
489 {"38","Mouse IgG2a, λ"},
490 {"39","Mouse IgG2b"},
491 {"40","Mouse IgG2b, κ"},
492 {"41","Mouse IgG2b, λ"},
493 {"41_2","Mouse IgG2c"},
494 {"41_5","Mouse IgG3"},
495 {"42","Mouse IgG3, κ"},
496 {"43","Mouse IgM"},
497 {"44","Mouse IgM, κ"},
498 {"45","Mouse IgM, λ"},
499 {"46","Mouse (C3H/HeJ) IgG2a, κ"},
500 {"46_5","Mouse Polyclonal"},
501 {"47","Rabbit IgG"},
502 {"47_1","Rabbit Ig"},
503 {"48","Rabbit Polyclonal IgG"},
504 {"48_5","Rabbit Polyclonal"},
505 {"49","Rat (SD) IgG2b, λ"},
506 {"49_5","Rat Polyclonal IgG"},
507 {"50","Rat IgG"},
508 {"51","Rat IgG, κ"},
509 {"52","Rat IgG1"},
510 {"53","Rat IgG1, κ"},
511 {"54","Rat IgG1, λ"},
512 {"55","Rat IgG2a"},
513 {"56","Rat IgG2a, κ"},
514 {"57","Rat IgG2a, λ"},
515 {"58","Rat IgG2a/Rat IgG1"},
516 {"59","Rat IgG2a/Rat IgG2b"},
517 {"59_1","Rat IgG2a, κ/Rat IgG2b, κ"},
518 {"59_2","Armenian Hamster IgG/Rat IgG2a/Rat IgG2b"},
519 {"59_3","Rat IgG2a, κ/Rat IgG2b, κ/Rat IgG2c, κ"},
520 {"60","Rat IgG2b"},
521 {"61","Rat IgG2b, κ"},
522 {"62","Rat IgG2b, λ"},
523 {"62_5","Rat IgG2c"},
524 {"64","Rat IgG2c, κ"},
525 {"64_5","Rat IgM"},
526 {"65","Rat IgM, κ"},
527 {"66","Syrian Hamster IgG"},
528 {"67","Armenian Hamster IgG1, λ"},
529 {"68","Chicken Polyclonal IgY"},
530 {"69","Sheep Polyclonal"},
531 {"70","Guinea Pig Polyclonal"},
532 {"81","Human IgG1"},
533 {"81_5","Human IgG1, κ"},
534 {"82","Human IgG2"},
535 {"82_5","Human IgG2, κ"},
536 {"83","Human IgG3"},
537 {"83_5","Human IgG3, κ"},
538 {"84","Human IgG4"},
539 {"84_5","Human IgG4, κ"},
540 {"99","TBD"},
541 {"47_5","Rabbit Polyclonal Ig"},
542 {"41_3","Mouse IgG2c, κ"},
543 {"67_9","Chicken IgY"},
544 {"40_1","Mouse IgG2b, κ/Mouse IgM, κ"},
545 {"33_1","Mouse IgG1, κ/Mouse IgG2b, κ"},
546 {"71","Llama VH Ig"}
547 };
548 if(!string.IsNullOrWhiteSpace(isotype))
549 {
550 string[] isotypes = isotype.Split(',');
551 foreach (string thisType in isotypes)
552 {
553 ctText += ctDict[thisType] + ", ";
554 }
555
556
557 ctText = ctText.Remove(ctText.Length-2);
558 <dt class="col-xs-3 noPaddingLeft">
559 @Translate("IsotypeLabel","Isotype")
560 </dt>
561 <dd class="col-xs-9">
562 @ctText
563 </dd>
564 }
565 }
566
567 @helper RenderLaser(string laser)
568 {
569 string laserText = "";
570 string violetLaser = Translate("violetLaser","Violet Laser (405 nm)");
571 string blueLaser = Translate("blueLaser","Blue Laser (488 nm)");
572 string greenLaser = Translate("greenLaser","Green Laser (532 nm)/Yellow-Green Laser (561 nm)");
573 string redLaser = Translate("redLaser","Red Laser (633 nm)");
574 string ultravioletLaser = Translate("ultravioletLaser","Ultraviolet Laser (355 nm)");
575 string[] lasers = laser.Split(',');
576 foreach (string thisLaser in lasers)
577 {
578 if(thisLaser == "violetLaser"){
579 laserText += violetLaser + "<br />";
580 }
581 if(thisLaser == "blueLaser"){
582 laserText += blueLaser + "<br />";
583 }
584 if(thisLaser == "greenLaser"){
585 laserText += greenLaser + "<br />";
586 }
587 if(thisLaser == "redLaser"){
588 laserText += redLaser + "<br />";
589 }
590 if(thisLaser == "ultravioletLaser"){
591 laserText += ultravioletLaser + "<br />";
592 }
593 }
594
595 if(!string.IsNullOrWhiteSpace(laserText))
596 {
597 <dt class="col-xs-3 noPaddingLeft">
598 @Translate("ExcitationLaser","Excitation Laser")
599 </dt>
600 <dd class="col-xs-9">
601 @laserText
602 </dd>
603 }
604 }
605
606 @helper RenderSpectralData(string format = "", string productID = "")
607 {
608 string variable = "";
609 string textAnchor = "";
610
611 if(format == "A488")
612 {
613 variable = "AF488";
614 textAnchor = "Alexa Fluor® 488";
615 }
616 else if(format == "A555")
617 {
618 variable = "AF555";
619 textAnchor = "Alexa Fluor® 555";
620 }
621 else if(format == "A594")
622 {
623 variable = "AF594";
624 textAnchor = "Alexa Fluor® 594";
625 }
626 else if(format == "A647")
627 {
628 variable = "AF647";
629 textAnchor = "Alexa Fluor® 647";
630 }
631 else if(format == "A660")
632 {
633 variable = "AF660";
634 textAnchor = "Alexa Fluor® 660";
635 }
636 else if(format == "A700")
637 {
638 variable = "AF700";
639 textAnchor = "Alexa Fluor® 700";
640 }
641 else if(format == "APC")
642 {
643 variable = "APC";
644 textAnchor = "APC";
645 }
646 else if(format == "APC_CY5.5")
647 {
648 variable = "APCCY55";
649 textAnchor = "APC/Cy5.5";
650 }
651 else if(format == "APC_CYANINE7")
652 {
653 variable = "APCCYANINE7";
654 textAnchor = "APC/Cyanine7";
655 }
656 else if(format == "APC_F750")
657 {
658 variable = "APCF750";
659 textAnchor = "APC/Fire™ 750";
660 }
661 else if(format == "BV421")
662 {
663 variable = "BV421";
664 textAnchor = "Brilliant Violet 421™";
665 }
666 else if(format == "BV510")
667 {
668 variable = "BV510";
669 textAnchor = "Brilliant Violet 510™";
670 }
671 else if(format == "BV570")
672 {
673 variable = "BV570";
674 textAnchor = "Brilliant Violet 570™";
675 }
676 else if(format == "BV605")
677 {
678 variable = "BV605";
679 textAnchor = "Brilliant Violet 605™";
680 }
681 else if(format == "BV650")
682 {
683 variable = "BV650";
684 textAnchor = "Brilliant Violet 650™";
685 }
686 else if(format == "BV711")
687 {
688 variable = "BV711";
689 textAnchor = "Brilliant Violet 711™";
690 }
691 else if(format == "BV750")
692 {
693 variable = "BV750";
694 textAnchor = "Brilliant Violet 750™";
695 }
696 else if(format == "BV785")
697 {
698 variable = "BV785";
699 textAnchor = "Brilliant Violet 785™";
700 }
701 else if(format == "CYANINE3")
702 {
703 variable = "CYANINE3";
704 textAnchor = "Cyanine3";
705 }
706 else if(format == "CYANINE5")
707 {
708 variable = "CYANINE5";
709 textAnchor = "Cyanine5";
710 }
711 else if(format == "FITC")
712 {
713 variable = "FITC";
714 textAnchor = "FITC";
715 }
716 else if(format == "PB")
717 {
718 variable = "PB";
719 textAnchor = "Pacific Blue™";
720 }
721 else if(format == "PE")
722 {
723 variable = "PE";
724 textAnchor = "PE";
725 }
726 else if(format == "PE_CYANINE5")
727 {
728 variable = "PECYANINE5";
729 textAnchor = "PE/Cyanine5";
730 }
731 else if(format == "PE_CY5.5")
732 {
733 variable = "PECY55";
734 textAnchor = "PE/Cy5.5";
735 }
736 else if(format == "PE_CYANINE7")
737 {
738 variable = "PECYANINE7";
739 textAnchor = "PE/Cyanine7";
740 }
741 else if(format == "PE_DZL594")
742 {
743 variable = "PEDZL594";
744 textAnchor = "PE/Dazzle™ 594";
745 }
746 else if(format == "PERCP")
747 {
748 variable = "PERCP";
749 textAnchor = "PerCP";
750 }
751 else if(format == "PERCP_CY55")
752 {
753 variable = "PERCPCYANINE55";
754 textAnchor = "PerCP/Cyanine5.5";
755 }
756 //PerCP/Cyanine5.5
757 else if(format == "PERCP_CYANINE5.5")
758 {
759 variable = "PERCPCYANINE55";
760 textAnchor = "PerCP/Cyanine5.5";
761 }
762 //Flash Phalloidin NIR 647
763 else if(productID == "13240")
764 {
765 variable = "FPNIR647";
766 textAnchor = "Flash Phalloidin™ NIR 647";
767 }
768 //Flash Phalloidin Red 594
769 else if(productID == "13203")
770 {
771 variable = "FPR594";
772 textAnchor = "Flash Phalloidin™ Red 594";
773 }
774 //Flash Phalloidin Green 488
775 else if(productID == "13950")
776 {
777 variable = "FPG488";
778 textAnchor = "Flash Phalloidin™ Green 488";
779 }
780 //DAPI
781 else if(productID == "8108")
782 {
783 variable = "DAPI";
784 textAnchor = "DAPI (4',6-Diamidino-2-Phenylindole, Dilactate)";
785 }
786 //PI
787 else if(productID == "2651")
788 {
789 variable = "PI";
790 textAnchor = "Propidium Iodide";
791 }
792 //7AAD
793 else if(productID == "1649")
794 {
795 variable = "7AAD";
796 textAnchor = "7-AAD";
797 }
798 /* zombie Aqua */
799 else if(productID == "8444")
800 {
801 variable = "ZA";
802 textAnchor = "Zombie Aqua™";
803 }
804 /* zombie Green */
805 else if(productID == "9340")
806 {
807 variable = "ZG";
808 textAnchor = "Zombie Green™";
809 }
810 /* zombie NIR */
811 else if(productID == "8657")
812 {
813 variable = "ZNIR";
814 textAnchor = "Zombie NIR™";
815 }
816 /* zombie Red */
817 else if(productID == "9338")
818 {
819 variable = "ZR";
820 textAnchor = "Zombie Red™";
821 }
822 /* zombie Ultraviolet */
823 else if(productID == "9336")
824 {
825 variable = "ZUV";
826 textAnchor = "Zombie UV™";
827 }
828 /* zombie Violet */
829 else if(productID == "9341")
830 {
831 variable = "ZV";
832 textAnchor = "Zombie Violet™";
833 }
834 /* zombie Yellow */
835 else if(productID == "8514")
836 {
837 variable = "ZY";
838 textAnchor = "Zombie Yellow™";
839 }
840 /* zombie B550 */
841 else if(productID == "23629")
842 {
843 variable = "ZB550";
844 textAnchor = "Zombie B550™";
845 }
846 /* zombie Zombie YG581 */
847 else if(productID == "23631")
848 {
849 variable = "ZYG581";
850 textAnchor = "Zombie YG581™";
851 }
852 /* zombie R685 */
853 else if(productID == "23628")
854 {
855 variable = "ZR685";
856 textAnchor = "Zombie R685™";
857 }
858 /* zombie R718 */
859 else if(productID == "23630")
860 {
861 variable = "ZR718";
862 textAnchor = "Zombie R718™";
863 }
864 /* CFSE */
865 else if(productID == "8053")
866 {
867 variable = "CFSE";
868 textAnchor = "CFSE";
869 }
870 /* DRAQ7 */
871 else if(productID == "9628")
872 {
873 variable = "DRAQ7";
874 textAnchor = "DRAQ7™";
875 }
876 /* DRAQ5 */
877 else if(productID == "9674")
878 {
879 variable = "DRAQ5";
880 textAnchor = "DRAQ5™";
881 }
882
883 /* Helix NP NIR */
884 else if(productID == "13421")
885 {
886 variable = "HNPNIR";
887 textAnchor = "Helix NP™ NIR";
888 }
889
890 /* Cytophase Violet */
891 else if (productID == "13786")
892 {
893 variable = "CV";
894 textAnchor = "Cytophase™ Violet";
895 }
896
897 /* PE Fire 640 */
898 else if(format == "PE_F640")
899 {
900 variable = "PEFIRE640";
901 textAnchor = "PE/Fire™ 640";
902 }
903
904 /* PE Fire 700 */
905 else if(format == "PE_F700")
906 {
907 variable = "PEFIRE700";
908 textAnchor = "PE/Fire™ 700";
909 }
910
911 /* PE Fire 744 */
912 else if(format == "PE_F744")
913 {
914 variable = "PEFIRE744";
915 textAnchor = "PE/Fire™ 744";
916 }
917
918 /* PE Fire 780 */
919 else if(format == "PE_F780")
920 {
921 variable = "PEFIRE780";
922 textAnchor = "PE/Fire™ 780";
923 }
924
925 /* PE Fire 810 */
926 else if(format == "PE_F810")
927 {
928 variable = "PEFIRE810";
929 textAnchor = "PE/Fire™ 810";
930 }
931
932 /* DyLight 649 */
933 else if(format == "D649")
934 {
935 variable = "DYLIGHT649";
936 textAnchor = "DyLight® 649";
937 }
938
939 /* Karavia 520 */
940 else if(format == "KB520")
941 {
942 variable = "KB520";
943 textAnchor = "KIRAVIA Blue 520™";
944 }
945
946 /* Apotracker Green */
947 else if (productID == "18527")
948 {
949 variable = "APOTRACKERGREEN";
950 textAnchor = "Apotracker™ Green";
951 }
952
953 /* Calcein Red-AM */
954 else if (productID == "18901")
955 {
956 variable = "CRAM";
957 textAnchor = "Calcein Red-AM";
958 }
959
960 /* Spark YG 570 */
961 else if(format == "SPKYG_570")
962 {
963 variable = "SPARKYG570";
964 textAnchor = "Spark YG™ 570";
965 }
966
967 /* Spark Violet 538 */
968 else if(format == "SPKVL_538")
969 {
970 variable = "SPKV538";
971 textAnchor = "Spark Violet™ 538";
972 }
973
974 /* Spark YG 581 */
975 else if(format == "SPKYG_581")
976 {
977 variable = "SPKYG581";
978 textAnchor = "Spark YG™ 581";
979 }
980
981 /* Spark Blue 574 */
982 else if(format == "SPKBL_574")
983 {
984 variable = "SPARKB574";
985 textAnchor = "Spark Blue™ 574";
986 }
987
988 /* Spark Violet 423 */
989 else if(format == "SPKVL_423")
990 {
991 variable = "SPKV423";
992 textAnchor = "Spark Violet™ 423";
993 }
994
995 /* Spark UV 387 */
996 else if(format == "SPKUV_387")
997 {
998 variable = "SPARKUV387";
999 textAnchor = "Spark UV™ 387";
1000 }
1001
1002 /* Spark Violet 500 */
1003 else if(format == "SPKVL_500")
1004 {
1005 variable = "SPARKV500";
1006 textAnchor = "Spark Violet™ 500";
1007 }
1008
1009 /* PerCP/Fire 780 */
1010 else if(format == "PERCP_F780")
1011 {
1012 variable = "PERCPF780";
1013 textAnchor = "PerCP/Fire™ 780";
1014 }
1015
1016 /* PerCP/Fire 806 */
1017 else if(format == "PERCP_F806")
1018 {
1019 variable = "PERCPF806";
1020 textAnchor = "PerCP/Fire™ 806";
1021 }
1022
1023 /* Spark Blue 515 */
1024 else if(format == "SPKBL_515")
1025 {
1026 variable = "SPKBL_515";
1027 textAnchor = "Spark Blue™ 515";
1028 }
1029
1030 /* Lysosome Probe Deep Red */
1031 else if(productID == "23745")
1032 {
1033 variable = "LPDR";
1034 textAnchor = "Lysosome Probe Deep Red";
1035 }
1036
1037 /* Lysosome Probe Green */
1038 else if(productID == "23741")
1039 {
1040 variable = "LPG";
1041 textAnchor = "Lysosome Probe Green";
1042 }
1043
1044 /* Lysosome Probe NIR */
1045 else if(productID == "23744")
1046 {
1047 variable = "LPNIR";
1048 textAnchor = "Lysosome Probe NIR";
1049 }
1050
1051 /* Lysosome Probe Orange */
1052 else if(productID == "23742")
1053 {
1054 variable = "LPO";
1055 textAnchor = "Lysosome Probe Orange";
1056 }
1057
1058 /* Lysosome Probe Red */
1059 else if(productID == "23743")
1060 {
1061 variable = "LPR";
1062 textAnchor = "Lysosome Probe Red";
1063 }
1064
1065 /* JC-10 Mitochondrial Membrane Potential Kit */
1066 else if(productID == "23092")
1067 {
1068 variable = "JC10MMPK";
1069 textAnchor = "JC-10 Mitochondrial Membrane Potential Kit";
1070 }
1071
1072 /* Spark PLUS UV 395 */
1073 else if(format == "SPKPLUSUV_395")
1074 {
1075 variable = "SPKPLUSUV_395";
1076 textAnchor = "Spark PLUS UV™ 395";
1077 }
1078
1079
1080
1081
1082
1083
1084 /* APC/Fire 810 */
1085 else if(format == "APC_F810")
1086 {
1087 variable = "APCF810";
1088 textAnchor = "APC/Fire™ 810";
1089 }
1090
1091 /* Spark Blue 550 */
1092 else if(format == "SPKBL_550")
1093 {
1094 variable = "SPKB550";
1095 textAnchor = "Spark Blue™ 550";
1096 }
1097
1098 /* Spark NIR 685 */
1099 else if(format == "SPKNIR_685")
1100 {
1101 variable = "SPKNIR685";
1102 textAnchor = "Spark NIR™ 685";
1103 }
1104
1105 /* Spark Red 718 */
1106 else if(format == "SPKR_718")
1107 {
1108 variable = "SPKR718";
1109 textAnchor = "Spark Red™ 718";
1110 }
1111
1112 /* Spark YG 593 */
1113 else if(format == "SPKYG_593")
1114 {
1115 variable = "SPKYG593";
1116 textAnchor = "Spark YG™ 593";
1117 }
1118
1119 /* GMP Alexa Fluor® 488 */
1120 else if(format == "GMP_A488")
1121 {
1122 variable = "AF488";
1123 textAnchor = "GMP Alexa Fluor® 488";
1124 }
1125
1126 /* GMP Alexa Fluor® 647 */
1127 else if(format == "GMP_A647")
1128 {
1129 variable = "AF647";
1130 textAnchor = "GMP Alexa Fluor® 647";
1131 }
1132
1133 /* GMP Alexa Fluor® 700 */
1134 else if(format == "GMP_A700")
1135 {
1136 variable = "AF700";
1137 textAnchor = "GMP Alexa Fluor® 700";
1138 }
1139
1140 /* GMP APC */
1141 else if(format == "GMP_APC")
1142 {
1143 variable = "APC";
1144 textAnchor = "GMP APC";
1145 }
1146
1147 /* GMP APC/Cyanine7 */
1148 else if(format == "GMP_APC_CYANINE7")
1149 {
1150 variable = "APCCYANINE7";
1151 textAnchor = "GMP APC/Cyanine7";
1152 }
1153
1154 /* GMP APC/Fire 750 */
1155 else if(format == "GMP_APC_F750")
1156 {
1157 variable = "APCF750";
1158 textAnchor = "GMP APC/Fire™ 750";
1159 }
1160
1161 /* GMP FITC */
1162 else if(format == "GMP_FITC")
1163 {
1164 variable = "FITC";
1165 textAnchor = "GMP FITC";
1166 }
1167
1168 /* GMP Pacific Blue */
1169 else if(format == "GMP_PB")
1170 {
1171 variable = "PB";
1172 textAnchor = "GMP Pacific Blue™";
1173 }
1174
1175 /* GMP PE */
1176 else if(format == "GMP_PE")
1177 {
1178 variable = "PE";
1179 textAnchor = "GMP PE";
1180 }
1181
1182 /* GMP PE/Cyanine5 */
1183 else if(format == "GMP_PE_CYANINE5")
1184 {
1185 variable = "PECYANINE5";
1186 textAnchor = "GMP PE/Cyanine5";
1187 }
1188
1189 /* GMP PE/Cyanine7 */
1190 else if(format == "GMP_PE_CYANINE7")
1191 {
1192 variable = "PECYANINE7";
1193 textAnchor = "GMP PE/Cyanine7";
1194 }
1195
1196 /* GMP PE/Dazzle 594 */
1197 else if(format == "GMP_PE_DZL594")
1198 {
1199 variable = "PEDZL594";
1200 textAnchor = "GMP PE/Dazzle™ 594";
1201 }
1202
1203 /* GMP PerCP */
1204 else if(format == "GMP_PERCP")
1205 {
1206 variable = "PERCP";
1207 textAnchor = "GMP PerCP";
1208 }
1209
1210 /* GMP PerCP/Cyanine5.5 */
1211 else if(format == "GMP_PERCP_CYANINE5.5")
1212 {
1213 variable = "PERCPCYANINE55";
1214 textAnchor = "GMP PerCP/Cyanine5.5";
1215 }
1216
1217 /* GMP Spark Violet 423 */
1218 else if(format == "GMP_SPKVL_423")
1219 {
1220 variable = "SPKV423";
1221 textAnchor = "GMP Spark Violet™ 423";
1222 }
1223
1224 /* GMP Spark Violet 538 */
1225 else if(format == "GMP_SPKVL_538")
1226 {
1227 variable = "SPKV538";
1228 textAnchor = "GMP Spark Violet™ 538";
1229 }
1230
1231
1232 if (!string.IsNullOrWhiteSpace(variable))
1233 {
1234 string spectraImage = "/Files/Images/media_assets/fluorophore_equivalency/data/"+variable+".png";
1235 bool fileExists = File.Exists(HttpContext.Current.Server.MapPath(spectraImage));
1236
1237 if(fileExists)
1238 {
1239 <a id="spectralDataLink" class="col-xs-9" href='javascript:loadSpectra("@variable");'>
1240 <i class="bl bl-iconLink"></i>
1241 @Translate("seeSpectralData","See {{Format}} spectral data").Replace("{{Format}}", textAnchor)
1242 </a>
1243 }
1244 }
1245 }
1246
1247 @helper RenderMaterialDataSheet(string MSDS_Type = "", string MSDS_File = "", string MSDS_Options = "", string Regulatory_Status = "", string productID = "", string techSupportID = "", string translateAnchor = "", string translateAnchorCommingSoon = "",string translateAnchorNATechSupport = ""){
1248
1249 string msdsLink = "";
1250
1251 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); //CUSTOM CODE
1252
1253 if(MSDS_Type.Equals("LEAF"))
1254 {
1255 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEAF_NC_EN_CLP_2015-07-01.pdf";
1256 }
1257 else if(MSDS_Type.Equals("ELISAMAXStandard"))
1258 {
1259 msdsLink = "/dwcountry/sdsoptions-4416";
1260 }
1261 else if(MSDS_Type.Equals("ELISAMAXDeluxe"))
1262 {
1263 msdsLink = "/dwcountry/sdsoptions-4417";
1264 }
1265 else if(MSDS_Type.Equals("LEGENDMAX"))
1266 {
1267 msdsLink = "/dwcountry/sdsoptions-4419";
1268 }
1269 else if(MSDS_Type.Equals("LEGENDplex"))
1270 {
1271 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/LEGENDplex_COMP_SDS_2015-05-07_Revised.pdf";
1272 }
1273 else if(MSDS_Type.Equals("MojoSort"))
1274 {
1275 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/MojoSort_NC_EN_CLP2015-07-01.pdf";
1276 }
1277 else if(MSDS_Type.Equals("Streptavidin and Avidin"))
1278 {
1279 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Streptavidin_and_Avidin_NC_EN_CLP_2015-11-20.pdf";
1280 }
1281 else if(MSDS_Type.Equals("ASR"))
1282 {
1283 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Diagnostic_Pure_and_Conjugated_Antibodies RSD_United_States-3.pdf";
1284 }
1285 else if(MSDS_Type.Equals("7AAD"))
1286 {
1287 msdsLink = "/dwcountry/sdsoptions-28";
1288 }
1289 else if(MSDS_Type.Equals("IVD A"))
1290 {
1291 msdsLink = "/dwcountry/sdsoptions-4109";
1292 }
1293 else if(MSDS_Type.Equals("IVD B"))
1294 {
1295 msdsLink = "/dwcountry/sdsoptions-4110";
1296 }
1297 else if(MSDS_Type.Equals("Veri-Cells")){
1298 msdsLink = "/dwcountry/sdsoptions-4000";
1299 }
1300 else if(MSDS_Type.Equals("Flow Kit"))
1301 {
1302 msdsLink = "/dwcountry/sds";
1303 }
1304 else if(MSDS_Type.Equals("Zombie Dye"))
1305 {
1306 msdsLink = "/dwcountry/sdsoptions-4210";
1307 }
1308 else if(MSDS_Type.Equals("Calcein AM"))
1309 {
1310 msdsLink = "/dwcountry/sdsoptions-4209";
1311 }
1312 else if(MSDS_Type.Equals("Mitospy"))
1313 {
1314 msdsLink = "/dwcountry/sdsoptions-4208";
1315 }
1316 else if(MSDS_Type.Equals("LPXKit1"))
1317 {
1318 msdsLink = "/dwcountry/sdsoptions-4965";
1319 }
1320 else if(MSDS_Type.Equals("LPXKit2"))
1321 {
1322 msdsLink = "/dwcountry/sdsoptions-4966";
1323 }
1324 else if(MSDS_Type.Equals("LPXKit3"))
1325 {
1326 msdsLink = "/dwcountry/sdsoptions-4967";
1327 }
1328 else if(MSDS_Type.Equals("LPXKit4"))
1329 {
1330 msdsLink = "/dwcountry/sdsoptions-4968";
1331 }
1332 else if(MSDS_Type.Equals("LPXKit5"))
1333 {
1334 msdsLink = "/dwcountry/sdsoptions-4969";
1335 }
1336 else if(MSDS_Type.Equals("LPXKit7"))
1337 {
1338 msdsLink = "/dwcountry/sdsoptions-4971";
1339 }
1340 else if(MSDS_Type.Equals("LPXCaptureBead"))
1341 {
1342 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Capture_Beads.pdf";
1343 }
1344 else if(MSDS_Type.Equals("LPXLyophStandard"))
1345 {
1346 msdsLink = cdnStaticDomain + "/Files/Images/BioLegend/support_sheet/Non_Hazardous_Statement_LegendPlex_Lyo_Formula_B.pdf";
1347 }
1348 else if(MSDS_Type.Equals("LPXLyophStandardSoloFormulationA"))
1349 {
1350 msdsLink = "/dwcountry/sdsoptions-4964";
1351 }
1352 else if(MSDS_Type.Equals("LyophilizedAntibodieswithAzide"))
1353 {
1354 msdsLink = "/dwcountry/sdsoptions-4494";
1355 }
1356 else if(MSDS_Type.Equals("RecProtein1"))
1357 {
1358 msdsLink = "/dwcountry/sdsoptions-4975";
1359 }
1360 else if(MSDS_Type.Equals("RecProtein2"))
1361 {
1362 msdsLink = "/dwcountry/sdsoptions-4973";
1363 }
1364 else if(MSDS_Type.Equals("RecProtein3"))
1365 {
1366 msdsLink = "/dwcountry/sdsoptions-4974";
1367 }
1368 else if(MSDS_Type.Equals("RecProtein4"))
1369 {
1370 msdsLink = "/dwcountry/sdsoptions-4976";
1371 }
1372 else if(MSDS_Type.Equals("RecProtein5"))
1373 {
1374 msdsLink = "/dwcountry/sdsoptions-4972";
1375 }
1376 else if(MSDS_Type.Equals("ELISAKIT1"))
1377 {
1378 msdsLink = "/dwcountry/sdsoptions-4978";
1379 }
1380 else if(MSDS_Type.Equals("ELISAKIT2"))
1381 {
1382 msdsLink = "/dwcountry/sdsoptions-4979";
1383 }
1384 else if(MSDS_Type.Equals("ELISAKIT3"))
1385 {
1386 msdsLink = "/dwcountry/sdsoptions-4981";
1387 }
1388 else if(MSDS_Type.Equals("ELISAKIT5"))
1389 {
1390 msdsLink = "/dwcountry/sdsoptions-4987";
1391 }
1392 else if(MSDS_Type.Equals("ELISAKIT7"))
1393 {
1394 msdsLink = "/dwcountry/sdsoptions-4986";
1395 }
1396 else if(MSDS_Type.Equals("ELISAKIT8"))
1397 {
1398 msdsLink = "/dwcountry/sdsoptions-4982";
1399 }
1400 else if(MSDS_Type.Equals("ELISAKIT9"))
1401 {
1402 msdsLink = "/dwcountry/sdsoptions-4984";
1403 }
1404 else if(MSDS_Type.Equals("ELISAKIT10"))
1405 {
1406 msdsLink = "/dwcountry/sdsoptions-4983";
1407 }
1408 else if(MSDS_Type.Equals("ELISAKIT11"))
1409 {
1410 msdsLink = "/dwcountry/sdsoptions-4988";
1411 }
1412 else if(MSDS_Type.Equals("ELISAKIT13"))
1413 {
1414 msdsLink = "/dwcountry/sdsoptions-4991";
1415 }
1416 else if(MSDS_Type.Equals("RAPIDMAXKIT1"))
1417 {
1418 msdsLink = "/dwcountry/sdsoptions-4997";
1419 }
1420 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_Options))
1421 {
1422 msdsLink = "/dwcountry/sdsoptions-"+MSDS_Options;
1423 }
1424 else if(MSDS_Type.Equals("Custom") && !string.IsNullOrWhiteSpace(MSDS_File))
1425 {
1426 msdsLink = MSDS_File;
1427 }
1428 else{
1429 msdsLink = "/dwcountry/sdsoptions-22";
1430 }
1431
1432 if(msdsLink.Contains("sds-options"))
1433 {
1434 <a href='@LocalizeLinksHTML(msdsLink)' target="_blank" title=""><i class="bl bl-dataIcon"></i>@translateAnchor</a>
1435 }
1436 else
1437 {
1438 <a href='javascript:openPopup("@LocalizeLinksHTML(msdsLink)","@translateAnchor")'><i class="bl bl-dataIcon"></i>@translateAnchor</a>
1439 }
1440 }
1441
1442 @helper RenderCustomField( string productFieldType, string customField, string translate, LoopItem productObj = null){
1443 string productTag;
1444 if (productObj != null)
1445 {
1446 productTag = productObj.GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean");
1447 }
1448 else
1449 {
1450 productTag = GetString("Ecom:Product.CategoryField." + productFieldType + "." + customField + ".Value.Clean");
1451 }
1452
1453 if(!string.IsNullOrWhiteSpace(productTag))
1454 {
1455 <dt class="col-xs-3 noPaddingLeft">
1456 @translate
1457 </dt>
1458 <dd class="col-xs-9">
1459 @productTag
1460 </dd>
1461 }
1462 }
1463
1464 @helper RenderABType( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null){
1465 string productTag;
1466 if (productObj != null)
1467 {
1468 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value");
1469 }
1470 else
1471 {
1472 productTag = GetString("Ecom:Product:Field." + productField + ".Value");
1473 }
1474
1475 if(!string.IsNullOrWhiteSpace(productTag) && !productTag.Equals("N/A") )
1476 {
1477 <dt class="col-xs-3 noPaddingLeft">
1478 @translate
1479 </dt>
1480 <dd class="col-xs-9">
1481 @productTag
1482 </dd>
1483 }
1484 }
1485
1486 @helper RenderProductField( string productField, string translate, string productID = "", string str_productRegulatoryStatus = "", string catalogFirstLetter = "0", string str_productFormat = "", string productFieldType = "", string str_productName = "", LoopItem productObj = null, bool isCommaSeparatedList = false){
1487
1488 var isPdf = Convert.ToBoolean(Dynamicweb.Context.Current.Request.Params["pdf"]);
1489 string appNotesID = "";
1490 string productTag = "";
1491
1492
1493 if (productObj != null)
1494 {
1495 productTag = productObj.GetString("Ecom:Product:Field." + productField + ".Value");
1496 }
1497 else
1498 {
1499 productTag = GetString("Ecom:Product:Field." + productField + ".Value");
1500 }
1501
1502 if(isCommaSeparatedList){
1503
1504 productTag = productTag.Replace(",",", ");
1505
1506 }
1507
1508 if(productField.Equals("Reactivity") && productFieldType.Equals("RecombinantProteins")){}
1509 else if(!string.IsNullOrWhiteSpace(productTag))
1510 {
1511 <dt class="col-xs-3 noPaddingLeft">
1512 @translate
1513 </dt>
1514
1515 <dd class="col-xs-9">
1516 @if(productField.Equals("Usage") && !str_productRegulatoryStatus.Equals("ASR")){
1517 @UsageProductExceptions(productTag, str_productFormat, catalogFirstLetter, productFieldType, str_productName, productID)
1518 }
1519 else if(productField.Equals("Disclaimer") && str_productRegulatoryStatus.Equals("ASR")){
1520 string replace = "";
1521 if(str_productFormat.Equals("PB") || str_productFormat.Equals("A488") || str_productFormat.Equals("A555") || str_productFormat.Equals("A594") || str_productFormat.Equals("A647") || str_productFormat.Equals("A660") || str_productFormat.Equals("A700") || str_productFormat.Equals("A488_COCKTAIL") || str_productFormat.Equals("A647_COCKTAIL") || str_productFormat.Equals("A700_COCKTAIL"))
1522 {
1523 var termsLink = "/dwcountry/terms";
1524 replace = "<br />Alexa Fluor® and Pacific Blue™ are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>";
1525 productTag += replace;
1526 }
1527
1528 if (isPdf)
1529 {
1530 @(productTag)
1531 }
1532 else
1533 {
1534 @LocalizeLinksHTML(productTag)
1535 }
1536 }
1537 else
1538 {
1539 if (isPdf)
1540 {
1541 @(productTag)
1542 }
1543 else
1544 {
1545 @LocalizeLinksHTML(productTag)
1546 }
1547 }
1548 @AddShelfLifeException(productField,productID)
1549 @AddActivationBundleException(productField,productID)
1550 </dd>
1551 }
1552 }
1553
1554 @helper RenderLongDescription(string productField, string productID = "", bool isPdf = false)
1555 {
1556 string replace = "";
1557
1558 if (productID.Equals("8309") || productID.Equals("14141"))
1559 {
1560 replace = "<br /><br /><a href=\"/legendscreen\" title=\"LEGENDScreen™ Antibody Panels\">Learn more about LEGENDScreen™ Antibody Panels and view plate maps.</a>";
1561 productField += replace;
1562 }
1563
1564 if (isPdf)
1565 {
1566 @System.Web.HttpUtility.HtmlDecode(productField)
1567 }
1568 else
1569 {
1570 @System.Web.HttpUtility.HtmlDecode(LocalizeLinksHTML(productField))
1571 }
1572 }
1573
1574 @helper RenderCustomConjugationButton( string catalogFirstTwoNumbers = "00", string catalogFirstThreeNumbers = "000", string formRequestConjugation = ""){
1575 if(catalogFirstTwoNumbers == "42" || catalogFirstTwoNumbers == "43" || catalogFirstTwoNumbers == "44" || catalogFirstTwoNumbers == "48" || catalogFirstTwoNumbers == "55" || catalogFirstTwoNumbers == "56" || catalogFirstTwoNumbers == "57" || catalogFirstTwoNumbers == "58" || catalogFirstTwoNumbers == "59" || catalogFirstTwoNumbers == "70" || catalogFirstTwoNumbers == "71" || catalogFirstTwoNumbers == "74" || catalogFirstTwoNumbers == "75" || catalogFirstTwoNumbers == "76" || catalogFirstThreeNumbers == "401" || catalogFirstThreeNumbers == "402" || catalogFirstThreeNumbers == "403" || catalogFirstThreeNumbers == "404" || catalogFirstThreeNumbers == "842" || catalogFirstThreeNumbers == "843" )
1576 {}
1577 else{
1578 var customConjugationFormLink = @LocalizeLinksHTML("/dwcountry/custom-solutions/custom-requests-form");
1579 <a class="btn btn-default" href="@customConjugationFormLink">
1580 @Translate("requestCustomConjugation","Request Custom Conjugation")
1581 </a>
1582 }
1583 }
1584
1585 @helper UsageProductExceptions(string productField, string str_productFormat, string catalogFirstLetter = "0", string productFieldType = "", string str_productName = "", string productID = "")
1586 {
1587 string str = "Each lot of this antibody is quality control tested by immunofluorescent staining with flow cytometric analysis";
1588 string replace = "";
1589
1590 if ( productField.Contains(str))
1591 {
1592 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">immunofluorescent staining with flow cytometric analysis</a>");
1593 }
1594
1595 str = "Each lot of these antibodies is quality control tested by immunofluorescent staining with flow cytometric analysis";
1596 if ( productField.Contains(str))
1597 {
1598 productField = productField.Replace(str,"Each lot of these antibodies is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">immunofluorescent staining with flow cytometric analysis</a>");
1599 }
1600
1601 str = "Each lot of this antibody is quality control tested by cell surface immunofluorescent staining with flow cytometric analysis as negative control.";
1602 if ( productField.Contains(str))
1603 {
1604 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/cell-surface-flow-cytometry-staining-protocol/4283/\" target=\"_blank\" title=\"View Protocol\">cell surface immunofluorescent staining</a> with flow cytometric analysis as negative control.");
1605 }
1606
1607 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis as negative control.";
1608 if ( productField.Contains(str))
1609 {
1610 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\">intracellular immunofluorescence staining</a> with flow cytometric analysis as negative control.");
1611 }
1612
1613 str = "Each lot of this antibody is quality control tested by Western blotting.";
1614 if ( productField.Contains(str))
1615 {
1616 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/western-blotting-protocol/4269/\" target=\"_blank\" title=\"View Protocol\">Western blotting</a>.");
1617 }
1618
1619 str = "Each lot of this antibody is quality control tested by ELISA assay.";
1620 if ( productField.Contains(str))
1621 {
1622 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\">ELISA assay</a>.");
1623 }
1624
1625 str = "Each lot of this antibody is quality control tested by intracellular immunofluorescent staining with flow cytometric analysis.";
1626 if ( productField.Contains(str))
1627 {
1628 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/intracellular-flow-cytometry-staining-protocol/4260/\" target=\"_blank\" title=\"View Protocol\">intracellular immunofluorescent staining with flow cytometric analysis</a>.");
1629 }
1630
1631 str = "Each lot of this protein is quality control tested by ELISA assay.";
1632 if ( productField.Contains(str))
1633 {
1634 productField = productField.Replace(str,"Each lot of this protein is quality control tested by <a href=\"/protocols/sandwich-elisa-protocol/4268/\" target=\"_blank\" title=\"View Protocol\">ELISA assay</a>.");
1635 }
1636
1637 str = "Each lot of this antibody is quality control tested by Immunofluorescence staining.";
1638 if ( productField.Contains(str))
1639 {
1640 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by <a href=\"/protocols/immunofluorescence-microscopy-protocol/4275/\" target=\"_blank\" title=\"View Protocol\">immunofluorescence staining</a>.");
1641 }
1642
1643 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Cell Suspensions Protocol.";
1644 if ( productField.Contains(str))
1645 {
1646 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our <a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-cell-suspensions-protocol/4262/\" target=\"_blank\" title=\"View Protocol\">True-Phos™ Perm Buffer in Cell Suspensions Protocol</a>.");
1647 }
1648
1649 str = "Each lot of this antibody is quality control tested by intracellular flow cytometry using our True-Phos™ Perm Buffer in Whole Blood Protocol.";
1650 if ( productField.Contains(str))
1651 {
1652 productField = productField.Replace(str,"Each lot of this antibody is quality control tested by intracellular flow cytometry using our <a href=\"/protocols/intracellular-staining-with-true-phos-perm-buffer-in-whole-blood/4261/\" target=\"_blank\" title=\"View Protocol\">True-Phos™ Perm Buffer in Whole Blood Protocol</a>.");
1653 }
1654
1655
1656 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"))
1657 {
1658 var termsLink = "/dwcountry/terms";
1659 replace = "<br />Alexa Fluor® and Pacific Blue™ are trademarks of Life Technologies Corporation.<br /><br /><a href='"+@LocalizeLinksHTML(termsLink)+"' target=\"_blank\" title=\"Label License\">View full statement regarding label licenses</a>";
1660 productField += replace;
1661 }
1662
1663 if (productID == "9340")
1664 {
1665 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>";
1666 productField += replace;
1667 }
1668
1669 str = "* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and 564 nm and a maximum emission of 690 nm.";
1670 if ( productField.Contains(str))
1671 {
1672 productField = productField.Replace(str,"* PerCP/Cyanine5.5 has a maximum absorption of 482 nm and a maximum emission of 690 nm.");
1673 }
1674
1675 str = "* PerCP has a maximum absorption of 482 nm and 564 nm and a maximum emission of 675 nm.";
1676 if ( productField.Contains(str))
1677 {
1678 productField = productField.Replace(str,"* PerCP has a maximum absorption of 482 nm and a maximum emission of 675 nm.");
1679 }
1680
1681 if ( str_productFormat.Equals("KB520"))
1682 {
1683 replace = "<br />KIRAVIA Blue™ 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.";
1684 productField += replace;
1685 }
1686
1687 if ( str_productFormat.Equals("APC_F810"))
1688 {
1689 var fireLink = "/dwcountry/fire-dyes";
1690 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.";
1691 productField += replace;
1692 }
1693
1694 if ( str_productFormat.Equals("PE_F810"))
1695 {
1696 var fireLink = "/dwcountry/fire-dyes";
1697 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.";
1698 productField += replace;
1699 }
1700
1701 if ( str_productName.Contains("Brilliant"))
1702 {
1703 var bvLink = "/dwcountry/brilliant-violet";
1704 replace = "<br /><a href=\""+@LocalizeLinksHTML(bvLink)+"\" title=\"Brilliant Violet™\">Learn more about Brilliant Violet™</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.";
1705 productField += replace;
1706 }
1707
1708 if ( str_productName.Contains("TotalSeq"))
1709 {
1710 replace = "<br />Buyer is solely responsible for determining whether Buyer has all intellectual property rights that are necessary for Buyer's intended uses of the BioLegend TotalSeq™ products. For example, for any technology platform Buyer uses with TotalSeq™, it is Buyer's sole responsibility to determine whether it has all necessary third party intellectual property rights to use that platform and TotalSeq™ with that platform.";
1711 productField += replace;
1712 }
1713
1714 @System.Web.HttpUtility.HtmlDecode(productField)
1715 }
1716
1717 @helper AddActivationBundleException(string productField, string productID = "")
1718 {
1719 if(productField.Equals("Usage") && !string.IsNullOrWhiteSpace(productID))
1720 {
1721 Dictionary<string, string> lstNumbers = new Dictionary<string, string>();
1722 lstNumbers.Add("24","24");
1723 lstNumbers.Add("114","114");
1724 lstNumbers.Add("4526","4526");
1725 lstNumbers.Add("6479","6479");
1726 lstNumbers.Add("892","892");
1727 lstNumbers.Add("7236","7236");
1728 lstNumbers.Add("5833","5833");
1729 lstNumbers.Add("996","996");
1730 lstNumbers.Add("5469","5469");
1731 lstNumbers.Add("6959","6959");
1732
1733 if(lstNumbers.ContainsKey(productID))
1734 {
1735 <text>
1736 <br/>
1737 </text>
1738 @Translate("ActivationBundle","This product is included in our Activation Bundles. <a href=\"/activation_bundles\" title=\"Activation Bundles\">Learn more...</a>")
1739 }
1740
1741 }
1742 }
1743
1744 @helper CalculateFooterDisclaimer(string footerDisclaimer, string regulatoryStatus, string format)
1745 {
1746
1747 var licenceLink = LocalizeLinksHTML("/dwcountry/ordering#license");
1748 var termsLink = LocalizeLinksHTML("/dwcountry/terms");
1749
1750 var customFooterDisclaimer = footerDisclaimer + "<p> </p>";
1751
1752 var ASRDisclaimer = "<p>Analyte Specific Reagent. Analytical and performance characteristics are not established.</p><p> </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> </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> </p>";
1753
1754 var IVDDisclaimer = "<p>For In Vitro Diagnostic Use. Not for therapeutic use.</p><p> </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> </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> </p>";
1755
1756 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> </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> </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> </p>";
1757
1758 var RUODisclaimer = "<p>For Research Use Only. Not for diagnostic or therapeutic use.</p><p> </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> </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> </p>";
1759
1760 if ( !String.IsNullOrEmpty(footerDisclaimer) && footerDisclaimer != "" )
1761 {
1762 @customFooterDisclaimer
1763 }
1764 else if( regulatoryStatus.Equals("ASR") )
1765 {
1766 @LocalizeLinksHTML(ASRDisclaimer)
1767 }
1768 else if( regulatoryStatus.Equals("IVD") ){
1769 @LocalizeLinksHTML(IVDDisclaimer)
1770 }
1771 else if ( regulatoryStatus.Equals("GMP-RUO") )
1772 {
1773 @LocalizeLinksHTML(GMPRUODisclaimer)
1774 }
1775 else{
1776 @LocalizeLinksHTML(RUODisclaimer)
1777 }
1778 }
1779
1780 @helper CalculateCloneString(string clone, string otherFormats, bool asrCheck, string searchID, bool isPdf = false)
1781 {
1782 if (!string.IsNullOrEmpty(clone))
1783 {
1784 <text>
1785 <dt class="col-xs-4 col-sm-3 noPaddingLeft">
1786 @GetString("Ecom:Product:Field.Clone.Name")
1787 </dt>
1788 </text>
1789 if (asrCheck)
1790 {
1791 <dd>@clone</dd>
1792 }
1793 else
1794 {
1795 if (clone.Contains(";"))
1796 {
1797 if (isPdf)
1798 {
1799 <dd>@clone</dd>
1800 }
1801 else{
1802 string[] clones = (clone).Replace(" ", "").Split(';');
1803 <dd>
1804 @foreach (var x in clones)
1805 {
1806 string cloneHTML = System.Web.HttpUtility.HtmlDecode(x);
1807 string cloneTag = "; ";
1808 if (!isPdf)
1809 {
1810 <a href="/Default.aspx?ID=@searchID&Clone=@cloneHTML">@x</a>@cloneTag
1811 }
1812
1813 }
1814 </dd>
1815 }
1816 }
1817 else
1818 {
1819 if (isPdf)
1820 {
1821 <dd>@clone</dd>
1822 }
1823 else
1824 {
1825 <dd><a href="/Default.aspx?ID=@searchID&Clone=@(System.Web.HttpUtility.HtmlDecode(clone))">@clone</a> (<a href="@otherFormats">@Translate("SeeOtherAvailableFormats", "See other available formats")</a>)</dd>
1826 }
1827 }
1828 }
1829 }
1830 }
1831
1832 @helper AddShelfLifeException(string productField, string productID = "")
1833 {
1834 if(productField.Equals("Storage") && !string.IsNullOrWhiteSpace(productID))
1835 {
1836 Dictionary<string, string> lstNumbersUse = new Dictionary<string, string>();
1837 lstNumbersUse.Add("1395","1395");
1838 lstNumbersUse.Add("1396","1396");
1839 lstNumbersUse.Add("1474","1474");
1840 lstNumbersUse.Add("2264","2264");
1841 lstNumbersUse.Add("2507","2507");
1842
1843 Dictionary<string, string> lstNumbers = new Dictionary<string, string>();
1844 lstNumbers.Add("2508","2508");
1845 lstNumbers.Add("2915","2915");
1846 lstNumbers.Add("2939","2939");
1847 lstNumbers.Add("2988","2988");
1848 lstNumbers.Add("2989","2989");
1849 lstNumbers.Add("3071","3071");
1850 lstNumbers.Add("3177","3177");
1851 lstNumbers.Add("3180","3180");
1852 lstNumbers.Add("3194","3194");
1853 lstNumbers.Add("3195","3195");
1854 lstNumbers.Add("3843","3843");
1855 lstNumbers.Add("4347","4347");
1856 lstNumbers.Add("4664","4664");
1857 lstNumbers.Add("5654","5654");
1858 lstNumbers.Add("5660","5660");
1859 lstNumbers.Add("6373","6373");
1860 lstNumbers.Add("6398","6398");
1861 lstNumbers.Add("6646","6646");
1862 lstNumbers.Add("8053","8053");
1863 lstNumbers.Add("8135","8135");
1864 lstNumbers.Add("9539","9539");
1865
1866 if(lstNumbersUse.ContainsKey(productID))
1867 {
1868 <text>
1869 <br/>
1870 <br/>
1871 </text>
1872 @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")
1873 }else if(lstNumbers.ContainsKey(productID))
1874 {
1875 <text>
1876 <br/>
1877 <br/>
1878 </text>
1879 @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.")
1880 }
1881
1882 }
1883 }
1884
1885 @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 = "")
1886 {
1887 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);
1888
1889 var cdnPdfDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("DynamicallyCreated_PDFFiles", "DynamicallyCreated_PDF_Files_Domain"); //CUSTOM CODE
1890 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain"); // CUSTOM CODE
1891 var pdfCdn = techinicalDataSheet.link.EndsWith(".pdf") ? cdnStaticDomain : cdnPdfDomain;
1892 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated;
1893
1894 if (htmlStructType)
1895 {
1896 // Is for the product link
1897 <a @techinicalDataSheet.target data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@pdfCdn@techinicalDataSheet.link@version" class="btn btn-default techincalDataSheet">
1898 <i class="fa fa-file-pdf-o"></i> @techinicalDataSheet.text
1899 </a>
1900 }
1901 else
1902 {
1903 // Is for the product navigation
1904 <a @techinicalDataSheet.target data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@pdfCdn@techinicalDataSheet.link@version">
1905 <i class="fa fa-file-pdf-o"></i>@techinicalDataSheet.text
1906 </a>
1907 }
1908 }
1909
1910
1911
1912 @helper RenderTDSForPreview(bool htmlStructType, string dataSheetFile, string dataSheet, string productID = "", string productName = "", string regulatoryStatus = "", string pdfUrl = "", string productUpdated = "")
1913 {
1914 previewTDS techinicalDataSheet = new previewTDS(productID, productName, Translate("TechnicalDataSheet", "Technical Data Sheet (pdf)"), pdfUrl);
1915
1916 //NOTE - Customer requested for Cdn not to be applied here
1917 var version = (techinicalDataSheet.link.Contains("?") ? "&v=" : "?v=") + productUpdated;
1918
1919 if (htmlStructType)
1920 {
1921 // Is for the product link
1922 <a target="_blank" data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@techinicalDataSheet.link@version" class="btn btn-default techincalDataSheet">
1923 <i class="fa fa-file-pdf-o"></i> @techinicalDataSheet.text
1924 </a>
1925 }
1926 else
1927 {
1928 // Is for the product navigation
1929 <a target="_blank" data-regulatory="@regulatoryStatus" data-datasheet="@dataSheet" data-datasheetFile="@dataSheetFile" href="@techinicalDataSheet.link@version">
1930 <i class="fa fa-file-pdf-o"></i>@techinicalDataSheet.text
1931 </a>
1932 }
1933 }
1934
1935 @helper RenderInternationalGMPQualityStatement(string country = "", string regStatus = "", string format = "")
1936 {
1937 bool b = false;
1938 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") ){
1939 b = true;
1940 }
1941 if(!country.Equals("en-US") && !country.Equals("ja-JP") && regStatus.Equals("GMP-RUO") && b){
1942 <div class="introDescription col-xs-12 noPaddingLeft">
1943 <span class="title">Quality Statement</span>
1944 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.
1945 </div>
1946 }
1947
1948
1949 }
1950
1951 @functions {
1952
1953 public static string StripSpecialCharacters(string input)
1954 {
1955 return System.Text.RegularExpressions.Regex.Replace(input, "[^0-9a-zA-Z -]+", "");
1956 }
1957
1958 public class TDS
1959 {
1960 public TDS()
1961 {
1962
1963 }
1964
1965 public string link { get; set; }
1966 public string text { get; set; }
1967 public string target { get; set; }
1968
1969 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 = "")
1970 {
1971 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
1972 var translate = "";
1973 var block = "";
1974 var urlTarget = "target=\"_blank\"";
1975
1976 var p = Dynamicweb.Ecommerce.Services.Products.GetProductById(productID, "", true);
1977
1978 if (!string.IsNullOrWhiteSpace(dataSheet) && !dataSheet.Equals("Standard") && !dataSheet.Equals("Recombinant"))
1979 {
1980 linkPrint = dataSheetFile;
1981 block = "1";
1982 }
1983
1984 if (productType.Equals("ELISA") || productID.Equals("10801"))
1985 {
1986 linkPrint = dataSheetFile;
1987 block = "2";
1988 }
1989
1990 if (productType.Equals("LEGENDplex") && !productName.Contains("Buffer") && !productName.Contains("Carboxyl") && !productName.Contains("SA-PE") && !productID.Equals("12677") && !productID.Equals("12678") && appAbbreviation.Contains("Multiplex - Panel"))
1991 {
1992 linkPrint = dataSheetFile;
1993 translate = viewCurrentManual;
1994 block = "3";
1995 }
1996 else if (regulatoryStatus.Equals("IVD"))
1997 {
1998 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet))
1999 {
2000 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage);
2001 urlTarget = string.Empty;
2002 block = "4";
2003 }
2004 else
2005 {
2006 linkPrint = dataSheetFile;
2007 block = "5";
2008 }
2009
2010 translate = instructionsForUse;
2011 block = "6";
2012 }
2013 //ASR PDF Datasheet Override
2014 else if (regulatoryStatus.Equals("ASR"))
2015 {
2016 if (dataSheet.Equals("Standard") || dataSheet.Equals("Recombinant") || (dataSheet.Equals("Custom") && string.IsNullOrWhiteSpace(dataSheetFile)) || string.IsNullOrWhiteSpace(dataSheet))
2017 {
2018 linkPrint = string.Format("javascript:confirmRedirection('{0}','{1}')", HttpUtility.JavaScriptStringEncode(translateTechnicalSupport), techSupportPage);
2019 urlTarget = string.Empty;
2020 block = "7";
2021 }
2022 else
2023 {
2024 linkPrint = dataSheetFile;
2025 block = "8";
2026 }
2027
2028 translate = technicalDataSheet;
2029 block = "9";
2030 }
2031 else if (!string.IsNullOrWhiteSpace(dataSheetFile))
2032 {
2033 linkPrint = dataSheetFile;
2034 translate = technicalDataSheet;
2035 block = "10";
2036 }
2037 else
2038 {
2039 linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
2040 translate = technicalDataSheet;
2041 block = "11";
2042 }
2043
2044 link = linkPrint;
2045 text = translate;
2046 target = urlTarget;
2047 }
2048 }
2049
2050 public class previewTDS
2051 {
2052 public previewTDS()
2053 {
2054
2055 }
2056
2057 public string link { get; set; }
2058 public string text { get; set; }
2059
2060 public previewTDS(string productID = "", string productName = "", string technicalDataSheet = "", string pdfUrl = "")
2061 {
2062 var linkPrint = pdfUrl + "&ProductID=" + productID + "&leftRightMargin=15&topBottomMargin=15&filename=" + productName + ".pdf";
2063 var translate = technicalDataSheet;
2064
2065 link = linkPrint;
2066 text = translate;
2067 }
2068 }
2069
2070 }
2071
2072 @functions{
2073 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)
2074 {
2075 Dynamicweb.Frontend.PageView obj_currentPageview = Dynamicweb.Frontend.PageView.Current();
2076 string str_currDevice = obj_currentPageview.Device.ToString();
2077 string str_alternativeImage = obj_currentPageview.Area.Item["NoImage"] != null ? obj_currentPageview.Area.Item["NoImage"].ToString() : "/Files/Templates/Designs/Lorenz/images/alternativeImage.jpg";
2078
2079 string str_width = "";
2080 string str_height = "";
2081 int num_getImageWidth = num_width != 0 ? num_width : 0;
2082 int num_getImageHeight = num_height != 0 ? num_height : 0;
2083 string str_getImageFormat = str_format != "jpg" ? "&Format=" + str_format : "";
2084 string str_getImageCompression = num_compression != 75 ? "&Compression=" + num_compression : "";
2085
2086 var cdnImageHandleDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Image_Handler", "Image_Handler_Domain"); //CUSTOM CODE
2087
2088 if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Tablet.ToString())
2089 {
2090 num_getImageWidth = num_widthTablet != 0 ? num_widthTablet : num_getImageWidth;
2091 num_getImageHeight = num_heightTablet != 0 ? num_heightTablet : num_getImageHeight;
2092 }
2093 else if (str_currDevice == Dynamicweb.Frontend.Devices.DeviceType.Mobile.ToString())
2094 {
2095 num_getImageWidth = num_widthMobile != 0 ? num_widthMobile : num_getImageWidth;
2096 num_getImageHeight = num_heightMobile != 0 ? num_heightMobile : num_getImageHeight;
2097 }
2098
2099 if (num_getImageWidth != 0)
2100 {
2101 str_width = "&Width=" + num_getImageWidth;
2102 }
2103 if (num_getImageHeight != 0)
2104 {
2105 str_height = "&Height=" + num_getImageHeight;
2106 }
2107
2108 string str_output = cdnImageHandleDomain + "/Admin/Public/GetImage.ashx?Image=" + str_source + str_width + str_height + "&altFmImage_path=" + str_alternativeImage + str_getImageFormat + str_getImageCompression + "&Crop=" + num_crop;
2109 return str_output;
2110 }
2111 }
2112
2113 @* Http Request params for deciding if it is preview*@
2114 var str_requestPreview = System.Web.HttpContext.Current.Request.Params["preview"] ?? "";
2115
2116 var itemArea = Pageview.Area.Item;
2117
2118 //START CUSTOM CODE
2119 var cdnStaticDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("Static_Content", "Static_Content_Domain");
2120 var cdnJsCssDomain = BioLegend.Web.Helpers.CdnFunctions.GetCdnByType("CSS_JS", "CSS_JS_Domain");
2121 //END CUSTOM CODE
2122
2123 var productStatus = GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean");
2124 if (productStatus.Equals(1) && str_requestPreview!= "true")
2125 {
2126 @itemArea["ProductDiscontinued"].ToString()
2127 }
2128 else
2129 {
2130 /* Workaround due a DW bug */
2131 var applicationsData = GetFilterData("BLFD_1");
2132 /* END Workaround */
2133 @* page item values *@
2134 var addToCartFormAction = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + (itemArea["AddToCart"] ?? Pageview.Page.ID).ToString());
2135 var searchPageID = itemArea["SearchResults"].ToString();
2136 var formRequestConjugation = itemArea["FormRequestConjugation"].ToString();
2137 var printPage = itemArea["PrintPage"].ToString();
2138 var coaPage = itemArea["CertificateAnalysisPage"].ToString();
2139 var coaRedirect = itemArea["CertificateAnalysisRedirect"].ToString();
2140 var techSupportPageID = itemArea["FormTechSupport"].ToString();
2141 var productListJson = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(itemArea["ProductListJson"].ToString());
2142 var requestBulk = itemArea["RequestBulk"].ToString();
2143 var cartDisabled = Convert.ToBoolean(itemArea["DisableAddToCart"].ToString());
2144 var orderContext = itemArea["OrderContext"] != null ? itemArea["OrderContext"].ToString() : "";
2145 var isWebserviceAvailable = TemplatesHelper.IsWebServiceConnectionAvailable();
2146
2147 var navEnvironment = itemArea["NavEnvironment"] != null ? itemArea["NavEnvironment"].ToString() : "";
2148
2149 var userAvailableStartMsg = Translate("userAvailableStartMsg", "The entered quantity of");
2150 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.");
2151 var userOrdersLessThanAvailable = Translate("userOrdersLessThanAvailable", "is available and will be scheduled for shipment ASAP.");
2152
2153 @* Http Request params *@
2154 var str_requestConc = System.Web.HttpContext.Current.Request.Params["concExpLookup"] ?? "";
2155 var str_requestLotNumber = System.Web.HttpContext.Current.Request.Params["lotNumber"] ?? "";
2156
2157 @* Page and user info *@
2158 var str_currentPageId = Pageview.Page.ID.ToString();
2159 var bol_isLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn();
2160 var bol_isFrontEnd = Dynamicweb.Environment.ExecutingContext.IsFrontEnd();
2161
2162 var siteCurrency = Dynamicweb.Frontend.PageView.Current().Area.EcomCurrencyId;
2163 var userCurrency = bol_userLogged ? Dynamicweb.Security.UserManagement.User.GetCurrentUser().Currency : siteCurrency;
2164
2165 var RRIDLists = new Dictionary<string, string>();
2166
2167 @* Standard product info *@
2168 var str_variantDefaultId = GetString("Ecom:Product.DefaultVariantComboID");
2169 var str_variantCurrentId = GetString("Ecom:Product.VariantID");
2170 var str_variantId = (!String.IsNullOrEmpty(str_variantCurrentId)) ? str_variantCurrentId : str_variantDefaultId;
2171 var str_variantParam = (!String.IsNullOrEmpty(str_variantId)) ? "&variantid=" + str_variantId : "";
2172
2173 var str_productId = GetString("Ecom:Product.ID");
2174 var str_productLanguage = GetString("Ecom:Product.LanguageID");
2175 var str_productName = GetString("Ecom:Product.Name");
2176 var str_productIntro = GetString("Ecom:Product.ShortDescription");
2177 var str_productDescription = GetString("Ecom:Product.LongDescription");
2178 var str_productPrice = GetString("Ecom:Product.Price");
2179 var str_productOtherNames = GetString("Ecom:Product:Field.OtherNames.Value");
2180 var str_productDataSheet = GetString("Ecom:Product:Field.Datasheet.Value.Clean");
2181 var str_productDataSheetFile = GetString("Ecom:Product:Field.DatasheetFile.Clean");
2182 var str_productMSDSType = GetString("Ecom:Product:Field.MSDSType.Value");
2183 var str_productMSDSCFile = GetString("Ecom:Product:Field.MSDSFile.Clean");
2184 var str_productMSDSOptions = GetString("Ecom:Product:Field.MSDSOptions.Value");
2185 var str_groupPrimary = GetString("Ecom:Product.PrimaryOrFirstGroupID");
2186 var str_productImage = GetString("Ecom:Product.ImageSmall.Clean");
2187 var str_productImageMedium = GetString("Ecom:Product.ImageMedium.Clean");
2188 var str_productImageLarge = GetString("Ecom:Product.ImageLarge.Clean");
2189 var str_productImage4 = GetString("Ecom:Product:Field.Image4Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
2190 var str_productGetImage = str_productImage; //GetImage(str_productImage, 180, 0, 180, 0, 180, 0,"jpg",90,5);
2191 var str_productGetImageMedium = str_productImageMedium; // GetImage(str_productImageMedium, 180, 0, 180, 0, 180, 0,"jpg",90,5);
2192 var str_productGetImageLarge = str_productImageLarge; // GetImage(str_productImageLarge, 180, 0, 180, 0, 180, 0,"jpg",90,5);
2193 var str_productGetImage4 = str_productImage4; //GetImage(str_productImage4, 180, 0, 180, 0, 180, 0,"jpg",90,5);
2194 var str_image1Description = GetString("Ecom:Product:Field.Image1Description.Value");
2195 var str_image2Description = GetString("Ecom:Product:Field.Image2Description.Value");
2196 var str_image3Description = GetString("Ecom:Product:Field.Image3Description.Value");
2197 var str_image4Description = GetString("Ecom:Product:Field.Image4Description.Value");
2198 var str_image1Title = GetString("Ecom:Product:Field.Image1Title.Value");
2199 var str_image2Title = GetString("Ecom:Product:Field.Image2Title.Value");
2200 var str_image3Title = GetString("Ecom:Product:Field.Image3Title.Value");
2201 var str_image4Title = GetString("Ecom:Product:Field.Image4Title.Value");
2202 var lst_images = new List<Tuple<string, string, string>>();
2203
2204 var str_productImage5 = GetString("Ecom:Product:Field.Image5Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
2205 var str_productGetImage5 = str_productImage5;
2206 var str_image5Description = GetString("Ecom:Product:Field.Image5Description.Value");
2207 var str_image5Title = GetString("Ecom:Product:Field.Image5Title.Value");
2208
2209 var str_productImage6 = GetString("Ecom:Product:Field.Image6Path.Clean").Replace("/Files/Images/Images/", "/Files/Images/");
2210 var str_productGetImage6 = str_productImage6;
2211 var str_image6Description = GetString("Ecom:Product:Field.Image6Description.Value");
2212 var str_image6Title = GetString("Ecom:Product:Field.Image6Title.Value");
2213
2214 var str_starClass = "";
2215 var str_halfStar = "";
2216
2217 var productUpdated = GetDate("Ecom:Product.Updated").ToString("yyyyMMddhhmmss"); //CUSTOM CODE
2218
2219 @* Product Custom Fields *@
2220 var productType = GetString("Ecom:Product:Field.CMProductType.Value");
2221 var productSpecificity = GetString("Ecom:Product:Field.Specificity.Value");
2222 var str_productFormat = GetString("Ecom:Product:Field.Format.Value");
2223 var str_productLaser = GetString("Ecom:Product:Field.ExcitationLaser.Value");
2224 var str_productRegulatoryStatus = GetString("Ecom:Product:Field.RegulatoryStatus.Value");
2225 var str_productAppAbrv = GetString("Ecom:Product:Field.AppAbrv.Value");
2226 var str_moreDataTitle = GetString("Ecom:Product:Field.MoreDataTitle.Value");
2227 var str_moreData = GetString("Ecom:Product:Field.MoreData.Clean");
2228 var excludeAB = GetBoolean("Ecom:Product:Field.ExcludeAB");
2229 var productClone = Regex.Replace(GetString("Ecom:Product:Field.Clone.Value"), "<!.*?>", String.Empty, RegexOptions.Singleline).Trim();
2230 var geneList = GetString("Ecom:Product:Field.GeneID.Value").Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
2231 var str_biologyArea = GetString("Ecom:Product:Field.BiologyArea.Value");
2232 var str_molecularFamily = GetString("Ecom:Product:Field.MolecularFamily.Value");
2233 var str_cellType = GetString("Ecom:Product:Field.CellType.Value");
2234 var productFieldType = "";
2235 var longLang = (string) GetGlobalValue("Global:Area.LongLang");
2236 var versionDate = GetDate("Ecom:Product:Field.VersionDate.Value.Clean");
2237 var dateTimeVersionDate = DateTime.Now;
2238 var productIsUg = "";
2239 var productIsUl = "";
2240 var isASR = str_productRegulatoryStatus.Equals("ASR");
2241 var isIVD = str_productRegulatoryStatus.Equals("IVD");
2242 var isGMPRUO = str_productRegulatoryStatus.Equals("GMP-RUO");
2243 var isGMPRUOException = ( str_productFormat.Equals("GMP_RECOM") || str_productFormat.Equals("SOLUTION") || str_productFormat.Equals("GMP_ULEAF") );
2244 var isRUO = str_productRegulatoryStatus.Equals("RUO");
2245 var str_ProductNameNormalized = GetString("Ecom:Product:Field.ProductNameNormalized.Value");
2246 var str_TotalseqSequence = GetString("Ecom:Product:Field.TotalseqSequence.Value");
2247 var str_IsotypeForFilter = GetString("Ecom:Product:Field.IsotypeFilter.Value");
2248 var str_footerDisclaimer = GetString("Ecom:Product:Field.FooterDisclaimer.Value");
2249 var str_qualityStatement = GetString("Ecom:Product:Field.QualityStatement.Value");
2250
2251 if(versionDate != null)
2252 {
2253 dateTimeVersionDate = versionDate;
2254 }
2255
2256 /* Other Formats */
2257 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);
2258
2259 @* Product Loops *@
2260 var loop_variantCombinations = GetLoop("VariantCombinations").Where(x => x.GetBoolean("Ecom:Product.IsActive"));
2261 var loopAssociatedGroups = GetLoop("AssociatedGroups");
2262 var loopComments = GetLoop("Comments.Newfirst");
2263 var loop_variantsWithDC = loop_variantCombinations.Where(x => x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(4));
2264
2265 if (!string.IsNullOrEmpty(str_productImage))
2266 {
2267 lst_images.Add(new Tuple<string, string, string>(str_productImage, str_image1Title, str_image1Description));
2268 }
2269 if (!string.IsNullOrEmpty(str_productImageMedium))
2270 {
2271 lst_images.Add(new Tuple<string, string, string>(str_productImageMedium, str_image2Title, str_image2Description));
2272 }
2273 if (!string.IsNullOrEmpty(str_productImageLarge))
2274 {
2275 lst_images.Add(new Tuple<string, string, string>(str_productImageLarge, str_image3Title, str_image3Description));
2276 }
2277 if (!string.IsNullOrEmpty(str_productImage4))
2278 {
2279 lst_images.Add(new Tuple<string, string, string>(str_productImage4, str_image4Title, str_image4Description));
2280 }
2281 if (!string.IsNullOrEmpty(str_productImage5))
2282 {
2283 lst_images.Add(new Tuple<string, string, string>(str_productImage5, str_image5Title, str_image5Description));
2284 }
2285 if (!string.IsNullOrEmpty(str_productImage6))
2286 {
2287 lst_images.Add(new Tuple<string, string, string>(str_productImage6, str_image6Title, str_image6Description));
2288 }
2289
2290 var productTypes = new Dictionary<string, string>();
2291 productTypes.Add("AncillaryProducts", "Ancillary");
2292 productTypes.Add("BuffersSolutionsChemicals", "Ancillary");
2293 productTypes.Add("CellBiologyAntibodies", "PrimaryAntibodies");
2294 productTypes.Add("CellSeparation", "MojoSort");
2295 productTypes.Add("CytokineChemokineAntibodies", "PrimaryAntibodies");
2296 productTypes.Add("ELISAMAXLEGENDMAX", "ELISA");
2297 productTypes.Add("EpitopeTagProducts", "PrimaryAntibodies");
2298 productTypes.Add("HumanImmunologyAntibodies", "PrimaryAntibodies");
2299 productTypes.Add("IsotypeControls", "IsotypeControls");
2300 productTypes.Add("LEGENDplex", "LEGENDplex");
2301 productTypes.Add("LEGENDScreen", "LEGENDScreen");
2302 productTypes.Add("MarmosetImmunologyAntibodies", "PrimaryAntibodies");
2303 productTypes.Add("MouseImmunologyAntibodies", "PrimaryAntibodies");
2304 productTypes.Add("NeuroscienceProducts", "PrimaryAntibodies");
2305 productTypes.Add("RatImmunologyAntibodies", "PrimaryAntibodies");
2306 productTypes.Add("RecombinantProteins", "Recombinant");
2307 productTypes.Add("SecondaryReagents", "SecondaryReagents");
2308 productTypes.Add("VirusImmunologyAntibodies", "PrimaryAntibodies");
2309 productTypes.Add("EnzymeAssays", "EnzymeAssays");
2310 productTypes.Add("FlexT", "FlexT");
2311 productTypes.Add("NonAntibodyChemicalProbes", "NonAntibodyChemicalProbes");
2312 productTypes.Add("CellFunction", "CellFunction");
2313 productTypes.Add("PorcineImmunologyAntibodies", "PrimaryAntibodies");
2314 productTypes.Add("FlexiFluor", "PrimaryAntibodies");
2315
2316 if (productTypes.ContainsKey(productType))
2317 {
2318 productFieldType = productTypes[productType];
2319 }
2320
2321 @* TODO - Try to get the subgrous from the parent group *@
2322 var notShowCategories = new List<string>();
2323 notShowCategories.Add("GROUP20");
2324 notShowCategories.Add("GROUP21");
2325 notShowCategories.Add("GROUP22");
2326 notShowCategories.Add("GROUP23");
2327 notShowCategories.Add("GROUP24");
2328 notShowCategories.Add("GROUP25");
2329 notShowCategories.Add("GROUP26");
2330 notShowCategories.Add("GROUP27");
2331 notShowCategories.Add("GROUP28");
2332 notShowCategories.Add("GROUP29");
2333 notShowCategories.Add("GROUP30");
2334 notShowCategories.Add("GROUP31");
2335 notShowCategories.Add("GROUP32");
2336 notShowCategories.Add("GROUP33");
2337 notShowCategories.Add("GROUP34");
2338 notShowCategories.Add("GROUP35");
2339 notShowCategories.Add("GROUP36");
2340 notShowCategories.Add("GROUP37");
2341
2342 @functions {
2343 public string CalculateProductName(string prodName, string prodType, string prodFormat, bool excludeAntibody)
2344 {
2345 string cleanName = prodName;
2346 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)){
2347 cleanName += " Antibody";
2348 }
2349
2350 if(prodType.Equals("SecondaryReagents") && !prodName.Contains(" Antibody") && !prodName.Contains("Streptavidin") && !prodName.Contains("Avidin") && (!excludeAntibody)){
2351 cleanName += " Antibody";
2352 }
2353
2354 if(prodType.Equals("IsotypeControls") && !prodName.Contains(" Antibody") && !prodName.Contains("Lineage Cocktail") && (!excludeAntibody)){
2355 cleanName += " Antibody";
2356 }
2357
2358 return cleanName;
2359 }
2360 }
2361 //str_productName = CalculateProductName(str_productName,productFieldType,str_productFormat,excludeAB);
2362 str_productName = str_ProductNameNormalized;
2363
2364
2365 var productCatalogNumbers = loop_variantCombinations.Where(x => !string.IsNullOrWhiteSpace(x.GetString("Ecom:Product.Number"))).Select(x => x.GetString("Ecom:Product.Number"));
2366 var catalogFirstLetter = "0";
2367 var catalogSecondLetter = "0";
2368 var catalogThirdLetter = "0";
2369 var str_workshop = GetString("Ecom:Product.CategoryField." + productFieldType + ".Workshop.Value.Clean");
2370
2371 if (productCatalogNumbers.Any())
2372 {
2373 foreach (var xx in productCatalogNumbers)
2374 {
2375 catalogFirstLetter = xx.ToCharArray()[0].ToString();
2376 catalogSecondLetter = xx.ToCharArray()[1].ToString();
2377 catalogThirdLetter = xx.ToCharArray()[2].ToString();
2378 }
2379 }
2380
2381 var catalogFirstTwoNumbers = catalogFirstLetter + catalogSecondLetter;
2382 var catalogFirstThreeNumbers = catalogFirstTwoNumbers + catalogThirdLetter;
2383
2384 @* ********************************* Get Previous Company info ********************************* *@
2385 var previousCompany = new Dictionary<string,string>();
2386 var previouslyConcatName = "";
2387
2388 var catalogOldField = Regex.Split(GetString("Ecom:Product:Field.CatalogOld.Value.Clean"), "\r\n|\r|\n");
2389
2390 foreach (var line in catalogOldField)
2391 {
2392 var lineSplit = line.Split('|');
2393
2394 if(lineSplit.Count() == 2 ){
2395 if(lineSplit[0] == "Covance")
2396 {
2397 previouslyConcatName = String.Format("{0} {1}", Translate("previouslyCovanceCatalog","Previously Covance catalog#"), lineSplit[1]);
2398 }
2399 previousCompany.Add(lineSplit[1],lineSplit[0]);
2400 }
2401 }
2402
2403 @* ********************************* Variant encoding ********************************* *@
2404 var variantTypes = new Dictionary<string, string>();
2405 variantTypes.Add("microg", " µg");
2406 variantTypes.Add("mug", " μg");
2407 variantTypes.Add("mul", " μl");
2408 variantTypes.Add("microl", " µl");
2409 variantTypes.Add("ug", " &mmicro;g");
2410
2411 var readerPathwaysCount = 0;
2412 var countRelatedPages = 0;
2413 var countIVD2 = 0;
2414
2415 using (var connection = Dynamicweb.Data.Database.CreateConnection())
2416 {
2417 using (var countIVD = connection.CreateCommand())
2418 {
2419 countIVD.CommandText = "SELECT Count(1) FROM ecomgroupproductrelation where GroupProductRelationGroupID = 'BLG14317' and GroupProductRelationProductID = ''+@productId+''";
2420 countIVD.Parameters.Add(new System.Data.SqlClient.SqlParameter()
2421 {
2422 ParameterName = "productId",
2423 SqlDbType = System.Data.SqlDbType.NVarChar,
2424 Value = str_productId
2425 });
2426
2427 countIVD2 = Convert.ToInt32(countIVD.ExecuteScalar());
2428 }
2429 }
2430
2431 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"))));
2432 var isCustomFlexT = (str_productName.Contains("Flex-T") && str_productName.Contains("Custom"));
2433
2434 var repositoryPageID = itemArea["RepositoryPageId"] != null ? Convert.ToInt32(itemArea["RepositoryPageId"].ToString()) : 0;
2435 var applicationReferences = RenderItemList(new
2436 {
2437 ItemType = "Publications",
2438 ListSourceType = "NamedList",
2439 TargetNamedList = "Publications",
2440 NamedListPageID = repositoryPageID,
2441 ItemFieldsList = "*",
2442 ListTemplate = "eCom/Product/Includes/productRelatedPublications.cshtml",
2443 ListPageSize = 1000,
2444 // IncludeAllChildItems = true,
2445 Filter = "WebID contains 'p_" + str_productId + ",' or WebID contains 'p_" + str_productId + ":' or WebID ends with 'p_" + str_productId + "'"
2446 }).ToString();
2447
2448
2449 if (str_currentPageId == @printPage || str_currentPageId == coaPage)
2450 {
2451 @SnippetStart("forcePrint")
2452 <link rel="stylesheet" type="text/css" href="@cdnJsCssDomain/Files/Templates/Designs/BioLegend/css/exceptions/print.css"/>
2453 <style>
2454 .container { max-width: 700px !important; }
2455 </style>
2456 @SnippetEnd("forcePrint")
2457 }
2458
2459 if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionDate.Value.Clean")) && !string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.VersionNumber.Value.Clean")))
2460 {
2461 @SnippetStart("forcePrintVersion")
2462 <span class="versionDatePrint hidden-sm hidden-md hidden-lg col-xs-12 col-sm-9 pull-right">
2463 @Translate("version", "Version")<text>:</text> @GetString("Ecom:Product:Field.VersionNumber.Value.Clean") @Translate("revisionDate", "Revision Date")<text>:</text> @dateTimeVersionDate.ToString("MM/dd/yyyy")
2464 </span>
2465 @SnippetEnd("forcePrintVersion")
2466 }
2467
2468 <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")'>
2469 <div id="product-description" class="col-xs-12 noPaddingLeft">
2470 <div id="productInfo" class="col-xs-12 col-sm-9">
2471
2472 @if (isASR)
2473 {
2474 <p class="col-xs-6 noPadding asrWarning">
2475 <b>@Translate("ASRwarnMessage", "Analyte Specific Reagent. Analytical and performance characteristics are not established.")</b>
2476 </p>
2477 }
2478
2479 <dl class="col-xs-12 noPaddingLeft">
2480 @if (loop_variantCombinations.Where(x => !x.GetInteger("Ecom:Product:Field.ProductStatus.Value.Clean").Equals(1)).OrderBy(pv => pv.GetDouble("Ecom:Product.Price.Price")).Any())
2481 {
2482 <dt class="col-xs-3 noPaddingLeft">
2483 @Translate("Catalog#Size", "Catalog# / Size")
2484 </dt>
2485 <dd class="col-xs-9">
2486 @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")))
2487 {
2488 if (!string.IsNullOrWhiteSpace(productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean")))
2489 {
2490 RRIDLists.Add(productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:Product:Field.RRID.Value.Clean"));
2491 }
2492 var variantName = productVariant.GetString("Ecom:VariantCombination.VariantText");
2493 if(variantName.Contains("µg")){productIsUg += "Yes";}
2494 if(variantName.Contains("µl")){productIsUl += "Yes";}
2495 @String.Format("{0} / {1}", productVariant.GetString("Ecom:Product.Number"), productVariant.GetString("Ecom:VariantCombination.VariantText"))
2496 <br/>
2497 }
2498 </dd>
2499 }
2500 @if (!string.IsNullOrEmpty(productClone))
2501 {
2502 <dt class="col-xs-3 noPaddingLeft">
2503 @GetString("Ecom:Product:Field.Clone.Name")
2504 </dt>
2505 <dd class="col-xs-9">
2506 @productClone
2507 </dd>
2508 }
2509 @if (isRUO)
2510 {
2511 <dt class="col-xs-3 noPaddingLeft">
2512 @Translate("RegulatoryStatus","Regulatory Status")
2513 </dt>
2514 <dd class="col-xs-9">
2515 @str_productRegulatoryStatus
2516 </dd>
2517 }
2518 @if(!string.IsNullOrEmpty(str_workshop))
2519 {
2520 <dt class="col-xs-3 noPaddingLeft">
2521 @Translate("WorkshopName","Workshop")
2522 </dt>
2523 <dd class="col-xs-9">
2524 @str_workshop
2525 </dd>
2526 }
2527 @{
2528 var pattern = @"\<[^>]*\>";
2529 Regex rgx = new Regex(pattern);
2530 string otherNamesValue = rgx.Replace(GetString("Ecom:Product:Field.OtherNames.Value"), String.Empty);
2531 }
2532 @if (!String.IsNullOrWhiteSpace(otherNamesValue) && !isIVD )
2533 {
2534 <dt class="col-xs-3 noPaddingLeft">
2535 @GetString("Ecom:Product:Field.OtherNames.Name")
2536 </dt>
2537 <dd class="col-xs-9">
2538 @otherNamesValue
2539 </dd>
2540 }
2541
2542 @if (previousCompany.Any() && !isASR && !isIVD)
2543 {
2544 <dt class="col-xs-3 noPaddingLeft">
2545 @Translate("Previously", "Previously")
2546 </dt>
2547 <dd class="col-xs-9">
2548 <div>
2549 @foreach (var x in previousCompany)
2550 {
2551 @String.Format("{1} Catalog# {0}<br/>", x.Key.ToString(), x.Value.ToString())
2552 }
2553 </div>
2554 </dd>
2555 }
2556
2557 @RenderIsoype(str_IsotypeForFilter)
2558 @if (!string.IsNullOrEmpty(str_TotalseqSequence))
2559 {
2560 <dt class="col-xs-4 col-sm-3 noPaddingLeft">
2561 @Translate("Barcode Sequence")
2562 </dt>
2563 <dd>
2564 @str_TotalseqSequence
2565 </dd>
2566 }
2567 </dl>
2568
2569 @* Kit Contents on print page in the top section SDT 091216 *@
2570 @if (str_currentPageId != printPage && str_currentPageId == printPage && !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR)
2571 {
2572 <dl class="col-xs-12 noPadding">
2573 @RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents"))
2574 </dl>
2575 }
2576
2577 @*Mouse BV Products with ug and ul*@
2578 @if(str_productFormat.ToUpper().Contains("BV") && str_productName.ToUpper().Contains("MOUSE") && productIsUg.ToUpper().Contains("YES") && productIsUl.ToUpper().Contains("YES") && !isASR){
2579 <div class="pdfDescription col-xs-12 noPaddingLeft">
2580 <div class="title col-xs-3 noPaddingLeft"> </div>
2581 <div class="col-xs-9">This product is offered in multiple sizing options (µg and µL/test sizes). To compare these sizing options and learn which is the best choice for you, please contact tech support.</div>
2582 </div>
2583 }
2584
2585 @if (!String.IsNullOrEmpty(str_productDescription))
2586 {
2587 <dl class="pdfDescription col-xs-12 noPaddingLeft">
2588 <dt class="title col-xs-3 noPaddingLeft"><strong>@Translate("Description", "Description")</strong></dt>
2589 <dd class="col-xs-9 noPaddingLeft">@RenderLongDescription(str_productDescription, str_productId)</dd>
2590 </dl>
2591 }
2592 @if (!String.IsNullOrEmpty(str_qualityStatement))
2593 {
2594 @RenderProductField("QualityStatement",@Translate("QualityStatementNameB","Quality Statement"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName)
2595 }
2596
2597
2598 @RenderTDS(
2599 true,
2600 str_productDataSheetFile,
2601 str_productDataSheet,
2602 printPage,
2603 productFieldType,
2604 str_productId,
2605 str_productName,
2606 str_productRegulatoryStatus,
2607 techSupportPageID,
2608 @Translate("datasheetNotAvailable", "This datasheet is currently not available online. Click 'OK' to contact technical service for more information."),
2609 "",
2610 "",
2611 productUpdated
2612 )
2613
2614 </div>
2615
2616 @* New Kit Contents Section section SDT 091216 *@
2617 @if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".KitContents.Value")) && !isASR)
2618 {
2619 <div id="kitContents" class="col-xs-12 col-sm-9 pull-right">
2620
2621 <h2 class="col-xs-12 noPadding">
2622 @Translate("KitContents", "Kit Contents")
2623 </h2>
2624 <dl class="col-xs-12 noPadding">
2625 @RenderCustomField(productFieldType, "KitContents", @Translate("KitContents", "Kit Contents"))
2626 </dl>
2627 </div>
2628 }
2629
2630 <div id="productDetails" class="col-xs-12 col-sm-9 pull-right" data-isotypeControl='@Translate("IsotypeControl", "Isotype Control")'>
2631 <h2 class="col-xs-12 noPadding">
2632 @Translate("ProductDetails", "Product Details")
2633 </h2>
2634
2635 <dl class="col-xs-12 noPadding">
2636
2637 @if(isIVD){
2638 @RenderProductField("ProductInfo", @Translate("ProductInformation","Product Information"));
2639 }
2640 @if(isRUO){
2641 @RenderProductField("Reactivity", @Translate("VerifiedReactivity","Verified Reactivity"), "", "", "", "", productType, "", null, true)
2642 }
2643 else{
2644 @RenderProductField("Reactivity", @Translate("Reactivity","Reactivity"), "", "", "", "", productType, "", null, true)
2645 }
2646 @RenderProductField("ReportedReactivity", @Translate("ReportedReactivity","Reported Reactivity"), "", "", "", "", productType, "", null, true)
2647 @if(!isASR && !isIVD){
2648 @RenderABType("ABType", @Translate("AntibodyType","Antibody Type"))
2649 }
2650 @if(!isASR && !isIVD){
2651 @RenderProductField("HostSpecies", @Translate("HostSpecies","Host Species"))
2652 }
2653 @if(!isASR){
2654 @RenderCustomField(productFieldType, "Immunogen", @Translate("Immunogen", "Immunogen"))
2655 }
2656 @if(!isASR){
2657 @RenderCustomField(productFieldType, "Derivation", @Translate("Source", "Source"))
2658 }
2659 @if(!isASR){
2660 @RenderCustomField(productFieldType, "Mass", @Translate("MolecularMass", "Molecular Mass"))
2661 }
2662 @RenderProductField("NTerminalSequenceAnalysis",@Translate("NTerminalSequenceAnalysisNameA","N-terminal<br />Sequence Analysis"))
2663 @if(!isASR){
2664 @RenderCustomField(productFieldType, "Purity", @Translate("Purity", "Purity"))
2665 }
2666 @RenderProductField("Formulation", @Translate("Formulation", "Formulation"))
2667 @RenderProductField("EndotoxinLevel",@Translate("EndotoxinLevelName","Endotoxin Level"))
2668 @RenderProductField("ResidualHostCellProteinContent",@Translate("ResidualHostCellProteinContentName","Residual Host Cell Protein Content"))
2669 @RenderProductField("Specifications",@Translate("SpecificationsName","Specifications"))
2670 @RenderCustomField(productFieldType, "Preparation", @Translate("Preparation", "Preparation"))
2671
2672 @if (!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean")))
2673 {
2674 <dt class="col-xs-3 noPaddingLeft">
2675 @Translate("Concentration", "Concentration")
2676 </dt>
2677 <dd class="col-xs-9">
2678 @LocalizeLinks(@GetString("Ecom:Product.CategoryField." + productFieldType + ".Concentration.Value.Clean")) @GetString("Ecom:Product.CategoryField." + productFieldType + ".ConcentrationUnits.Value.Clean")
2679 </dd>
2680 }
2681
2682 @RenderProductField("Storage", @Translate("StorageHandling", "Storage & Handling"), str_productId)
2683 @if(!isASR){
2684 @RenderCustomField(productFieldType, "Activity", @Translate("Activity", "Activity"))
2685 }
2686 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.Applications.Value")) && !isIVD)
2687 {
2688 <dt class="col-xs-3 noPaddingLeft">
2689 @Translate("Application", "Application")
2690 </dt>
2691 <dd class="col-xs-9">
2692 <span>@GetString("Ecom:Product:Field.Applications.Value")</span>
2693
2694 @if (productFieldType.Equals("LEGENDplex"))
2695 {
2696 <text>
2697 <br/>
2698 @Translate("learnAboutLegendPlex", "Learn more about LEGENDplex™ at biolegend.com/legendplex.")
2699 <br/><br/>
2700 @Translate("downloadLegendPlexSoftware", "Download the LEGENDplex™ software.")
2701 </text>
2702 }
2703
2704 </dd>
2705 }
2706
2707 @* Find ELISA documents text *@
2708 @if (str_productFormat.Equals("ELISA") || str_productFormat.Equals("ELISA_STD") || str_productFormat.Equals("ELISA_DLX"))
2709 {
2710 <dt class="col-xs-3 noPaddingLeft">@Translate("spaceText", " ")</dt>
2711 <dd class="col-xs-9">
2712 @Translate("elisaGreenText", " As a part of BioLegend's efforts to go green, each new lot of the ELISA MAX™ sets will include a summarized version of its manual. ")
2713 </dd>
2714 }
2715
2716 @RenderProductField("Usage", @Translate("RecommendedUsage", "Recommended Usage"), str_productId, str_productRegulatoryStatus, catalogFirstLetter, str_productFormat, productFieldType, str_productName)
2717
2718
2719 @if(!isASR && !isIVD)
2720 {
2721 @RenderLaser(str_productLaser)
2722 @RenderProductField("AppNotes", @Translate("ApplicationNotes", "Application Notes"))
2723 @RenderProductField("AdditionalProductNotes", @Translate("AdditionalProductNotesTitle", "Additional Product Notes"))
2724 }
2725
2726 @if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Field.AppReferences.Value")) && !isASR)
2727 {
2728 <dt class="col-xs-3 noPaddingLeft">
2729 @Translate("ApplicationReferences","Application References")
2730 </dt>
2731 <dd class="col-xs-9" id="applicationReferences" data-seeLess="@Translate("seeLess", "See Less")" data-seeMore="@Translate("seeMore", "See More")">
2732 @{
2733 var removeAnchor = Regex.Replace(GetString("Ecom:Product:Field.AppReferences.Value"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
2734 }
2735 @if (removeAnchor.Contains("</li>"))
2736 {
2737 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None);
2738 var count = 0;
2739 foreach (var li in positionOfCut)
2740 {
2741 count++;
2742 if (count > 12)
2743 {
2744 break;
2745 }
2746 @(li + "</li>")
2747 }
2748 }
2749 else
2750 {
2751 @removeAnchor.Substring(0, (removeAnchor.Length <= 800 ? removeAnchor.Length - 1 : 800))
2752 }
2753
2754 </dd>
2755 }
2756
2757 @if( !string.IsNullOrWhiteSpace(applicationReferences) && !isASR && !isIVD)
2758 {
2759 <dt class="col-xs-3 noPaddingLeft">
2760 @Translate("ProductCitations","Product Citations")
2761 </dt>
2762 <dd class="col-xs-9" id="productSpecificReferences" data-seeLess="@Translate("seeLess", "See Less")" data-seeMore="@Translate("seeMore", "See More")">
2763 @{
2764 var removeAnchor = Regex.Replace(applicationReferences, @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
2765 }
2766 @if (removeAnchor.Contains("</li>"))
2767 {
2768 var positionOfCut = removeAnchor.Split(new string[] {"</li>"}, StringSplitOptions.None);
2769 var count = 0;
2770 foreach (var li in positionOfCut)
2771 {
2772 count++;
2773 if (count > 12)
2774 {
2775 break;
2776 }
2777 @(li + "</li>")
2778 }
2779 }
2780 else
2781 {
2782 @removeAnchor.Substring(0, 800)
2783 }
2784 </dd>
2785 }
2786
2787 @if (RRIDLists.ToList().Any() && !isASR && !isIVD)
2788 {
2789 <dt class="col-xs-3 noPaddingLeft">@Translate("RRID", "RRID")</dt>
2790 <dd class="col-xs-9">
2791 @*string.Join("<br/>", RRIDLists.ToArray())*@
2792 @foreach (var x in RRIDLists.ToList())
2793 {
2794 @x.Value
2795 <text>(@Translate("biolegendCatNo", "BioLegend Cat. No.") @x.Key)</text>
2796 <br/>
2797 }
2798 </dd>
2799 }
2800 @if(!isASR && !isIVD){
2801 @RenderCustomField(productFieldType, "Sensitivity", @Translate("Sensitivity", "Sensitivity"))
2802 @RenderCustomField(productFieldType, "StandardRange", @Translate("StandardRange", "Standard Range"))
2803 }
2804 @if(!isASR){
2805 @RenderCustomField(productFieldType, "MaterialsNotIncluded", @Translate("MaterialsNotIncluded", "Materials Not Included"))
2806 }
2807 @RenderProductField("Disclaimer",@Translate("Disclaimer","Disclaimer"),str_productId,str_productRegulatoryStatus,catalogFirstLetter,str_productFormat,productFieldType,str_productName)
2808 </dl>
2809 </div>
2810
2811 @if ((!String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Structure.Value"))
2812 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Distribution.Value"))
2813 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Function.Value"))
2814 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Interaction.Value"))
2815 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Ligand.Value"))
2816 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Bioactivity.Value"))
2817 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".CellSources.Value"))
2818 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Cross.Value"))
2819 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Modification.Value"))
2820 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Receptors.Value"))
2821 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Reconstitution.Value"))
2822 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value"))
2823 || !String.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".Regulation.Value"))
2824 || !string.IsNullOrWhiteSpace(str_biologyArea)
2825 || !string.IsNullOrWhiteSpace(str_molecularFamily)
2826 || !string.IsNullOrWhiteSpace(str_cellType)
2827 || geneList.Any()) && !isASR && !isIVD)
2828 {
2829 <div id="antigenDetails" class="col-xs-12 col-sm-9 pull-right">
2830
2831 <h2 class="col-xs-12 noPadding">
2832 @Translate("AntigenDetails", "Antigen Details")
2833 </h2>
2834
2835 <dl class="col-xs-12 noPadding">
2836 @if(!isASR && !isIVD){
2837 @RenderCustomField(productFieldType, "Structure", @Translate("Structure", "Structure"))
2838 @RenderCustomField(productFieldType, "Distribution", @Translate("Distribution", "Distribution"))
2839 @RenderCustomField(productFieldType, "Function", @Translate("Function", "Function"))
2840 @RenderCustomField(productFieldType, "Interaction", @Translate("Interaction", "Interaction"))
2841 @RenderCustomField(productFieldType, "Ligand", @Translate("LigandReceptor", "Ligand/Receptor"))
2842 @RenderCustomField(productFieldType, "Bioactivity", @Translate("Bioactivity", "Bioactivity"))
2843 @RenderCustomField(productFieldType, "CellSources", @Translate("CellSources", "Cell Sources"))
2844 @RenderCustomField(productFieldType, "CellTargets", @Translate("CellTargets", "Cell Targets"))
2845 @RenderCustomField(productFieldType, "Cross", @Translate("Cross", "Cross"))
2846 @RenderCustomField(productFieldType, "Modification", @Translate("Modification", "Modification"))
2847 @RenderCustomField(productFieldType, "Receptors", @Translate("Receptors", "Receptors"))
2848 @RenderCustomField(productFieldType, "Reconstitution", @Translate("Reconstitution", "Reconstitution"))
2849 @RenderCellType(str_cellType)
2850 @RenderBiologyArea(str_biologyArea)
2851 @RenderMolecularFamily(str_molecularFamily)
2852 }
2853 @if (!string.IsNullOrWhiteSpace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean")) && !isIVD)
2854 {
2855 <dt class="col-xs-3 noPaddingLeft">
2856 @Translate("AntigenReferences", "Antigen References")
2857 </dt>
2858 <dd class="col-xs-9 noPaddingLeft">
2859 @{
2860 string removeAnchor2 = Regex.Replace(GetString("Ecom:Product.CategoryField." + productFieldType + ".AntigenReferences.Value.Clean"), @"<a [^>]+>(.*?)<\/a>", "$1").Replace("<em>", "").Replace("</em>", "");
2861 }
2862 @removeAnchor2.Substring(0, (removeAnchor2.Length <= 1050 ? removeAnchor2.Length - 1 : 1050))
2863 </dd>
2864 }
2865 @if(!isASR && !isIVD){
2866 @RenderCustomField(productFieldType, "Regulation", @Translate("Regulation", "Regulation"))
2867
2868
2869 if (geneList.Any() && !isIVD)
2870 {
2871 <dt class="col-xs-3 noPaddingLeft">
2872 @Translate("GeneID", "Gene ID")
2873 </dt>
2874 <dd class="col-xs-9">
2875 @foreach (var gene in geneList)
2876 {
2877 <span class="col-xs-12 noPadding geneInformation">
2878 <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>
2879 </span>
2880 }
2881 </dd>
2882 }
2883 }
2884 </dl>
2885 </div>
2886 }
2887
2888 @using System.Collections.Generic
2889 @using Dynamicweb.Caching
2890 @{
2891 var str_productProtocols = GetString("Ecom:Product:Field.Protocols.Value").Replace('"', ' ');
2892 var isASRProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR");
2893 var isIVDProt = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD");
2894
2895 if (!string.IsNullOrEmpty(str_productProtocols) && !isASRProt && !isIVDProt)
2896 {
2897 var selectedProductId = GetString("Ecom:Product.ID");
2898 var productProtocolsResults = new List<KeyValuePair<string,string>>();
2899 var productProtocols = Cache.Current.Get("productProtocolsCache_" + selectedProductId);
2900
2901 if (productProtocols == null)
2902 {
2903 using (var connection = Dynamicweb.Data.Database.CreateConnection())
2904 {
2905 using (var commandProtocols = connection.CreateCommand())
2906 {
2907 commandProtocols.CommandText = "SELECT * FROM itemtype_protocols WHERE Id in (" + str_productProtocols + ")";
2908 using (var readerProtocols = commandProtocols.ExecuteReader())
2909 {
2910 if (readerProtocols != null)
2911 {
2912 if (readerProtocols.FieldCount > 0)
2913 {
2914 while (readerProtocols.Read())
2915 {
2916 var itemName = readerProtocols["Name"].ToString();
2917 var itemLink = readerProtocols["Protocol"].ToString().Replace("Files/Files/BioLegend/", "Files/Images/");
2918
2919 productProtocolsResults.Add(new KeyValuePair<string, string>(itemName, itemLink));
2920 }
2921 }
2922 }
2923 }
2924 }
2925
2926 Cache.Current.Set("productProtocolsCache_" + selectedProductId, productProtocolsResults, CacheItemPolicy.DefaultStoragePolicy);
2927 @RenderProtocols(productProtocolsResults)
2928
2929 }
2930 }
2931 else
2932 {
2933 @RenderProtocols((List<KeyValuePair<string,string>>) productProtocols)
2934 }
2935 }
2936 }
2937
2938 @helper RenderProtocols(List<KeyValuePair<string,string>> productProtocolsResults)
2939 {
2940 <div id="productRelatedProtocols" class="col-xs-12 col-sm-9 noPadding pull-right">
2941 <h2 class="col-xs-12 noPadding">
2942 <a href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedProtocols" name="13">@Translate("RelatedProtocols", "Related Protocols")</a>
2943 </h2>
2944
2945 @SnippetStart("navigationAnchors")
2946 <li>
2947 <a class="anchor_13" href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedProtocols">@Translate("RelatedProtocols", "Related Protocols")</a>
2948 </li>
2949 @SnippetEnd("navigationAnchors")
2950
2951 <ul class="col-xs-12 noPadding">
2952 @foreach (var protocolPair in productProtocolsResults)
2953 {
2954 var itemName = protocolPair.Key;
2955 var itemLink = protocolPair.Value;
2956
2957 <li class="col-xs-12">
2958 <a target="_blank" href="@itemLink" title="@itemName">
2959 @itemName
2960 </a>
2961 </li>
2962 }
2963 </ul>
2964 </div>
2965 }
2966
2967 @if (!isIVD && !isASR)
2968 {
2969 <div id="productRelatedGroup" class="col-xs-12 hidden col-sm-offset-3 col-sm-9">
2970 <h2 class="col-xs-12 noPadding">
2971 @Translate("RelatedProducts", "Related Products")
2972 </h2>
2973
2974 <table id="tableRelatedProducts" class="col-xs-12 noPadding" data>
2975 <thead>
2976 <tr>
2977 <th>@Translate("Description", "Description")</th>
2978 <th>@Translate("Clone", "Clone")</th>
2979 <th>@Translate("Applications", "Applications")</th>
2980 </tr>
2981 </thead>
2982 <tbody>
2983
2984 </tbody>
2985 </table>
2986 </div>
2987 }
2988
2989 @if (str_currentPageId == @printPage && str_productId == "9340")
2990 {
2991 <text>
2992 <br/><br/>This product is provided under an intellectual property license from Life Technologies Corporation.The transfer of this product is conditioned on the buyer using the purchased product solely in research conducted by the buyer, excluding contract research or any fee for service research, and the buyer must not(1) use this product or its components for (a) diagnostic, therapeutic or prophylactic purposes; (b)testing, analysis or screening services, or information in return for compensation on a per - test basis; or(c) manufacturing or quality assurance or quality control, and / or(2) sell or transfer this product or its components for resale, whether or not resold for use in research.For information on purchasing a license to this product for purposes other than as described above, contact Life Technologies Corporation, 5781 Van Allen Way, Carlsbad, CA 92008 USA or outlicensing@lifetech.com.
2993 </text>
2994 }
2995
2996 @{
2997 bool isASRProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("ASR");
2998 bool isIVDProd = GetString("Ecom:Product:Field.RegulatoryStatus.Value").Equals("IVD");
2999 if(!isASRProd && !isIVDProd) {
3000 @*
3001 ID Name
3002 12 Alexa Fluor® 594
3003 15 Biofunctional Antibodies - LEAF™ and Ultra-LEAF™
3004 37 Breaking Buffers
3005 10 Brilliant Violet™
3006 11 Brilliant Violet™ Mobile Application
3007 49 CD Molecule Chart
3008 26 CD Molecules
3009 27 CD Molecules Mobile Application
3010 25 Cell Markers
3011 52 Chemokines and Chemokine Receptors
3012 6 Custom Panel Construction
3013 50 Cytokines/Chemokines Mobile Application
3014 56 Direct-Blot ™
3015 57 Direct-Blot ™
3016 35 ELISA Kits and Sets
3017 36 ELISA Mobile Application
3018 38 Flow Cytometry Buffers
3019 8 Flow Cytometry Mobile Application
3020 4 Fluorescence Spectra Analyzer
3021 9 Fluorescence Spectra Analyzer Mobile Application
3022 5 Fluorophore Brightness Index
3023 7 Fluorophore Equivalency Tool
3024 19 GoInVivo™ Purified Bulk Antibodies
3025 20 Immune Checkpoints
3026 54 Integrin Explorer
3027 55 Integrin Explorer Mobile Application
3028 51 Interleukin Receptors
3029 21 LEAF™ - Low Endotoxin Azide Free
3030 31 LEGENDplex™
3031 33 LEGENDScreen™
3032 39 Live Cell/Dead Cell Discrimination
3033 42 MaxPar® Ready Purified Antibodies
3034 43 Microscopy
3035 44 MitoSpy™ Mitochrondrial Probes
3036 46 MojoSort™ Magnetic Cell Separation
3037 28 MojoSort™ Webinar
3038 3 Multicolor Panel Selector
3039 14 Multicolor Staining Guide
3040 16 PE/Dazzle™ 594 Conjugates
3041 34 Pipettes of Fury
3042 1 Quality Control
3043 29 Recombinant Proteins
3044 45 Streptavidin Conjugates
3045 13 Tandem Dyes
3046 32 The Ken Lau Show Episode 6 - LEGENDplex™
3047 17 The Tandem
3048 18 The Tandem Mobile Application
3049 61 True-Stain Monocyte Blocker
3050 41 Zombie Apocalypse
3051 40 Zombie Dyes App
3052
3053 str_productId
3054 str_productName
3055 str_productFormat
3056 productFieldType
3057 str_productOtherNames
3058 catalogFirstLetter
3059 *@
3060
3061 List<string> pages = new List<string>();
3062 pages.Add("1");
3063
3064 if(str_productFormat.Contains("BV")) {
3065 pages.Add("10");
3066 }
3067
3068 if(str_productFormat.Contains("A594")) {
3069 pages.Add("12");
3070 }
3071
3072 if(str_productFormat.Contains("/")) {
3073 pages.Add("13");
3074 pages.Add("14");
3075 }
3076
3077 if(str_productFormat.Contains("LEAF")) {
3078 pages.Add("15");
3079 }
3080
3081 if(str_productFormat.Contains("PE_DZL594")) {
3082 pages.Add("16");
3083 }
3084
3085 if(str_productFormat.Contains("GOINVIVO")) {
3086 pages.Add("19");
3087 pages.Add("20");
3088 pages.Add("15");
3089 }
3090
3091 if(str_productFormat.Contains("MOJO")) {
3092 pages.Add("46");
3093 pages.Add("25");
3094 pages.Add("26");
3095 }
3096
3097 if(str_productFormat.Contains("RECOM")) {
3098 pages.Add("29");
3099 }
3100
3101 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("")){
3102 pages.Add("5");
3103 pages.Add("4");
3104 pages.Add("14");
3105 pages.Add("6");
3106 pages.Add("7");
3107 }
3108
3109 if(productType.Equals("LEGENDplex")) {
3110 pages.Add("31");
3111 }
3112
3113 if(productType.Equals("ELISAMAXLEGENDMAX")) {
3114 pages.Add("35");
3115 }
3116
3117 if(productType.Equals("LEGENDScreen")) {
3118 pages.Add("33");
3119 }
3120
3121 if(productType.Equals("BuffersSolutionsChemicals")) {
3122 pages.Add("38");
3123 }
3124
3125 if(str_productName.Contains("Zombie")) {
3126 pages.Add("39");
3127 }
3128
3129 if(str_productName.Contains("MaxPar")) {
3130 pages.Add("42");
3131 }
3132
3133 if(str_productName.Contains("MitoSpy")) {
3134 pages.Add("43");
3135 pages.Add("44");
3136 }
3137
3138 if(str_productName.Contains("Phalloidin")) {
3139 pages.Add("43");
3140 }
3141
3142 if(str_productName.Contains("Streptavidin")) {
3143 pages.Add("45");
3144 }
3145
3146 if(str_productFormat.Equals("BIOTIN")) {
3147 pages.Add("45");
3148 pages.Add("46");
3149 }
3150
3151 if(str_productName.Contains(" CD") && !str_productFormat.Contains("MOJO")) {
3152 pages.Add("49");
3153 }
3154
3155 if(Convert.ToInt32(catalogFirstLetter) == 5)
3156 {
3157 pages.Add("51");
3158 pages.Add("52");
3159 }
3160
3161 if(str_productOtherNames.ToUpper().Contains("INTEGRIN"))
3162 {
3163 pages.Add("54");
3164 }
3165
3166 if(str_productRegulatoryStatus.Equals("ASR"))
3167 {
3168 pages.Add("59");
3169 }
3170
3171 if(str_productFormat.Equals("FLEX_T"))
3172 {
3173 pages.Add("58");
3174 pages.Add("45");
3175 }
3176
3177 if(str_productFormat.Equals("APC_F750"))
3178 {
3179 pages.Add("60");
3180 }
3181
3182 if(str_productId.Equals("14598")){
3183 pages.Add("61");
3184 }
3185
3186 //var relatedPages = (List<Dictionary<string, string>>) Cache.Current.Get("productRelatedPagesCache_" + str_productId);
3187 /*if (relatedPages == null)
3188 {*/
3189 var relatedPages = GetRelatedPages(pages);
3190 //Cache.Current.Set("productRelatedPagesCache_" + str_productId, relatedPages, CacheItemPolicy.DefaultStoragePolicy);
3191 /*}*/
3192 countRelatedPages = relatedPages.Count;
3193
3194 string str_pathways = GetString("Ecom:Product:Field.Pathways.Value");
3195 Dictionary<string, string> pathwaysDict = new Dictionary<string, string>(){
3196 {"1","CD4 and CD8 T-Cell Lineage"},
3197 {"2","Apoptosis Through Death Receptors"},
3198 {"3","Gamma-Delta T cells"},
3199 {"4","Cyclins and Cell Cycle Regulation"},
3200 {"5","Hematopoiesis from Multipotent Stem Cell"},
3201 {"6","Hematopoiesis from Pluripotent Stem Cell"},
3202 {"8","TH1 Pathway (Cellular Immune Response)"},
3203 {"9","IL-2 Pathway"},
3204 {"10","JAK/STAT Pathway"},
3205 {"11","p38 Signaling"},
3206 {"12","TH17 Pathway"},
3207 {"13","TH2 Pathway (Humoral Immune Response)"},
3208 {"19","Agranulocyte Adhesion and Diapedesis"},
3209 {"20","14-3-3 Induced Intracellular Signaling"},
3210 {"21","Akt Signaling"},
3211 {"22","ATM Pathway"},
3212 {"23","BAFF in B-Cell Signaling"},
3213 {"24","B-Cell Receptor Pathway"},
3214 {"25","Caspase Cascade"},
3215 {"26","CD28 Signaling in T-Helper Cell"},
3216 {"27","CD40 Signaling"},
3217 {"28","Cellular Apoptosis Pathway"},
3218 {"29","Chemokine Signaling"},
3219 {"30","CTLA4 Signaling"},
3220 {"31","Cytokine Network"},
3221 {"32","EGF Pathway"},
3222 {"33","Embryonic Stem Cell Pluripotency in Mouse"},
3223 {"34","ErbB Family Pathway"},
3224 {"35","ERK Signaling"},
3225 {"36","FAK1 Pathway"},
3226 {"37","Fas Signaling"},
3227 {"38","GPCR Pathway"},
3228 {"39","GSK3 Signaling"},
3229 {"40","Human Embryonic Stem Cell Pluripotency"},
3230 {"41","ICos-ICosL Pathway in T-Helper Cell"},
3231 {"42","IL-1 Pathway"},
3232 {"43","IL-4 Pathway"},
3233 {"44","IL-6 Pathway"},
3234 {"45","IL-10 Pathway"},
3235 {"46","ILK Signaling"},
3236 {"47","Integrin Pathway"},
3237 {"48","Interferon Pathway"},
3238 {"49","ITK and TCR Signaling"},
3239 {"50","JNK Pathway"},
3240 {"51","Lymphotoxin-beta Receptor Pathway"},
3241 {"52","MAPK Signaling"},
3242 {"53","Mitotic Roles of Polo Like Kinase"},
3243 {"54","mTOR Pathway"},
3244 {"55","Nanog in Mammalian ESC Pluripotency"},
3245 {"56","NFAT Signaling and Lymphocyte Interactions"},
3246 {"57","NF-κB (p50/p65) Pathway"},
3247 {"58","Oct4 in Mammalian ESC Pluripotency"},
3248 {"59","PDGF Pathway"},
3249 {"60","PKC-θ Pathway"},
3250 {"61","PPAR Pathway"},
3251 {"62","PTEN Pathway"},
3252 {"63","Ras Pathway"},
3253 {"64","SOCS Pathway"},
3254 {"65","Sumo Pathway"},
3255 {"66","T-Cell Receptor Signaling"},
3256 {"67","TGF-β Pathway"},
3257 {"68","TNF Superfamily Pathway"},
3258 {"69","Toll-Like Receptors"},
3259 {"70","TRAIL Pathway"},
3260 {"71","TREM1 Pathway"},
3261 {"72","VEGF Pathway"},
3262 {"73","WNT Signaling"},
3263 {"74","p53 Signaling"},
3264 {"75","T Follicular Helper Cell Pathway"},
3265 {"76","Cancer Elimination"},
3266 {"78","Cancer Immunology - 3Es"},
3267 {"79","Cancer Recognition"},
3268 {"82","Cancer Recognition & Elimination"},
3269 {"83","MDSC-induced Immune Suppression"},
3270 {"84","Shedding MICA/B Antigens"},
3271 {"85","Stat3-mediated Tumor Escape"},
3272 {"86","Tregs in Tumor Escape"},
3273 {"88","Immunologic Networks 2011"},
3274 {"89","B cell Development and Activation"},
3275 {"90","Myeloid-Derived Suppressor Cells"},
3276 {"91","Regulatory T Cells"},
3277 {"92","Dendritic Cells"},
3278 {"93","Stem Cells and Development"},
3279 {"94","Cancer Immunoediting"},
3280 {"95","Chemokine Receptor Biology"},
3281 {"97","Th17 Biology"},
3282 {"98","Innate Immunity"},
3283 {"99","Mechanisims of Cell Death"},
3284 {"100","Dendritic Cell, Monocyte, and Macrophage Biology"},
3285 {"101","Neurodegeneration"},
3286 {"102","Innate Immune Signaling"},
3287 {"103","Neuroinflammation"},
3288 {"104","Autophagy"}
3289 };
3290
3291 string[] pathwaysList = str_pathways.Split(',');
3292 //var pathwaysData = GetPathways(productSpecificity);
3293
3294
3295 if(!string.IsNullOrWhiteSpace(str_pathways) || countRelatedPages > 0)
3296 {
3297 <div id="productRelatedPages" class="col-xs-12 col-sm-9 noPadding pull-right">
3298 <h2 class="col-xs-12 noPadding">
3299 <a href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedPages" name="4">@Translate("RelatedPagesPathways","Related Pages & Pathways")</a>
3300 </h2>
3301
3302 @SnippetStart("navigationAnchors")
3303 <li>
3304 <a class="anchor_4" href="@Pageview.SearchFriendlyUrl.ToString()#productRelatedPages">@Translate("RelatedPagesPathways","Related Pages & Pathways")</a>
3305 </li>
3306 @SnippetEnd("navigationAnchors")
3307
3308 @if(!string.IsNullOrWhiteSpace(str_pathways))
3309 {
3310 <div class="col-xs-6 noPaddingLeft">
3311 <h3>@Translate("Pathways","Pathways")</h3>
3312 <ul class="relatedPages relatedPathways col-xs-12 noPadding">
3313 @foreach (string thisPathway in pathwaysList)
3314 {
3315 string title = pathwaysDict[thisPathway];
3316 string pathwayID = thisPathway;
3317
3318 <li>
3319 <a href="http://www.biolegend.com/pop_pathway.php?id=@pathwayID" target="_blank">
3320 @title
3321 </a>
3322 </li>
3323 }
3324 </ul>
3325 </div>
3326 }
3327
3328 @if(countRelatedPages > 0)
3329 {
3330 <div class='col-xs-6 @(!string.IsNullOrWhiteSpace(str_pathways) ?"noPaddingRight":"noPaddingLeft")'>
3331 <h3>@Translate("Pages","Pages")</h3>
3332 <ul class="relatedPages col-xs-12 noPadding">
3333 @foreach (var row in relatedPages)
3334 {
3335 string link = (!String.IsNullOrWhiteSpace(row["Page"]) ? row["Page"] : row["LinkExt"]);
3336 string target = (link.Contains("http:") ? "target='_blank'" : "");
3337 string iconSrc = row["Icon_Source"].Replace(".png", "_PD.png").Replace(".jpg", "_PD.jpg");
3338 string itemName = row["Name"];
3339
3340 <li>
3341 <a href="@LocalizeLinksHTML(link)" @target>
3342 @if(!String.IsNullOrWhiteSpace(iconSrc))
3343 {
3344 <figure>
3345 <img width="20" height="20" src="@iconSrc" title="@itemName" alt="@itemName" />
3346 </figure>
3347 }
3348 @itemName
3349 </a>
3350 </li>
3351 }
3352 </ul>
3353 </div>
3354 }
3355 </div>
3356 }
3357 }
3358
3359 @functions
3360 {
3361 /* Get related pages */
3362 public static List<Dictionary<string, string>> GetRelatedPages(List<string> pages)
3363 {
3364 List<Dictionary<string, string>> relatedPages = new List<Dictionary<string, string>>();
3365
3366 using (var connection = Dynamicweb.Data.Database.CreateConnection())
3367 {
3368 using (var command = connection.CreateCommand())
3369 {
3370 command.CommandText = string.Format("SELECT Page,LinkExt,Icon_Source,Name from itemtype_relatedPages WHERE ID IN ({0})", string.Join(", ", pages));
3371
3372 using (var reader = command.ExecuteReader())
3373 {
3374 if (reader != null)
3375 {
3376 while (reader.Read())
3377 {
3378 Dictionary<string, string> relatedPagesProperties = new Dictionary<string, string>();
3379
3380 relatedPagesProperties.Add("Page", reader["Page"].ToString());
3381 relatedPagesProperties.Add("LinkExt", reader["LinkExt"].ToString());
3382 relatedPagesProperties.Add("Icon_Source", reader["Icon_Source"].ToString());
3383 relatedPagesProperties.Add("Name", reader["Name"].ToString());
3384 relatedPages.Add(relatedPagesProperties);
3385 }
3386 }
3387 }
3388 }
3389 }
3390
3391 return relatedPages;
3392 }
3393 }
3394 }
3395
3396 @if (otherFormatsProducts.Any() && !isASR && !isIVD)
3397 {
3398 var count = 0;
3399
3400 <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")'>
3401 <h2 class="col-xs-12 noPadding">
3402 @Translate("OtherFormats", "Other Formats")
3403 </h2>
3404
3405 @foreach (var prod in otherFormatsProducts.GroupBy(prod => prod.Name).Select(prod => prod.First()))
3406 {
3407 @(count != 0 ? ", " : "")@prod.Name
3408 count++;
3409 }
3410
3411 </div>
3412 }
3413
3414 <dl class='@(str_productId.Equals("10801") ? "col-xs-12" : "col-xs-12") noPadding pdfImagesContainer'>
3415 @if (lst_images.Any())
3416 {
3417 <h2 class="col-xs-12 noPadding">
3418 @Translate("ProductData", "Product Data")
3419 </h2>
3420 <div class="col-xs-12">
3421
3422 @if (str_currentPageId != printPage)
3423 {
3424 foreach (var image1 in lst_images.OrderBy(x => x.Item2).ToList().Take(1))
3425 {
3426 string str_getimageImg = GetImage(image1.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90);
3427
3428 <div class="figure">
3429 <dt class="col-xs-8 noPaddingLeft textCenter">
3430 <img class="maxWidth" src="@str_getimageImg" alt="@image1.Item2.ToString()" title="@image1.Item2.ToString()"/>
3431 </dt>
3432 <dd class="col-xs-4 noPaddingRight">
3433 @image1.Item3.ToString()
3434 </dd>
3435 </div>
3436 }
3437
3438 <div id="imgThumbs" class="col-xs-3 noPadding pull-right">
3439 <ul>
3440 @foreach (var image in lst_images.OrderBy(x => x.Item2).ToList())
3441 {
3442 if (!String.IsNullOrWhiteSpace(image.Item1.ToString()))
3443 {
3444 var str_getimageImg = GetImage(image.Item1.ToString(), 0, 105, 0, 105, 0, 105, "jpg", 90, 5);
3445 var str_getimageDataImg = GetImage(image.Item1.ToString(), 240, 300, 0, 0, 0, 0, "jpg", 90);
3446 var liClass = lst_images.IndexOf(image) == 0 ? "active" : "";
3447
3448 <li class="@liClass">
3449 <div class="figure">
3450 <dt class="col-xs-8 noPaddingLeft textCenter">
3451 <img class="maxWidth" data-image="@str_getimageDataImg" src="@str_getimageImg" title="@image.Item2.ToString()" alt="@image.Item2.ToString()"/>
3452 </dt>
3453 @if (!string.IsNullOrWhiteSpace(image.Item3.ToString()))
3454 {
3455 <dd class="col-xs-4 noPaddingRight">
3456 @image.Item3.ToString()
3457 </dd>
3458 }
3459 </div>
3460 </li>
3461 }
3462 }
3463 </ul>
3464 </div>
3465 }
3466 </div>
3467
3468 if (str_currentPageId == printPage)
3469 {
3470 foreach (var image in lst_images.OrderBy(x => x.Item2).ToList())
3471 {
3472 if (!String.IsNullOrWhiteSpace(image.Item1.ToString()))
3473 {
3474 string str_getimageDataImg = GetImage(image.Item1.ToString(), 500, 300, 0, 0, 0, 0, "jpg", 90);
3475 <div class="col-xs-12 figure">
3476 <dt class="col-xs-8 noPaddingLeft textCenter">
3477 <img class="maxWidth" src="@str_getimageDataImg" title="@image.Item2" alt="@image.Item2"/>
3478 </dt>
3479 @if (!string.IsNullOrWhiteSpace(image.Item3.ToString()))
3480 {
3481 <dd class="col-xs-4 noPaddingRight">
3482 @image.Item3
3483 </dd>
3484 }
3485 </div>
3486 }
3487 }
3488 }
3489 }
3490
3491 @if(str_currentPageId == printPage && (isIVD || isASR))
3492 {
3493 <figure>
3494 <img class="glossary" src="@cdnStaticDomain/Files/Images/media_assets/products/Glossary-table-draft-V2.png" />
3495 </figure>
3496 }
3497 </dl>
3498 </div>
3499 </div>
3500
3501 <dl class="footerStatement col-xs-12">
3502 @CalculateFooterDisclaimer(str_footerDisclaimer,str_productRegulatoryStatus,str_productFormat);
3503
3504
3505 @itemArea["ProductFooterWarning"].ToString()
3506 </dl>
3507
3508 @SnippetStart("productName")
3509 @: @str_productName @(previousCompany.Any() && !isIVD && !isASR && !previouslyConcatName.Equals("") ? String.Format("({0})", previouslyConcatName) : "") @SnippetEnd("productName")
3510 }
3511 }
3512 catch (Exception ex)
3513 {
3514 <div id="errorMessagePDP" data-exception="@System.Web.HttpUtility.HtmlEncode(ex)">
3515 @Translate("errorRenderingTemplate", "There was an error rendering the product detail page. Please contact technical support.")
3516 </div>
3517 }
3518
3519 @functions {
3520
3521 public string GetApplicationsLabel(string applicationValues, Dictionary<string, string> applicationsData)
3522 {
3523 applicationValues = applicationValues.Replace("\"", "").Replace(",", ", ");
3524 return applicationValues;
3525 }
3526
3527 public Dictionary<string, string> GetFilterData(string fieldID)
3528 {
3529 //HttpContext.Current.Cache.Remove("applicationsDataCache_" + fieldID);
3530 var applicationCache = HttpContext.Current.Cache["applicationsDataCache_" + fieldID];
3531 var applicationsData = applicationCache as Dictionary<string, string> ?? new Dictionary<string, string>();
3532 if (applicationCache == null)
3533 {
3534 using (var connection = Dynamicweb.Data.Database.CreateConnection())
3535 {
3536 using (var command = connection.CreateCommand())
3537 {
3538 command.CommandText = "SELECT FieldOptionValue,FieldOptionName FROM EcomFieldOption WHERE FieldOptionFieldID=''+@fieldID+'' ORDER BY FieldOptionValue";
3539 command.Parameters.Add(new System.Data.SqlClient.SqlParameter()
3540 {
3541 ParameterName = "fieldID",
3542 SqlDbType = System.Data.SqlDbType.NVarChar,
3543 Value = fieldID
3544 });
3545 using (var reader = command.ExecuteReader())
3546 {
3547 if (reader != null)
3548 {
3549 while (reader.Read())
3550 {
3551 applicationsData.Add(reader["FieldOptionValue"].ToString(), reader["FieldOptionName"].ToString());
3552 }
3553 }
3554 }
3555 }
3556 }
3557 HttpContext.Current.Cache.Insert("applicationsDataCache_" + fieldID, applicationsData, null, DateTime.Now.AddMinutes(5), System.Web.Caching.Cache.NoSlidingExpiration);
3558 }
3559 return applicationsData;
3560 }
3561 }