Пример #1
0
    // public Button CancelAllWindow;

    void Start()
    {
        CloseAddRole.onClick.AddListener(() =>
        {
            if (RolePermissionsTreeView.Instance.IsSure)
            {
                UGUIMessageBox.Show("角色权限信息有更改尚未保存,确定放弃保存直接退出吗?", "保存并退出", "直接退出",
                                    () =>
                {
                    SaveCurrentData(CurrentId);
                }, () =>
                {
                    CloseCurrentUIAndOpenPreviousUI();
                }, () =>
                {
                    CloseCurrentUIAndOpenPreviousUI();
                });
            }
            else
            {
                CloseCurrentUIAndOpenPreviousUI();
            }
        });
        SaveWindow.onClick.RemoveAllListeners();
        SaveWindow.onClick.AddListener(() =>
        {
            SaveWindow_Click();
        });
    }
Пример #2
0
 /// <summary>
 /// 显示视屏(通过Rtsp地址)
 /// </summary>
 /// <param name="rtspUrl"></param>
 public void ShowVideo(string rtspUrl, DevInfo devInfo)
 {
     if (window)
     {
         window.SetActive(true);
     }
     if (connectBg)
     {
         connectBg.SetActive(true);
     }
     tempDevInfo = devInfo;
     if (string.IsNullOrEmpty(rtspUrl))
     {
         Debug.LogError("Error : RtspVideo.ShowVideo-> rtspURL is null!");
         UGUIMessageBox.Show("Rtsp地址未输入,是否启用霍尼韦尔视频?", "确定", "取消", ShowHoneyWellVideo, Close, Close);
         return;
     }
     if (player)
     {
         if (player.IsPlaying)
         {
             player.Stop();
         }
         player.Path = rtspUrl;
         player.Play();
     }
     else
     {
         Debug.LogError("Error : RtspVideo.ShowVideo-> UniversalMediaPlayer is null!");
     }
 }
Пример #3
0
 void Start()
 {
     CloseBut.onClick.RemoveAllListeners();
     CloseBut.onClick.AddListener(() =>
     {
         if (AddRolePermissionsTreeView.Instance.IsAddSure)
         {
             UGUIMessageBox.Show("角色权限信息有更改尚未保存,确定放弃保存直接退出吗?", "保存并退出", "直接退出",
                                 () =>
             {
                 SaveAreaPermissionData();
             },
                                 () =>
             {
                 AddPosCard.Instance.ShowAddPosCardWindow();
                 AddPerCardPermission.Instance.CloseRoleWindow();
             },
                                 () =>
             {
                 AddPosCard.Instance.ShowAddPosCardWindow();
                 AddPerCardPermission.Instance.CloseRoleWindow();
             });
         }
         else
         {
             AddPosCard.Instance.ShowAddPosCardWindow();
             AddPerCardPermission.Instance.CloseRoleWindow();
         }
     });
     SureBut.onClick.RemoveAllListeners();
     SureBut.onClick.AddListener(() =>
     {
         SaveAreaPermissionData_Click();
     });
 }
Пример #4
0
 public void ShowTreeInfo(bool b)
 {
     if (b)
     {
         if (RolePermissionsTreeView.Instance.IsSure)
         {
             UGUIMessageBox.Show("角色权限信息有更改尚未保存,切换角色前是否保存?", "保存", "不保存",
                                 () =>
             {
                 SaveAreaPermissionData();
             },
                                 () =>
             {
                 RolePermissionsTreeView.Instance.GetRolePermissionsTree();
                 RolePermissionsTreeView.Instance.GetAreaData(CurrentId);
                 RoleNameList.Instance.PreviousID = CurrentId;
             }, null);
         }
         else
         {
             RolePermissionsTreeView.Instance.GetRolePermissionsTree();
             RolePermissionsTreeView.Instance.GetAreaData(CurrentId);
             RoleNameList.Instance.PreviousID = CurrentId;
         }
     }
 }
 public void SaveJobEditData(Post post)
 {
     UGUIMessageBox.Show("删除岗位信息!",
                         () =>
     {
         CommunicationObject.Instance.AddPost(post);
     }, null);
 }
 /// <summary>
 /// Toggle值改变触发事件,超过人数限制警告触发
 /// </summary>
 public void ToggleAlarm_OnValueChanged(bool b)
 {
     if (b)
     {
         toggle.isOn = false;
         UGUIMessageBox.Show("显示历史轨迹不能超过" + LocationHistoryUITool.GetLimitPersonNum() + "人!");
     }
 }
 /// <summary>
 /// 播放错误回调
 /// </summary>
 private void OnEncounteredError(UniversalMediaPlayer p)
 {
     //Debug.LogError("Error:" + player.LastError);
     DestroyImmediate(p.transform.gameObject);
     connectBg.SetActive(true);
     VedioPrompt.text = "视频连接失败!";
     UGUIMessageBox.Show("视频连接失败!");
 }
 /// <summary>
 /// 退出程序
 /// </summary>
 public void ExitLogin()
 {
     UGUIMessageBox.Show("是否确定退出软件?", () =>
     {
         Application.Quit();
     }, () =>
     {
     });
     //Application.Quit();
 }
    public void SaveAddReloInfo(CardRole info)
    {
        int CardRoleID = CommunicationObject.Instance.AddCardRole(info);

        info.Id = CardRoleID;
        UGUIMessageBox.Show("角色信息已保存!", "确定", "", () =>
        {
            CloseAddRoleWindow();
        }, null, null);
    }
Пример #10
0
    public void JudgePerOnLine(int tagNum, LocationAlarm per)
    {
        List <LocationObject> listT           = LocationManager.Instance.GetPersonObjects();
        LocationObject        locationObjectT = listT.Find((item) => item.personnel.TagId == tagNum);

        if (per.Tag == null || locationObjectT == null || per.Tag.IsActive == false)
        {
            UGUIMessageBox.Show("当前人员已离线或者不在监控区域!");
        }
    }
Пример #11
0
 /// <summary>
 /// 退出程序
 /// </summary>
 private void OnExitButtonClick()
 {
     UGUIMessageBox.Show("是否确定退出软件?", () =>
     {
         Log.Info("StartoutManage.Application.Quit->退出程序");
         Application.Quit();
     }, () =>
     {
     });
     //Application.Quit();
 }
    public void DeleteAreaBtn_OnClick()
    {
        string selectedName = GetSelectedNames();

        UGUIMessageBox.Show("确定删除区域:" + selectedName, () =>
        {
            Debug.LogError("删除按钮!");
            DeleteAreas();
            SetDeletwBtnInteractable(false);
        }, null);
    }
Пример #13
0
 /// <summary>
 /// 退出当前程序
 /// </summary>
 private void ExitApplication()
 {
     UGUIMessageBox.Show("是否确定退出软件?", () =>
     {
         Log.Info("FVIntroduce.Application.Quit->退出程序");
         Application.Quit();
     }, () =>
     {
     });
     //Application.Quit();
 }
Пример #14
0
 /// <summary>
 /// 点击定位设备
 /// </summary>
 /// <param name="devId"></param>
 public void DevBut_Click(DeviceAlarm devAlarm, int DepID, string msg)
 {
     RoomFactory.Instance.FocusDev(devAlarm.DevId.ToString(), DepID, result =>
     {
         if (!result)
         {
             string msgTitle = DeviceAlarmHelper.TryGetDeviceAlarmInfo(devAlarm);
             UGUIMessageBox.Show(msgTitle);
         }
     });
     ParkDevAlarmInfo.Instance.CloseDevAlarmWindow();
 }
Пример #15
0
 public static void Show(string title, string msg, string buttonText, System.Action callBack)
 {
     if (!Instance)
     {
         GameObject go = new GameObject("UGUIMessageBox");
         Instance = go.AddComponent <UGUIMessageBox>();
     }
     Instance.Title_      = title;
     Instance.Message_    = msg;
     Instance.ButtonText_ = buttonText;
     Instance.CallBack_   = callBack;
 }
Пример #16
0
 /// <summary>
 /// 点击定位设备
 /// </summary>
 /// <param name="devId"></param>
 public void DevBut_Click(DeviceAlarm alarmInfo, int DepID, string msg)
 {
     RoomFactory.Instance.FocusDev(alarmInfo.DevId.ToString(), DepID, result =>
     {
         if (!result)
         {
             //string msgTitle = DevAlarmListManage.TryGetDeviceAlarmInfo(alarmInfo);
             string msgTitle = string.Format("未找到对应设备,设备ID:{0} 区域ID:{1}", alarmInfo.DevId, DepID);
             UGUIMessageBox.Show(msgTitle);
         }
     });
 }
    public void GetCameraAlarmData(AlarmPushInfo cameraAlarm)
    {
        if (string.IsNullOrEmpty(cameraAlarm.CameraAlarmInfor.cid_url))
        {
            CameraAlarmInfo aa = cameraAlarm.CameraAlarmInfor;
        }

        string devName = null;

        CurrentAlarmPushInfo = new global::AlarmPushInfo();
        CurrentAlarmPushInfo = cameraAlarm;
        if (cameraAlarm.CameraAlarmInfor.AlarmType == 1)
        {
            AlarmTypeImage.sprite = Safety;
            message.text          = "没戴安全帽!";
        }
        else if (cameraAlarm.CameraAlarmInfor.AlarmType == 2)
        {
            AlarmTypeImage.sprite = Fire;
            message.text          = "火警";
        }
        else if (cameraAlarm.CameraAlarmInfor.AlarmType == 3)
        {
            AlarmTypeImage.sprite = smogInfo;
            message.text          = "烟雾";
        }
        cid.text = cameraAlarm.CameraAlarmInfor.cid.ToString();
        Button but = AlarmObj.transform.GetComponent <Button>();

        but.onClick.RemoveAllListeners();
        but.onClick.AddListener(() =>
        {
            if (ScreenFlashesRedAndAudio.Instance != null)
            {
                ScreenFlashesRedAndAudio.Instance.FlashesRedTweenerStop_Click();
            }
            int?DevID = CommunicationObject.Instance.GetCameraDevIdByURL(cameraAlarm.CameraAlarmInfor.cid_url);
            if (DevID == null)
            {
                UGUIMessageBox.Show("视频ID未找到,URL:" + cameraAlarm.CameraAlarmInfor.cid_url);
                Log.Error("Dev.ParentId is null...");
                return;
            }

            DevInfo Dev = GetDevInfoByid((int)DevID);
            if (Dev == null)
            {
                Debug.LogError("Dev is null...");
                return;
            }
            LocationDev(DevID.ToString(), (int)Dev.ParentId, devName, cameraAlarm);
        });
    }
Пример #18
0
    public void Download(DownloadInfo info)
    {
        Debug.Log(string.Format("Download:{0},{1},{2},{3},{4}", info.CId, info.Ip, info.Channel, info.StartTime, info.EndTime));
        this.info = info;//将参数设置到属性中
        if (client == null)
        {
            client = CommunicationObject.Instance.GetServiceClient();
        }

        ThreadManager.Run(() =>
        {
            var r = client.StartGetNVSVideo(info);//开始下载视频
            return(r);
        }, (r) =>
        {
            Debug.Log("Info==null?" + (info == null) + transform.name);
            if (r != null)
            {
                WriteLog(r.Result + "|" + r.Message + "|" + r.Url);
                this.info = r;//服务端会把下载用的id返回过来
                if (r.Result)
                {
                    if (string.IsNullOrEmpty(r.Url))
                    {
                        InvokeRepeating("GetProgress", 0, 1);//开始获取下载进度
                    }
                    else
                    {
                        Play(r.Url);//已经查询并下载成功了的时间段
                    }
                }
                else
                {
                    if (r.Message == "It is downloading!")//有文件在下载
                    {
                        //todo:等待,休眠1s,并重新尝试下载。重试次数10次,还是这样则提示,并不重试。
                        UGUIMessageBox.Show("文件正在下载");
                    }
                    else
                    {
                        //todo:提示Message内容
                        UGUIMessageBox.Show("下载失败");
                    }
                }
            }
            else
            {
                UGUIMessageBox.Show("下载失败");
                WriteLog("结果为空");
            }
        }, "");
    }
    private static void DeleteArea(GameObject objt)
    {
        //GameObject objt = gs[i];
        MonitorRangeObject monitorRangeObject = objt.GetComponent <MonitorRangeObject>();
        PhysicalTopology   pt = monitorRangeObject.info;

        //if (gs.Count >= 0)
        //{
        //    objt = gs[gs.Count - 1];
        //    monitorRangeObject = objt.GetComponent<MonitorRangeObject>();
        //    pt = monitorRangeObject.info;
        //}

        //if (pt == null)
        //    return;

        Loom.StartSingleThread(() =>
        {
            bool b = CommunicationObject.Instance.DeleteMonitorRange(pt);
            Loom.DispatchToMainThread(() =>
            {
                if (b)
                {
                    Debug.LogError("删除成功!");
                    UGUIMessageBox.Show("删除成功!");
                }
                else
                {
                    Debug.LogError("删除失败!");
                    UGUIMessageBox.Show("删除失败,区域下存在设备!");
                    return;
                }
                if (pt != null)
                {
                    RangeNode node       = monitorRangeObject.rangeNode;
                    RangeNode parentnode = node.parentNode;
                    parentnode.subNodes.Remove(node);

                    DepNode depnode       = monitorRangeObject.depNode;
                    DepNode parentdepnode = depnode.ParentNode;
                    parentdepnode.ChildNodes.Remove(depnode);

                    RoomFactory.Instance.NodeDic_Remove(monitorRangeObject.depNode);
                    EditorObjectSelection.Instance.ClearSelection(false);
                    Destroy(monitorRangeObject.gameObject);
                    PersonnelTreeManage.Instance.areaDivideTree.RemoveAreaChild(pt.Id);
                }
            });
        });
    }
Пример #20
0
 /// <summary>
 /// 点击定位设备
 /// </summary>
 /// <param name="devId"></param>
 public void DevBut_Click(DeviceAlarm alarm, int DepID, string msg)
 {
     RoomFactory.Instance.FocusDev(alarm.DevId.ToString(), DepID, result =>
     {
         if (!result)
         {
             string msgTitle = DeviceAlarmHelper.TryGetDeviceAlarmInfo(alarm);
             UGUIMessageBox.Show(msgTitle);
         }
     });
     DevAlarmListManage.Instance.CloseDevAlarmWindow();
     AlarmPushManage.Instance.CloseAlarmPushWindow(false);
     DevSubsystemManage.Instance.OnQueryToggleChange(false);
 }
    /// <summary>
    /// 编辑监控区域
    /// </summary>
    /// <param name="isOn"></param>
    private void OnEditAreaToggleChange(bool isOn)
    {
        if (isOn && IsRangeMode())
        {
            Debug.LogError("当前处于非楼层模式");
            UGUIMessageBox.Show("当前处于区域层级!\n请点击左下角的返回上一层按钮,再进行区域编辑。");
            EditAreaToggle.isOn = false;
            return;
        }
        if (ConfigButton.instance)
        {
            ConfigButton.instance.ChoseConfigView();                       //关闭打开的配置界面
        }
        ParkInformationManage.Instance.ShowParkInfoUI(!isOn);
        ParkInformationManage.Instance.ClosePerAndDevAlarmWindow();
        ChangeImage(isOn, EditAreaToggle);
        Debug.Log("OnMonitoringToggleChange:" + isOn);
        IsOnEditArea = isOn;
        if (isOn)
        {
            LocationManager.Instance.HideLocation();
            AlarmPushManage.Instance.CloseAlarmPushWindow(false);
            ObjectsEditManage.Instance.SetEditorGizmoSystem(true);
            MonitorRangeManager.Instance.ShowAreaEdit(SceneEvents.DepNode);
            //FactoryDepManager.Instance.SetAllColliderEnable(false);
            FactoryDepManager.Instance.SetAllColliderIgnoreRaycastOP(true);
            PersonnelTreeManage.Instance.CloseWindow();
            SmallMapController.Instance.Hide();
            StartOutManage.Instance.Hide();
            FunctionSwitchBarManage.Instance.SetWindow(false);
            ActionBarManage.Instance.Hide();
            RangeEditWindow.Instance.Show();
        }
        else
        {
            LocationManager.Instance.ShowLocation();
            AlarmPushManage.Instance.CloseAlarmPushWindow(true);

            ObjectsEditManage.Instance.SetEditorGizmoSystem(false);
            MonitorRangeManager.Instance.ExitCurrentEditArea();
            //FactoryDepManager.Instance.SetAllColliderEnable(true);
            FactoryDepManager.Instance.SetAllColliderIgnoreRaycast(false);
            PersonnelTreeManage.Instance.ShowWindow();
            SmallMapController.Instance.Show();
            StartOutManage.Instance.Show();
            FunctionSwitchBarManage.Instance.SetWindow(true);
            ActionBarManage.Instance.Show();
            RangeEditWindow.Instance.Hide();
        }
    }
Пример #22
0
    public void SaveEditTagInfo()
    {
        UGUIMessageBox.Show("保存标签卡信息!", () =>
        {
            EnsureGetData(() =>
            {
                EditTagInfoWindow.SetActive(false);
                EditPersonnelInformation.Instance.ShowEditPersonnelWindow();
            });
        },
                            null

                            );
    }
Пример #23
0
    public void DeletRoleData(int id)
    {
        bool IsDelet = CommunicationObject.Instance.DeleteCardRole(id);

        if (IsDelet)
        {
            UGUIMessageBox.Show("删除角色成功!", "确定", "", () =>
            {
                AddPerCardPermission.Instance.SaveSelection();
                AddPerCardPermission.Instance.GetCardRoleData();
                AddPerCardPermission.Instance.grid.gameObject.transform.GetChild(0).GetComponent <Toggle>().isOn = true;
            }
                                , null, null);
        }
    }
 /// <summary>
 /// 播放按钮触发事件
 /// </summary>
 public void PlayBtn_OnClick()
 {
     if (currentPersonnels == null || currentPersonnels.Count == 0)
     {
         UGUIMessageBox.Show("请先添加人员!",
                             () =>
         {
             EditPersonBtn_OnClick();
         }, null);
     }
     else
     {
         Play();
     }
 }
Пример #25
0
    public void SaverCardRoleData(Tag data)
    {
        int TagID = CommunicationObject.Instance.AddTag(data);

        AddTag.Id = TagID;
        UGUIMessageBox.Show("定位卡信息已保存!", "确定", "", () =>
        {
            CloseAddPosCardWindow();
            LocationCardManagement.Instance.LocationCardData.Insert(0, data);
            LocationCardManagement.Instance.ScreenList.Insert(0, data);
            LocationCardManagement.Instance.LocationRole.text = "";
            LocationCardManagement.Instance.ShowCardRoleInfo();
            LocationCardManagement.Instance.ShowAndCloseLocationCardManagementWindow(true);
        }, null, null);
    }
    /// <summary>
    /// 打开当前设备的监控视频
    /// </summary>
    /// <param name="cameraDev"></param>
    public void ShowCurrentCameraVedio(CameraDevController cameraDev)
    {
        if (CameraVideoManage.Instance)
        {
            Dev_CameraInfo camInfo = cameraDev.GetCameraInfo(cameraDev.Info);
            //   if (camInfo != null) CameraVideoManage.Instance.rtspVideo.ShowVideo(camInfo.RtspUrl, cameraDev.Info);
            if (IsMinPrompt)
            {
                if (string.IsNullOrEmpty(camInfo.RtspUrl))
                {
                    Debug.LogError("Error : RtspVideo.ShowVideo-> rtspURL is null!");
                    UGUIMessageBox.Show("Rtsp地址未输入!");
                    if (VedioPrompt)
                    {
                        VedioPrompt.text = "Rtsp地址未输入!";
                    }
                    if (CameraAlarmManage.Instance.VedioPrompt)
                    {
                        CameraAlarmManage.Instance.VedioPrompt.text = "Rtsp地址未输入!";
                    }
                    IsMinPrompt = true;
                    return;
                }
                if (!IsEffectiveURL(camInfo.RtspUrl))
                {
                    UGUIMessageBox.Show("Rtsp地址无效!");
                    if (VedioPrompt)
                    {
                        VedioPrompt.text = "Rtsp地址无效!";
                    }
                    IsMinPrompt = true;
                    return;
                }
            }


            GameObject Obj = Instantiate(VedioPrefabs, PlayParent.transform) as GameObject;
            Obj.transform.SetAsFirstSibling();
            Obj.SetActive(true);
            VedioPrefabs.SetActive(false);
            player = Obj.GetComponent <UniversalMediaPlayer>();
            AddEncounteredEvent(player, () =>
            {
                ShowVideo(camInfo.RtspUrl, player);
            });
        }
    }
 public void SavePersonnelData(Personnel PerInfo)
 {
     if (string.IsNullOrEmpty(WorkNum.text) || string.IsNullOrEmpty(Name.text))
     {
         UGUIMessageBox.Show("人员必填信息不完整,请补充完整在进行提交!",
                             null, null);
     }
     else
     {
         Personnel per = PersonnelList.Find(i => i.WorkNumber == WorkNum.text);
         if (per == null)
         {
             CreatPersonnel.Name       = Name.text;
             CreatPersonnel.WorkNumber = WorkNum.text;
             bool IsEditPer = CommunicationObject.Instance.EditPerson(PerInfo);
             if (IsEditPer)
             {
                 UGUIMessageBox.Show("人员信息已保存!", "确定", "", null, null, null);
             }
             else
             {
                 UGUIMessageBox.Show("数据保存失败!", "确定", "", null, null, null);
             }
         }
         else
         {
             if (CreatPersonnel.Id != per.Id)
             {
                 UGUIMessageBox.Show("该工号已存在!", "确定", "", null, null, null);
             }
             else
             {
                 bool IsEditPer = CommunicationObject.Instance.EditPerson(PerInfo);
                 if (IsEditPer)
                 {
                     UGUIMessageBox.Show("人员信息已保存!", "确定", "", null, null, null);
                 }
                 else
                 {
                     UGUIMessageBox.Show("数据保存失败!", "确定", "", null, null, null);
                 }
             }
         }
         EditCurrentPersonnelInfo(CurrentObj);
     }
 }
    /// <summary>
    /// 打开当前设备的监控视频
    /// </summary>
    /// <param name="cameraDev"></param>
    private void ShowCurrentCameraVedio()
    {
        try
        {
            if (CurrentCameraDev == null)
            {
                return;
            }
            if (CurrentCameraDev.Info != null)
            {
                TitleText.text = CurrentCameraDev.Info.Name;
            }
            else
            {
                TitleText.text = "监控视频";
                Debug.LogError("Error.VideofollowItem.ShowCurrentCameraVideo: CurrentCameraDev.Info is null:" + CurrentCameraDev.transform.name);
                return;
            }
            Dev_CameraInfo camInfo = CurrentCameraDev.GetCameraInfo(CurrentCameraDev.Info);
            if (string.IsNullOrEmpty(camInfo.RtspUrl))
            {
                Debug.LogError("Error : RtspVideo.ShowVideo-> rtspURL is null!");
                UGUIMessageBox.Show("Rtsp地址未输入!");
                return;
            }
            if (!IsEffectiveURL(camInfo.RtspUrl))
            {
                UGUIMessageBox.Show("Rtsp地址无效!");
                return;
            }

            GameObject Obj = Instantiate(VedioPrefab, VideoWindow.transform) as GameObject;
            Obj.transform.SetAsFirstSibling();
            Obj.SetActive(true);
            VedioPrefab.SetActive(false);
            player = Obj.GetComponent <UniversalMediaPlayer>();
            AddEncounteredEvent(player, () =>
            {
                ShowVideo(camInfo.RtspUrl, player);
            });
        }catch (Exception e)
        {
            Debug.LogErrorFormat("VideofollowItem.ShowCurrentCameraVideo.ErrorInfo:{0}", e.ToString());
        }
    }
Пример #29
0
 int CurrentId;//当前选中的ID
 public void SaveWindow_Click()
 {
     IsScreen = CommunicationObject.Instance.SetCardRoleAccessAreas(RoleNameList.Instance.PreviousID, RolePermissionsTreeView.Instance.RolePermissionList);
     if (IsScreen)
     {
         UGUIMessageBox.Show("角色权限信息已保存!", "确定", "",
                             () =>
         {
             Debug.LogError("保存刷新保存人员区域");
         }, null, null);
     }
     else
     {
         UGUIMessageBox.Show("数据保存失败!", "确定", "", null, null, null);
     }
     RolePermissionsTreeView.Instance.IsSure = false;
     RoleNameList.Instance.PreviousID        = CurrentId;
 }
Пример #30
0
    /// <summary>
    /// 删除部门
    /// </summary>
    public void SavedepartmentDeleteInfo(Department CurrentDep)
    {
        bool IsSuccessful = CommunicationObject.Instance.DeleteDepartment(CurrentDep.Id);

        if (IsSuccessful)
        {
            PersonnelTreeManage.Instance.departmentDivideTree.ReshDeleteDepartTree(CurrentDep);
            UGUIMessageBox.Show("删除部门信息成功!", "确定", "",
                                () => {
                //   EditPersonnelInformation.Instance.RefreshEditDepartData();
                EditDeleteDepartmentInfo(CurrentDep);
            }, null, null);
        }
        else
        {
            UGUIMessageBox.Show("删除部门信息失败!", "确定", "", null, null, null);
        }
    }