示例#1
0
        public OeelLookupResponseAPI Lookup(Loadoeelttcriteria loadoeelttcriteria)
        {
            var result = new OeelLookupResponseAPI();

            var pdsloadoeeltt = new pdsloadoeelttDataSet();

            DataRow ttblloadoeelttcriteriaCriteria = pdsloadoeeltt.ttblloadoeelttcriteria.NewttblloadoeelttcriteriaRow();

            Loadoeelttcriteria.UpdateRowFromLoadoeelttcriteria(ref ttblloadoeelttcriteriaCriteria, loadoeelttcriteria);
            pdsloadoeeltt.ttblloadoeelttcriteria.AddttblloadoeelttcriteriaRow((pdsloadoeelttDataSet.ttblloadoeelttcriteriaRow)ttblloadoeelttcriteriaCriteria);

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


            NLogLoggerP.Trace("Lookup - Oeel - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poOeelproxy = this.proxyAppObject.CreatePO_oeelproxy())
                {
                    this.SetRequiredContextParameters();
                    poOeelproxy.Lookup(ref pdsContext, ref pdsloadoeeltt, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("Lookup - Oeel - After Call");


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

            foreach (DataRow row in pdsloadoeeltt.ttblloadoeelttresults)
            {
                result.loadoeelttresults.Add(Loadoeelttresults.BuildLoadoeelttresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
示例#2
0
 public OeelLookupResponseAPI Lookup(Loadoeelttcriteria loadoeelttcriteria)
 {
     return(this.adapter.Lookup(loadoeelttcriteria));
 }
示例#3
0
 public OeelLookupResponseAPI Lookup(Loadoeelttcriteria loadoeelttcriteria)
 {
     return(this.repository.Lookup(loadoeelttcriteria));
 }