Ejemplo n.º 1
0
 public ActionResult MapsViewTab(int PermitKey)
 {
     MapsVM model = new MapsVM() { PermitKey = PermitKey };
     model.PermitMaps = MapBLL.GetMaps(PermitKey);
     model.PermitLayers = new MapLayersVM(MapBLL.GetAllLayers(PermitKey)) { MapAttachmentId = -1, MapAttachmentName = "Permit" };
     ViewBag.TOCID = 96; // maps page TOCID
     return PartialView(model);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the maps page and displays the layers for the permit
 /// </summary>
 /// <param name="PermitKey"></param>
 /// <returns></returns>
 public ActionResult Maps(int PermitKey)
 {
     MapsVM model = new MapsVM() { PermitKey = PermitKey };
     model.PermitMaps = MapBLL.GetMaps(PermitKey);
     model.MasterCadAvailable = PermitBLL.GetMasterCAD(PermitKey);
     model.PermitLayers = new MapLayersVM(MapBLL.GetAllLayers(PermitKey)) { MapAttachmentId = -1, MapAttachmentName = "Permit" };
     ViewBag.TOCID = 74; // maps page TOCID
     return View(model);
 }