\n
Common Maintenance Parts
\n");
foreach(var product in commonProducts)
{
WriteLiteral("
(product.Name.SanitizeFileName()
, 18829), false)
, Tuple.Create(Tuple.Create("", 18861), Tuple.Create("/", 18861), true)
, Tuple.Create(Tuple.Create("", 18862), Tuple.Create(product.SKU
, 18862), false)
);
WriteLiteral(">");
Write(product.SKU);
WriteLiteral(" - ");
Write(product.Name);
WriteLiteral("\n");
}
WriteLiteral(" \n");
}
WriteLiteral(" \n");
if(showComplete)
{
WriteLiteral("
\n
Complete Parts Lists
\n");
foreach(var cat in completeParts)
{
if (cat.MainPhotoPath == null)
{
cat.MainPhotoPath = "";
}
WriteLiteral("
\n
(cat.Name.SanitizeFileName()
, 19328), false)
, Tuple.Create(Tuple.Create("", 19356), Tuple.Create("/", 19356), true)
, Tuple.Create(Tuple.Create("", 19357), Tuple.Create(cat.Id
, 19357), false)
);
WriteLiteral("> \n");
WriteLiteral(" ");
Write(Html.CategoryImage(cat, new { @width = "119", @height="83", @thumbnail="119x83"}));
WriteLiteral(" (cat.Name.SanitizeFileName()
, 19490), false)
, Tuple.Create(Tuple.Create("", 19518), Tuple.Create("/", 19518), true)
, Tuple.Create(Tuple.Create("", 19519), Tuple.Create(cat.Id
, 19519), false)
);
WriteLiteral(">");
Write(cat.Name);
WriteLiteral("\n
\n \n");
}
WriteLiteral(" \n");
}
WriteLiteral(" \n \n
Download Parts Documentation\n
\n");
if(partDocumentation.Any()){
WriteLiteral(" \n\n \n Document Name\n | Publication Date\n |
\n \n");
}
WriteLiteral(" \n");
foreach(var doc in partDocumentation)
{
var pubDateString = doc.Metadata.ContainsKey("PublicationDate") ? doc.Metadata["PublicationDate"].ToString().Trim() : null;
var pubDate = String.IsNullOrEmpty(pubDateString) ? "" : DateTime.Parse(pubDateString).ToShortDateString();
WriteLiteral(" \n (ResolveUrl("~/")
, 20564), false)
, Tuple.Create(Tuple.Create("", 20566), Tuple.Create(doc.FullName
, 20566), false)
);
WriteLiteral(">");
Write(doc.DocumentTitle != null ? doc.DocumentTitle : doc.FullName);
WriteLiteral("\n ");
Write(pubDate);
WriteLiteral("\n | |
\n");
}
WriteLiteral(" ");
if (!partDocumentation.Any())
{
WriteLiteral(" \n No matching records found\n |
\n");
}
WriteLiteral(" \n \n Superseded Parts List\n
\n");
if(listings.Any()){
WriteLiteral(" \n\n \n Document Name\n | Publication Date\n |
\n \n");
}
WriteLiteral(" \n");
foreach(var doc in listings)
{
var pubDateString = doc.Metadata.ContainsKey("PublicationDate") ? doc.Metadata["PublicationDate"].ToString().Trim() : null;
var pubDate = String.IsNullOrEmpty(pubDateString) ? "" : DateTime.Parse(pubDateString).ToShortDateString();
WriteLiteral(" \n (ResolveUrl("~/")
, 21728), false)
, Tuple.Create(Tuple.Create("", 21730), Tuple.Create(doc.FullName
, 21730), false)
);
WriteLiteral(">");
Write(doc.DocumentTitle != null ? doc.DocumentTitle : doc.FullName);
WriteLiteral("\n ");
Write(pubDate);
WriteLiteral("\n | |
\n");
}
WriteLiteral(" ");
if (!listings.Any())
{
WriteLiteral(" \n No matching records found\n |
\n");
}
WriteLiteral(" \n \n\n \n \n