Esempio n. 1
0
        public AsvaentryVAEASplitInitializeResponseAPI VAEASplitInitialize(Lotcutresults lotcutresults)
        {
            var result = new AsvaentryVAEASplitInitializeResponseAPI();

            var pdsiclotcutresults = new pdsiclotcutresultsDataSet();

            var pdsvaeasplit = new pdsvaeasplitDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttbllotcutresultsCriteria = pdsiclotcutresults.ttbllotcutresults.NewttbllotcutresultsRow();

            Lotcutresults.UpdateRowFromLotcutresults(ref ttbllotcutresultsCriteria, lotcutresults);
            pdsiclotcutresults.ttbllotcutresults.AddttbllotcutresultsRow((pdsiclotcutresultsDataSet.ttbllotcutresultsRow)ttbllotcutresultsCriteria);

            string cErrorMessage = string.Empty;


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsvaeasplit.ttblvaeasplitdata.Count > 0)
            {
                result.vaeasplitdata = Vaeasplitdata.BuildVaeasplitdataFromRow(pdsvaeasplit.ttblvaeasplitdata[0]);
            }


            return(result);
        }
Esempio n. 2
0
        public IEnumerable <Messaging> VAEAAdjustUnavailable(AsvaentryVAEAAdjustUnavailableRequestAPI AsvaentryVAEAAdjustUnavailableRequestAPI)
        {
            var results = new List <Messaging>();

            var pdsiclotcutresults = new pdsiclotcutresultsDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsvaentryVAEAAdjustUnavailableRequestAPI.lotcutresults)
            {
                DataRow ttbllotcutresultsRow = pdsiclotcutresults.ttbllotcutresults.NewttbllotcutresultsRow();
                Lotcutresults.UpdateRowFromLotcutresults(ref ttbllotcutresultsRow, obj);
                pdsiclotcutresults.ttbllotcutresults.AddttbllotcutresultsRow((pdsiclotcutresultsDataSet.ttbllotcutresultsRow)ttbllotcutresultsRow);
            }

            var cReasUnavTy = AsvaentryVAEAAdjustUnavailableRequestAPI.cReasUnavTy;


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }