Пример #1
0
        /// <summary>
        /// Sends the payment info to GCS
        /// </summary>
        /// <param name="gcsAccountNumber"></param>
        /// <param name="paymentInfoList"></param>
        /// <returns>PaymentWSDS</returns>
        private PaymentsWSDS SendPaymentsToGCS(string gcsAccountNumber, List <PaymentInfo> paymentInfoList)
        {
            PaymentsWSDS returnedPayment = null;

            try
            {
                WebServicesSoapClient client = new WebServicesSoapClient("GCSWebService");
                //String webServiceUserName, webServicePassword;

                int?         rowcount = 0, pagecount = 0;
                PaymentsWSDS test = client.PaymentsDirectPayGetADO("testwebsrvcDT", "53rV1c3", "", null, "6036335099003114", "", "",
                                                                   "", "", null, null, "", "", "", "", null, "", null, "", "", "", "", "", "", "",
                                                                   "", "", "", "", null, null, ref rowcount, ref pagecount);

                DataTable t  = test.Tables[0];
                DataTable t1 = test.Tables[1];
                DataTable t2 = test.Tables[2];

                PaymentsWSDS paymentDataAdo = new PaymentsWSDS(gcsAccountNumber, paymentInfoList);
                returnedPayment = client.PaymentsSetADO("testwebsrvcDT", "53rV1c3", paymentDataAdo);
            }
            catch (Exception ex)
            {
                EventLog.Error(ex);
            }

            return(returnedPayment);
        }
Пример #2
0
        /// <summary>
        /// Get savings Balance
        /// </summary>
        /// <param name="gcsAccountNumber"></param>
        /// <returns></returns>
        private Decimal GetSavingsBalance(string gcsAccountNumber)
        {
            try
            {
                //Initialize and call
                //HACK --- secure user name password.
                WebServicesSoapClient client = new WebServicesSoapClient("GCSWebService");
                int?         rowcount = 0, pagecount = 0;
                AccountsWSDS ds = client.AccountsGetADO("testwebsrvcDT", "53rV1c3", gcsAccountNumber, String.Empty, String.Empty, String.Empty, null, null, ref rowcount, ref pagecount);

                AccountsWSDS.ACCOUNTSDataTable accountsTable = ds.Tables["ACCOUNTS"] as AccountsWSDS.ACCOUNTSDataTable;
                return((Decimal)accountsTable.Rows[0][accountsTable.ACCOUNT_BALANCEColumn.ColumnName]);
            }
            catch
            {
            }

            return(-1.0M);
        }