Example #1
0
        public AswtheaderWTETHeaderRetrieveResponseAPI WTETHeaderRetrieve(Wtheaderretrievecriteria wtheaderretrievecriteria)
        {
            var result = new AswtheaderWTETHeaderRetrieveResponseAPI();

            var pdswtheaderretrieve = new pdswtheaderretrieveDataSet();

            var pdswthdr = new pdswthdrDataSet();

            var pdswlstatus = new pdswlstatusDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblwtheaderretrievecriteriaCriteria = pdswtheaderretrieve.ttblwtheaderretrievecriteria.NewttblwtheaderretrievecriteriaRow();

            Wtheaderretrievecriteria.UpdateRowFromWtheaderretrievecriteria(ref ttblwtheaderretrievecriteriaCriteria, wtheaderretrievecriteria);
            pdswtheaderretrieve.ttblwtheaderretrievecriteria.AddttblwtheaderretrievecriteriaRow((pdswtheaderretrieveDataSet.ttblwtheaderretrievecriteriaRow)ttblwtheaderretrievecriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("WTETHeaderRetrieve - Aswtheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtheaderproxy = this.proxyAppObject.CreatePO_aswtheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtheaderproxy.WTETHeaderRetrieve(ref pdsContext, pdswtheaderretrieve, out pdswthdr, out pdswlstatus, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTETHeaderRetrieve - Aswtheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswlstatus.ttblwlstatus.Count > 0)
            {
                result.wlstatus = Wlstatus.BuildWlstatusFromRow(pdswlstatus.ttblwlstatus[0]);
            }

            if (pdswthdr.ttblwthdr.Count > 0)
            {
                result.wthdr = Wthdr.BuildWthdrFromRow(pdswthdr.ttblwthdr[0]);
            }


            return(result);
        }
Example #2
0
 public AswtheaderWTETHeaderRetrieveResponseAPI WTETHeaderRetrieve(Wtheaderretrievecriteria wtheaderretrievecriteria)
 {
     return(this.repository.WTETHeaderRetrieve(wtheaderretrievecriteria));
 }
Example #3
0
 public AswtheaderWTETHeaderRetrieveResponseAPI WTETHeaderRetrieve(Wtheaderretrievecriteria wtheaderretrievecriteria)
 {
     return(this.adapter.WTETHeaderRetrieve(wtheaderretrievecriteria));
 }