Exemple #1
0
        public Calcsubtotalsresults CalculateRunningSubTotals(Calcsubtotalscriteria calcsubtotalscriteria)
        {
            var result = new Calcsubtotalsresults();

            var pdscalcsubtotals = new pdscalcsubtotalsDataSet();

            DataRow ttblcalcsubtotalscriteriaCriteria = pdscalcsubtotals.ttblcalcsubtotalscriteria.NewttblcalcsubtotalscriteriaRow();

            Calcsubtotalscriteria.UpdateRowFromCalcsubtotalscriteria(ref ttblcalcsubtotalscriteriaCriteria, calcsubtotalscriteria);
            pdscalcsubtotals.ttblcalcsubtotalscriteria.AddttblcalcsubtotalscriteriaRow((pdscalcsubtotalsDataSet.ttblcalcsubtotalscriteriaRow)ttblcalcsubtotalscriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("CalculateRunningSubTotals - Aswtheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtheaderproxy = this.proxyAppObject.CreatePO_aswtheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtheaderproxy.CalculateRunningSubTotals(ref pdsContext, ref pdscalcsubtotals, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CalculateRunningSubTotals - Aswtheader - After Call");


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

            if (pdscalcsubtotals.ttblcalcsubtotalsresults.Count > 0)
            {
                result = Calcsubtotalsresults.BuildCalcsubtotalsresultsFromRow(pdscalcsubtotals.ttblcalcsubtotalsresults[0]);
            }


            return(result);
        }
Exemple #2
0
 public Calcsubtotalsresults CalculateRunningSubTotals(Calcsubtotalscriteria calcsubtotalscriteria)
 {
     return(this.repository.CalculateRunningSubTotals(calcsubtotalscriteria));
 }
Exemple #3
0
 public Calcsubtotalsresults CalculateRunningSubTotals(Calcsubtotalscriteria calcsubtotalscriteria)
 {
     return(this.adapter.CalculateRunningSubTotals(calcsubtotalscriteria));
 }