Exemplo n.º 1
0
        public AsptxinquiryGetPTXTransactionLinesListResponseAPI GetPTXTransactionLinesList(Ptxtranslineslistcriteria ptxtranslineslistcriteria)
        {
            var result = new AsptxinquiryGetPTXTransactionLinesListResponseAPI();

            var pdsptxtranslineslist = new pdsptxtranslineslistDataSet();

            DataRow ttblptxtranslineslistcriteriaCriteria = pdsptxtranslineslist.ttblptxtranslineslistcriteria.NewttblptxtranslineslistcriteriaRow();

            Ptxtranslineslistcriteria.UpdateRowFromPtxtranslineslistcriteria(ref ttblptxtranslineslistcriteriaCriteria, ptxtranslineslistcriteria);
            pdsptxtranslineslist.ttblptxtranslineslistcriteria.AddttblptxtranslineslistcriteriaRow((pdsptxtranslineslistDataSet.ttblptxtranslineslistcriteriaRow)ttblptxtranslineslistcriteriaCriteria);

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


            NLogLoggerP.Trace("GetPTXTransactionLinesList - Asptxinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsptxinquiryproxy = this.proxyAppObject.CreatePO_asptxinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsptxinquiryproxy.GetPTXTransactionLinesList(ref pdsContext, ref pdsptxtranslineslist, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("GetPTXTransactionLinesList - Asptxinquiry - After Call");


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

            foreach (DataRow row in pdsptxtranslineslist.ttblptxtranslineslisthdr)
            {
                result.ptxtranslineslisthdr.Add(Ptxtranslineslisthdr.BuildPtxtranslineslisthdrFromRow(row));
            }
            foreach (DataRow row in pdsptxtranslineslist.ttblptxtranslineslistnotes)
            {
                result.ptxtranslineslistnotes.Add(Ptxtranslineslistnotes.BuildPtxtranslineslistnotesFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Exemplo n.º 2
0
 public AsptxinquiryGetPTXTransactionLinesListResponseAPI GetPTXTransactionLinesList(Ptxtranslineslistcriteria ptxtranslineslistcriteria)
 {
     return(this.adapter.GetPTXTransactionLinesList(ptxtranslineslistcriteria));
 }