コード例 #1
0
        public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria)
        {
            var result = new PdscmLookupResponseAPI();

            var pdspdscmlookup = new pdspdscmlookupDataSet();

            DataRow ttblpdscmlookupcriteriaCriteria = pdspdscmlookup.ttblpdscmlookupcriteria.NewttblpdscmlookupcriteriaRow();

            Pdscmlookupcriteria.UpdateRowFromPdscmlookupcriteria(ref ttblpdscmlookupcriteriaCriteria, pdscmlookupcriteria);
            pdspdscmlookup.ttblpdscmlookupcriteria.AddttblpdscmlookupcriteriaRow((pdspdscmlookupDataSet.ttblpdscmlookupcriteriaRow)ttblpdscmlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Pdscm - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poPdscmproxy = this.proxyAppObject.CreatePO_pdscmproxy())
                {
                    this.SetRequiredContextParameters();
                    poPdscmproxy.Lookup(ref pdsContext, ref pdspdscmlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Pdscm - After Call");


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

            foreach (DataRow row in pdspdscmlookup.ttblpdscmlookupresults)
            {
                result.pdscmlookupresults.Add(Pdscmlookupresults.BuildPdscmlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
コード例 #2
0
 public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria)
 {
     return(this.repository.Lookup(pdscmlookupcriteria));
 }
コード例 #3
0
 public PdscmLookupResponseAPI Lookup(Pdscmlookupcriteria pdscmlookupcriteria)
 {
     return(this.adapter.Lookup(pdscmlookupcriteria));
 }