Beispiel #1
0
        public AsvalineVALineInitializeUpdateResponseAPI VALineInitializeUpdate(AsvalineVALineInitializeUpdateRequestAPI AsvalineVALineInitializeUpdateRequestAPI)
        {
            var result = new AsvalineVALineInitializeUpdateResponseAPI();

            var pdsvalineaddchg = new pdsvalineaddchgDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            var pvFunctionnm = AsvalineVALineInitializeUpdateRequestAPI.pvFunctionnm;

            var pvVano = AsvalineVALineInitializeUpdateRequestAPI.pvVano;

            var pvVasuf = AsvalineVALineInitializeUpdateRequestAPI.pvVasuf;

            var pvSeqno = AsvalineVALineInitializeUpdateRequestAPI.pvSeqno;

            var pvLineno = AsvalineVALineInitializeUpdateRequestAPI.pvLineno;


            NLogLoggerP.Trace("VALineInitializeUpdate - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineInitializeUpdate(ref pdsContext, pvFunctionnm, pvVano, pvVasuf, pvSeqno, pvLineno, out pdsvalineaddchg, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineInitializeUpdate - 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]);
            }


            return(result);
        }
Beispiel #2
0
        public AsvalineVALineLeaveFieldResponseAPI VALineLeaveField(AsvalineVALineLeaveFieldRequestAPI AsvalineVALineLeaveFieldRequestAPI)
        {
            var result = new AsvalineVALineLeaveFieldResponseAPI();

            var pdsvalineaddchg = new pdsvalineaddchgDataSet();

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

            DataRow ttblvalineaddchgRow = pdsvalineaddchg.ttblvalineaddchg.NewttblvalineaddchgRow();

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

            var pvFunctionnm = AsvalineVALineLeaveFieldRequestAPI.pvFunctionnm;

            var pvFieldname = AsvalineVALineLeaveFieldRequestAPI.pvFieldname;


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


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

            if (pdsvalineaddchg.ttblvalineaddchg.Count > 0)
            {
                result.valineaddchg = Valineaddchg.BuildValineaddchgFromRow(pdsvalineaddchg.ttblvalineaddchg[0]);
            }

            result.cWarningMessage = cWarningMessage;

            return(result);
        }