Exemple #1
0
        public AspoheaderPOETPrintLoadResponseAPI POETPrintLoad(AspoheaderPOETPrintLoadRequestAPI AspoheaderPOETPrintLoadRequestAPI)
        {
            var result = new AspoheaderPOETPrintLoadResponseAPI();

            var pdspoetprintloadcriteria = new pdspoetprintloadcriteriaDataSet();

            var pdspoetprintglobals = new pdspoetprintglobalsDataSet();

            var pdspoetprint = new pdspoetprintDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblpoetprintglobalsRow = pdspoetprintglobals.ttblpoetprintglobals.NewttblpoetprintglobalsRow();

            Poetprintglobals.UpdateRowFromPoetprintglobals(ref ttblpoetprintglobalsRow, AspoheaderPOETPrintLoadRequestAPI.poetprintglobals);
            pdspoetprintglobals.ttblpoetprintglobals.AddttblpoetprintglobalsRow((pdspoetprintglobalsDataSet.ttblpoetprintglobalsRow)ttblpoetprintglobalsRow);

            DataRow ttblpoetprintloadcriteriaRow = pdspoetprintloadcriteria.ttblpoetprintloadcriteria.NewttblpoetprintloadcriteriaRow();

            Poetprintloadcriteria.UpdateRowFromPoetprintloadcriteria(ref ttblpoetprintloadcriteriaRow, AspoheaderPOETPrintLoadRequestAPI.poetprintloadcriteria);
            pdspoetprintloadcriteria.ttblpoetprintloadcriteria.AddttblpoetprintloadcriteriaRow((pdspoetprintloadcriteriaDataSet.ttblpoetprintloadcriteriaRow)ttblpoetprintloadcriteriaRow);


            NLogLoggerP.Trace("POETPrintLoad - Aspoheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoheaderproxy.POETPrintLoad(ref pdsContext, pdspoetprintloadcriteria, ref pdspoetprintglobals, out pdspoetprint, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POETPrintLoad - Aspoheader - After Call");


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

            foreach (DataRow row in pdspoetprint.ttblpoetprintreportlist)
            {
                result.poetprintreportlist.Add(Poetprintreportlist.BuildPoetprintreportlistFromRow(row));
            }
            if (pdspoetprint.ttblpoetprintscreensingle.Count > 0)
            {
                result.poetprintscreensingle = Poetprintscreensingle.BuildPoetprintscreensingleFromRow(pdspoetprint.ttblpoetprintscreensingle[0]);
            }

            if (pdspoetprintglobals.ttblpoetprintglobals.Count > 0)
            {
                result.poetprintglobals = Poetprintglobals.BuildPoetprintglobalsFromRow(pdspoetprintglobals.ttblpoetprintglobals[0]);
            }


            return(result);
        }
Exemple #2
0
 public AspoheaderPOETPrintLoadResponseAPI POETPrintLoad(AspoheaderPOETPrintLoadRequestAPI AspoheaderPOETPrintLoadRequestAPI)
 {
     return(this.repository.POETPrintLoad(AspoheaderPOETPrintLoadRequestAPI));
 }
Exemple #3
0
 public AspoheaderPOETPrintLoadResponseAPI POETPrintLoad(AspoheaderPOETPrintLoadRequestAPI AspoheaderPOETPrintLoadRequestAPI)
 {
     return(this.adapter.POETPrintLoad(AspoheaderPOETPrintLoadRequestAPI));
 }