Exemplo n.º 1
0
        public IEnumerable <Messaging> VAHeaderPrintRun(AsvaheaderVAHeaderPrintRunRequestAPI AsvaheaderVAHeaderPrintRunRequestAPI)
        {
            var results = new List <Messaging>();

            var pdsvaheaderprint = new pdsvaheaderprintDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsvaheaderVAHeaderPrintRunRequestAPI.vaheaderprint)
            {
                DataRow ttblvaheaderprintRow = pdsvaheaderprint.ttblvaheaderprint.NewttblvaheaderprintRow();
                Vaheaderprint.UpdateRowFromVaheaderprint(ref ttblvaheaderprintRow, obj);
                pdsvaheaderprint.ttblvaheaderprint.AddttblvaheaderprintRow((pdsvaheaderprintDataSet.ttblvaheaderprintRow)ttblvaheaderprintRow);
            }

            var pvVano = AsvaheaderVAHeaderPrintRunRequestAPI.pvVano;

            var pvVasuf = AsvaheaderVAHeaderPrintRunRequestAPI.pvVasuf;


            NLogLoggerP.Trace("VAHeaderPrintRun - Asvaheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvaheaderproxy.VAHeaderPrintRun(ref pdsContext, pvVano, pvVasuf, pdsvaheaderprint, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VAHeaderPrintRun - Asvaheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Exemplo n.º 2
0
 public IEnumerable <Messaging> VAHeaderPrintRun(AsvaheaderVAHeaderPrintRunRequestAPI AsvaheaderVAHeaderPrintRunRequestAPI)
 {
     return(this.repository.VAHeaderPrintRun(AsvaheaderVAHeaderPrintRunRequestAPI));
 }
Exemplo n.º 3
0
 public IEnumerable <Messaging> VAHeaderPrintRun(AsvaheaderVAHeaderPrintRunRequestAPI AsvaheaderVAHeaderPrintRunRequestAPI)
 {
     return(this.adapter.VAHeaderPrintRun(AsvaheaderVAHeaderPrintRunRequestAPI));
 }