예제 #1
0
        public IEnumerable <Custom> CustomCall(AscustomCustomCallRequestAPI AscustomCustomCallRequestAPI)
        {
            var results = new List <Custom>();

            var pdscustom = new pdscustomDataSet();

            string cErrorMessage = string.Empty;

            foreach (var obj in AscustomCustomCallRequestAPI.custom)
            {
                DataRow ttblcustomRow = pdscustom.ttblcustom.NewttblcustomRow();
                Custom.UpdateRowFromCustom(ref ttblcustomRow, obj);
                pdscustom.ttblcustom.AddttblcustomRow((pdscustomDataSet.ttblcustomRow)ttblcustomRow);
            }

            var cOperation = AscustomCustomCallRequestAPI.cOperation;


            NLogLoggerP.Trace("CustomCall - Ascustom - Before Call");
            StopwatchUtil.Time(
                () =>
            {
                using (var poAscustomproxy = this.proxyAppObject.CreatePO_ascustomproxy())
                {
                    this.SetRequiredContextParameters();
                    poAscustomproxy.CustomCall(ref pdsContext, ref pdscustom, cOperation, out cErrorMessage);
                }
            });
            NLogLoggerP.Info("CustomCall - Ascustom - After Call");


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

            foreach (DataRow row in pdscustom.ttblcustom)
            {
                results.Add(Custom.BuildCustomFromRow(row));
            }
            return(results);
        }