コード例 #1
0
        public PdsvLookupResponseAPI Lookup(Pdsvlookupcriteria pdsvlookupcriteria)
        {
            var result = new PdsvLookupResponseAPI();

            var pdspdsvlookup = new pdspdsvlookupDataSet();

            DataRow ttblpdsvlookupcriteriaCriteria = pdspdsvlookup.ttblpdsvlookupcriteria.NewttblpdsvlookupcriteriaRow();

            Pdsvlookupcriteria.UpdateRowFromPdsvlookupcriteria(ref ttblpdsvlookupcriteriaCriteria, pdsvlookupcriteria);
            pdspdsvlookup.ttblpdsvlookupcriteria.AddttblpdsvlookupcriteriaRow((pdspdsvlookupDataSet.ttblpdsvlookupcriteriaRow)ttblpdsvlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Pdsv - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poPdsvproxy = this.proxyAppObject.CreatePO_pdsvproxy())
                {
                    this.SetRequiredContextParameters();
                    poPdsvproxy.Lookup(ref pdsContext, ref pdspdsvlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Pdsv - After Call");


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

            foreach (DataRow row in pdspdsvlookup.ttblpdsvlookupresults)
            {
                result.pdsvlookupresults.Add(Pdsvlookupresults.BuildPdsvlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
コード例 #2
0
 public PdsvLookupResponseAPI Lookup(Pdsvlookupcriteria pdsvlookupcriteria)
 {
     return(this.repository.Lookup(pdsvlookupcriteria));
 }
コード例 #3
0
 public PdsvLookupResponseAPI Lookup(Pdsvlookupcriteria pdsvlookupcriteria)
 {
     return(this.adapter.Lookup(pdsvlookupcriteria));
 }