Example #1
0
        public AsvaentryVAEIRetrieveResponseAPI VAEIRetrieve(Vaeicriteria vaeicriteria)
        {
            var result = new AsvaentryVAEIRetrieveResponseAPI();

            var pdsvaei = new pdsvaeiDataSet();

            var pdsvaappliedlaborsectionslist = new pdsvaappliedlaborsectionslistDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblvaeicriteriaCriteria = pdsvaei.ttblvaeicriteria.NewttblvaeicriteriaRow();

            Vaeicriteria.UpdateRowFromVaeicriteria(ref ttblvaeicriteriaCriteria, vaeicriteria);
            pdsvaei.ttblvaeicriteria.AddttblvaeicriteriaRow((pdsvaeiDataSet.ttblvaeicriteriaRow)ttblvaeicriteriaCriteria);

            string cErrorMessage = string.Empty;
            bool   lMoreRecords  = false;


            NLogLoggerP.Trace("VAEIRetrieve - Asvaentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvaentryproxy = this.proxyAppObject.CreatePO_asvaentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvaentryproxy.VAEIRetrieve(ref pdsContext, ref pdsvaei, out pdsvaappliedlaborsectionslist, out pdsmessaging, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("VAEIRetrieve - Asvaentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdsvaappliedlaborsectionslist.ttblvaappliedlaborsectionslist)
            {
                result.vaappliedlaborsectionslist.Add(Vaappliedlaborsectionslist.BuildVaappliedlaborsectionslistFromRow(row));
            }
            foreach (DataRow row in pdsvaei.ttblvaeiresults)
            {
                result.vaeiresults.Add(Vaeiresults.BuildVaeiresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Example #2
0
 public AsvaentryVAEIRetrieveResponseAPI VAEIRetrieve(Vaeicriteria vaeicriteria)
 {
     return(this.adapter.VAEIRetrieve(vaeicriteria));
 }
Example #3
0
 public AsvaentryVAEIRetrieveResponseAPI VAEIRetrieve(Vaeicriteria vaeicriteria)
 {
     return(this.repository.VAEIRetrieve(vaeicriteria));
 }