Exemple #1
0
        public IEnumerable <Loadwlcartonsresults> LoadWLCartons(Loadwlcartonscriteria loadwlcartonscriteria)
        {
            var results = new List <Loadwlcartonsresults>();

            var pdsloadwlcartons = new pdsloadwlcartonsDataSet();

            DataRow ttblloadwlcartonscriteriaCriteria = pdsloadwlcartons.ttblloadwlcartonscriteria.NewttblloadwlcartonscriteriaRow();

            Loadwlcartonscriteria.UpdateRowFromLoadwlcartonscriteria(ref ttblloadwlcartonscriteriaCriteria, loadwlcartonscriteria);
            pdsloadwlcartons.ttblloadwlcartonscriteria.AddttblloadwlcartonscriteriaRow((pdsloadwlcartonsDataSet.ttblloadwlcartonscriteriaRow)ttblloadwlcartonscriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("LoadWLCartons - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.LoadWLCartons(ref pdsContext, ref pdsloadwlcartons, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("LoadWLCartons - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdsloadwlcartons.ttblloadwlcartonsresults)
            {
                results.Add(Loadwlcartonsresults.BuildLoadwlcartonsresultsFromRow(row));
            }
            return(results);
        }
Exemple #2
0
 public IEnumerable <Loadwlcartonsresults> LoadWLCartons(Loadwlcartonscriteria loadwlcartonscriteria)
 {
     return(this.adapter.LoadWLCartons(loadwlcartonscriteria));
 }
Exemple #3
0
 public IEnumerable <Loadwlcartonsresults> LoadWLCartons(Loadwlcartonscriteria loadwlcartonscriteria)
 {
     return(this.repository.LoadWLCartons(loadwlcartonscriteria));
 }