Ejemplo n.º 1
0
 public AspolinePOCoreAllocationLeaveFieldResponseAPI POCoreAllocationLeaveField(AspolinePOCoreAllocationLeaveFieldRequestAPI AspolinePOCoreAllocationLeaveFieldRequestAPI)
 {
     return(this.adapter.POCoreAllocationLeaveField(AspolinePOCoreAllocationLeaveFieldRequestAPI));
 }
Ejemplo n.º 2
0
 public AspolinePOCoreAllocationLeaveFieldResponseAPI POCoreAllocationLeaveField(AspolinePOCoreAllocationLeaveFieldRequestAPI AspolinePOCoreAllocationLeaveFieldRequestAPI)
 {
     return(this.repository.POCoreAllocationLeaveField(AspolinePOCoreAllocationLeaveFieldRequestAPI));
 }
Ejemplo n.º 3
0
        public AspolinePOCoreAllocationLeaveFieldResponseAPI POCoreAllocationLeaveField(AspolinePOCoreAllocationLeaveFieldRequestAPI AspolinePOCoreAllocationLeaveFieldRequestAPI)
        {
            var result = new AspolinePOCoreAllocationLeaveFieldResponseAPI();

            var pdspocoreallocation = new pdspocoreallocationDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblpocoreallocationcriteriaRow = pdspocoreallocation.ttblpocoreallocationcriteria.NewttblpocoreallocationcriteriaRow();

            Pocoreallocationcriteria.UpdateRowFromPocoreallocationcriteria(ref ttblpocoreallocationcriteriaRow, AspolinePOCoreAllocationLeaveFieldRequestAPI.pocoreallocationcriteria);
            pdspocoreallocation.ttblpocoreallocationcriteria.AddttblpocoreallocationcriteriaRow((pdspocoreallocationDataSet.ttblpocoreallocationcriteriaRow)ttblpocoreallocationcriteriaRow);

            foreach (var obj in AspolinePOCoreAllocationLeaveFieldRequestAPI.pocoreallocationresults)
            {
                DataRow ttblpocoreallocationresultsRow = pdspocoreallocation.ttblpocoreallocationresults.NewttblpocoreallocationresultsRow();
                Pocoreallocationresults.UpdateRowFromPocoreallocationresults(ref ttblpocoreallocationresultsRow, obj);
                pdspocoreallocation.ttblpocoreallocationresults.AddttblpocoreallocationresultsRow((pdspocoreallocationDataSet.ttblpocoreallocationresultsRow)ttblpocoreallocationresultsRow);
            }

            DataRow ttblpocoreallocationsingleRow = pdspocoreallocation.ttblpocoreallocationsingle.NewttblpocoreallocationsingleRow();

            Pocoreallocationsingle.UpdateRowFromPocoreallocationsingle(ref ttblpocoreallocationsingleRow, AspolinePOCoreAllocationLeaveFieldRequestAPI.pocoreallocationsingle);
            pdspocoreallocation.ttblpocoreallocationsingle.AddttblpocoreallocationsingleRow((pdspocoreallocationDataSet.ttblpocoreallocationsingleRow)ttblpocoreallocationsingleRow);

            var cFieldName = AspolinePOCoreAllocationLeaveFieldRequestAPI.cFieldName;


            NLogLoggerP.Trace("POCoreAllocationLeaveField - Aspoline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspolineproxy = this.proxyAppObject.CreatePO_aspolineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspolineproxy.POCoreAllocationLeaveField(ref pdsContext, cFieldName, ref pdspocoreallocation, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POCoreAllocationLeaveField - Aspoline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdspocoreallocation.ttblpocoreallocationresults)
            {
                result.pocoreallocationresults.Add(Pocoreallocationresults.BuildPocoreallocationresultsFromRow(row));
            }
            if (pdspocoreallocation.ttblpocoreallocationsingle.Count > 0)
            {
                result.pocoreallocationsingle = Pocoreallocationsingle.BuildPocoreallocationsingleFromRow(pdspocoreallocation.ttblpocoreallocationsingle[0]);
            }


            return(result);
        }