Esempio 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);
        }
Esempio n. 2
0
        public AswtlineWTLineNonStockLeaveFieldResponseAPI WTLineNonStockLeaveField(AswtlineWTLineNonStockLeaveFieldRequestAPI AswtlineWTLineNonStockLeaveFieldRequestAPI)
        {
            var result = new AswtlineWTLineNonStockLeaveFieldResponseAPI();

            var pdswtline = new pdswtlineDataSet();

            var pdswtlinenonstockhdr = new pdswtlinenonstockhdrDataSet();

            var pdswtlinenonstock = new pdswtlinenonstockDataSet();

            string cErrorMessage   = string.Empty;
            string cWarningMessage = string.Empty;

            DataRow ttblwtlineRow = pdswtline.ttblwtline.NewttblwtlineRow();

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

            DataRow ttblwtlinenonstockRow = pdswtlinenonstock.ttblwtlinenonstock.NewttblwtlinenonstockRow();

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

            DataRow ttblwtlinenonstockhdrRow = pdswtlinenonstockhdr.ttblwtlinenonstockhdr.NewttblwtlinenonstockhdrRow();

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

            var cFieldName = AswtlineWTLineNonStockLeaveFieldRequestAPI.cFieldName;


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


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

            if (pdswtlinenonstock.ttblwtlinenonstock.Count > 0)
            {
                result.wtlinenonstock = Wtlinenonstock.BuildWtlinenonstockFromRow(pdswtlinenonstock.ttblwtlinenonstock[0]);
            }

            result.cWarningMessage = cWarningMessage;

            return(result);
        }