예제 #1
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);
        }
예제 #2
0
        public AsvainquiryVAIFBuildVAListResponseAPI VAIFBuildVAList(Vaifbuildvalistcriteria vaifbuildvalistcriteria)
        {
            var result = new AsvainquiryVAIFBuildVAListResponseAPI();

            var pdsvaifbuildvalist = new pdsvaifbuildvalistDataSet();

            DataRow ttblvaifbuildvalistcriteriaCriteria = pdsvaifbuildvalist.ttblvaifbuildvalistcriteria.NewttblvaifbuildvalistcriteriaRow();

            Vaifbuildvalistcriteria.UpdateRowFromVaifbuildvalistcriteria(ref ttblvaifbuildvalistcriteriaCriteria, vaifbuildvalistcriteria);
            pdsvaifbuildvalist.ttblvaifbuildvalistcriteria.AddttblvaifbuildvalistcriteriaRow((pdsvaifbuildvalistDataSet.ttblvaifbuildvalistcriteriaRow)ttblvaifbuildvalistcriteriaCriteria);

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


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


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

            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);
        }