Beispiel #1
0
        public AsotentryOTETAddPOLineUpdateResponseAPI OTETAddPOLineUpdate(AsotentryOTETAddPOLineUpdateRequestAPI AsotentryOTETAddPOLineUpdateRequestAPI)
        {
            var result = new AsotentryOTETAddPOLineUpdateResponseAPI();

            var pdsotettrackdetail = new pdsotettrackdetailDataSet();

            var pdsotetaddpolines = new pdsotetaddpolinesDataSet();

            var pdsotittrackline = new pdsotittracklineDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsotentryOTETAddPOLineUpdateRequestAPI.otetaddpolines)
            {
                DataRow ttblotetaddpolinesRow = pdsotetaddpolines.ttblotetaddpolines.NewttblotetaddpolinesRow();
                Otetaddpolines.UpdateRowFromOtetaddpolines(ref ttblotetaddpolinesRow, obj);
                pdsotetaddpolines.ttblotetaddpolines.AddttblotetaddpolinesRow((pdsotetaddpolinesDataSet.ttblotetaddpolinesRow)ttblotetaddpolinesRow);
            }

            DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow();

            Otettrackdetail.UpdateRowFromOtettrackdetail(ref ttblotettrackdetailRow, AsotentryOTETAddPOLineUpdateRequestAPI.otettrackdetail);
            pdsotettrackdetail.ttblotettrackdetail.AddttblotettrackdetailRow((pdsotettrackdetailDataSet.ttblotettrackdetailRow)ttblotettrackdetailRow);


            NLogLoggerP.Trace("OTETAddPOLineUpdate - Asotentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsotentryproxy.OTETAddPOLineUpdate(ref pdsContext, ref pdsotettrackdetail, pdsotetaddpolines, out pdsotittrackline, out pdsotaddons, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("OTETAddPOLineUpdate - Asotentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdsotaddons.ttblotaddons)
            {
                result.otaddons.Add(Otaddons.BuildOtaddonsFromRow(row));
            }
            if (pdsotettrackdetail.ttblotettrackdetail.Count > 0)
            {
                result.otettrackdetail = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]);
            }

            foreach (DataRow row in pdsotittrackline.ttblotittrackline)
            {
                result.otittrackline.Add(Otittrackline.BuildOtittracklineFromRow(row));
            }

            return(result);
        }
Beispiel #2
0
 public AsotentryOTETAddPOLineUpdateResponseAPI OTETAddPOLineUpdate(AsotentryOTETAddPOLineUpdateRequestAPI AsotentryOTETAddPOLineUpdateRequestAPI)
 {
     return(this.repository.OTETAddPOLineUpdate(AsotentryOTETAddPOLineUpdateRequestAPI));
 }
Beispiel #3
0
 public AsotentryOTETAddPOLineUpdateResponseAPI OTETAddPOLineUpdate(AsotentryOTETAddPOLineUpdateRequestAPI AsotentryOTETAddPOLineUpdateRequestAPI)
 {
     return(this.adapter.OTETAddPOLineUpdate(AsotentryOTETAddPOLineUpdateRequestAPI));
 }