/// <summary>
 /// 修改用户资料
 /// </summary>
 /// <param name="import">数据集</param>
 /// <returns>返回操作结果</returns>
 public NormalResult EditUser(EditUserImport import)
 {
     try
     {
         import.CheckAllowExecuteOrNot(db);
         AuthorManager manager = new AuthorManager(db);
         manager.Update(import);
         return new NormalResult();
     }
     catch (Exception ex)
     {
         return new NormalResult(ex.Message);
     }
 }
        private void Edit(object sender, RoutedEventArgs e)
        {
            AdministratorExport aInfo = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo);
            UserStatus status = (UserStatus)Enum.Parse(typeof(UserStatus), (input_Status.SelectedItem as TextBlock).Text, false);
            Bank bankOfCard = (Bank)Enum.Parse(typeof(Bank), (input_BankOfTheCard.SelectedItem as TextBlock).Text, false);

            EditUserImport import = new EditUserImport
            {
                Id = this.State.Id,
                Status = status,
                Card = input_Card.Text,
                HolderOfTheCard = input_HolderOfTheCard.Text,
                BankOfTheCard = bankOfCard,
                Rebate_Normal = Convert.ToDouble(input_Rebate_Normal.Text),
                Rebate_IndefinitePosition = Convert.ToDouble(input_Rebate_IndefinitePosition.Text),
                Commission_A = Convert.ToDouble(input_Commission_A.Text),
                Commission_B = Convert.ToDouble(input_Commission_B.Text),
                Dividend = Convert.ToDouble(input_Dividend.Text),
                Token = aInfo.Token
            };
            AuthorServiceClient client = new AuthorServiceClient();
            client.EditUserCompleted += ShowEditUserResult;
            client.EditUserAsync(import);
        }