Exception in template (NemlejeV2/Tenancy2.cshtml): System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at CompiledRazorTemplates.Dynamic.ffddccedfbed.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.Output()
@using System.Globalization @using System.Security.Cryptography.X509Certificates @using Dynamicweb @using Dynamicweb.Content.Items @using Dynamicweb.Modules.Common; @using System.Web; @using System.Net; @using System.IO; @using System.Collections; <!--MODULE--> <div class="container-fluid apartment-detail"> @{ LoopItem tenancyItem = GetLoop("Tenancies").First(); var departmentLink = Pageview.Area.Item["DepartmentPageID"] + "&amp;moduleAction=displayDepartment&amp;departmentNo=" + @tenancyItem.GetValue("DepartmentNo") + "&amp;companyNo=" + @tenancyItem.GetValue("CompanyNo"); var printUrl = ""; var nfi = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone(); nfi.NumberGroupSeparator = "."; var test = ""; var tooltipTxt = Pageview.Area.Item["TenancyTooltip"]; } @functions{ public struct FileItem { public string Path; public string Filename; public string FileType; public bool Selected; } public struct FactItem { public string Text; public string Heading; public string MouseOver; public string IconClass; } } @{ Hashtable texts = new Hashtable(); foreach (LoopItem t in GetLoop("Texts")) { texts.Add(t.GetString("Headline"), t.GetString("Text")); } Hashtable premises = new Hashtable(); foreach (LoopItem t in tenancyItem.GetLoop("Premises")) { texts.Add(t.GetString("Text"), t.GetString("PremisNo")); } List<FactItem> facts = new List<FactItem>(); facts.Add(new FactItem() { Heading = "Antal værelser", Text = tenancyItem.GetString("Rooms"), MouseOver = "", IconClass = "verelser" }); facts.Add(new FactItem() { Heading = "Størrelse", Text = tenancyItem.GetString("TenancySqm") + " m2", MouseOver = "", IconClass = "storrelser" }); facts.Add(new FactItem() { Heading = "Lejemålstype", Text = tenancyItem.GetString("TenancyTypeName") , MouseOver = "", IconClass = "house" }); var petsallow = ""; if (tenancyItem.GetString("Pets") != "0") { petsallow = "Ja"; } else { petsallow = "Nej"; } if (texts.ContainsKey("Husdyr")) { facts.Add(new FactItem() { Heading = "Husdyr", Text = petsallow, MouseOver = texts["Husdyr"].ToString(), IconClass = "pets" }); } else { facts.Add(new FactItem() { Heading = "Husdyr", Text = petsallow, MouseOver = "Ingen yderligere info om ret til husdyrhold", IconClass = "pets" }); } var balcony = "Nej"; var balconyText = ""; if(texts.ContainsKey("Altan")){ balcony="Ja"; // balconyText=texts["Altan"].ToString(); } facts.Add(new FactItem() { Heading = "Altan", Text = balcony, MouseOver = balconyText, IconClass = "altan" }); var garden = "Nej"; if (texts.ContainsKey("Have")) { garden = "Ja"; } facts.Add(new FactItem() { Heading = "Have", Text = garden, MouseOver = "", IconClass = "garden" }); var oneFloor = premises.ContainsKey("1 plan"); var shareable = premises.ContainsKey("Delebolig"); var listOfFiles = new List<FileItem>(); foreach (LoopItem item in tenancyItem.GetLoop("Files")) { if (item.GetValue("TypeName").ToString() == "tenancyPictures") { var anItem = new FileItem(); anItem.Filename = item.GetValue("FileName").ToString(); anItem.Path = item.GetValue("Path").ToString(); anItem.FileType = item.GetValue("TypeName").ToString(); listOfFiles.Add(anItem); } } if (listOfFiles.Count == 0) { foreach (LoopItem item in tenancyItem.GetLoop("Files")) { if (item.GetValue("TypeName").ToString() == "departmentPictures") { var anItem = new FileItem(); anItem.Filename = item.GetValue("FileName").ToString(); anItem.Path = item.GetValue("Path").ToString(); anItem.FileType = item.GetValue("TypeName").ToString(); listOfFiles.Add(anItem); } } } if (listOfFiles.Count == 0) { foreach (LoopItem item in tenancyItem.GetLoop("Files")) { if (@item.GetValue("TenancySelect").ToString() == "True") { var anItem = new FileItem(); anItem.Filename = item.GetValue("FileName").ToString(); anItem.Path = item.GetValue("Path").ToString(); anItem.FileType = item.GetValue("TypeName").ToString(); listOfFiles.Add(anItem); } } } <div id="carousel-example-generic" class="carousel slide container" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> @{ var counter = -1; } @foreach (FileItem item in listOfFiles) { counter++; var active = ""; if (counter == 0) { active = "active"; } <li data-target="#carousel-example-generic" data-slide-to="@counter" class="@active"></li> } @{ if (counter < 1) { <li data-target="#carousel-example-generic" data-slide-to="0" class="inactive">></li> } } </ol> <div class="carousel-inner" role="listbox"> @{ counter = -1;} @foreach (FileItem item in listOfFiles) { var extralargeImageSliderUrl = "/admin/public/getImage.ashx?Image=" + WebUtility.UrlEncode(item.Path) + "/" + item.Filename + "&amp;AlternativeImage=/files/templates/designs/bleau-solutionset/img/NoApartmentPicture.jpg&amp;Resolution=75&amp;Compression=70&amp;Width=2048&amp;Height=600"; counter++; var active = ""; if (counter == 0) { active = "active"; } <div class="item @active"> <div class="carousel-img" style="background: url('@extralargeImageSliderUrl') center center no-repeat"></div> </div> } @{ if (counter == -1) { var imgLink = "/admin/public/getImage.ashx?Image=files/templates/designs/bleau-solutionset/img/NoApartmentPicture.jpg&amp;AlternativeImage=/files/templates/designs/bleau-solutionset/img/NoApartmentPicture.jpg&amp;Resolution=75&amp;Compression=70&amp;Width=2048&amp;Height=600"; <div class="item active"> <div class="carousel-img" style="background: url('@imgLink') center center no-repeat"></div> </div> } } </div> @{ if (counter >= 1) { <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> } } <div class="app-info"> <p class="ellipsis">@tenancyItem.GetString("Address")</p> <p class="ellipsis">@tenancyItem.GetString("LocalCity")</p> <p class="ellipsis">@tenancyItem.GetString("ZipCity")</p> </div> </div> } <div class="facts-apartment"> <div class="container stickem-container"> <div class="col-sm-12 col-md-4 col-md-push-8 apart-info"> <div class=" apartment-info stickem"> @{ var onlyone = true; //var chosenTenancies1 = new[] { "2201", "2203", "2204", "2206", "2207", "2210", "2211", "2212", "2213", "2214", "2215", "2216", "2218" };/// // var chosent = tenancyItem.GetString("TenancyNo"); @*foreach(var one in chosenTenancies1) { if(chosent =="2201") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 7.243,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.943,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2203") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.645,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.345,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2204") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 7.243,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.943,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2206") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.645,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.345,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2207") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.928,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.628,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2210") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.392,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.092,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2211") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 7.086,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.786,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2212") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.771,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.471,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2213") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.771,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.471,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2214") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.771,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.471,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2215") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.613,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.313,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2216") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.771,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 5.471,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; } else if(chosent =="2218") { <div class="table"> <div class="table-row large"> <div class="row-col-left"> Husleje <span class="small">pr. mdr.</span> <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. 6.298,00</div> </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> <div class="table-row small"> <div class="row-col-left">Husleje</div> <div class="row-col-right">Kr. 4.998,00</div> </div> <div class="table-row small"> <div class="row-col-left">A conto varme</div> <div class="row-col-right">Kr. 900</div> </div> <div class="table-row small"> <div class="row-col-left">A conto vand</div> <div class="row-col-right">Kr. 400</div> </div> <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> </div> break; }*@ //else //{ ///////////// not in the list <div class="table"> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("RentGross") > 0) { <div class="row-col-left">Husleje <span class="small">pr. mdr. </span> @*----------tooltip----- in the bottom of this file , there is the modal for it -------*@ <span href="" data-toggle="modal" data-target="#tenancyIconInfoModal" class="glyphicon glyphicon-info-sign varde-custom-info-icon-pop-up" aria-hidden="true" title="Se mere"></span> </div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("RentGross").ToString("N0", nfi)</div> } } </div> <div class="table-row large"> @{ if (@tenancyItem.GetDouble("Deposit") > 0) { <div class="row-col-left">Indskud</div> <div class="row-col-right">Kr. @tenancyItem.GetDouble("Deposit").ToString("N0", nfi)</div> } } </div> @foreach (LoopItem item in tenancyItem.GetLoop("Rents")) { <div class="table-row small"> @{ if (@item.GetDouble("Amount") > 0) { <div class="row-col-left">@item.GetValue("Name")</div> <div class="row-col-right">Kr. @item.GetDouble("Amount").ToString("N0", nfi)</div> } } </div> } <signup data-available="@tenancyItem.GetValue("InternetAvailable")" data-zipcity="@tenancyItem.GetValue("ZipCity")" data-tenancytype="@tenancyItem.GetValue("TenancyType")" data-companyno="@tenancyItem.GetValue("CompanyNo")" data-departmentno="@tenancyItem.GetValue("DepartmentNo")" data-tenancyno="@tenancyItem.GetValue("TenancyNo")" data-userstatus="@tenancyItem.GetValue("UserStatus")" data-updatemethod="reload" /> @* <div class="table-row green-bth ng-isolate-scope" data-updatemethod="reload" data-userstatus="@GetValue("EGTenancy.UserStatus")" data-tenancyno="@GetValue("EGTenancy.Tenancy.TenancyNo")" data-departmentno="@GetValue("EGDepartment.Department.DepartmentNo")" data-companyno="@GetValue("EGDepartment.CompanyNo")" data-tenancytype="@GetValue("EGTenancy.Tenancy.TenancyType")" data-zipcity="@GetValue("EGDepartment.Department.ZipCity")"> <a class="ng-binding" ng-click="showSignup()" title="Ja tak, skriv mig op" href="#" >Ja tak, skriv mig op</a> </div>*@ </div> // break; /////////////// // } } } </div> </div> <div class="col-sm-12 col-md-8 apartment-fakta"> <h3>Fakta</h3> <ul class="clearfix"> @{ foreach (FactItem factItem in facts) { <li> <div class="icon"><span class="@factItem.IconClass"></span></div> <div class="left-txt"> <div class="fakta-sm-txt">@factItem.Heading</div> @if (factItem.MouseOver != "") { <div class="fakta-lg-txt pointer">@factItem.Text<i class="show-tooltip icon-question-sign"></i><span class="tooltip-txt">@factItem.MouseOver<strong class="arrow-down">&nbsp;</strong><i class="close-tooltip icon-remove-sign"></i></span></div> } else { <div class="fakta-lg-txt">@factItem.Text</div> } </div> </li> } } </ul> <div class="facts-link white-btn"> <a href= "@departmentLink" title="Vis afdelingen">Vis afdelingen</a> <div class="modal fade" id="photo-modal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <a href="#" class="modal-close" data-dismiss="modal">&nbsp;</a> <div class="modal-body"> <div class="blueprint-gallery"> <ul class="bleuprint-list clearfix"> @{ var count = 0; foreach (LoopItem file in tenancyItem.GetLoop("Files")) { if (@file.GetValue("TypeName").ToString() == "bluePrint") { printUrl = @file.GetValue("Path") + "/" + @file.GetValue("FileName"); } if (@file.GetValue("TypeName").ToString() == "bluePrint"){ <li> <img src="/admin/public/getImage.ashx?Image=@file.GetString("Path")/@file.GetString("FileName")&amp;Resolution=75&amp;Compression=70&amp;Width=500&amp;Height=auto" /> </li> count++; } } if (count == 0){ <li> <h4>There's no blueprints for this apartment.</h4> </li> } } </ul> </div> </div> </div> </div> </div> @if(count != 0){ <a title="Vis plantegning" data-toggle="modal" data-target="#photo-modal">Vis plantegning</a> } </div> </div> </div> </div> <div class="points-of-interest"> <div class="container"> <div class="col-md-8 place-google"> <h3>Lejemålets afstand til ...</h3> <div class="google-wrapper"> @{ // var coordinate = GetSstring(" Tenancies").FirstOrDefault(); if (tenancyItem.GetString("Coordinate.Lat") != "" && tenancyItem.GetString("Coordinate.Lat") != "") { HttpContext.Current.Items["lat"] = tenancyItem.GetString("Coordinate.Lat").Replace(",", "."); HttpContext.Current.Items["lng"] = tenancyItem.GetString("Coordinate.Lng").Replace(",", "."); @RenderItemList(new { ItemType = "Points_of_interest", ListSourceType = "Page", ListSourcePage = Base.ChkInteger(Pageview.Area.Item["PointsOfInterestPageID"].ToString().Replace("Default.aspx?ID=", "")), ItemFieldsList = "*", ListPageSize = 6, ListOrderBy = "Created", ListTemplate = "NemLejeV2/poi2.cshtml", IncludeParagraphItems = true }); var lat = GetString("EGTenancy.Coordinate.Lat").Replace(",", "."); var lng = GetString("EGTenancy.Coordinate.Lng").Replace(",", "."); } } </div> </div> </div> <div id="dummyMap"></div> </div> </div> @{ var customToolTipText = "Bemærk, at alle huslejepriser mv. er vejledende - og boligerne kan indeholde individuelle forbedringer, som ikke er anført. Der kan forekomme opkrævning af forbrug fra andre leverandører, hvis det mangler på oversigten."; } <!-- Modal -------- icon info ----------------------------- --> <div class="modal fade" id="tenancyIconInfoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content modal-content-custom-varde"> <div class="modal-header modal-header-custom-varde"> <button type="button" class="close close-custom-varde" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4>Information</h4> </div> <div id="infoMessage" class="modal-body"> @customToolTipText </div> <div class="modal-footer modal-footer-custom-varde"> </div> </div> </div> </div>