コード例 #1
0
        public IcsecLookupVendorReferenceResponseAPI LookupVendorReference(Icxrefvendlookupcriteria icxrefvendlookupcriteria)
        {
            var result = new IcsecLookupVendorReferenceResponseAPI();

            var pdsicxrefvendlookup = new pdsicxrefvendlookupDataSet();

            DataRow ttblicxrefvendlookupcriteriaCriteria = pdsicxrefvendlookup.ttblicxrefvendlookupcriteria.NewttblicxrefvendlookupcriteriaRow();

            Icxrefvendlookupcriteria.UpdateRowFromIcxrefvendlookupcriteria(ref ttblicxrefvendlookupcriteriaCriteria, icxrefvendlookupcriteria);
            pdsicxrefvendlookup.ttblicxrefvendlookupcriteria.AddttblicxrefvendlookupcriteriaRow((pdsicxrefvendlookupDataSet.ttblicxrefvendlookupcriteriaRow)ttblicxrefvendlookupcriteriaCriteria);

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


            NLogLoggerP.Trace("LookupVendorReference - Icsec - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poIcsecproxy = this.proxyAppObject.CreatePO_icsecproxy())
                {
                    this.SetRequiredContextParameters();
                    poIcsecproxy.LookupVendorReference(ref pdsContext, ref pdsicxrefvendlookup, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("LookupVendorReference - Icsec - After Call");


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

            foreach (DataRow row in pdsicxrefvendlookup.ttblicxrefvendlookupresults)
            {
                result.icxrefvendlookupresults.Add(Icxrefvendlookupresults.BuildIcxrefvendlookupresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
コード例 #2
0
 public IcsecLookupVendorReferenceResponseAPI LookupVendorReference(Icxrefvendlookupcriteria icxrefvendlookupcriteria)
 {
     return(this.repository.LookupVendorReference(icxrefvendlookupcriteria));
 }