Exemple #1
0
        public AswlinquiryWLITMstrGetListResponseAPI WLITMstrGetList(Wlitcriteria wlitcriteria)
        {
            var result = new AswlinquiryWLITMstrGetListResponseAPI();

            var pdswlitcriteria = new pdswlitcriteriaDataSet();

            var pdswlitmstrresults = new pdswlitmstrresultsDataSet();

            DataRow ttblwlitcriteriaCriteria = pdswlitcriteria.ttblwlitcriteria.NewttblwlitcriteriaRow();

            Wlitcriteria.UpdateRowFromWlitcriteria(ref ttblwlitcriteriaCriteria, wlitcriteria);
            pdswlitcriteria.ttblwlitcriteria.AddttblwlitcriteriaRow((pdswlitcriteriaDataSet.ttblwlitcriteriaRow)ttblwlitcriteriaCriteria);

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


            NLogLoggerP.Trace("WLITMstrGetList - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLITMstrGetList(ref pdsContext, pdswlitcriteria, out pdswlitmstrresults, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("WLITMstrGetList - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdswlitmstrresults.ttblwlitmstrresults)
            {
                result.wlitmstrresults.Add(Wlitmstrresults.BuildWlitmstrresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Exemple #2
0
        public Wlitmstrresults WLITMstrUpdateStatus(AswlinquiryWLITMstrUpdateStatusRequestAPI AswlinquiryWLITMstrUpdateStatusRequestAPI)
        {
            var result = new Wlitmstrresults();

            var pdswlitmstrresults = new pdswlitmstrresultsDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwlitmstrresultsRow = pdswlitmstrresults.ttblwlitmstrresults.NewttblwlitmstrresultsRow();

            Wlitmstrresults.UpdateRowFromWlitmstrresults(ref ttblwlitmstrresultsRow, AswlinquiryWLITMstrUpdateStatusRequestAPI.wlitmstrresults);
            pdswlitmstrresults.ttblwlitmstrresults.AddttblwlitmstrresultsRow((pdswlitmstrresultsDataSet.ttblwlitmstrresultsRow)ttblwlitmstrresultsRow);

            var pvStatustype = AswlinquiryWLITMstrUpdateStatusRequestAPI.pvStatustype;


            NLogLoggerP.Trace("WLITMstrUpdateStatus - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLITMstrUpdateStatus(ref pdsContext, pvStatustype, ref pdswlitmstrresults, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WLITMstrUpdateStatus - Aswlinquiry - After Call");


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

            if (pdswlitmstrresults.ttblwlitmstrresults.Count > 0)
            {
                result = Wlitmstrresults.BuildWlitmstrresultsFromRow(pdswlitmstrresults.ttblwlitmstrresults[0]);
            }


            return(result);
        }
Exemple #3
0
        public IEnumerable <Wlitmstrresults> WLITMstrResetWIPTrans(IEnumerable <Wlitmstrresults> wlitmstrresults)
        {
            var results = new List <Wlitmstrresults>();

            var pdswlitmstrresults = new pdswlitmstrresultsDataSet();

            foreach (var obj in wlitmstrresults)
            {
                DataRow row = pdswlitmstrresults.ttblwlitmstrresults.NewttblwlitmstrresultsRow();
                Wlitmstrresults.UpdateRowFromWlitmstrresults(ref row, obj);
                pdswlitmstrresults.ttblwlitmstrresults.AddttblwlitmstrresultsRow((pdswlitmstrresultsDataSet.ttblwlitmstrresultsRow)row);
            }

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("WLITMstrResetWIPTrans - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLITMstrResetWIPTrans(ref pdsContext, ref pdswlitmstrresults, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("WLITMstrResetWIPTrans - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdswlitmstrresults.ttblwlitmstrresults)
            {
                results.Add(Wlitmstrresults.BuildWlitmstrresultsFromRow(row));
            }
            return(results);
        }