コード例 #1
0
        public IEnumerable <Icirquorders> ICIRQUOrders(IEnumerable <Icirresults> icirresults)
        {
            var results = new List <Icirquorders>();

            var pdsicir = new pdsicirDataSet();

            var pdsicirquorders = new pdsicirquordersDataSet();

            foreach (var obj in icirresults)
            {
                DataRow row = pdsicir.ttblicirresults.NewttblicirresultsRow();
                Icirresults.UpdateRowFromIcirresults(ref row, obj);
                pdsicir.ttblicirresults.AddttblicirresultsRow((pdsicirDataSet.ttblicirresultsRow)row);
            }

            string cErrorMessage = string.Empty;


            NLogLoggerP.Trace("ICIRQUOrders - Asicinquiry - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAsicinquiryproxy = this.proxyAppObject.CreatePO_asicinquiryproxy())
                {
                    this.SetRequiredContextParameters();
                    poAsicinquiryproxy.ICIRQUOrders(ref pdsContext, pdsicir, out pdsicirquorders, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("ICIRQUOrders - Asicinquiry - After Call");


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

            foreach (DataRow row in pdsicirquorders.ttblicirquorders)
            {
                results.Add(Icirquorders.BuildIcirquordersFromRow(row));
            }
            return(results);
        }