/// <summary>
        /// 根据id删除网络节点
        /// </summary>
        /// <param name="onlyPara"></param>
        /// <returns></returns>
        private string DeleteMapNode(string onlyPara)
        {
            if (string.IsNullOrEmpty(onlyPara))
            {
                return(JsonExtensions.ToJson(new MyHttpResult
                {
                    result = false,
                    msg = "提交数据错误!"
                }));
            }
            Guid        nodeguid = new Guid(onlyPara);
            NetMapModel nmm      = (new NetMapBLL()).GetModelByGuid(nodeguid);

            return(JsonExtensions.ToJson(new MyHttpResult
            {
                result = nmm.Delete() > 0 ? true : false,
                msg = "删除节点成功!"
            }));
        }
        private string test()
        {
            //3594D3FA - 7C87 - 43C3 - 90DD - 820A2E8052AE
            //07193C51 - 5530 - 4F3F - 9208 - 6E59746962CC
            //90B4FE32 - 708B - 4405 - ABC6 - FC01D98D4B7A
            string[] parentid =
            {
                "3594D3FA-7C87-43C3-90DD-820A2E8052AE",
                "07193C51-5530-4F3F-9208-6E59746962CC",
                "90B4FE32-708B-4405-ABC6-FC01D98D4B7A"
            };
            NetMapModel nmm = new NetMapModel();

            for (int i = 0; i < 3; i++)
            {
                nmm.node_guid  = Guid.NewGuid();
                nmm.parentguid = new Guid(parentid[i]);
                nmm.name       = "岗位——" + i.ToString();
                nmm.auditor    = "dengxy";
                nmm.Insert();
            }
            return((new MyHttpResult(true, "")).ToString());
        }
        private string SaveNode(string node_json)
        {
            if (string.IsNullOrEmpty(node_json))
            {
                return(JsonExtensions.ToJson(new MyHttpResult
                {
                    result = false,
                    msg = "提交数据错误!"
                }));
            }
            NetMapModel new_model = JsonExtensions.FromJson <NetMapModel>(node_json);
            NetMapModel old_model = (new NetMapBLL()).GetModelByGuid(new_model.node_guid);

            if (null == old_model)
            {
                return(JsonExtensions.ToJson(new MyHttpResult
                {
                    result = new_model.Insert() > 0 ? true : false,
                    msg = "新增节点成功!"
                }));
            }

            old_model.name         = new_model.name;
            old_model.auditor      = new_model.auditor;
            old_model.station_name = new_model.station_name;
            old_model.sort_order   = new_model.sort_order;
            old_model.hierarchy    = new_model.hierarchy;

            //去服务端缓存
            Cache.Remove("cache_netmap");

            return(JsonExtensions.ToJson(new MyHttpResult
            {
                result = old_model.Update() > 0 ? true : false,
                msg = "修改节点成功!"
            }));
        }