예제 #1
0
 public int UpdateAreaLevelById(BaseAreaLevelModel model)
 {
     try
     {
         int result = mapContext.Update("UpdateAreaLevel", model);
         return(result);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public int AddEntity(BaseAreaLevelModel entity)
 {
     try
     {
         int id = (int)mapContext.Insert("InsertAreaLevel", entity);
         return(id);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
        /// <summary>
        /// 取得当前地图引擎类型的配置
        /// </summary>
        /// <returns></returns>
        //public JsonResult getMapConfig()
        //{
        //    List<BaseMapConfigModel> mapConfigList = baseMapConfigBLL.GetMapConfig();
        //    return Json(mapConfigList, JsonRequestBehavior.AllowGet);
        //}
        /// <summary>
        /// 取得配置表中当前地图的类型
        /// </summary>
        /// <returns></returns>
        //public JsonResult getMapType()
        //{
        //    int mapType = baseMapConfigBLL.GetMapEngine(Server.MapPath("/ConfigFile/map/mapConfig.xml"));
        //    return Json(mapType, JsonRequestBehavior.AllowGet);
        //}
        //public ActionResult Test()
        //{
        //    BaseMapConfigBLL bll = new BaseMapConfigBLL();
        //    BaseMapConfigModel model = bll.GetModelByID(1);
        //    return Json(model, JsonRequestBehavior.AllowGet);
        //}

        public ActionResult Add()
        {
            BaseAreaLevelBLL   BLL   = new BaseAreaLevelBLL();
            BaseAreaLevelModel model = new BaseAreaLevelModel();
            //model.id =2;
            //model.level_name ="办公区";
            //model.level_status =1;
            //model.content = "办公区";
            //model.level_color ="#000";
            ////int id = BLL.AddEntity(model);
            ////var obj = BLL.DelEntity(1);
            var obj = BLL.UpdateEntity(model);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
예제 #4
0
 public bool UpdateEntity(int id, BaseAreaLevelModel newentity)
 {
     throw new NotImplementedException();
 }
예제 #5
0
        public int UpdateOrganizitionInfoById(BaseAreaLevelModel model)
        {
            int result = mapContext.Update("UpdateOrganizitionInfoById", model);

            return(result);
        }