Example #1
0
        public AsglentryEntryGLETUpdResponseAPI EntryGLETUpd(Gletentrycriteria gletentrycriteria)
        {
            var result = new AsglentryEntryGLETUpdResponseAPI();

            var pdsgletentry = new pdsgletentryDataSet();

            var pdsgletresults = new pdsgletresultsDataSet();

            DataRow ttblgletentrycriteriaCriteria = pdsgletentry.ttblgletentrycriteria.NewttblgletentrycriteriaRow();

            Gletentrycriteria.UpdateRowFromGletentrycriteria(ref ttblgletentrycriteriaCriteria, gletentrycriteria);
            pdsgletentry.ttblgletentrycriteria.AddttblgletentrycriteriaRow((pdsgletentryDataSet.ttblgletentrycriteriaRow)ttblgletentrycriteriaCriteria);

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


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


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

            if (pdsgletresults.ttblgletacctresults.Count > 0)
            {
                result.gletacctresults = Gletacctresults.BuildGletacctresultsFromRow(pdsgletresults.ttblgletacctresults[0]);
            }

            if (pdsgletresults.ttblgletamtresults.Count > 0)
            {
                result.gletamtresults = Gletamtresults.BuildGletamtresultsFromRow(pdsgletresults.ttblgletamtresults[0]);
            }

            result.cWarningMessage = cWarningMessage;

            return(result);
        }
Example #2
0
        public AsglentryFetchGrpDetailResponseAPI FetchGrpDetail(Gletgrpcriteria gletgrpcriteria)
        {
            var result = new AsglentryFetchGrpDetailResponseAPI();

            var pdsgletgrp = new pdsgletgrpDataSet();

            var pdsgletresults = new pdsgletresultsDataSet();

            DataRow ttblgletgrpcriteriaCriteria = pdsgletgrp.ttblgletgrpcriteria.NewttblgletgrpcriteriaRow();

            Gletgrpcriteria.UpdateRowFromGletgrpcriteria(ref ttblgletgrpcriteriaCriteria, gletgrpcriteria);
            pdsgletgrp.ttblgletgrpcriteria.AddttblgletgrpcriteriaRow((pdsgletgrpDataSet.ttblgletgrpcriteriaRow)ttblgletgrpcriteriaCriteria);

            string cErrorMessage = string.Empty;


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


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

            foreach (DataRow row in pdsgletresults.ttblgletacctresults)
            {
                result.gletacctresults.Add(Gletacctresults.BuildGletacctresultsFromRow(row));
            }
            if (pdsgletresults.ttblgletamtresults.Count > 0)
            {
                result.gletamtresults = Gletamtresults.BuildGletamtresultsFromRow(pdsgletresults.ttblgletamtresults[0]);
            }


            return(result);
        }