Example #1
0
        public IEnumerable <Messaging> VAEUUpgrade(int pvVano, int pvVasuf, int pvFromverno, int pvToverno)
        {
            var results = new List <Messaging>();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Example #2
0
        public AspolinePOLineCreateResponseAPI POLineCreate(AspolinePOLineCreateRequestAPI AspolinePOLineCreateRequestAPI)
        {
            var result = new AspolinePOLineCreateResponseAPI();

            var pdspoline = new pdspolineDataSet();

            var pdspolineties = new pdspolinetiesDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage  = string.Empty;
            string cUpdateMessage = string.Empty;

            DataRow ttblpolineRow = pdspoline.ttblpoline.NewttblpolineRow();

            Poline.UpdateRowFromPoline(ref ttblpolineRow, AspolinePOLineCreateRequestAPI.poline);
            pdspoline.ttblpoline.AddttblpolineRow((pdspolineDataSet.ttblpolineRow)ttblpolineRow);

            foreach (var obj in AspolinePOLineCreateRequestAPI.polineties)
            {
                DataRow ttblpolinetiesRow = pdspolineties.ttblpolineties.NewttblpolinetiesRow();
                Polineties.UpdateRowFromPolineties(ref ttblpolinetiesRow, obj);
                pdspolineties.ttblpolineties.AddttblpolinetiesRow((pdspolinetiesDataSet.ttblpolinetiesRow)ttblpolinetiesRow);
            }

            var cMaintMode = AspolinePOLineCreateRequestAPI.cMaintMode;

            var cChangeList = AspolinePOLineCreateRequestAPI.cChangeList;


            NLogLoggerP.Trace("POLineCreate - Aspoline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspolineproxy = this.proxyAppObject.CreatePO_aspolineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspolineproxy.POLineCreate(ref pdsContext, cMaintMode, cChangeList, ref pdspoline, pdspolineties, out pdsmessaging, out cErrorMessage, out cUpdateMessage);
                }
            });
            NLogLoggerP.Info("POLineCreate - Aspoline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdspoline.ttblpoline.Count > 0)
            {
                result.poline = Poline.BuildPolineFromRow(pdspoline.ttblpoline[0]);
            }

            result.cUpdateMessage = cUpdateMessage;

            return(result);
        }
Example #3
0
        public AswtlineWTEELineUpdateResponseAPI WTEELineUpdate(AswtlineWTEELineUpdateRequestAPI AswtlineWTEELineUpdateRequestAPI)
        {
            var result = new AswtlineWTEELineUpdateResponseAPI();

            var pdswteelines = new pdswteelinesDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AswtlineWTEELineUpdateRequestAPI.wteelines)
            {
                DataRow ttblwteelinesRow = pdswteelines.ttblwteelines.NewttblwteelinesRow();
                Wteelines.UpdateRowFromWteelines(ref ttblwteelinesRow, obj);
                pdswteelines.ttblwteelines.AddttblwteelinesRow((pdswteelinesDataSet.ttblwteelinesRow)ttblwteelinesRow);
            }

            DataRow ttblwteelinesummaryRow = pdswteelines.ttblwteelinesummary.NewttblwteelinesummaryRow();

            Wteelinesummary.UpdateRowFromWteelinesummary(ref ttblwteelinesummaryRow, AswtlineWTEELineUpdateRequestAPI.wteelinesummary);
            pdswteelines.ttblwteelinesummary.AddttblwteelinesummaryRow((pdswteelinesDataSet.ttblwteelinesummaryRow)ttblwteelinesummaryRow);

            var cActionType = AswtlineWTEELineUpdateRequestAPI.cActionType;

            var cReasUnAvTy = AswtlineWTEELineUpdateRequestAPI.cReasUnAvTy;


            NLogLoggerP.Trace("WTEELineUpdate - Aswtline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtlineproxy = this.proxyAppObject.CreatePO_aswtlineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtlineproxy.WTEELineUpdate(ref pdsContext, cActionType, cReasUnAvTy, ref pdswteelines, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTEELineUpdate - Aswtline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdswteelines.ttblwteelines)
            {
                result.wteelines.Add(Wteelines.BuildWteelinesFromRow(row));
            }
            if (pdswteelines.ttblwteelinesummary.Count > 0)
            {
                result.wteelinesummary = Wteelinesummary.BuildWteelinesummaryFromRow(pdswteelines.ttblwteelinesummary[0]);
            }


            return(result);
        }
Example #4
0
        public IEnumerable <Messaging> VAHeaderDetailCheckAccess(int iVANo, int iVASuf)
        {
            var results = new List <Messaging>();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("VAHeaderDetailCheckAccess - Asvaheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvaheaderproxy.VAHeaderDetailCheckAccess(ref pdsContext, iVANo, iVASuf, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VAHeaderDetailCheckAccess - Asvaheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Example #5
0
        public AswtheaderWTDefaultPrinterResponseAPI WTDefaultPrinter(int iWTNo, int iWTSuf)
        {
            var result = new AswtheaderWTDefaultPrinterResponseAPI();

            var pdsmessaging = new pdsmessagingDataSet();

            string cDefaultPrinter = string.Empty;
            string cErrorMessage   = string.Empty;


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            result.cDefaultPrinter = cDefaultPrinter;

            return(result);
        }
Example #6
0
        public AspolinePOCoreAllocationUpdateResponseAPI POCoreAllocationUpdate(AspolinePOCoreAllocationUpdateRequestAPI AspolinePOCoreAllocationUpdateRequestAPI)
        {
            var result = new AspolinePOCoreAllocationUpdateResponseAPI();

            var pdspocoreallocation = new pdspocoreallocationDataSet();

            var pdspocoreallocationupdate = new pdspocoreallocationupdateDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblpocoreallocationcriteriaRow = pdspocoreallocation.ttblpocoreallocationcriteria.NewttblpocoreallocationcriteriaRow();

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

            foreach (var obj in AspolinePOCoreAllocationUpdateRequestAPI.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, AspolinePOCoreAllocationUpdateRequestAPI.pocoreallocationsingle);
            pdspocoreallocation.ttblpocoreallocationsingle.AddttblpocoreallocationsingleRow((pdspocoreallocationDataSet.ttblpocoreallocationsingleRow)ttblpocoreallocationsingleRow);


            NLogLoggerP.Trace("POCoreAllocationUpdate - Aspoline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspolineproxy = this.proxyAppObject.CreatePO_aspolineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspolineproxy.POCoreAllocationUpdate(ref pdsContext, pdspocoreallocation, out pdspocoreallocationupdate, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POCoreAllocationUpdate - 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));
            }
            if (pdspocoreallocationupdate.ttblpocoreallocationupdate.Count > 0)
            {
                result.pocoreallocationupdate = Pocoreallocationupdate.BuildPocoreallocationupdateFromRow(pdspocoreallocationupdate.ttblpocoreallocationupdate[0]);
            }


            return(result);
        }
Example #7
0
        public AswtlineWTLineNonStockFinalResponseAPI WTLineNonStockFinal(AswtlineWTLineNonStockFinalRequestAPI AswtlineWTLineNonStockFinalRequestAPI)
        {
            var result = new AswtlineWTLineNonStockFinalResponseAPI();

            var pdswtline = new pdswtlineDataSet();

            var pdswtlinenonstockhdr = new pdswtlinenonstockhdrDataSet();

            var pdswtlinenonstock = new pdswtlinenonstockDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwtlineRow = pdswtline.ttblwtline.NewttblwtlineRow();

            Wtline.UpdateRowFromWtline(ref ttblwtlineRow, AswtlineWTLineNonStockFinalRequestAPI.wtline);
            pdswtline.ttblwtline.AddttblwtlineRow((pdswtlineDataSet.ttblwtlineRow)ttblwtlineRow);

            DataRow ttblwtlinenonstockRow = pdswtlinenonstock.ttblwtlinenonstock.NewttblwtlinenonstockRow();

            Wtlinenonstock.UpdateRowFromWtlinenonstock(ref ttblwtlinenonstockRow, AswtlineWTLineNonStockFinalRequestAPI.wtlinenonstock);
            pdswtlinenonstock.ttblwtlinenonstock.AddttblwtlinenonstockRow((pdswtlinenonstockDataSet.ttblwtlinenonstockRow)ttblwtlinenonstockRow);

            DataRow ttblwtlinenonstockhdrRow = pdswtlinenonstockhdr.ttblwtlinenonstockhdr.NewttblwtlinenonstockhdrRow();

            Wtlinenonstockhdr.UpdateRowFromWtlinenonstockhdr(ref ttblwtlinenonstockhdrRow, AswtlineWTLineNonStockFinalRequestAPI.wtlinenonstockhdr);
            pdswtlinenonstockhdr.ttblwtlinenonstockhdr.AddttblwtlinenonstockhdrRow((pdswtlinenonstockhdrDataSet.ttblwtlinenonstockhdrRow)ttblwtlinenonstockhdrRow);


            NLogLoggerP.Trace("WTLineNonStockFinal - Aswtline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtlineproxy = this.proxyAppObject.CreatePO_aswtlineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtlineproxy.WTLineNonStockFinal(ref pdsContext, pdswtline, pdswtlinenonstockhdr, ref pdswtlinenonstock, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTLineNonStockFinal - Aswtline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswtlinenonstock.ttblwtlinenonstock.Count > 0)
            {
                result.wtlinenonstock = Wtlinenonstock.BuildWtlinenonstockFromRow(pdswtlinenonstock.ttblwtlinenonstock[0]);
            }


            return(result);
        }
Example #8
0
        public AsotentryOTEVVesselHeaderUpdateResponseAPI OTEVVesselHeaderUpdate(AsotentryOTEVVesselHeaderUpdateRequestAPI AsotentryOTEVVesselHeaderUpdateRequestAPI)
        {
            var result = new AsotentryOTEVVesselHeaderUpdateResponseAPI();

            var pdsotevvesselheader = new pdsotevvesselheaderDataSet();

            var pdsotevvesseldata = new pdsotevvesseldataDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblotevvesseldataRow = pdsotevvesseldata.ttblotevvesseldata.NewttblotevvesseldataRow();

            Otevvesseldata.UpdateRowFromOtevvesseldata(ref ttblotevvesseldataRow, AsotentryOTEVVesselHeaderUpdateRequestAPI.otevvesseldata);
            pdsotevvesseldata.ttblotevvesseldata.AddttblotevvesseldataRow((pdsotevvesseldataDataSet.ttblotevvesseldataRow)ttblotevvesseldataRow);

            DataRow ttblotevvesselheaderRow = pdsotevvesselheader.ttblotevvesselheader.NewttblotevvesselheaderRow();

            Otevvesselheader.UpdateRowFromOtevvesselheader(ref ttblotevvesselheaderRow, AsotentryOTEVVesselHeaderUpdateRequestAPI.otevvesselheader);
            pdsotevvesselheader.ttblotevvesselheader.AddttblotevvesselheaderRow((pdsotevvesselheaderDataSet.ttblotevvesselheaderRow)ttblotevvesselheaderRow);


            NLogLoggerP.Trace("OTEVVesselHeaderUpdate - Asotentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsotentryproxy.OTEVVesselHeaderUpdate(ref pdsContext, ref pdsotevvesselheader, ref pdsotevvesseldata, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("OTEVVesselHeaderUpdate - Asotentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsotevvesseldata.ttblotevvesseldata.Count > 0)
            {
                result.otevvesseldata = Otevvesseldata.BuildOtevvesseldataFromRow(pdsotevvesseldata.ttblotevvesseldata[0]);
            }

            if (pdsotevvesselheader.ttblotevvesselheader.Count > 0)
            {
                result.otevvesselheader = Otevvesselheader.BuildOtevvesselheaderFromRow(pdsotevvesselheader.ttblotevvesselheader[0]);
            }


            return(result);
        }
Example #9
0
        public AsglentryGLETAConvertPercentToAmountResponseAPI GLETAConvertPercentToAmount(AsglentryGLETAConvertPercentToAmountRequestAPI AsglentryGLETAConvertPercentToAmountRequestAPI)
        {
            var result = new AsglentryGLETAConvertPercentToAmountResponseAPI();

            var pdsgleta = new pdsgletaDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblgletaRow = pdsgleta.ttblgleta.NewttblgletaRow();

            Gleta.UpdateRowFromGleta(ref ttblgletaRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gleta);
            pdsgleta.ttblgleta.AddttblgletaRow((pdsgletaDataSet.ttblgletaRow)ttblgletaRow);

            DataRow ttblgletaheaderRow = pdsgleta.ttblgletaheader.NewttblgletaheaderRow();

            Gletaheader.UpdateRowFromGletaheader(ref ttblgletaheaderRow, AsglentryGLETAConvertPercentToAmountRequestAPI.gletaheader);
            pdsgleta.ttblgletaheader.AddttblgletaheaderRow((pdsgletaDataSet.ttblgletaheaderRow)ttblgletaheaderRow);

            var cFieldName = AsglentryGLETAConvertPercentToAmountRequestAPI.cFieldName;


            NLogLoggerP.Trace("GLETAConvertPercentToAmount - Asglentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsglentryproxy = this.proxyAppObject.CreatePO_asglentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsglentryproxy.GLETAConvertPercentToAmount(ref pdsContext, cFieldName, ref pdsgleta, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("GLETAConvertPercentToAmount - Asglentry - After Call");


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

            if (pdsgleta.ttblgleta.Count > 0)
            {
                result.gleta = Gleta.BuildGletaFromRow(pdsgleta.ttblgleta[0]);
            }

            if (pdsgleta.ttblgletaheader.Count > 0)
            {
                result.gletaheader = Gletaheader.BuildGletaheaderFromRow(pdsgleta.ttblgletaheader[0]);
            }

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }

            return(result);
        }
Example #10
0
        public AsvalineVALineTieLeaveFieldResponseAPI VALineTieLeaveField(AsvalineVALineTieLeaveFieldRequestAPI AsvalineVALineTieLeaveFieldRequestAPI)
        {
            var result = new AsvalineVALineTieLeaveFieldResponseAPI();

            var pdsvalinelist = new pdsvalinelistDataSet();

            var pdsvalinelinetie = new pdsvalinelinetieDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblvalinelinetieRow = pdsvalinelinetie.ttblvalinelinetie.NewttblvalinelinetieRow();

            Valinelinetie.UpdateRowFromValinelinetie(ref ttblvalinelinetieRow, AsvalineVALineTieLeaveFieldRequestAPI.valinelinetie);
            pdsvalinelinetie.ttblvalinelinetie.AddttblvalinelinetieRow((pdsvalinelinetieDataSet.ttblvalinelinetieRow)ttblvalinelinetieRow);

            foreach (var obj in AsvalineVALineTieLeaveFieldRequestAPI.valinelistresults)
            {
                DataRow ttblvalinelistresultsRow = pdsvalinelist.ttblvalinelistresults.NewttblvalinelistresultsRow();
                Valinelistresults.UpdateRowFromValinelistresults(ref ttblvalinelistresultsRow, obj);
                pdsvalinelist.ttblvalinelistresults.AddttblvalinelistresultsRow((pdsvalinelistDataSet.ttblvalinelistresultsRow)ttblvalinelistresultsRow);
            }

            var pvFieldname = AsvalineVALineTieLeaveFieldRequestAPI.pvFieldname;


            NLogLoggerP.Trace("VALineTieLeaveField - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineTieLeaveField(ref pdsContext, pvFieldname, pdsvalinelist, ref pdsvalinelinetie, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineTieLeaveField - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsvalinelinetie.ttblvalinelinetie.Count > 0)
            {
                result.valinelinetie = Valinelinetie.BuildValinelinetieFromRow(pdsvalinelinetie.ttblvalinelinetie[0]);
            }


            return(result);
        }
Example #11
0
        public AspolinePOLineRetrieveResponseAPI POLineRetrieve(Polineretrievecriteria polineretrievecriteria)
        {
            var result = new AspolinePOLineRetrieveResponseAPI();

            var pdspolineretrieve = new pdspolineretrieveDataSet();

            var pdspoline = new pdspolineDataSet();

            var pdspolineties = new pdspolinetiesDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblpolineretrievecriteriaCriteria = pdspolineretrieve.ttblpolineretrievecriteria.NewttblpolineretrievecriteriaRow();

            Polineretrievecriteria.UpdateRowFromPolineretrievecriteria(ref ttblpolineretrievecriteriaCriteria, polineretrievecriteria);
            pdspolineretrieve.ttblpolineretrievecriteria.AddttblpolineretrievecriteriaRow((pdspolineretrieveDataSet.ttblpolineretrievecriteriaRow)ttblpolineretrievecriteriaCriteria);

            string cErrorMessage  = string.Empty;
            string cUpdateMessage = string.Empty;


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdspoline.ttblpoline.Count > 0)
            {
                result.poline = Poline.BuildPolineFromRow(pdspoline.ttblpoline[0]);
            }

            foreach (DataRow row in pdspolineties.ttblpolineties)
            {
                result.polineties.Add(Polineties.BuildPolinetiesFromRow(row));
            }
            result.cUpdateMessage = cUpdateMessage;

            return(result);
        }
Example #12
0
        public AswtlineWTLineTieValidateResponseAPI WTLineTieValidate(AswtlineWTLineTieValidateRequestAPI AswtlineWTLineTieValidateRequestAPI)
        {
            var result = new AswtlineWTLineTieValidateResponseAPI();

            var pdswtline = new pdswtlineDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwtlineRow = pdswtline.ttblwtline.NewttblwtlineRow();

            Wtline.UpdateRowFromWtline(ref ttblwtlineRow, AswtlineWTLineTieValidateRequestAPI.wtline);
            pdswtline.ttblwtline.AddttblwtlineRow((pdswtlineDataSet.ttblwtlineRow)ttblwtlineRow);

            DataRow ttblwtlinecriteriaRow = pdswtline.ttblwtlinecriteria.NewttblwtlinecriteriaRow();

            Wtlinecriteria.UpdateRowFromWtlinecriteria(ref ttblwtlinecriteriaRow, AswtlineWTLineTieValidateRequestAPI.wtlinecriteria);
            pdswtline.ttblwtlinecriteria.AddttblwtlinecriteriaRow((pdswtlineDataSet.ttblwtlinecriteriaRow)ttblwtlinecriteriaRow);

            DataRow ttblwtlntiesRow = pdswtline.ttblwtlnties.NewttblwtlntiesRow();

            Wtlnties.UpdateRowFromWtlnties(ref ttblwtlntiesRow, AswtlineWTLineTieValidateRequestAPI.wtlnties);
            pdswtline.ttblwtlnties.AddttblwtlntiesRow((pdswtlineDataSet.ttblwtlntiesRow)ttblwtlntiesRow);


            NLogLoggerP.Trace("WTLineTieValidate - Aswtline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtlineproxy = this.proxyAppObject.CreatePO_aswtlineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtlineproxy.WTLineTieValidate(ref pdsContext, ref pdswtline, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTLineTieValidate - Aswtline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswtline.ttblwtlnties.Count > 0)
            {
                result.wtlnties = Wtlnties.BuildWtlntiesFromRow(pdswtline.ttblwtlnties[0]);
            }


            return(result);
        }
Example #13
0
        public AsotentryOTETTrackTotalUpdateResponseAPI OTETTrackTotalUpdate(AsotentryOTETTrackTotalUpdateRequestAPI AsotentryOTETTrackTotalUpdateRequestAPI)
        {
            var result = new AsotentryOTETTrackTotalUpdateResponseAPI();

            var pdsotettrackdetail = new pdsotettrackdetailDataSet();

            var pdsotaddons = new pdsotaddonsDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsotentryOTETTrackTotalUpdateRequestAPI.otaddons)
            {
                DataRow ttblotaddonsRow = pdsotaddons.ttblotaddons.NewttblotaddonsRow();
                Otaddons.UpdateRowFromOtaddons(ref ttblotaddonsRow, obj);
                pdsotaddons.ttblotaddons.AddttblotaddonsRow((pdsotaddonsDataSet.ttblotaddonsRow)ttblotaddonsRow);
            }

            DataRow ttblotettrackdetailRow = pdsotettrackdetail.ttblotettrackdetail.NewttblotettrackdetailRow();

            Otettrackdetail.UpdateRowFromOtettrackdetail(ref ttblotettrackdetailRow, AsotentryOTETTrackTotalUpdateRequestAPI.otettrackdetail);
            pdsotettrackdetail.ttblotettrackdetail.AddttblotettrackdetailRow((pdsotettrackdetailDataSet.ttblotettrackdetailRow)ttblotettrackdetailRow);


            NLogLoggerP.Trace("OTETTrackTotalUpdate - Asotentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsotentryproxy.OTETTrackTotalUpdate(ref pdsContext, ref pdsotettrackdetail, pdsotaddons, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("OTETTrackTotalUpdate - Asotentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsotettrackdetail.ttblotettrackdetail.Count > 0)
            {
                result.otettrackdetail = Otettrackdetail.BuildOtettrackdetailFromRow(pdsotettrackdetail.ttblotettrackdetail[0]);
            }


            return(result);
        }
Example #14
0
        public AspoheaderPOHeaderRetrieveResponseAPI POHeaderRetrieve(Poheaderretrievecriteria poheaderretrievecriteria)
        {
            var result = new AspoheaderPOHeaderRetrieveResponseAPI();

            var pdspoheaderretrieve = new pdspoheaderretrieveDataSet();

            var pdspohdr = new pdspohdrDataSet();

            var pdswlstatus = new pdswlstatusDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblpoheaderretrievecriteriaCriteria = pdspoheaderretrieve.ttblpoheaderretrievecriteria.NewttblpoheaderretrievecriteriaRow();

            Poheaderretrievecriteria.UpdateRowFromPoheaderretrievecriteria(ref ttblpoheaderretrievecriteriaCriteria, poheaderretrievecriteria);
            pdspoheaderretrieve.ttblpoheaderretrievecriteria.AddttblpoheaderretrievecriteriaRow((pdspoheaderretrieveDataSet.ttblpoheaderretrievecriteriaRow)ttblpoheaderretrievecriteriaCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("POHeaderRetrieve - Aspoheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoheaderproxy.POHeaderRetrieve(ref pdsContext, pdspoheaderretrieve, out pdspohdr, out pdswlstatus, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POHeaderRetrieve - Aspoheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdspohdr.ttblpohdr.Count > 0)
            {
                result.pohdr = Pohdr.BuildPohdrFromRow(pdspohdr.ttblpohdr[0]);
            }

            if (pdswlstatus.ttblwlstatus.Count > 0)
            {
                result.wlstatus = Wlstatus.BuildWlstatusFromRow(pdswlstatus.ttblwlstatus[0]);
            }


            return(result);
        }
Example #15
0
        public IEnumerable <Messaging> POLineNonStockValidate(AspolinePOLineNonStockValidateRequestAPI AspolinePOLineNonStockValidateRequestAPI)
        {
            var results = new List <Messaging>();

            var pdspoline = new pdspolineDataSet();

            var pdspolinenonstockhdr = new pdspolinenonstockhdrDataSet();

            var pdspolinenonstock = new pdspolinenonstockDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblpolineRow = pdspoline.ttblpoline.NewttblpolineRow();

            Poline.UpdateRowFromPoline(ref ttblpolineRow, AspolinePOLineNonStockValidateRequestAPI.poline);
            pdspoline.ttblpoline.AddttblpolineRow((pdspolineDataSet.ttblpolineRow)ttblpolineRow);

            DataRow ttblpolinenonstockRow = pdspolinenonstock.ttblpolinenonstock.NewttblpolinenonstockRow();

            Polinenonstock.UpdateRowFromPolinenonstock(ref ttblpolinenonstockRow, AspolinePOLineNonStockValidateRequestAPI.polinenonstock);
            pdspolinenonstock.ttblpolinenonstock.AddttblpolinenonstockRow((pdspolinenonstockDataSet.ttblpolinenonstockRow)ttblpolinenonstockRow);

            DataRow ttblpolinenonstockhdrRow = pdspolinenonstockhdr.ttblpolinenonstockhdr.NewttblpolinenonstockhdrRow();

            Polinenonstockhdr.UpdateRowFromPolinenonstockhdr(ref ttblpolinenonstockhdrRow, AspolinePOLineNonStockValidateRequestAPI.polinenonstockhdr);
            pdspolinenonstockhdr.ttblpolinenonstockhdr.AddttblpolinenonstockhdrRow((pdspolinenonstockhdrDataSet.ttblpolinenonstockhdrRow)ttblpolinenonstockhdrRow);


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


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Example #16
0
        public AscamCAMContactInitializeResponseAPI CAMContactInitialize(AscamCAMContactInitializeRequestAPI AscamCAMContactInitializeRequestAPI)
        {
            var result = new AscamCAMContactInitializeResponseAPI();

            var pdscamsubject = new pdscamsubjectDataSet();

            var pdscamcontact = new pdscamcontactDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblcamsubjectRow = pdscamsubject.ttblcamsubject.NewttblcamsubjectRow();

            Camsubject.UpdateRowFromCamsubject(ref ttblcamsubjectRow, AscamCAMContactInitializeRequestAPI.camsubject);
            pdscamsubject.ttblcamsubject.AddttblcamsubjectRow((pdscamsubjectDataSet.ttblcamsubjectRow)ttblcamsubjectRow);

            var dContactID = AscamCAMContactInitializeRequestAPI.dContactID;


            NLogLoggerP.Trace("CAMContactInitialize - Ascam - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscamproxy = this.proxyAppObject.CreatePO_ascamproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscamproxy.CAMContactInitialize(ref pdsContext, dContactID, pdscamsubject, out pdscamcontact, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CAMContactInitialize - Ascam - After Call");


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

            if (pdscamcontact.ttblcamcontact.Count > 0)
            {
                result.camcontact = Camcontact.BuildCamcontactFromRow(pdscamcontact.ttblcamcontact[0]);
            }

            foreach (DataRow row in pdscamcontact.ttblcamcontactmethods)
            {
                result.camcontactmethods.Add(Camcontactmethods.BuildCamcontactmethodsFromRow(row));
            }
            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }

            return(result);
        }
Example #17
0
        public AsvainquiryVAIFBuildVAListbySearchWordIndexResponseAPI VAIFBuildVAListbySearchWordIndex(AsvainquiryVAIFBuildVAListbySearchWordIndexRequestAPI AsvainquiryVAIFBuildVAListbySearchWordIndexRequestAPI)
        {
            var result = new AsvainquiryVAIFBuildVAListbySearchWordIndexResponseAPI();

            var pdsvaifbuildvalist = new pdsvaifbuildvalistDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

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

            var iBatchSize = AsvainquiryVAIFBuildVAListbySearchWordIndexRequestAPI.iBatchSize;

            var cSearchString = AsvainquiryVAIFBuildVAListbySearchWordIndexRequestAPI.cSearchString;


            NLogLoggerP.Trace("VAIFBuildVAListbySearchWordIndex - Asvainquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvainquiryproxy = this.proxyAppObject.CreatePO_asvainquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvainquiryproxy.VAIFBuildVAListbySearchWordIndex(ref pdsContext, iBatchSize, cSearchString, out pdsvaifbuildvalist, out pdsmessaging, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("VAIFBuildVAListbySearchWordIndex - Asvainquiry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdsvaifbuildvalist.ttblvaifbuildvahdrlistresults)
            {
                result.vaifbuildvahdrlistresults.Add(Vaifbuildvahdrlistresults.BuildVaifbuildvahdrlistresultsFromRow(row));
            }
            foreach (DataRow row in pdsvaifbuildvalist.ttblvaifbuildvalaborlistresults)
            {
                result.vaifbuildvalaborlistresults.Add(Vaifbuildvalaborlistresults.BuildVaifbuildvalaborlistresultsFromRow(row));
            }
            foreach (DataRow row in pdsvaifbuildvalist.ttblvaifbuildvalinelistresults)
            {
                result.vaifbuildvalinelistresults.Add(Vaifbuildvalinelistresults.BuildVaifbuildvalinelistresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Example #18
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 #19
0
        public AscrentryCRECQEVOIDupdateResponseAPI CRECQEVOIDupdate(AscrentryCRECQEVOIDupdateRequestAPI AscrentryCRECQEVOIDupdateRequestAPI)
        {
            var result = new AscrentryCRECQEVOIDupdateResponseAPI();

            var pdscrecqevoid = new pdscrecqevoidDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblcrecqevoidcriteriaRow = pdscrecqevoid.ttblcrecqevoidcriteria.NewttblcrecqevoidcriteriaRow();

            Crecqevoidcriteria.UpdateRowFromCrecqevoidcriteria(ref ttblcrecqevoidcriteriaRow, AscrentryCRECQEVOIDupdateRequestAPI.crecqevoidcriteria);
            pdscrecqevoid.ttblcrecqevoidcriteria.AddttblcrecqevoidcriteriaRow((pdscrecqevoidDataSet.ttblcrecqevoidcriteriaRow)ttblcrecqevoidcriteriaRow);

            foreach (var obj in AscrentryCRECQEVOIDupdateRequestAPI.crecqevoidresults)
            {
                DataRow ttblcrecqevoidresultsRow = pdscrecqevoid.ttblcrecqevoidresults.NewttblcrecqevoidresultsRow();
                Crecqevoidresults.UpdateRowFromCrecqevoidresults(ref ttblcrecqevoidresultsRow, obj);
                pdscrecqevoid.ttblcrecqevoidresults.AddttblcrecqevoidresultsRow((pdscrecqevoidDataSet.ttblcrecqevoidresultsRow)ttblcrecqevoidresultsRow);
            }


            NLogLoggerP.Trace("CRECQEVOIDupdate - Ascrentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscrentryproxy = this.proxyAppObject.CreatePO_ascrentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscrentryproxy.CRECQEVOIDupdate(ref pdsContext, ref pdscrecqevoid, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CRECQEVOIDupdate - Ascrentry - After Call");


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

            foreach (DataRow row in pdscrecqevoid.ttblcrecqevoidresults)
            {
                result.crecqevoidresults.Add(Crecqevoidresults.BuildCrecqevoidresultsFromRow(row));
            }
            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }

            return(result);
        }
Example #20
0
        public AsvaentryVAReceiptCreateIISectionResponseAPI VAReceiptCreateIISection(AsvaentryVAReceiptCreateIISectionRequestAPI AsvaentryVAReceiptCreateIISectionRequestAPI)
        {
            var result = new AsvaentryVAReceiptCreateIISectionResponseAPI();

            var pdsmessaging = new pdsmessagingDataSet();

            int    pvSeqno       = 0;
            string cErrorMessage = string.Empty;

            var pvSctncode = AsvaentryVAReceiptCreateIISectionRequestAPI.pvSctncode;

            var pvCompletefl = AsvaentryVAReceiptCreateIISectionRequestAPI.pvCompletefl;

            var pvPasspono = AsvaentryVAReceiptCreateIISectionRequestAPI.pvPasspono;

            var pvPassposuf = AsvaentryVAReceiptCreateIISectionRequestAPI.pvPassposuf;

            var pvPasslineno = AsvaentryVAReceiptCreateIISectionRequestAPI.pvPasslineno;

            var pvVano = AsvaentryVAReceiptCreateIISectionRequestAPI.pvVano;

            var pvVasuf = AsvaentryVAReceiptCreateIISectionRequestAPI.pvVasuf;


            NLogLoggerP.Trace("VAReceiptCreateIISection - Asvaentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvaentryproxy = this.proxyAppObject.CreatePO_asvaentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvaentryproxy.VAReceiptCreateIISection(ref pdsContext, pvSctncode, pvCompletefl, pvPasspono, pvPassposuf, pvPasslineno, ref pvVano, ref pvVasuf, out pvSeqno, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VAReceiptCreateIISection - Asvaentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            result.pvVano  = pvVano;
            result.pvVasuf = pvVasuf;
            result.pvSeqno = pvSeqno;

            return(result);
        }
Example #21
0
        public IEnumerable <Messaging> WTETLineDelete(AswtlineWTETLineDeleteRequestAPI AswtlineWTETLineDeleteRequestAPI)
        {
            var results = new List <Messaging>();

            var pdswtline = new pdswtlineDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwtlineRow = pdswtline.ttblwtline.NewttblwtlineRow();

            Wtline.UpdateRowFromWtline(ref ttblwtlineRow, AswtlineWTETLineDeleteRequestAPI.wtline);
            pdswtline.ttblwtline.AddttblwtlineRow((pdswtlineDataSet.ttblwtlineRow)ttblwtlineRow);

            foreach (var obj in AswtlineWTETLineDeleteRequestAPI.wtlinecriteria)
            {
                DataRow ttblwtlinecriteriaRow = pdswtline.ttblwtlinecriteria.NewttblwtlinecriteriaRow();
                Wtlinecriteria.UpdateRowFromWtlinecriteria(ref ttblwtlinecriteriaRow, obj);
                pdswtline.ttblwtlinecriteria.AddttblwtlinecriteriaRow((pdswtlineDataSet.ttblwtlinecriteriaRow)ttblwtlinecriteriaRow);
            }

            DataRow ttblwtlntiesRow = pdswtline.ttblwtlnties.NewttblwtlntiesRow();

            Wtlnties.UpdateRowFromWtlnties(ref ttblwtlntiesRow, AswtlineWTETLineDeleteRequestAPI.wtlnties);
            pdswtline.ttblwtlnties.AddttblwtlntiesRow((pdswtlineDataSet.ttblwtlntiesRow)ttblwtlntiesRow);


            NLogLoggerP.Trace("WTETLineDelete - Aswtline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtlineproxy = this.proxyAppObject.CreatePO_aswtlineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtlineproxy.WTETLineDelete(ref pdsContext, pdswtline, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WTETLineDelete - Aswtline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                results.Add(Messaging.BuildMessagingFromRow(row));
            }
            return(results);
        }
Example #22
0
        public AsvalineVAELLaborLoadChargesResponseAPI VAELLaborLoadCharges(AsvalineVAELLaborLoadChargesRequestAPI AsvalineVAELLaborLoadChargesRequestAPI)
        {
            var result = new AsvalineVAELLaborLoadChargesResponseAPI();

            var pdsvalaborline = new pdsvalaborlineDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AsvalineVAELLaborLoadChargesRequestAPI.valaborline)
            {
                DataRow ttblvalaborlineRow = pdsvalaborline.ttblvalaborline.NewttblvalaborlineRow();
                Valaborline.UpdateRowFromValaborline(ref ttblvalaborlineRow, obj);
                pdsvalaborline.ttblvalaborline.AddttblvalaborlineRow((pdsvalaborlineDataSet.ttblvalaborlineRow)ttblvalaborlineRow);
            }

            DataRow ttblvalaborlinecriteriaRow = pdsvalaborline.ttblvalaborlinecriteria.NewttblvalaborlinecriteriaRow();

            Valaborlinecriteria.UpdateRowFromValaborlinecriteria(ref ttblvalaborlinecriteriaRow, AsvalineVAELLaborLoadChargesRequestAPI.valaborlinecriteria);
            pdsvalaborline.ttblvalaborlinecriteria.AddttblvalaborlinecriteriaRow((pdsvalaborlineDataSet.ttblvalaborlinecriteriaRow)ttblvalaborlinecriteriaRow);


            NLogLoggerP.Trace("VAELLaborLoadCharges - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VAELLaborLoadCharges(ref pdsContext, ref pdsvalaborline, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VAELLaborLoadCharges - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdsvalaborline.ttblvalaborline)
            {
                result.valaborline.Add(Valaborline.BuildValaborlineFromRow(row));
            }

            return(result);
        }
Example #23
0
        public AswlinquiryWLStatusCompleteResponseAPI WLStatusComplete(AswlinquiryWLStatusCompleteRequestAPI AswlinquiryWLStatusCompleteRequestAPI)
        {
            var result = new AswlinquiryWLStatusCompleteResponseAPI();

            var pdswlstatus = new pdswlstatusDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            bool   pvCheckesbauth = false;
            bool   pvChecktwlauth = false;
            string cErrorMessage  = string.Empty;

            DataRow ttblwlstatusRow = pdswlstatus.ttblwlstatus.NewttblwlstatusRow();

            Wlstatus.UpdateRowFromWlstatus(ref ttblwlstatusRow, AswlinquiryWLStatusCompleteRequestAPI.wlstatus);
            pdswlstatus.ttblwlstatus.AddttblwlstatusRow((pdswlstatusDataSet.ttblwlstatusRow)ttblwlstatusRow);

            var cProcedure = AswlinquiryWLStatusCompleteRequestAPI.cProcedure;


            NLogLoggerP.Trace("WLStatusComplete - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLStatusComplete(ref pdsContext, cProcedure, out pvCheckesbauth, out pvChecktwlauth, ref pdswlstatus, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WLStatusComplete - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdswlstatus.ttblwlstatus.Count > 0)
            {
                result.wlstatus = Wlstatus.BuildWlstatusFromRow(pdswlstatus.ttblwlstatus[0]);
            }

            result.pvCheckesbauth = pvCheckesbauth;
            result.pvChecktwlauth = pvChecktwlauth;

            return(result);
        }
Example #24
0
        public AsotentryOTETAddPOLineInitResponseAPI OTETAddPOLineInit(Otetaddpoheader otetaddpoheader)
        {
            var result = new AsotentryOTETAddPOLineInitResponseAPI();

            var pdsotetaddpoheader = new pdsotetaddpoheaderDataSet();

            var pdsotetaddpolines = new pdsotetaddpolinesDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblotetaddpoheaderCriteria = pdsotetaddpoheader.ttblotetaddpoheader.NewttblotetaddpoheaderRow();

            Otetaddpoheader.UpdateRowFromOtetaddpoheader(ref ttblotetaddpoheaderCriteria, otetaddpoheader);
            pdsotetaddpoheader.ttblotetaddpoheader.AddttblotetaddpoheaderRow((pdsotetaddpoheaderDataSet.ttblotetaddpoheaderRow)ttblotetaddpoheaderCriteria);

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("OTETAddPOLineInit - Asotentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsotentryproxy = this.proxyAppObject.CreatePO_asotentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsotentryproxy.OTETAddPOLineInit(ref pdsContext, ref pdsotetaddpoheader, out pdsotetaddpolines, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("OTETAddPOLineInit - Asotentry - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsotetaddpoheader.ttblotetaddpoheader.Count > 0)
            {
                result.otetaddpoheader = Otetaddpoheader.BuildOtetaddpoheaderFromRow(pdsotetaddpoheader.ttblotetaddpoheader[0]);
            }

            foreach (DataRow row in pdsotetaddpolines.ttblotetaddpolines)
            {
                result.otetaddpolines.Add(Otetaddpolines.BuildOtetaddpolinesFromRow(row));
            }

            return(result);
        }
Example #25
0
        public AsvalineVALineInitializeUpdateResponseAPI VALineInitializeUpdate(AsvalineVALineInitializeUpdateRequestAPI AsvalineVALineInitializeUpdateRequestAPI)
        {
            var result = new AsvalineVALineInitializeUpdateResponseAPI();

            var pdsvalineaddchg = new pdsvalineaddchgDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            var pvFunctionnm = AsvalineVALineInitializeUpdateRequestAPI.pvFunctionnm;

            var pvVano = AsvalineVALineInitializeUpdateRequestAPI.pvVano;

            var pvVasuf = AsvalineVALineInitializeUpdateRequestAPI.pvVasuf;

            var pvSeqno = AsvalineVALineInitializeUpdateRequestAPI.pvSeqno;

            var pvLineno = AsvalineVALineInitializeUpdateRequestAPI.pvLineno;


            NLogLoggerP.Trace("VALineInitializeUpdate - Asvaline - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvalineproxy = this.proxyAppObject.CreatePO_asvalineproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvalineproxy.VALineInitializeUpdate(ref pdsContext, pvFunctionnm, pvVano, pvVasuf, pvSeqno, pvLineno, out pdsvalineaddchg, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VALineInitializeUpdate - Asvaline - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdsvalineaddchg.ttblvalineaddchg.Count > 0)
            {
                result.valineaddchg = Valineaddchg.BuildValineaddchgFromRow(pdsvalineaddchg.ttblvalineaddchg[0]);
            }


            return(result);
        }
Example #26
0
        public AsvaheaderVAHeaderTieEditValidateResponseAPI VAHeaderTieEditValidate(AsvaheaderVAHeaderTieEditValidateRequestAPI AsvaheaderVAHeaderTieEditValidateRequestAPI)
        {
            var result = new AsvaheaderVAHeaderTieEditValidateResponseAPI();

            var pdstiecreatetiett = new pdstiecreatetiettDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttbltiecreatetiettcriteriaRow = pdstiecreatetiett.ttbltiecreatetiettcriteria.NewttbltiecreatetiettcriteriaRow();

            Tiecreatetiettcriteria.UpdateRowFromTiecreatetiettcriteria(ref ttbltiecreatetiettcriteriaRow, AsvaheaderVAHeaderTieEditValidateRequestAPI.tiecreatetiettcriteria);
            pdstiecreatetiett.ttbltiecreatetiettcriteria.AddttbltiecreatetiettcriteriaRow((pdstiecreatetiettDataSet.ttbltiecreatetiettcriteriaRow)ttbltiecreatetiettcriteriaRow);

            DataRow ttbltiecreatetiettresultsRow = pdstiecreatetiett.ttbltiecreatetiettresults.NewttbltiecreatetiettresultsRow();

            Tiecreatetiettresults.UpdateRowFromTiecreatetiettresults(ref ttbltiecreatetiettresultsRow, AsvaheaderVAHeaderTieEditValidateRequestAPI.tiecreatetiettresults);
            pdstiecreatetiett.ttbltiecreatetiettresults.AddttbltiecreatetiettresultsRow((pdstiecreatetiettDataSet.ttbltiecreatetiettresultsRow)ttbltiecreatetiettresultsRow);


            NLogLoggerP.Trace("VAHeaderTieEditValidate - Asvaheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsvaheaderproxy = this.proxyAppObject.CreatePO_asvaheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsvaheaderproxy.VAHeaderTieEditValidate(ref pdsContext, ref pdstiecreatetiett, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("VAHeaderTieEditValidate - Asvaheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            if (pdstiecreatetiett.ttbltiecreatetiettresults.Count > 0)
            {
                result.tiecreatetiettresults = Tiecreatetiettresults.BuildTiecreatetiettresultsFromRow(pdstiecreatetiett.ttbltiecreatetiettresults[0]);
            }


            return(result);
        }
Example #27
0
        public AspoheaderPOImportLoadResponseAPI POImportLoad(AspoheaderPOImportLoadRequestAPI AspoheaderPOImportLoadRequestAPI)
        {
            var result = new AspoheaderPOImportLoadResponseAPI();

            var pdspoimportfile = new pdspoimportfileDataSet();

            var pdspoimportdata = new pdspoimportdataDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AspoheaderPOImportLoadRequestAPI.poimportfile)
            {
                DataRow ttblpoimportfileRow = pdspoimportfile.ttblpoimportfile.NewttblpoimportfileRow();
                Poimportfile.UpdateRowFromPoimportfile(ref ttblpoimportfileRow, obj);
                pdspoimportfile.ttblpoimportfile.AddttblpoimportfileRow((pdspoimportfileDataSet.ttblpoimportfileRow)ttblpoimportfileRow);
            }

            var iMaxLines = AspoheaderPOImportLoadRequestAPI.iMaxLines;


            NLogLoggerP.Trace("POImportLoad - Aspoheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoheaderproxy.POImportLoad(ref pdsContext, iMaxLines, pdspoimportfile, out pdspoimportdata, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POImportLoad - Aspoheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdspoimportdata.ttblpoimportdata)
            {
                result.poimportdata.Add(Poimportdata.BuildPoimportdataFromRow(row));
            }

            return(result);
        }
Example #28
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);
        }
Example #29
0
        public AscrentryCRECQEupdateResponseAPI CRECQEupdate(Crecqe crecqe)
        {
            var result = new AscrentryCRECQEupdateResponseAPI();

            var pdscrecqe = new pdscrecqeDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            DataRow ttblcrecqeCriteria = pdscrecqe.ttblcrecqe.NewttblcrecqeRow();

            Crecqe.UpdateRowFromCrecqe(ref ttblcrecqeCriteria, crecqe);
            pdscrecqe.ttblcrecqe.AddttblcrecqeRow((pdscrecqeDataSet.ttblcrecqeRow)ttblcrecqeCriteria);

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


            NLogLoggerP.Trace("CRECQEupdate - Ascrentry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscrentryproxy = this.proxyAppObject.CreatePO_ascrentryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscrentryproxy.CRECQEupdate(ref pdsContext, ref pdscrecqe, out lSuccess, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CRECQEupdate - Ascrentry - After Call");


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

            if (pdscrecqe.ttblcrecqe.Count > 0)
            {
                result.crecqe = Crecqe.BuildCrecqeFromRow(pdscrecqe.ttblcrecqe[0]);
            }

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            result.lSuccess = lSuccess;

            return(result);
        }
Example #30
0
        public AspoheaderPOImportValidateResponseAPI POImportValidate(IEnumerable <Poimportdata> poimportdata)
        {
            var result = new AspoheaderPOImportValidateResponseAPI();

            var pdspoimportdata = new pdspoimportdataDataSet();

            var pdsmessaging = new pdsmessagingDataSet();

            foreach (var obj in poimportdata)
            {
                DataRow row = pdspoimportdata.ttblpoimportdata.NewttblpoimportdataRow();
                Poimportdata.UpdateRowFromPoimportdata(ref row, obj);
                pdspoimportdata.ttblpoimportdata.AddttblpoimportdataRow((pdspoimportdataDataSet.ttblpoimportdataRow)row);
            }

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("POImportValidate - Aspoheader - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAspoheaderproxy = this.proxyAppObject.CreatePO_aspoheaderproxy())
                {
                    this.SetRequiredContextParameters();
                    poAspoheaderproxy.POImportValidate(ref pdsContext, ref pdspoimportdata, out pdsmessaging, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("POImportValidate - Aspoheader - After Call");


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

            foreach (DataRow row in pdsmessaging.ttblmessaging)
            {
                result.messaging.Add(Messaging.BuildMessagingFromRow(row));
            }
            foreach (DataRow row in pdspoimportdata.ttblpoimportdata)
            {
                result.poimportdata.Add(Poimportdata.BuildPoimportdataFromRow(row));
            }

            return(result);
        }