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