Exemplo n.º 1
0
        // GET: Indoor

        #region Events
        public ActionResult IndoorStep2(int floorID, string Name)
        {
            //1)Get Floor record by Floor ID
            FloorViewModel     floor = _FLOORBAL.GetFloorByID(floorID);
            List <APViewModel> aps   = _APBAL.GetAPByFloorID(floorID);

            ViewBag.BuildName = Name;

            if (!string.IsNullOrEmpty(floor.FloorPlanSHPPath))
            {
                ViewBag.FileName = string.Concat("..", Url.Content(floor.FloorPlanSHPPath));

                //      will be used in Indoor/ReadJsonFile
                ViewBag.FloorPlanSHPPath = floor.FloorPlanSHPPath;
            }
            else
            {
                ViewBag.FileName = "";
            }

            IndoorStep2ViewModel model = new IndoorStep2ViewModel();

            ViewBag.APs = aps;

            model.InstallationParameters = new InstallationParametersViewModel();
            model.OptionalParameters     = new OptionalParametersViewModel();
            model.CBSD = new CBSDViewModel();

            ViewBag.BuildingID = floor.BuildingID;

            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult IndoorStep(int floorID)
        {
            FloorViewModel     floor = _FLOORBAL.GetFloorByID(23);
            List <APViewModel> aps   = _APBAL.GetAPByFloorID(23);

            //  ViewBag.BuildName = Name;

            if (!string.IsNullOrEmpty(floor.FloorPlanSHPPath))
            {
                ViewBag.FileName = string.Concat("..", Url.Content("~/ShapeFiles/Columbus Circle - First Floor Lines636984586978583967637001940100847321.json"));

                //      will be used in Indoor/ReadJsonFile
                ViewBag.FloorPlanSHPPath = "~/ShapeFiles/Columbus Circle - First Floor Lines636984586978583967637001940100847321.json";
            }
            else
            {
                ViewBag.FileName = "";
            }

            IndoorStep2ViewModel model = new IndoorStep2ViewModel();

            ViewBag.APs = aps;

            model.InstallationParameters = new InstallationParametersViewModel();
            model.OptionalParameters     = new OptionalParametersViewModel();
            model.CBSD               = new CBSDViewModel();
            model.APType             = new APTypeViewModel();
            model.Group              = new GroupViewModel();
            model.APType.APTypeNames = DropDownBinding.GetDropDown(AppConstants.USP_GETAPTypes, 0, "AP Type");
            model.Group.GroupNames   = DropDownBinding.GetDropDown(AppConstants.USP_GETGROUPS, 0, "Group");

            ViewBag.BuildingID = floor.BuildingID;
            ViewBag.FloorID    = 23;

            return(View(model));
        }