コード例 #1
0
        public AsapinquiryAPIVCreateTransactionsResponseAPI APIVCreateTransactions(Apivcreatetranscriteria apivcreatetranscriteria)
        {
            var result = new AsapinquiryAPIVCreateTransactionsResponseAPI();

            var pdsapivcreatetrans = new pdsapivcreatetransDataSet();

            DataRow ttblapivcreatetranscriteriaCriteria = pdsapivcreatetrans.ttblapivcreatetranscriteria.NewttblapivcreatetranscriteriaRow();

            Apivcreatetranscriteria.UpdateRowFromApivcreatetranscriteria(ref ttblapivcreatetranscriteriaCriteria, apivcreatetranscriteria);
            pdsapivcreatetrans.ttblapivcreatetranscriteria.AddttblapivcreatetranscriteriaRow((pdsapivcreatetransDataSet.ttblapivcreatetranscriteriaRow)ttblapivcreatetranscriteriaCriteria);

            string cErrorMessage = string.Empty;
            bool   lMoreRecords  = false;


            NLogLoggerP.Trace("APIVCreateTransactions - Asapinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsapinquiryproxy = this.proxyAppObject.CreatePO_asapinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsapinquiryproxy.APIVCreateTransactions(ref pdsContext, ref pdsapivcreatetrans, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("APIVCreateTransactions - Asapinquiry - After Call");


            this.ReportErrors(cErrorMessage);
            this.ReportErrors(this.pdsContext);
            this.ReportErrors(pdsapivcreatetrans);

            foreach (DataRow row in pdsapivcreatetrans.ttblapivcreatetransresults)
            {
                result.apivcreatetransresults.Add(Apivcreatetransresults.BuildApivcreatetransresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
コード例 #2
0
 public AsapinquiryAPIVCreateTransactionsResponseAPI APIVCreateTransactions(Apivcreatetranscriteria apivcreatetranscriteria)
 {
     return(this.repository.APIVCreateTransactions(apivcreatetranscriteria));
 }