/// <summary>
 /// 创建新的银行账户
 /// </summary>
 /// <param name="import">数据集</param>
 /// <returns>返回操作结果</returns>
 public NormalResult CreateSystemBankAccount(CreateSystemBankAccountImport import)
 {
     try
     {
         import.CheckAllowExecuteOrNot(db);
         SystemBankAccountManager manager = new SystemBankAccountManager(db);
         manager.Create(import);
         return new NormalResult();
     }
     catch (Exception ex)
     {
         return new NormalResult(ex.Message);
     }
 }
 private void Create(object sender, RoutedEventArgs e)
 {
     AdministratorExport aInfo = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo);
     Bank bankOfCard = (Bank)Enum.Parse(typeof(Bank), (input_BankOfTheCard.SelectedItem as TextBlock).Text, false);
     CreateSystemBankAccountImport import = new CreateSystemBankAccountImport
     {
         Card = input_Card.Text,
         HolderOfTheCard = input_HolderOfTheCard.Text,
         BankOfTheCard = bankOfCard,
         Remark = input_Remark.Text,
         Order = Convert.ToInt32(input_Order.Text),
         Hide = input_Hide.SelectedIndex == 0,
         Token = aInfo.Token
     };
     SettingOfAuthorServiceClient client = new SettingOfAuthorServiceClient();
     client.CreateSystemBankAccountCompleted += ShowCreateResult;
     client.CreateSystemBankAccountAsync(import);
 }