/// <summary> /// 移除积分兑换的计划 /// </summary> /// <param name="import">数据集</param> /// <returns>返回操作结果</returns> public NormalResult RemoveRedeemPlan(RemoveRedeemPlanImport import) { try { import.CheckAllowExecuteOrNot(db); new RedeemPlanManager(db).Remove(import); return new NormalResult(); } catch (Exception ex) { return new NormalResult(ex.Message); } }
void Remove_do(object sender, EventArgs e) { NormalPrompt np = (NormalPrompt)sender; if (np.DialogResult != true) { return; } AdministratorExport aInfo = DataManager.GetValue<AdministratorExport>(DataKey.IWorld_Backstage_AdministratorInfo); RemoveRedeemPlanImport import = new RemoveRedeemPlanImport { Id = this.State.Id, Token = aInfo.Token }; ActicityServiceClient client = new ActicityServiceClient(); client.RemoveRedeemPlanCompleted += ShowRemoveResult; client.RemoveRedeemPlanAsync(import); }