Beispiel #1
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);
        }
Beispiel #2
0
 public AsglentryFetchGrpDetailResponseAPI FetchGrpDetail(Gletgrpcriteria gletgrpcriteria)
 {
     return(this.repository.FetchGrpDetail(gletgrpcriteria));
 }
Beispiel #3
0
 public AsglentryFetchGrpDetailResponseAPI FetchGrpDetail(Gletgrpcriteria gletgrpcriteria)
 {
     return(this.adapter.FetchGrpDetail(gletgrpcriteria));
 }