Ejemplo n.º 1
0
        public AsotentryOTETTrackTotalUpdateResponseAPI OTETTrackTotalUpdate(AsotentryOTETTrackTotalUpdateRequestAPI AsotentryOTETTrackTotalUpdateRequestAPI)
        {
            var result = new AsotentryOTETTrackTotalUpdateResponseAPI();

            var pdsotettrackdetail = new pdsotettrackdetailDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsotentryOTETTrackTotalUpdateRequestAPI.otaddons)
            {
                DataRow ttblotaddonsRow = pdsotaddons.ttblotaddons.NewttblotaddonsRow();
                Otaddons.UpdateRowFromOtaddons(ref ttblotaddonsRow, obj);
                pdsotaddons.ttblotaddons.AddttblotaddonsRow((pdsotaddonsDataSet.ttblotaddonsRow)ttblotaddonsRow);
            }

            DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow();

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


            NLogLoggerP.Trace("OTETTrackTotalUpdate - Asotentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsotentryproxy.OTETTrackTotalUpdate(ref pdsContext, ref pdsotettrackdetail, pdsotaddons, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("OTETTrackTotalUpdate - 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));
            }
            if (pdsotettrackdetail.ttblotettrackdetail.Count > 0)
            {
                result.otettrackdetail = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]);
            }


            return(result);
        }
Ejemplo n.º 2
0
        public AsotentryOTETAddTrackNoResponseAPI OTETAddTrackNo()
        {
            var result = new AsotentryOTETAddTrackNoResponseAPI();

            var pdsotettrackdetail = new pdsotettrackdetailDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

            int    iTrackNo      = 0;
            string cErrorMessage = string.Empty;


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


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

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

            result.iTrackNo = iTrackNo;

            return(result);
        }
Ejemplo n.º 3
0
        public Otettrackdetail OTETDeletePOLine(AsotentryOTETDeletePOLineRequestAPI AsotentryOTETDeletePOLineRequestAPI)
        {
            var result = new Otettrackdetail();

            var pdsotettrackdetail = new pdsotettrackdetailDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow();

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

            var iLineNo = AsotentryOTETDeletePOLineRequestAPI.iLineNo;


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


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

            if (pdsotettrackdetail.ttblotettrackdetail.Count > 0)
            {
                result = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]);
            }


            return(result);
        }