void Client_GetAllAlipayRechargeRecordsCompleted(object sender, Wcf.Clients.WebInvokeEventArgs <AlipayRechargeRecord[]> e) { try { App.BusyToken.CloseBusyWindow(); if (e.Error != null) { MessageBox.Show("查询支付宝付款记录失败。" + e.Error); return; } ListAllAlipayRecords.Clear(); decimal sumYuan = 0; decimal sumRMB = 0; if (e.Result != null) { foreach (var item in e.Result) { ListAllAlipayRecords.Add(new AlipayRechargeRecordUIModel(item)); sumYuan += item.total_fee; sumRMB += item.value_rmb; } } this.SumListAllAlipayRecords_PayYuan = sumYuan; this.SumListAllAlipayRecords_RMB = sumRMB; } catch (Exception exc) { MessageBox.Show("处理支付宝订单回调异常。" + exc.Message); } }
void Client_GetAllAlipayRechargeRecordsCompleted(object sender, Wcf.Clients.WebInvokeEventArgs <AlipayRechargeRecord[]> e) { try { App.BusyToken.CloseBusyWindow(); if (e.Error != null) { MyMessageBox.ShowInfo("查询支付宝付款记录失败。" + e.Error); return; } if (e.Result != null) { foreach (var item in e.Result) { ListAllAlipayRecords.Add(new AlipayRechargeRecordUIModel(item)); } } } catch (Exception exc) { MyMessageBox.ShowInfo("处理支付宝订单回调异常。" + exc.Message); } }