예제 #1
0
        public AswlinquiryWLITReturnsPOGetListResponseAPI WLITReturnsPOGetList(Wlitcriteria wlitcriteria)
        {
            var result = new AswlinquiryWLITReturnsPOGetListResponseAPI();

            var pdswlitcriteria = new pdswlitcriteriaDataSet();

            var pdswlitresults = new pdswlitresultsDataSet();

            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("WLITReturnsPOGetList - Aswlinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswlinquiryproxy = this.proxyAppObject.CreatePO_aswlinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswlinquiryproxy.WLITReturnsPOGetList(ref pdsContext, pdswlitcriteria, out pdswlitresults, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("WLITReturnsPOGetList - Aswlinquiry - After Call");


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

            foreach (DataRow row in pdswlitresults.ttblwlitresults)
            {
                result.wlitresults.Add(Wlitresults.BuildWlitresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
예제 #2
0
        public Wlitresults WLITReturnsPOUpdateStatus(AswlinquiryWLITReturnsPOUpdateStatusRequestAPI AswlinquiryWLITReturnsPOUpdateStatusRequestAPI)
        {
            var result = new Wlitresults();

            var pdswlitresults = new pdswlitresultsDataSet();

            string cErrorMessage = string.Empty;

            DataRow ttblwlitresultsRow = pdswlitresults.ttblwlitresults.NewttblwlitresultsRow();

            Wlitresults.UpdateRowFromWlitresults(ref ttblwlitresultsRow, AswlinquiryWLITReturnsPOUpdateStatusRequestAPI.wlitresults);
            pdswlitresults.ttblwlitresults.AddttblwlitresultsRow((pdswlitresultsDataSet.ttblwlitresultsRow)ttblwlitresultsRow);

            var pvStatustype = AswlinquiryWLITReturnsPOUpdateStatusRequestAPI.pvStatustype;


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


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

            if (pdswlitresults.ttblwlitresults.Count > 0)
            {
                result = Wlitresults.BuildWlitresultsFromRow(pdswlitresults.ttblwlitresults[0]);
            }


            return(result);
        }
예제 #3
0
        public IEnumerable <Wlitresults> WLITResetWIPTrans(IEnumerable <Wlitresults> wlitresults)
        {
            var results = new List <Wlitresults>();

            var pdswlitresults = new pdswlitresultsDataSet();

            foreach (var obj in wlitresults)
            {
                DataRow row = pdswlitresults.ttblwlitresults.NewttblwlitresultsRow();
                Wlitresults.UpdateRowFromWlitresults(ref row, obj);
                pdswlitresults.ttblwlitresults.AddttblwlitresultsRow((pdswlitresultsDataSet.ttblwlitresultsRow)row);
            }

            string cErrorMessage = string.Empty;


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


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

            foreach (DataRow row in pdswlitresults.ttblwlitresults)
            {
                results.Add(Wlitresults.BuildWlitresultsFromRow(row));
            }
            return(results);
        }