/// <summary>
 /// 编辑角色
 /// </summary>
 public void EditRoleExecute()
 {
     AddOrEditRoleWindow window = new AddOrEditRoleWindow()
     {
         Owner = Application.Current.MainWindow,
         DataContext = this,
     };
     if (window.ShowDialog() == true)
     {
         ErrType err = _businessService.UpdateRole(_loginID, CurentRoleInfo);
         if (err.Err != ERR.SUCCESS)
         {
             MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Error);
         }
     }
 }
        /// <summary>
        /// 添加角色
        /// </summary>
        public void AddRoleExecute()
        {
            CurentRoleInfo = new RoleInfo();
            CurentRoleInfo.RoleID = Guid.NewGuid().ToString("n"); ;
            AddOrEditRoleWindow window = new AddOrEditRoleWindow()
            {
                Owner = Application.Current.MainWindow,
                DataContext = this,
            };
            if (window.ShowDialog() == true)
            {
                ErrType err = _businessService.AddRole(_loginID, CurentRoleInfo);
                if (err.Err == ERR.SUCCESS)
                {
                    RoleList.Add(CurentRoleInfo);
                }
                else
                {
                    MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }

        }