Esempio n. 1
0
        public ActionResult GetElectricFenceByVehicleID(long vehicleID)
        {
            var list = ElectricFenceBLL.GetElectricFenceByVehicleID(vehicleID);

            if (list == null)
            {
                list = new List <ElectricFenceListModel>();
            }
            foreach (var item in list)
            {
                item.FenceTypeInfo = MGJH_TransportPointBLL.ChangeCoordinateSystem(item.FenceType, item.FenceTypeInfo, 2);  //将取出的车机坐标转成地图坐标显示
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public ActionResult GetEFMarkersInfo()
        {
            var list = ElectricFenceBLL.GetEFMarkersInfoBySID(base.CurrentStrucID);

            if (list == null)
            {
                list = new List <EFMarkerListModel>();
            }
            foreach (var item in list)
            {
                item.FenceTypeInfo = MGJH_TransportPointBLL.ChangeCoordinateSystem(item.FenceType, item.FenceTypeInfo, 2);  //将取出的车机坐标转成地图坐标显示
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }