private void CreateUserGroup(object sender, RoutedEventArgs e)
 {
     CreateUserGroupImport import = new CreateUserGroupImport
     {
         Name = input_Name.Text,
         Grade = Convert.ToInt32(input_Grade.Text),
         LowerOfConsumption = Math.Round(Convert.ToDouble(input_LowerOfConsumption.Text), 2),
         CapsOfConsumption = Math.Round(Convert.ToDouble(input_CapsOfConsumption.Text), 2),
         TimesOfWithdrawal = Convert.ToInt32(input_TimesOfWithdrawal.Text),
         MinimumWithdrawalAmount = Math.Round(Convert.ToDouble(input_MinimumWithdrawalAmount.Text), 2),
         MaximumWithdrawalAmount = Math.Round(Convert.ToDouble(input_MaximumWithdrawalAmount.Text), 2),
         Token = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo).Token
     };
     AuthorServiceClient client = new AuthorServiceClient();
     client.CreateUserGroupCompleted += ShowCreateUserGroupResult;
     client.CreateUserGroupAsync(import);
 }
 /// <summary>
 /// 创建新的用户组
 /// </summary>
 /// <param name="import">数据集</param>
 /// <returns>返回操作结果</returns>
 public NormalResult CreateUserGroup(CreateUserGroupImport import)
 {
     try
     {
         import.CheckAllowExecuteOrNot(db);
         UserGroupManager manager = new UserGroupManager(db);
         manager.Create(import);
         return new NormalResult();
     }
     catch (Exception ex)
     {
         return new NormalResult(ex.Message);
     }
 }