Line 1: #pragma checksum "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "2DA8559B8F075AC5CE31A2C765552B3D32C3A6F3"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Routing;
Line 27: using System.Web.Optimization;
Line 28: using System.Data.Linq;
Line 29: using MPS_CMF;
Line 30: using MPS_CMF.Public.Controllers;
Line 31:
Line 32:
Line 33: public class _Page_Areas_Public_Views_Locations_Summary_cshtml : System.Web.Mvc.WebViewPage<OfficeOpenXml.ExcelRange> {
Line 34:
Line 35: #line hidden
Line 36:
Line 37: public _Page_Areas_Public_Views_Locations_Summary_cshtml() {
Line 38: }
Line 39:
Line 40: protected ASP.global_asax ApplicationInstance {
Line 41: get {
Line 42: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 43: }
Line 44: }
Line 45:
Line 46: public override void Execute() {
Line 47:
Line 48: #line 2 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 49: ViewBag.Title = "Locations";
Line 50:
Line 51: #line default
Line 52: #line hidden
Line 53: WriteLiteral("\r\n\r\n");
Line 54:
Line 55: DefineSection("scripts", () => {
Line 56:
Line 57: WriteLiteral("\r\n <script");
Line 58:
Line 59: WriteLiteral(" type=\"text/javascript\"");
Line 60:
Line 61: WriteLiteral(">\r\n var map = new google.maps.Map(document.getElementById(\"mapLocations\")," +
Line 62: " { center: new google.maps.LatLng(44.986656, -93.258133), zoom: 11 });\r\n\r\n");
Line 63:
Line 64:
Line 65: #line 8 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 66:
Line 67:
Line 68: #line default
Line 69: #line hidden
Line 70:
Line 71: #line 8 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 72:
Line 73: int rowx = 2; // first row is headers
Line 74: while (Model[rowx, 1].Value != null) {
Line 75: bool shouldDisplay = false;
Line 76: if (MvcApplication.CurrentSite.Identifier == "abe" && Model[rowx, 7].Text == "Y") { shouldDisplay = true; }
Line 77: if (MvcApplication.CurrentSite.Identifier == "minneapolis-kids" && Model[rowx, 9].Text == "Y") { shouldDisplay = true; }
Line 78: if (MvcApplication.CurrentSite.Identifier == "youth-and-adult" && Model[rowx, 8].Text == "Y") { shouldDisplay = true; }
Line 79:
Line 80: if (shouldDisplay) {
Line 81: GoogleMaps.LocationServices.MapPoint mappoint = Utility.GetMapPoint(Model[rowx, 2].Text + " Minneapolis MN " + Model[rowx, 3].Text + " ");
Line 82:
Line 83:
Line 84: #line default
Line 85: #line hidden
Line 86: WriteLiteral(" ");
Line 87:
Line 88: WriteLiteral(" var latlon = new google.maps.LatLng(");
Line 89:
Line 90:
Line 91: #line 18 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 92: Write(mappoint.Latitude);
Line 93:
Line 94:
Line 95: #line default
Line 96: #line hidden
Line 97: WriteLiteral(", ");
Line 98:
Line 99:
Line 100: #line 18 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 101: Write(mappoint.Longitude);
Line 102:
Line 103:
Line 104: #line default
Line 105: #line hidden
Line 106: WriteLiteral(");\r\n");
Line 107:
Line 108: WriteLiteral(" ");
Line 109:
Line 110: WriteLiteral(" var marker = new google.maps.Marker({ position: latlon, map: map, title: \"");
Line 111:
Line 112:
Line 113: #line 19 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 114: Write(Model[rowx, 1].Text);
Line 115:
Line 116:
Line 117: #line default
Line 118: #line hidden
Line 119: WriteLiteral("\", label: \"");
Line 120:
Line 121:
Line 122: #line 19 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 123: Write(Model[rowx, 1].Text.Substring(0,1));
Line 124:
Line 125:
Line 126: #line default
Line 127: #line hidden
Line 128: WriteLiteral("\" });\r\n");
Line 129:
Line 130: WriteLiteral(" ");
Line 131:
Line 132: WriteLiteral(" marker.addListener(\"click\", function (a) { window.location=\"#location_");
Line 133:
Line 134:
Line 135: #line 20 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 136: Write(rowx);
Line 137:
Line 138:
Line 139: #line default
Line 140: #line hidden
Line 141: WriteLiteral("\"; });\r\n");
Line 142:
Line 143:
Line 144: #line 21 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 145: }
Line 146:
Line 147: rowx++;
Line 148: }
Line 149:
Line 150:
Line 151: #line default
Line 152: #line hidden
Line 153: WriteLiteral("\r\n </script>\r\n");
Line 154:
Line 155: });
Line 156:
Line 157: WriteLiteral("\r\n<div");
Line 158:
Line 159: WriteLiteral(" class=\"row\"");
Line 160:
Line 161: WriteLiteral(">\r\n <div");
Line 162:
Line 163: WriteLiteral(" class=\"col-sm-6 col-md-5\"");
Line 164:
Line 165: WriteLiteral(">\r\n");
Line 166:
Line 167:
Line 168: #line 31 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 169:
Line 170:
Line 171: #line default
Line 172: #line hidden
Line 173:
Line 174: #line 31 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 175:
Line 176: int row = 2; // first row is headers
Line 177: while (Model[row, 1].Value != null) {
Line 178: bool shouldDisplay = false;
Line 179: if (MvcApplication.CurrentSite.Identifier == "abe" && Model[row, 7].Text == "Y") { shouldDisplay = true; }
Line 180: if (MvcApplication.CurrentSite.Identifier == "minneapolis-kids" && Model[row, 9].Text == "Y") { shouldDisplay = true; }
Line 181: if (MvcApplication.CurrentSite.Identifier == "youth-and-adult" && Model[row, 8].Text == "Y") { shouldDisplay = true; }
Line 182:
Line 183: if (shouldDisplay) {
Line 184:
Line 185:
Line 186: #line default
Line 187: #line hidden
Line 188: WriteLiteral(" <p>\r\n <a");
Line 189:
Line 190: WriteAttribute("name", Tuple.Create(" name=\"", 2214), Tuple.Create("\"", 2234)
Line 191: , Tuple.Create(Tuple.Create("", 2221), Tuple.Create("location_", 2221), true)
Line 192:
Line 193: #line 41 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 194: , Tuple.Create(Tuple.Create("", 2230), Tuple.Create<System.Object, System.Int32>(row
Line 195:
Line 196: #line default
Line 197: #line hidden
Line 198: , 2230), false)
Line 199: );
Line 200:
Line 201: WriteLiteral(">");
Line 202:
Line 203:
Line 204: #line 41 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 205: Write(Model[row, 1].Text);
Line 206:
Line 207:
Line 208: #line default
Line 209: #line hidden
Line 210: WriteLiteral("</a><br />\r\n");
Line 211:
Line 212: WriteLiteral(" ");
Line 213:
Line 214:
Line 215: #line 42 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 216: Write(Model[row, 2].Text);
Line 217:
Line 218:
Line 219: #line default
Line 220: #line hidden
Line 221: WriteLiteral("<br />\r\n Minneapolis, MN ");
Line 222:
Line 223:
Line 224: #line 43 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 225: Write(Model[row, 3].Text);
Line 226:
Line 227:
Line 228: #line default
Line 229: #line hidden
Line 230: WriteLiteral("<br />\r\n");
Line 231:
Line 232: WriteLiteral(" ");
Line 233:
Line 234:
Line 235: #line 44 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 236: Write(Model[row, 4].Text);
Line 237:
Line 238:
Line 239: #line default
Line 240: #line hidden
Line 241: WriteLiteral("<br />\r\n <a");
Line 242:
Line 243: WriteAttribute("href", Tuple.Create(" href=\"", 2462), Tuple.Create("\"", 2495)
Line 244: , Tuple.Create(Tuple.Create("", 2469), Tuple.Create("mailto:", 2469), true)
Line 245:
Line 246: #line 45 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 247: , Tuple.Create(Tuple.Create("", 2476), Tuple.Create<System.Object, System.Int32>(Model[row, 6].Text
Line 248:
Line 249: #line default
Line 250: #line hidden
Line 251: , 2476), false)
Line 252: );
Line 253:
Line 254: WriteLiteral(">");
Line 255:
Line 256:
Line 257: #line 45 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 258: Write(Model[row, 5].Text);
Line 259:
Line 260:
Line 261: #line default
Line 262: #line hidden
Line 263: WriteLiteral("</a><br />\r\n </p>\r\n");
Line 264:
Line 265:
Line 266: #line 47 "D:\Web Root - Production\MPS CMF\Areas\Public\Views\Locations\Summary.cshtml"
Line 267: }
Line 268:
Line 269: row++;
Line 270: }
Line 271:
Line 272:
Line 273: #line default
Line 274: #line hidden
Line 275: WriteLiteral("\r\n </div>\r\n <div");
Line 276:
Line 277: WriteLiteral(" class=\"col-sm-6 col-md-7\"");
Line 278:
Line 279: WriteLiteral(">\r\n <div");
Line 280:
Line 281: WriteLiteral(" id=\"mapLocations\"");
Line 282:
Line 283: WriteLiteral(" class=\"googlemap\"");
Line 284:
Line 285: WriteLiteral(" style=\"height: 400px;\"");
Line 286:
Line 287: WriteLiteral("></div>\r\n </div>\r\n</div>\r\n");
Line 288:
Line 289: }
Line 290: }
Line 291: }
Line 292:
|