Ejemplo n.º 1
0
        public AsvalineVALineTieLeaveFieldResponseAPI VALineTieLeaveField(AsvalineVALineTieLeaveFieldRequestAPI AsvalineVALineTieLeaveFieldRequestAPI)
        {
            var result = new AsvalineVALineTieLeaveFieldResponseAPI();

            var pdsvalinelist = new pdsvalinelistDataSet();

            var pdsvalinelinetie = new pdsvalinelinetieDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblvalinelinetieRow = pdsvalinelinetie.ttblvalinelinetie.NewttblvalinelinetieRow();

            Valinelinetie.UpdateRowFromValinelinetie(ref ttblvalinelinetieRow, AsvalineVALineTieLeaveFieldRequestAPI.valinelinetie);
            pdsvalinelinetie.ttblvalinelinetie.AddttblvalinelinetieRow((pdsvalinelinetieDataSet.ttblvalinelinetieRow)ttblvalinelinetieRow);

            foreach (var obj in AsvalineVALineTieLeaveFieldRequestAPI.valinelistresults)
            {
                DataRow ttblvalinelistresultsRow = pdsvalinelist.ttblvalinelistresults.NewttblvalinelistresultsRow();
                Valinelistresults.UpdateRowFromValinelistresults(ref ttblvalinelistresultsRow, obj);
                pdsvalinelist.ttblvalinelistresults.AddttblvalinelistresultsRow((pdsvalinelistDataSet.ttblvalinelistresultsRow)ttblvalinelistresultsRow);
            }

            var pvFieldname = AsvalineVALineTieLeaveFieldRequestAPI.pvFieldname;


            NLogLoggerP.Trace("VALineTieLeaveField - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineTieLeaveField(ref pdsContext, pvFieldname, pdsvalinelist, ref pdsvalinelinetie, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineTieLeaveField - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsvalinelinetie.ttblvalinelinetie.Count > 0)
            {
                result.valinelinetie = Valinelinetie.BuildValinelinetieFromRow(pdsvalinelinetie.ttblvalinelinetie[0]);
            }


            return(result);
        }
Ejemplo n.º 2
0
        public AsvalineVALineRetrieveResponseAPI VALineRetrieve(Valinelistcriteria valinelistcriteria)
        {
            var result = new AsvalineVALineRetrieveResponseAPI();

            var pdsvalinelist = new pdsvalinelistDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblvalinelistcriteriaCriteria = pdsvalinelist.ttblvalinelistcriteria.NewttblvalinelistcriteriaRow();

            Valinelistcriteria.UpdateRowFromValinelistcriteria(ref ttblvalinelistcriteriaCriteria, valinelistcriteria);
            pdsvalinelist.ttblvalinelistcriteria.AddttblvalinelistcriteriaRow((pdsvalinelistDataSet.ttblvalinelistcriteriaRow)ttblvalinelistcriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("VALineRetrieve - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineRetrieve(ref pdsContext, ref pdsvalinelist, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineRetrieve - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdsvalinelist.ttblvalinelistresults)
            {
                result.valinelistresults.Add(Valinelistresults.BuildValinelistresultsFromRow(row));
            }

            return(result);
        }
Ejemplo n.º 3
0
        public IEnumerable <Messaging> VALineDelete(Valinelistresults valinelistresults)
        {
            var results = new List <Messaging>();

            var pdsvalinelist = new pdsvalinelistDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblvalinelistresultsCriteria = pdsvalinelist.ttblvalinelistresults.NewttblvalinelistresultsRow();

            Valinelistresults.UpdateRowFromValinelistresults(ref ttblvalinelistresultsCriteria, valinelistresults);
            pdsvalinelist.ttblvalinelistresults.AddttblvalinelistresultsRow((pdsvalinelistDataSet.ttblvalinelistresultsRow)ttblvalinelistresultsCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("VALineDelete - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineDelete(ref pdsContext, pdsvalinelist, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineDelete - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Ejemplo n.º 4
0
 public IEnumerable <Messaging> VALineDelete(Valinelistresults valinelistresults)
 {
     return(this.adapter.VALineDelete(valinelistresults));
 }
Ejemplo n.º 5
0
 public IEnumerable <Messaging> VALineDelete(Valinelistresults valinelistresults)
 {
     return(this.repository.VALineDelete(valinelistresults));
 }
Ejemplo n.º 6
0
        public AsvalineVALineAddResponseAPI VALineAdd(AsvalineVALineAddRequestAPI AsvalineVALineAddRequestAPI)
        {
            var result = new AsvalineVALineAddResponseAPI();

            var pdsvalineaddchg = new pdsvalineaddchgDataSet();

            var pdsvalinelist = new pdsvalinelistDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblvalineaddchgRow = pdsvalineaddchg.ttblvalineaddchg.NewttblvalineaddchgRow();

            Valineaddchg.UpdateRowFromValineaddchg(ref ttblvalineaddchgRow, AsvalineVALineAddRequestAPI.valineaddchg);
            pdsvalineaddchg.ttblvalineaddchg.AddttblvalineaddchgRow((pdsvalineaddchgDataSet.ttblvalineaddchgRow)ttblvalineaddchgRow);

            var pvFunctionnm = AsvalineVALineAddRequestAPI.pvFunctionnm;

            var pvVano = AsvalineVALineAddRequestAPI.pvVano;

            var pvVasuf = AsvalineVALineAddRequestAPI.pvVasuf;

            var pvSeqno = AsvalineVALineAddRequestAPI.pvSeqno;


            NLogLoggerP.Trace("VALineAdd - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineAdd(ref pdsContext, pvFunctionnm, pvVano, pvVasuf, pvSeqno, ref pdsvalineaddchg, out pdsvalinelist, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineAdd - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsvalineaddchg.ttblvalineaddchg.Count > 0)
            {
                result.valineaddchg = Valineaddchg.BuildValineaddchgFromRow(pdsvalineaddchg.ttblvalineaddchg[0]);
            }

            if (pdsvalinelist.ttblvalinelistcriteria.Count > 0)
            {
                result.valinelistcriteria = Valinelistcriteria.BuildValinelistcriteriaFromRow(pdsvalinelist.ttblvalinelistcriteria[0]);
            }

            foreach (DataRow row in pdsvalinelist.ttblvalinelistresults)
            {
                result.valinelistresults.Add(Valinelistresults.BuildValinelistresultsFromRow(row));
            }

            return(result);
        }