示例#1
0
        public SasjLookupResponseAPI Lookup(Journallookupcriteria journallookupcriteria)
        {
            var result = new SasjLookupResponseAPI();

            var pdsjournallookup = new pdsjournallookupDataSet();

            DataRow ttbljournallookupcriteriaCriteria = pdsjournallookup.ttbljournallookupcriteria.NewttbljournallookupcriteriaRow();

            Journallookupcriteria.UpdateRowFromJournallookupcriteria(ref ttbljournallookupcriteriaCriteria, journallookupcriteria);
            pdsjournallookup.ttbljournallookupcriteria.AddttbljournallookupcriteriaRow((pdsjournallookupDataSet.ttbljournallookupcriteriaRow)ttbljournallookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Sasj - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poSasjproxy = this.proxyAppObject.CreatePO_sasjproxy())
                {
                    this.SetRequiredContextParameters();
                    poSasjproxy.Lookup(ref pdsContext, ref pdsjournallookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Sasj - After Call");


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

            foreach (DataRow row in pdsjournallookup.ttbljournallookupresults)
            {
                result.journallookupresults.Add(Journallookupresults.BuildJournallookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
示例#2
0
 public SasjLookupResponseAPI Lookup(Journallookupcriteria journallookupcriteria)
 {
     return(this.repository.Lookup(journallookupcriteria));
 }
示例#3
0
 public SasjLookupResponseAPI Lookup(Journallookupcriteria journallookupcriteria)
 {
     return(this.adapter.Lookup(journallookupcriteria));
 }