public PrefundingAccountData getPrefundingAccountData(ReviewFilter filter) { if (filter == null) { return(null); } try { JavaScriptSerializer serializer = new JavaScriptSerializer(); var request = new RestRequest(ResourcePath + "/prefunding-account", Method.POST); request.RequestFormat = DataFormat.Json; serializer.MaxJsonLength = int.MaxValue; string json = serializer.Serialize(filter); request.AddParameter("application/json", json, ParameterType.RequestBody); var response = RestClient.ExecuteTaskAsync(request); RestResponse queryResult = (RestResponse)response.Result; bool valid = ValidateResponse(queryResult); JavaScriptSerializer Serializer = new JavaScriptSerializer(); Serializer.MaxJsonLength = int.MaxValue; PrefundingAccountData data = Serializer.Deserialize <PrefundingAccountData>(queryResult.Content); return(data); } catch (Exception e) { logger.Error("Unable to retrieve Prefunding Account Data from server.", e); return(null); } }
public void Display(PrefundingAccountData data) { throwHandlers = false; this.SentPrefundingTextBox.Text = NumberUtil.ToGermanFormat(data.sentPrefundingReconcilied); this.SentPrefundingNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.sentPrefundingNotYetReconcilied); this.SentReplenishmentTextBox.Text = NumberUtil.ToGermanFormat(data.sentReplenishmentReconcilied); this.SentReplenishmentNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.sentReplenishmentNotYetReconcilied); this.WriteOffReceiveTextBox.Text = NumberUtil.ToGermanFormat(data.writeoffReceived); this.TotalToReceiveTextBox.Text = NumberUtil.ToGermanFormat(data.totalToReceiveReconcilied); this.TotalToReceiveNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.totalToReceiveNotYetReconcilied); this.MemberAdvisementTextBox.Text = NumberUtil.ToGermanFormat(data.sentMemberAdvisementReconcilied); this.MemberAdvisementNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.sentMemberAdvisementNotYetReconcilied); this.WriteOffPaidTextBox.Text = NumberUtil.ToGermanFormat(data.writeoffPaid); this.TotalToPayTextBox.Text = NumberUtil.ToGermanFormat(data.totalToPayReconcilied); this.TotalToPayNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.totalToPayNotYetReconcilied); this.ExpectedPFTextBox.Text = NumberUtil.ToGermanFormat(data.expectedPFBalanceReconcilied); this.ExpectedPFNotRecoTextBox.Text = NumberUtil.ToGermanFormat(data.expectedPFBalanceNotYetReconcilied); this.PFCreditTextBox.Text = NumberUtil.ToGermanFormat(data.pfAccountCredit); this.PFDebitTextBox.Text = NumberUtil.ToGermanFormat(data.pfAccountDebit); this.PFBalanceTextBox.Text = NumberUtil.ToGermanFormat(data.pfAccountBalance); this.RICreditTextBox.Text = NumberUtil.ToGermanFormat(data.riAccountCredit); this.RIDebitTextBox.Text = NumberUtil.ToGermanFormat(data.riAccountDebit); this.RIBalanceTextBox.Text = NumberUtil.ToGermanFormat(data.riAccountBalance); this.MACreditTextBox.Text = NumberUtil.ToGermanFormat(data.maAccountCredit); this.MADebitTextBox.Text = NumberUtil.ToGermanFormat(data.maAccountDebit); this.MABalanceTextBox.Text = NumberUtil.ToGermanFormat(data.maAccountBalance); this.OtherCreditTextBox.Text = NumberUtil.ToGermanFormat(data.otherAccountCredit); this.OtherDebitTextBox.Text = NumberUtil.ToGermanFormat(data.otherAccountDebit); this.OtherBalanceTextBox.Text = NumberUtil.ToGermanFormat(data.otherAccountBalance); this.NonRecoTransactionsCreditTextBox.Text = NumberUtil.ToGermanFormat(data.notRecoTransactionCredit); this.NonRecoTransactionsDebitTextBox.Text = NumberUtil.ToGermanFormat(data.notRecoTransactionDebit); this.NonRecoTransactionsBalanceTextBox.Text = NumberUtil.ToGermanFormat(data.notRecoTransactionBalance); this.TotalCreditTextBox.Text = NumberUtil.ToGermanFormat(data.totalAccountCredit); this.TotalDebitTextBox.Text = NumberUtil.ToGermanFormat(data.totalAccountDebit); this.TotalBalanceTextBox.Text = NumberUtil.ToGermanFormat(data.totalAccountBalance); this.DeltaNotReconciliatedTextBox.Text = NumberUtil.ToGermanFormat(data.deltaNotYetReconcilied); this.DeltaReconciliatedTextBox.Text = NumberUtil.ToGermanFormat(data.deltaReconcilied); this.RatioPFPeakDayTextBox.Text = NumberUtil.ToGermanFormat(data.ratioPFPeak); this.RatioPFPeakMa24MonthsTextBox.Text = NumberUtil.ToGermanFormat(data.ratioPFPeak); this.TotalBalancePFAccountTextBox.Text = NumberUtil.ToGermanFormat(data.totalBalancePFAccount); throwHandlers = true; this.IsAlreadyLoaded = true; }
public void Display(PrefundingAccountData data) { throwHandlers = false; this.PrefundingAccountForm.Display(data); throwHandlers = true; }
public void Display(PrefundingAccountData data) { this.Form.Display(data); }