Exemple #1
0
        public AsglentryGLETAConvertPercentToAmountResponseAPI GLETAConvertPercentToAmount(AsglentryGLETAConvertPercentToAmountRequestAPI AsglentryGLETAConvertPercentToAmountRequestAPI)
        {
            var result = new AsglentryGLETAConvertPercentToAmountResponseAPI();

            var pdsgleta = new pdsgletaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow();

            Gleta.UpdateRowFromGleta(ref ttblgletaRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gleta);
            pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow);

            DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow();

            Gletaheader.UpdateRowFromGletaheader(ref ttblgletaheaderRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gletaheader);
            pdsgleta.ttblgletaheader.AddttblgletaheaderRow((pdsgletaDataSet.ttblgletaheaderRow)ttblgletaheaderRow);

            var cFieldName = AsglentryGLETAConvertPercentToAmountRequestAPI.cFieldName;


            NLogLoggerP.Trace("GLETAConvertPercentToAmount - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETAConvertPercentToAmount(ref pdsContext, cFieldName, ref pdsgleta, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETAConvertPercentToAmount - Asglentry - After Call");


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

            if (pdsgleta.ttblgleta.Count > 0)
            {
                result.gleta = Gleta.BuildGletaFromRow(pdsgleta.ttblgleta[0]);
            }

            if (pdsgleta.ttblgletaheader.Count > 0)
            {
                result.gletaheader = Gletaheader.BuildGletaheaderFromRow(pdsgleta.ttblgletaheader[0]);
            }

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }

            return(result);
        }
Exemple #2
0
        public IEnumerable <Glupdate> GLETAGetUpdateData(AsglentryGLETAGetUpdateDataRequestAPI AsglentryGLETAGetUpdateDataRequestAPI)
        {
            var results = new List <Glupdate>();

            var pdsgleta = new pdsgletaDataSet();

            var pdsgletaparam = new pdsgletaparamDataSet();

            var pdsglupdate = new pdsglupdateDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsglentryGLETAGetUpdateDataRequestAPI.gleta)
            {
                DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow();
                Gleta.UpdateRowFromGleta(ref ttblgletaRow, obj);
                pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow);
            }

            DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow();

            Gletaheader.UpdateRowFromGletaheader(ref ttblgletaheaderRow, AsglentryGLETAGetUpdateDataRequestAPI.gletaheader);
            pdsgleta.ttblgletaheader.AddttblgletaheaderRow((pdsgletaDataSet.ttblgletaheaderRow)ttblgletaheaderRow);

            DataRow ttblgletaparamRow = pdsgletaparam.ttblgletaparam.NewttblgletaparamRow();

            Gletaparam.UpdateRowFromGletaparam(ref ttblgletaparamRow, AsglentryGLETAGetUpdateDataRequestAPI.gletaparam);
            pdsgletaparam.ttblgletaparam.AddttblgletaparamRow((pdsgletaparamDataSet.ttblgletaparamRow)ttblgletaparamRow);

            var iJrnlno = AsglentryGLETAGetUpdateDataRequestAPI.iJrnlno;


            NLogLoggerP.Trace("GLETAGetUpdateData - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETAGetUpdateData(ref pdsContext, iJrnlno, pdsgleta, pdsgletaparam, out pdsglupdate, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETAGetUpdateData - Asglentry - After Call");


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

            foreach (DataRow row in pdsglupdate.ttblglupdate)
            {
                results.Add(Glupdate.BuildGlupdateFromRow(row));
            }
            return(results);
        }
Exemple #3
0
        public AsglentryGLETAInitiatePDResponseAPI GLETAInitiatePD(Gletainitiatepd gletainitiatepd)
        {
            var result = new AsglentryGLETAInitiatePDResponseAPI();

            var pdsgletainitiatepd = new pdsgletainitiatepdDataSet();

            var pdsgleta = new pdsgletaDataSet();

            DataRow ttblgletainitiatepdCriteria = pdsgletainitiatepd.ttblgletainitiatepd.NewttblgletainitiatepdRow();

            Gletainitiatepd.UpdateRowFromGletainitiatepd(ref ttblgletainitiatepdCriteria, gletainitiatepd);
            pdsgletainitiatepd.ttblgletainitiatepd.AddttblgletainitiatepdRow((pdsgletainitiatepdDataSet.ttblgletainitiatepdRow)ttblgletainitiatepdCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("GLETAInitiatePD - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETAInitiatePD(ref pdsContext, pdsgletainitiatepd, out pdsgleta, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETAInitiatePD - Asglentry - After Call");


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

            foreach (DataRow row in pdsgleta.ttblgleta)
            {
                result.gleta.Add(Gleta.BuildGletaFromRow(row));
            }
            if (pdsgleta.ttblgletacriteria.Count > 0)
            {
                result.gletacriteria = Gletacriteria.BuildGletacriteriaFromRow(pdsgleta.ttblgletacriteria[0]);
            }

            if (pdsgleta.ttblgletaheader.Count > 0)
            {
                result.gletaheader = Gletaheader.BuildGletaheaderFromRow(pdsgleta.ttblgletaheader[0]);
            }


            return(result);
        }