Maskinuthyrning
Inga produkter valda

Din orderlista är tom

Error compiling template "Designs/SkanskaMaskin/UserManagement/List/customerCentersTest.cshtml"
Line 11: Type expected

1 @using Dynamicweb.Modules.UserManagement; 2 @using Dynamicweb.Rendering 3 @using Softgear.SkanskaMaskin.Data.Business 4 5 @{ 6 var hbh = new HandleBarsHelper(); 7 var storeListData = new List<object>(); 8 var attributeListData = new List<object>(); 9 int idCounter = 0; 10 string detailLink; 11 foreach (RazorTemplateBase<>.LoopItem user in GetLoop("SelectedUsers")) { 12 13 detailLink = String.Format("default.aspx?id=5&ObjectID={0}&Action=Detail", user.GetString("UserManagement:User.ID")); 14 attributeListData = new List<object>(); 15 String userid = user.GetString("UserManagement:User.ID"); 16 User u = Dynamicweb.Modules.UserManagement.User.GetUserByID(Convert.ToInt16(userid)); 17 18 var positionData = new { 19 lng = u.GeoLocationLng, 20 lat = u.GeoLocationLat 21 }; 22 23 attributeListData.Add(new { 24 heading = @Translate("Header_Kundcenter_Besoksadress", "Besöksadress"), 25 text = u.Address 26 }); 27 28 attributeListData.Add(new { 29 heading = @Translate("Header_Kundcenter_Telefon", "Telefon"), 30 text = u.Phone 31 }); 32 33 attributeListData.Add(new { 34 heading = @Translate("Header_Kundcenter_Oppettider", "Öppettider"), 35 text = @user.GetString("UserManagement:User.Item.Opening_Hours") 36 }); 37 38 attributeListData.Add(new { 39 heading = @Translate("Header_Kundcenter_Epost", "E-post"), 40 text = u.Email 41 }); 42 43 storeListData.Add(new { 44 href = detailLink, 45 hrefBack = "backurl", 46 textBack = @Translate("BACK", "Tillbaka"), 47 textPage = @Translate("Besok_kundcenter_sida", "Besök kundcentrets sida"), 48 place = @user.GetValue("UserManagement:User.Name"), 49 heading = String.Format("Maskinuthyrning kundcenter {0}", user.GetValue("UserManagement:User.Name")), 50 position = positionData, 51 id = idCounter, 52 attributes = attributeListData.ToArray(), 53 54 }); 55 56 idCounter++; 57 } 58 //Dynamicweb.Frontend.PageView pv = Dynamicweb.Frontend.PageView.GetPageview(); 59 60 //Dynamicweb.Frontend.PageView.Current().Page.PropertyItem["Static"]; 61 62 var customerCenterJson = new { 63 zoom = 3, 64 zoomEnhanced = 12, 65 centerLat = 59.78189159845687, 66 centerLng = 17.7264404296875, 67 isStatic = Convert.ToBoolean(Dynamicweb.Frontend.PageView.Current().Page.PropertyItem["Static"]), 68 storeList = storeListData.ToArray(), 69 intro = new { 70 heading = Dynamicweb.Frontend.PageView.Current().Page.PropertyItem["Header"], //pv.Page.PropertyItem["Header"], 71 text = Dynamicweb.Frontend.PageView.Current().Page.PropertyItem["Text"] //pv.Page.PropertyItem["Text"] 72 } 73 }; 74 75 76 var partialPathList = new List<string> { "find/store-info.hbs" }; 77 hbh.registerHelper2("json", "storeList"); 78 @hbh.render("find/index.hbs", partialPathList, customerCenterJson); 79 80 81 82 83 } 84 85 86

C:

Din orderlista är tom

apageCOunt: 3 index: 2