/// <summary>
 /// 创建店员
 /// </summary>
 public void CreateClerkExecute()
 {
     ClerkAccountInfo = new BzjClerk();
     ClerkAccountInfo.AgentId = _accName;
     ClerkAuthInfo = new DealerAuthority();
     ClerkAccountWindow window = new ClerkAccountWindow()
                                     {
                                         AccNameVisibility = Visibility.Visible,
                                         Owner = Application.Current.MainWindow,
                                         DataContext = this
                                     };
     if (window.ShowDialog() == true)
     {
         ClerkAccountInfo.ClerkId = _accName + ClerkAccountInfo.ClerkId;//店员账号默认以金商账户名开头
         ErrType err = _businessService.AddClerk(ClerkAccountInfo, ClerkAuthInfo, _loginID, (int)_accType);
         if (err.Err != ERR.SUCCESS)
             MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Information);
         else
         {
             //Todo:移动到添加的行
             ClerkAccountList.Add(ClerkAccountInfo);
         }
     }
 }
        /// <summary>
        /// 显示店员信息
        /// </summary>
        public void ShowClerkAccountInfoExecute()
        {

            //获取权限
            ErrType errClerk = _businessService.GetClerkAuth(ClerkAccountInfo.ClerkId, _loginID, (int)_accType,
                                                             ref _ClerkAuthInfo);
            if (errClerk.Err != ERR.SUCCESS)
            {
                MessageBox.Show(errClerk.ErrMsg, errClerk.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }
            else
            {
                ClerkAuthInfo = _ClerkAuthInfo;
            }
            //ClerkAuthInfo.IsCanSelectedAllTiHuoShouLiSub = false;
            //ClerkAuthInfo.IsCanSelcetedAllOperating = false;
            //ClerkAuthInfo.IsCanSelcetedAllTrade = false;
            ClerkAccountWindow window = new ClerkAccountWindow()
            {
                Owner = Application.Current.MainWindow,
                DataContext = this
            };
            if (window.ShowDialog() == true)
            {
                ErrType err = _businessService.ModifyClerk(ClerkAccountInfo, _loginID, (int)_accType);
                if (err.Err != ERR.SUCCESS)
                {
                    MessageBox.Show(err.ErrMsg, err.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Error);
                    return;
                }
                ErrType errInfo = _businessService.ModifyClerkAuth(ClerkAuthInfo, ClerkAccountInfo.ClerkId, _loginID,
                                                                   (int)_accType);
                if (errInfo.Err != ERR.SUCCESS)
                {
                    MessageBox.Show(errInfo.ErrMsg, errInfo.ErrTitle, MessageBoxButton.OK, MessageBoxImage.Error);
                    return;
                }
            }
        }