Exemplo n.º 1
0
        public AswtlineWTLineNonStockFinalResponseAPI WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI AswtlineWTLineNonStockFinalRequestAPI)
        {
            var result = new AswtlineWTLineNonStockFinalResponseAPI();

            var pdswtline = new pdswtlineDataSet();

            var pdswtlinenonstockhdr = new pdswtlinenonstockhdrDataSet();

            var pdswtlinenonstock = new pdswtlinenonstockDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwtlineRow = pdswtline.ttblwtline.NewttblwtlineRow();

            Wtline.UpdateRowFromWtline(ref ttblwtlineRow, AswtlineWTLineNonStockFinalRequestAPI.wtline);
            pdswtline.ttblwtline.AddttblwtlineRow((pdswtlineDataSet.ttblwtlineRow)ttblwtlineRow);

            DataRow ttblwtlinenonstockRow = pdswtlinenonstock.ttblwtlinenonstock.NewttblwtlinenonstockRow();

            Wtlinenonstock.UpdateRowFromWtlinenonstock(ref ttblwtlinenonstockRow, AswtlineWTLineNonStockFinalRequestAPI.wtlinenonstock);
            pdswtlinenonstock.ttblwtlinenonstock.AddttblwtlinenonstockRow((pdswtlinenonstockDataSet.ttblwtlinenonstockRow)ttblwtlinenonstockRow);

            DataRow ttblwtlinenonstockhdrRow = pdswtlinenonstockhdr.ttblwtlinenonstockhdr.NewttblwtlinenonstockhdrRow();

            Wtlinenonstockhdr.UpdateRowFromWtlinenonstockhdr(ref ttblwtlinenonstockhdrRow, AswtlineWTLineNonStockFinalRequestAPI.wtlinenonstockhdr);
            pdswtlinenonstockhdr.ttblwtlinenonstockhdr.AddttblwtlinenonstockhdrRow((pdswtlinenonstockhdrDataSet.ttblwtlinenonstockhdrRow)ttblwtlinenonstockhdrRow);


            NLogLoggerP.Trace("WTLineNonStockFinal - Aswtline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtlineproxy = this.proxyAppObject.CreatePO_aswtlineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtlineproxy.WTLineNonStockFinal(ref pdsContext, pdswtline, pdswtlinenonstockhdr, ref pdswtlinenonstock, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTLineNonStockFinal - Aswtline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswtlinenonstock.ttblwtlinenonstock.Count > 0)
            {
                result.wtlinenonstock = Wtlinenonstock.BuildWtlinenonstockFromRow(pdswtlinenonstock.ttblwtlinenonstock[0]);
            }


            return(result);
        }
Exemplo n.º 2
0
 public AswtlineWTLineNonStockFinalResponseAPI WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI AswtlineWTLineNonStockFinalRequestAPI)
 {
     return(this.repository.WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI));
 }
Exemplo n.º 3
0
 public AswtlineWTLineNonStockFinalResponseAPI WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI AswtlineWTLineNonStockFinalRequestAPI)
 {
     return(this.adapter.WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI));
 }