Exemple #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);
        }
Exemple #2
0
        public AsotentryAddOTAddonFieldLeaveResponseAPI AddOTAddonFieldLeave(AsotentryAddOTAddonFieldLeaveRequestAPI AsotentryAddOTAddonFieldLeaveRequestAPI)
        {
            var result = new AsotentryAddOTAddonFieldLeaveResponseAPI();

            var pdsaddotaddon = new pdsaddotaddonDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

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

            DataRow ttbladdotaddoncriteriaRow = pdsaddotaddon.ttbladdotaddoncriteria.NewttbladdotaddoncriteriaRow();

            Addotaddoncriteria.UpdateRowFromAddotaddoncriteria(ref ttbladdotaddoncriteriaRow, AsotentryAddOTAddonFieldLeaveRequestAPI.addotaddoncriteria);
            pdsaddotaddon.ttbladdotaddoncriteria.AddttbladdotaddoncriteriaRow((pdsaddotaddonDataSet.ttbladdotaddoncriteriaRow)ttbladdotaddoncriteriaRow);

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

            var pvFieldname = AsotentryAddOTAddonFieldLeaveRequestAPI.pvFieldname;


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


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

            if (pdsaddotaddon.ttbladdotaddoncriteria.Count > 0)
            {
                result.addotaddoncriteria = Addotaddoncriteria.BuildAddotaddoncriteriaFromRow(pdsaddotaddon.ttbladdotaddoncriteria[0]);
            }

            result.cWarningMessage = cWarningMessage;

            return(result);
        }
Exemple #3
0
        public AsotentryChangeOTAddonFieldLeaveResponseAPI ChangeOTAddonFieldLeave(AsotentryChangeOTAddonFieldLeaveRequestAPI AsotentryChangeOTAddonFieldLeaveRequestAPI)
        {
            var result = new AsotentryChangeOTAddonFieldLeaveResponseAPI();

            var pdsotaddons = new pdsotaddonsDataSet();

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

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

            var pvSeqno = AsotentryChangeOTAddonFieldLeaveRequestAPI.pvSeqno;

            var pvFieldname = AsotentryChangeOTAddonFieldLeaveRequestAPI.pvFieldname;


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


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

            foreach (DataRow row in pdsotaddons.ttblotaddons)
            {
                result.otaddons.Add(Otaddons.BuildOtaddonsFromRow(row));
            }
            result.cWarningMessage = cWarningMessage;

            return(result);
        }
Exemple #4
0
        public IEnumerable <Otaddons> AddOTAddon(AsotentryAddOTAddonRequestAPI AsotentryAddOTAddonRequestAPI)
        {
            var results = new List <Otaddons>();

            var pdsaddotaddon = new pdsaddotaddonDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttbladdotaddoncriteriaRow = pdsaddotaddon.ttbladdotaddoncriteria.NewttbladdotaddoncriteriaRow();

            Addotaddoncriteria.UpdateRowFromAddotaddoncriteria(ref ttbladdotaddoncriteriaRow, AsotentryAddOTAddonRequestAPI.addotaddoncriteria);
            pdsaddotaddon.ttbladdotaddoncriteria.AddttbladdotaddoncriteriaRow((pdsaddotaddonDataSet.ttbladdotaddoncriteriaRow)ttbladdotaddoncriteriaRow);

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


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


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

            foreach (DataRow row in pdsotaddons.ttblotaddons)
            {
                results.Add(Otaddons.BuildOtaddonsFromRow(row));
            }
            return(results);
        }
Exemple #5
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);
        }