Beispiel #1
0
        public AswtinquiryWTITSimpleSearchListResponseAPI WTITSimpleSearchList(int iBatchSize, string cSearchString)
        {
            var result = new AswtinquiryWTITSimpleSearchListResponseAPI();

            var pdswtitbuildwtlist = new pdswtitbuildwtlistDataSet();

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


            NLogLoggerP.Trace("WTITSimpleSearchList - Aswtinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtinquiryproxy = this.proxyAppObject.CreatePO_aswtinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtinquiryproxy.WTITSimpleSearchList(ref pdsContext, iBatchSize, cSearchString, out pdswtitbuildwtlist, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("WTITSimpleSearchList - Aswtinquiry - After Call");


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

            foreach (DataRow row in pdswtitbuildwtlist.ttblwtitbuildwtlistresults)
            {
                result.wtitbuildwtlistresults.Add(Wtitbuildwtlistresults.BuildWtitbuildwtlistresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }
Beispiel #2
0
        public AswtinquiryWTITBuildWTListResponseAPI WTITBuildWTList(Wtitbuildwtlistcriteria wtitbuildwtlistcriteria)
        {
            var result = new AswtinquiryWTITBuildWTListResponseAPI();

            var pdswtitbuildwtlist = new pdswtitbuildwtlistDataSet();

            DataRow ttblwtitbuildwtlistcriteriaCriteria = pdswtitbuildwtlist.ttblwtitbuildwtlistcriteria.NewttblwtitbuildwtlistcriteriaRow();

            Wtitbuildwtlistcriteria.UpdateRowFromWtitbuildwtlistcriteria(ref ttblwtitbuildwtlistcriteriaCriteria, wtitbuildwtlistcriteria);
            pdswtitbuildwtlist.ttblwtitbuildwtlistcriteria.AddttblwtitbuildwtlistcriteriaRow((pdswtitbuildwtlistDataSet.ttblwtitbuildwtlistcriteriaRow)ttblwtitbuildwtlistcriteriaCriteria);

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


            NLogLoggerP.Trace("WTITBuildWTList - Aswtinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAswtinquiryproxy = this.proxyAppObject.CreatePO_aswtinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAswtinquiryproxy.WTITBuildWTList(ref pdsContext, ref pdswtitbuildwtlist, out cErrorMessage, out lMoreRecords);
                }
            });
            NLogLoggerP.Info("WTITBuildWTList - Aswtinquiry - After Call");


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

            foreach (DataRow row in pdswtitbuildwtlist.ttblwtitbuildwtlistresults)
            {
                result.wtitbuildwtlistresults.Add(Wtitbuildwtlistresults.BuildWtitbuildwtlistresultsFromRow(row));
            }
            result.lMoreRecords = lMoreRecords;

            return(result);
        }